ecea28d7568c17b1f27c6152a5bcc843761b81f8
[gnulib.git] / ChangeLog
1 2010-04-03  Bruno Haible  <bruno@clisp.org>
2
3         timegm: Assume declaration if function exists.
4         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
5         if it exists. Don't clobber ac_cv_func_timegm.
6
7 2010-04-03  Bruno Haible  <bruno@clisp.org>
8
9         time_r: Fix C++ test error on mingw.
10         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
11         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15
16 2010-04-03  Bruno Haible  <bruno@clisp.org>
17
18         time_r: Minor updates.
19         * modules/time_r (Description): Mention the provided functions.
20         * lib/time_r.c: Don't include <string.h>.
21         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22         * doc/posix-functions/localtime_r.texi: Likewise.
23
24 2010-04-03  Bruno Haible  <bruno@clisp.org>
25
26         time: Fix regression introduced on 2010-03-08.
27         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
28         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29
30 2010-04-03  Jim Meyering  <meyering@redhat.com>
31
32         maint.mk: don't silently disable project-specific syntax-check rules
33         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34         that they need to convert their project-specific syntax-check rules
35         to use the new _sc_search_regexp.
36
37 2010-04-03  Bruno Haible  <bruno@clisp.org>
38
39         fchdir: Fix regression introduced on 2010-03-08.
40         * lib/unistd.in.h (fchdir): Fix declaration.
41         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
42         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
43         REPLACE_FCHDIR.
44         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
45         REPLACE_FCHDIR.
46
47 2010-04-03  Bruno Haible  <bruno@clisp.org>
48
49         getpagesize: Fix C++ test error on mingw.
50         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51         system does not declare the function.
52         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53         declared.
54         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55         HAVE_DECL_GETPAGESIZE.
56         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
57
58 2010-04-03  Bruno Haible  <bruno@clisp.org>
59
60         stdio: Make C++ tests work on mingw.
61         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
62         does not declare the function.
63
64 2010-04-03  Bruno Haible  <bruno@clisp.org>
65
66         ftello: Fix C++ test error on mingw.
67         * lib/stdio.in.h (ftello): Use modern idiom.
68         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70         is missing and that it needs to be replaced.
71         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
72         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
73         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
74
75 2010-04-03  Bruno Haible  <bruno@clisp.org>
76
77         fseeko: Fix C++ test error on mingw.
78         * lib/stdio.in.h (fseeko): Use modern idiom.
79         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
80         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
81         is missing and that it needs to be replaced.
82         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
83         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
84         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
85
86 2010-04-03  Bruno Haible  <bruno@clisp.org>
87
88         mkstemp: Fix C++ test error on mingw.
89         * lib/stdlib.in.h (mkstemp): Use modern idiom.
90         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
91         function is missing and that it needs to be replaced.
92         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
93         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
94
95 2010-04-03  Bruno Haible  <bruno@clisp.org>
96
97         stpncpy: Fix C++ test error on mingw.
98         * lib/string.in.h (stpncpy): Use modern idiom.
99         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
100         function is missing and that it needs to be replaced.
101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
102         REPLACE_STPNCPY.
103         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
104
105 2010-04-03  Bruno Haible  <bruno@clisp.org>
106
107         sys_stat: Fix C++ test error on mingw.
108         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
109         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
110
111 2010-04-03  Bruno Haible  <bruno@clisp.org>
112
113         pty: Update doc.
114         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
115
116 2010-04-03  Bruno Haible  <bruno@clisp.org>
117
118         unistd: Fix C++ test error on mingw.
119         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
120
121 2010-04-03  Bruno Haible  <bruno@clisp.org>
122
123         Update doc regarding mingw.
124         * doc/glibc-functions/openpty.texi: Update regarding mingw.
125         * doc/glibc-functions/login_tty.texi: Likewise.
126         * doc/glibc-functions/forkpty.texi: Likewise.
127
128 2010-04-03  Bruno Haible  <bruno@clisp.org>
129
130         stdlib: Avoid compilation failure of c-strtold on mingw.
131         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
132
133 2010-04-03  Bruno Haible  <bruno@clisp.org>
134
135         locale: Make C++ tests work on Cygwin and mingw.
136         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
137         cannot provide the function.
138         Reported by Simon Josefsson.
139
140 2010-04-03  Bruno Haible  <bruno@clisp.org>
141
142         localename: Port to MacOS X 10.6.
143         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
144         memory layout of the locales in MacOS X 10.6 as well.
145         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
146
147 2010-04-02  Bruno Haible  <bruno@clisp.org>
148
149         gnulib-tool: Ensure that long-running tests are executed last.
150         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
151         running tests after the one for the other tests.
152
153 2010-04-02  Bruno Haible  <bruno@clisp.org>
154
155         gnulib-tool: Ensure the tests in the main directory are executed first.
156         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
157         start with the current directory.
158
159 2010-04-02  Bruno Haible  <bruno@clisp.org>
160
161         Tests for module 'havelib', moved here from GNU gettext.
162         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
163         modifications.
164         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
165         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
166         with modifications.
167         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
168         modifications.
169         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
170         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
171         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
172         with modifications.
173         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
174         with modifications.
175         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
176         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
177         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
178         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
179         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
180         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
181         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
182         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
183         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
184         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
185         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
186         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
187         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
188         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
189         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
190         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
191         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
192         with modifications.
193         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
194         with modifications.
195         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
196         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
197         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
198         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
199         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
200         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
201         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
202         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
203         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
204         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
205         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
206         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
207         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
208         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
209         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
210         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
211         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
212         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
213         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
214         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
215         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
216         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
217         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
218         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
219         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
220         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
221         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
222         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
223         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
224         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
225         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
226         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
227         * tests/havelib/rpathx/rpathx.c: New file, from
228         gettext/autoconf-lib-link.
229         * tests/havelib/rpathx/Makefile.am: New file, from
230         gettext/autoconf-lib-link.
231         * tests/havelib/rpathx/configure.ac: New file, from
232         gettext/autoconf-lib-link with modifications.
233         * tests/havelib/rpathy/rpathy.c: New file, from
234         gettext/autoconf-lib-link.
235         * tests/havelib/rpathy/Makefile.am: New file, from
236         gettext/autoconf-lib-link.
237         * tests/havelib/rpathy/configure.ac: New file, from
238         gettext/autoconf-lib-link with modifications.
239         * tests/havelib/rpathz/rpathz.c: New file, from
240         gettext/autoconf-lib-link.
241         * tests/havelib/rpathz/Makefile.am: New file, from
242         gettext/autoconf-lib-link.
243         * tests/havelib/rpathz/configure.ac: New file, from
244         gettext/autoconf-lib-link with modifications.
245         * tests/havelib/rpathlx/usex.c: New file, from
246         gettext/autoconf-lib-link.
247         * tests/havelib/rpathlx/Makefile.am: New file, from
248         gettext/autoconf-lib-link.
249         * tests/havelib/rpathlx/configure.ac: New file, from
250         gettext/autoconf-lib-link with modifications.
251         * tests/havelib/rpathly/usey.c: New file, from
252         gettext/autoconf-lib-link.
253         * tests/havelib/rpathly/Makefile.am: New file, from
254         gettext/autoconf-lib-link.
255         * tests/havelib/rpathly/configure.ac: New file, from
256         gettext/autoconf-lib-link with modifications.
257         * tests/havelib/rpathlz/usez.c: New file, from
258         gettext/autoconf-lib-link.
259         * tests/havelib/rpathlz/Makefile.am: New file, from
260         gettext/autoconf-lib-link.
261         * tests/havelib/rpathlz/configure.ac: New file, from
262         gettext/autoconf-lib-link with modifications.
263         * tests/havelib/rpathlyx/usey.c: New file, from
264         gettext/autoconf-lib-link.
265         * tests/havelib/rpathlyx/Makefile.am: New file, from
266         gettext/autoconf-lib-link.
267         * tests/havelib/rpathlyx/configure.ac: New file, from
268         gettext/autoconf-lib-link with modifications.
269         * tests/havelib/rpathlzyx/usez.c: New file, from
270         gettext/autoconf-lib-link.
271         * tests/havelib/rpathlzyx/Makefile.am: New file, from
272         gettext/autoconf-lib-link.
273         * tests/havelib/rpathlzyx/configure.ac: New file, from
274         gettext/autoconf-lib-link with modifications.
275         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
276         with modifications.
277
278 2010-04-02  Bruno Haible  <bruno@clisp.org>
279
280         gnulib-tool: Create distributed built sources also for the tests.
281         * gnulib-tool (func_create_testdir): Also generate distributed built
282         sources in the tests directory.
283
284 2010-04-02  Bruno Haible  <bruno@clisp.org>
285
286         gnulib-tool: Obey user's environment variables.
287         * gnulib-tool (func_create_testdir): When creating built sources,
288         respect the environment variables for autoconf, automake, etc. given by
289         the user.
290
291 2010-04-02  Bruno Haible  <bruno@clisp.org>
292
293         gnulib-tool: Provide the value of --m4-base to modules.
294         * gnulib-tool (func_import, func_create_testdir): Emit a definition
295         of gl_m4_base.
296
297 2010-04-02  Eric Blake  <eblake@redhat.com>
298
299         maint.mk: fix some fallout
300         * NEWS: Document the incompatible change, and its effect on cfg.mk.
301         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
302
303 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
304
305         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
306         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
307         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
308         (sc_cast_of_x_alloc_return_value): Likewise.
309         (sc_cast_of_alloca_return_value): Likewise.
310         (sc_space_tab): Likewise.
311         (sc_prohibit_atoi_atof): Likewise.
312         (sc_prohibit_magic_number_exit): Likewise.
313         (sc_error_exit_success): Likewise.
314         (sc_file_system): Likewise.
315         (sc_prohibit_have_config_h): Likewise.
316         (sc_require_config_h): Likewise.
317         (sc_prohibit_HAVE_MBRTOWC): Likewise.
318         (sc_obsolete_symbols): Likewise.
319         (sc_changelog): Likewise.
320         (sc_program_name): Likewise.
321         (sc_the_the): Likewise.
322         (sc_trailing_blank): Likewise.
323         (sc_two_space_separator_in_usage): Likewise.
324         (sc_useless_cpp_parens): Likewise.
325         (sc_GPL_version): Likewise.
326         (sc_GFDL_version): Likewise.
327         (sc_texinfo_acronym): Likewise.
328         (sc_prohibit_cvs_keyword): Likewise.
329         (sc_prohibit_stat_st_blocks): Likewise.
330         (sc_prohibit_S_IS_definition): Likewise.
331         (sc_redundant_const): Likewise.
332         (sc_makefile_TAB_only_indentation): Likewise.
333         (sc_m4_quote_check): Likewise.
334         (sc_makefile_path_separator_check): Likewise.
335         (sc_copyright_check): Likewise.
336         (sc_Wundef_boolean): Likewise.
337         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
338
339         maint.mk: match 0 or more whitespace-before-function-call '('
340         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
341         that have zero or two-and-more spaces between the function name
342         and the open parenthesis.
343         (sc_error_message_warn_fatal): Likewise.
344         (sc_error_message_uppercase): Likewise.
345         (sc_error_message_period): Likewise.
346
347 2010-03-31  Eric Blake  <eblake@redhat.com>
348
349         maint.mk: check for [ as well as test
350         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
351         Based on a libvirt report by Matthias Bolte.
352
353         gnumakefile: don't squelch _version output
354         * top/GNUmakefile (_version): Create one-shot dependency rather
355         than using $(shell) when version must be regenerated.
356         (_autoreconf): Run verbosely, by default.
357
358         sys_time: avoid compiler warnings
359         * lib/sys_time.in.h (includes): Ensure gcc pragma is
360         unconditional, fixing regression from 2010-03-29.
361         Reported by Simon Josefsson.
362
363 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
364
365         maint.mk: s/_header_without_use/_sc_header_without_use/
366         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
367         (sc_prohibit_assert_without_use): Use the new name.
368         (sc_prohibit_close_stream_without_use): Likewise.
369         (sc_prohibit_getopt_without_use): Likewise.
370         (sc_prohibit_quotearg_without_use): Likewise.
371         (sc_prohibit_quote_without_use): Likewise.
372         (sc_prohibit_long_options_without_use): Likewise.
373         (sc_prohibit_inttostr_without_use): Likewise.
374         (sc_prohibit_ignore_value_without_use): Likewise.
375         (sc_prohibit_error_without_use): Likewise.
376         (sc_prohibit_xalloc_without_use): Likewise.
377         (sc_prohibit_hash_without_use): Likewise.
378         (sc_prohibit_hash_pjw_without_use): Likewise.
379         (sc_prohibit_safe_read_without_use): Likewise.
380         (sc_prohibit_argmatch_without_use): Likewise.
381         (sc_prohibit_canonicalize_without_use): Likewise.
382         (sc_prohibit_root_dev_ino_without_use): Likewise.
383         (sc_prohibit_openat_without_use): Likewise.
384         (sc_prohibit_c_ctype_without_use): Likewise.
385         (sc_prohibit_signal_without_use): Likewise.
386         (sc_prohibit_intprops_without_use): Likewise.
387
388 2010-03-30  Eric Blake  <eblake@redhat.com>
389
390         maint: improve module indicators
391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
392         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
393         columns, and avoid extra macro expansion.
394
395         fdopendir: work around FreeBSD bug
396         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
397         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
398         * modules/dirent (Makefile.am): Substitute it.
399         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
400         declaration.
401         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
402         fix.
403         Reported by Christian Weisgerber <naddy@mips.inka.de>.
404
405 2010-03-29  Bruno Haible  <bruno@clisp.org>
406
407         Emit #pragma system_header after the inclusion guard, not before.
408         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
409         guard that spans the entire file, not before. This enables an
410         optimization in GCC's preprocessor.
411         * lib/ctype.in.h: Likewise.
412         * lib/dirent.in.h: Likewise.
413         * lib/errno.in.h: Likewise.
414         * lib/float.in.h: Likewise.
415         * lib/getopt.in.h: Likewise.
416         * lib/iconv.in.h: Likewise.
417         * lib/langinfo.in.h: Likewise.
418         * lib/locale.in.h: Likewise.
419         * lib/math.in.h: Likewise.
420         * lib/netdb.in.h: Likewise.
421         * lib/netinet_in.in.h: Likewise.
422         * lib/pty.in.h: Likewise.
423         * lib/sched.in.h: Likewise.
424         * lib/se-selinux.in.h: Likewise.
425         * lib/search.in.h: Likewise.
426         * lib/spawn.in.h: Likewise.
427         * lib/stdarg.in.h: Likewise.
428         * lib/stdint.in.h: Likewise.
429         * lib/string.in.h: Likewise.
430         * lib/strings.in.h: Likewise.
431         * lib/sys_file.in.h: Likewise.
432         * lib/sys_ioctl.in.h: Likewise.
433         * lib/sys_time.in.h: Likewise.
434         * lib/sys_times.in.h: Likewise.
435         * lib/sys_utsname.in.h: Likewise.
436         * lib/sys_wait.in.h: Likewise.
437         * lib/sysexits.in.h: Likewise.
438         * lib/wctype.in.h: Likewise.
439
440 2010-03-28  James Youngman  <jay@gnu.org>
441
442         save-cwd: don't leak a file descriptor when the caller execs.
443         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
444         saved file descriptor.
445         * modules/save-cwd (Depends-on): Depend on cloexec.
446
447 2010-03-29  Bruno Haible  <bruno@clisp.org>
448
449         Remove vestiges of fts-lgpl module.
450         * lib/fts_.h: Assume GNULIB_FTS is 1.
451         * lib/fts.c: Likewise.
452         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
453
454 2010-03-28  Bruno Haible  <bruno@clisp.org>
455
456         Fix definition of tests witness macro.
457         * gnulib-tool (func_import): Fix definition of witness macro.
458
459 2010-03-28  Bruno Haible  <bruno@clisp.org>
460
461         Fix ioctl's protoype on glibc systems.
462         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
463         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
464         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
465         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
466         signature. If not, arrange to replace the ioctl function.
467         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
468         REPLACE_IOCTL.
469         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
470         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
471         Reported by Ludovic Courtès <ludo@gnu.org>.
472
473 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
474
475         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
476         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
477         made it so grep -r --include=GLOB* ... did not work.
478
479 2010-03-26  Jim Meyering  <meyering@redhat.com>
480             Eric Blake  <eblake@redhat.com>
481
482         maint.mk: prohibit use of test's -o and -a operators
483         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
484
485 2010-03-28  Bruno Haible  <bruno@clisp.org>
486
487         Remove unused GNULIB_XYZ macro definitions.
488         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
489         invocation.
490
491 2010-03-28  Bruno Haible  <bruno@clisp.org>
492
493         Mark privileged tests modules.
494         * modules/idpriv-drop-tests (Status): New section.
495         * modules/idpriv-droptemp-tests (Status): New section.
496
497 2010-03-28  Bruno Haible  <bruno@clisp.org>
498
499         Split C++ tests into separate tests modules.
500         * modules/dirent-c++-tests: New file, extracted from
501         modules/dirent-tests.
502         * modules/dirent-tests: Depend on it.
503         * modules/fcntl-h-c++-tests: New file, extracted from
504         modules/fcntl-h-tests.
505         * modules/fcntl-h-tests: Depend on it.
506         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
507         * modules/glob-tests: Depend on it.
508         * modules/iconv-h-c++-tests: New file, extracted from
509         modules/iconv-h-tests.
510         * modules/iconv-h-tests: Depend on it.
511         * modules/langinfo-c++-tests: New file, extracted from
512         modules/langinfo-tests.
513         * modules/langinfo-tests: Depend on it.
514         * modules/locale-c++-tests: New file, extracted from
515         modules/locale-tests.
516         * modules/locale-tests: Depend on it.
517         * modules/math-c++-tests: New file, extracted from modules/math-tests.
518         * modules/math-tests: Depend on it.
519         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
520         * modules/pty-tests: Depend on it.
521         * modules/search-c++-tests: New file, extracted from
522         modules/search-tests.
523         * modules/search-tests: Depend on it.
524         * modules/signal-c++-tests: New file, extracted from
525         modules/signal-tests.
526         * modules/signal-tests: Depend on it.
527         * modules/spawn-c++-tests: New file, extracted from
528         modules/spawn-tests.
529         * modules/spawn-tests: Depend on it.
530         * modules/stdio-c++-tests: New file, extracted from
531         modules/stdio-tests.
532         * modules/stdio-tests: Depend on it.
533         * modules/stdlib-c++-tests: New file, extracted from
534         modules/stdlib-tests.
535         * modules/stdlib-tests: Depend on it.
536         * modules/string-c++-tests: New file, extracted from
537         modules/string-tests.
538         * modules/string-tests: Depend on it.
539         * modules/sys_ioctl-c++-tests: New file, extracted from
540         modules/sys_ioctl-tests.
541         * modules/sys_ioctl-tests: Depend on it.
542         * modules/sys_select-c++-tests: New file, extracted from
543         modules/sys_select-tests.
544         * modules/sys_select-tests: Depend on it.
545         * modules/sys_socket-c++-tests: New file, extracted from
546         modules/sys_socket-tests.
547         * modules/sys_socket-tests: Depend on it.
548         * modules/sys_stat-c++-tests: New file, extracted from
549         modules/sys_stat-tests.
550         * modules/sys_stat-tests: Depend on it.
551         * modules/sys_time-c++-tests: New file, extracted from
552         modules/sys_time-tests.
553         * modules/sys_time-tests: Depend on it.
554         * modules/time-c++-tests: New file, extracted from modules/time-tests.
555         * modules/time-tests: Depend on it.
556         * modules/unistd-c++-tests: New file, extracted from
557         modules/unistd-tests.
558         * modules/unistd-tests: Depend on it.
559         * modules/wchar-c++-tests: New file, extracted from
560         modules/wchar-tests.
561         * modules/wchar-tests: Depend on it.
562         * modules/wctype-c++-tests: New file, extracted from
563         modules/wctype-tests.
564         * modules/wctype-tests: Depend on it.
565         Reported by Simon Josefsson.
566
567 2010-03-28  Bruno Haible  <bruno@clisp.org>
568
569         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
570         * gnulib-tool (func_exists_module): New function, extracted from
571         func_verify_module.
572         (func_verify_module): Use it.
573         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
574         'foo' only if 'foo' exists.
575         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
576         module.
577
578 2010-03-28  Bruno Haible  <bruno@clisp.org>
579
580         gnulib-tool: Add support for special categories of tests.
581         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
582         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
583         (func_usage): Document them.
584         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
585         inc_unportable_tests, inc_all_tests): New variables.
586         (func_acceptable): Consider these variables.
587         (func_modules_transitive_closure): Make it work when the 'Status' field
588         consists of multiple words.
589         (func_import): Store and restore the values of inc_cxx_tests,
590         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
591         inc_all_tests in gnulib-comp.m4.
592         (func_create_testdir): Set inc_all_tests to true.
593         * doc/gnulib.texi (Extra tests modules): New section.
594         Suggested by Jim Meyering.
595
596 2010-03-28  Bruno Haible  <bruno@clisp.org>
597
598         ansi-c++-opt: Allow turning off the C++ build by default.
599         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
600         gl_CXX_CHOICE_DEFAULT_NO is defined.
601         Requested by Eric Blake.
602
603 2010-03-28  Bruno Haible  <bruno@clisp.org>
604
605         unistd: Avoid #define replacements in C++ mode.
606         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
607         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
608         setsockopt, shutdown, select): In C++, attach a warning to the function
609         if possible, rather than #defining the symbol to a dysfunctional alias.
610         Reported by John W. Eaton <jwe@gnu.org>.
611
612 2010-03-28  Bruno Haible  <bruno@clisp.org>
613
614         Fix link errors on mingw.
615         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
616         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
617         $(LIBSOCKET).
618         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
619         $(LIBSOCKET).
620
621 2010-03-28  Bruno Haible  <bruno@clisp.org>
622             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
623
624         lib-ignore: Determine different options for different compilers.
625         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
626         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
627         Add comments.
628         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
629         * NEWS: Mention the change.
630
631 2010-03-27  Bruno Haible  <bruno@clisp.org>
632
633         Remove unused GNULIB_XYZ macro definitions.
634         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
635         * modules/fseek (configure.ac): Likewise.
636         * modules/ioctl (configure.ac): Likewise.
637         * modules/open (configure.ac): Likewise.
638         * modules/stdlib-safer (configure.ac): Likewise.
639
640 2010-03-27  Bruno Haible  <bruno@clisp.org>
641
642         Add a remark about certain modules.
643         * modules/malloc (Comment): New section.
644         * modules/realloc (Comment): Likewise.
645         * modules/sigpipe (Comment): Likewise.
646
647 2010-03-27  Bruno Haible  <bruno@clisp.org>
648
649         Resolve conflict between the two kinds of module indicators.
650         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
651         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
652         * modules/canonicalize (configure.ac): Invoke
653         gl_MODULE_INDICATOR_FOR_TESTS.
654         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
655         GNULIB_XYZ.
656         * tests/test-dirent-c++.cc: Likewise.
657         * tests/test-dirent-safer.c: Likewise.
658         * tests/test-dup2.c: Likewise.
659         * tests/test-fchdir.c: Likewise.
660         * tests/test-fcntl-h-c++.cc: Likewise.
661         * tests/test-getopt.c: Likewise.
662         * tests/test-getopt.h: Likewise.
663         * tests/test-langinfo-c++.cc: Likewise.
664         * tests/test-locale-c++.cc: Likewise.
665         * tests/test-math-c++.cc: Likewise.
666         * tests/test-pty-c++.cc: Likewise.
667         * tests/test-search-c++.cc: Likewise.
668         * tests/test-signal-c++.cc: Likewise.
669         * tests/test-spawn-c++.cc: Likewise.
670         * tests/test-stdio-c++.cc: Likewise.
671         * tests/test-stdlib-c++.cc: Likewise.
672         * tests/test-string-c++.cc: Likewise.
673         * tests/test-sys_ioctl-c++.cc: Likewise.
674         * tests/test-sys_select-c++.cc: Likewise.
675         * tests/test-sys_socket-c++.cc: Likewise.
676         * tests/test-sys_stat-c++.cc: Likewise.
677         * tests/test-sys_time-c++.cc: Likewise.
678         * tests/test-time-c++.cc: Likewise.
679         * tests/test-unistd-c++.cc: Likewise.
680         * tests/test-wchar-c++.cc: Likewise.
681         * tests/uninorm/test-u8-nfc.c: Likewise.
682         * tests/uninorm/test-u8-nfd.c: Likewise.
683         * tests/uninorm/test-u8-nfkc.c: Likewise.
684         * tests/uninorm/test-u8-nfkd.c: Likewise.
685         * tests/uninorm/test-u16-nfc.c: Likewise.
686         * tests/uninorm/test-u16-nfd.c: Likewise.
687         * tests/uninorm/test-u16-nfkc.c: Likewise.
688         * tests/uninorm/test-u16-nfkd.c: Likewise.
689         * tests/uninorm/test-u32-nfc.c: Likewise.
690         * tests/uninorm/test-u32-nfc-big.c: Likewise.
691         * tests/uninorm/test-u32-nfd.c: Likewise.
692         * tests/uninorm/test-u32-nfd-big.c: Likewise.
693         * tests/uninorm/test-u32-nfkc.c: Likewise.
694         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
695         * tests/uninorm/test-u32-nfkd.c: Likewise.
696         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
697         * tests/uninorm/test-u32-normalize-big.c: Likewise.
698
699 2010-03-27  Bruno Haible  <bruno@clisp.org>
700
701         Distinguish two kinds of module indicators.
702         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
703         gl_MODULE_INDICATOR.
704         (gl_MODULE_INDICATOR): New macro.
705         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
706         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
707         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
708         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
709         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
710         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
711         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
712         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
713         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
714         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
715         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
716         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
718         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
719         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
720         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
721         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
722         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
723         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
724         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
725         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
726         * modules/cloexec (configure.ac): Likewise.
727         * modules/getopt-gnu (configure.ac): Likewise.
728         * modules/uninorm/u8-normalize (configure.ac): Likewise.
729         * modules/uninorm/u16-normalize (configure.ac): Likewise.
730         * modules/uninorm/u32-normalize (configure.ac): Likewise.
731         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
732
733 2010-03-27  Bruno Haible  <bruno@clisp.org>
734
735         New module description field 'Comment'.
736         * gnulib-tool: New option --extract-comment.
737         (func_usage): Document it.
738         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
739         (func_get_comment): New function.
740         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
741
742 2010-03-27  Bruno Haible  <bruno@clisp.org>
743
744         Addendum to 2010-02-07 commit.
745         * gnulib-tool (func_usage): Document --extract-applicability option.
746
747 2010-03-27  Bruno Haible  <bruno@clisp.org>
748
749         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
750         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
751         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
752         rather than link errors.
753
754 2010-03-27  Bruno Haible  <bruno@clisp.org>
755
756         Avoid side effects from tests-related modules on the compilation of lib.
757         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
758         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
759         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
760         parameter. Emit into AM_CPPFLAGS a definition of the designated C
761         macro.
762         (func_import): Define a witness macro. Assign it a value that depends
763         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
764         tests-related modules.
765         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
766         Reported by Jim Meyering.
767
768 2010-03-27  Bruno Haible  <bruno@clisp.org>
769
770         Factorize common .m4 code.
771         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
772         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
773         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
774         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
775         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
776         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
777         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
778         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
779         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
780         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
781         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
782         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
783         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
784         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
785         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
786         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
787         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
788         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
790         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
791         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
792         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
793         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
794         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
795         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
796         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
797         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
798         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
799         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
800         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
801         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
802         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
803
804 2010-03-27  Bruno Haible  <bruno@clisp.org>
805
806         Fix a compilation error on Cygwin with g++ >= 4.3.
807         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
808         if it is undefined or if we alias it to chmod.
809         (lstat): Don't warn about the use of this function if it is undefined
810         or if we alias it to stat.
811         Reported by Simon Josefsson.
812
813 2010-03-27  Bruno Haible  <bruno@clisp.org>
814
815         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
816         * modules/getlogin (configure.ac): Update.
817
818         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
819         * modules/getlogin_r (configure.ac): Update.
820
821         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
823         * modules/inet_ntop (configure.ac): Update.
824
825         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
826         * modules/inet_pton (configure.ac): Update.
827
828         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
829         * modules/mbslen (configure.ac): Update.
830
831         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
832         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
833         * modules/forkpty (configure.ac): Update.
834         * modules/openpty (configure.ac): Update.
835
836 2010-03-26  Simon Josefsson  <simon@josefsson.org>
837
838         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
839         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
840
841 2010-03-25  Eric Blake  <eblake@redhat.com>
842
843         maint: use pragma consistently across replacement headers
844         * lib/ctype.in.h (system_header): Hoist for consistent placement.
845         * lib/dirent.in.h (system_header): Likewise.
846         * lib/errno.in.h (system_header): Likewise.
847         * lib/float.in.h (system_header): Likewise.
848         * lib/getopt.in.h (system_header): Likewise.
849         * lib/iconv.in.h (system_header): Likewise.
850         * lib/inttypes.in.h (system_header): Likewise.
851         * lib/langinfo.in.h (system_header): Likewise.
852         * lib/locale.in.h (system_header): Likewise.
853         * lib/math.in.h (system_header): Likewise.
854         * lib/netdb.in.h (system_header): Likewise.
855         * lib/netinet_in.in.h (system_header): Likewise.
856         * lib/pty.in.h (system_header): Likewise.
857         * lib/sched.in.h (system_header): Likewise.
858         * lib/se-selinux.in.h (system_header): Likewise.
859         * lib/search.in.h (system_header): Likewise.
860         * lib/spawn.in.h (system_header): Likewise.
861         * lib/stdarg.in.h (system_header): Likewise.
862         * lib/stdint.in.h (system_header): Likewise.
863         * lib/string.in.h (system_header): Likewise.
864         * lib/strings.in.h (system_header): Likewise.
865         * lib/sys_file.in.h (system_header): Likewise.
866         * lib/sys_ioctl.in.h (system_header): Likewise.
867         * lib/sys_socket.in.h (system_header): Likewise.
868         * lib/sys_times.in.h (system_header): Likewise.
869         * lib/sys_utsname.in.h (system_header): Likewise.
870         * lib/sys_wait.in.h (system_header): Likewise.
871         * lib/sysexits.in.h (system_header): Likewise.
872         * lib/unistd.in.h (system_header): Likewise.
873         * lib/wctype.in.h (system_header): Likewise.
874
875         arpa/inet: fix mingw compilation warning
876         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
877         Reported by Matthew Bolte.
878
879 2010-03-25  Bruno Haible  <bruno@clisp.org>
880
881         Avoid collision between gnulib wrapper and libintl wrapper.
882         * lib/printf.c (printf): Don't define if a printf wrapper is already
883         defined in intl/printf.c.
884         Reported by Michel Boaventura <michel@michelboaventura.com>.
885
886 2010-03-25  Bruno Haible  <bruno@clisp.org>
887
888         Use ANSI C.
889         * lib/readutmp.h (getutent): Provide ANSI C prototype.
890
891 2010-03-25  Bruno Haible  <bruno@clisp.org>
892
893         Minor formatting changes.
894         * lib/acosl.c: Insert space before function argument list.
895         * lib/argz.c: Likewise.
896         * lib/asinl.c: Likewise.
897         * lib/expl.c: Likewise.
898         * lib/gen-uni-tables.c: Likewise.
899         * lib/gettext.h: Likewise.
900         * lib/glthread/lock.h: Likewise.
901         * lib/tanl.c: Likewise.
902         * lib/uniname/uniname.c: Likewise.
903         * tests/test-idpriv-drop.c: Likewise.
904         * tests/test-idpriv-droptemp.c: Likewise.
905         * tests/test-lock.c: Likewise.
906         * tests/test-tls.c: Likewise.
907         * lib/argp-help.c: Insert space before function-like macro argument
908         list.
909         * lib/memcmp.c: Likewise.
910         * tests/test-base64.c: Likewise.
911         * lib/localename.c: Insert space before sizeof's argument list.
912         * lib/safe-alloc.h: Likewise.
913         * lib/file-set.h: Insert space before macro argument list.
914         * tests/test-argp.c: Likewise.
915         * lib/argp-namefrob.h: Insert space before function parameter list.
916         * lib/getaddrinfo.c: Likewise.
917         * lib/netdb.in.h: Likewise.
918         * lib/parse-duration.h: Likewise.
919         * lib/parse-duration.c: Likewise.
920         * lib/poll.c: Likewise.
921         * lib/select.c: Likewise.
922         * lib/trim.h: Likewise.
923         * tests/test-usleep.c: Likewise.
924         * lib/ldexpl.c: Insert space before function parameter list and before
925         function argument list.
926         * lib/logl.c: Likewise.
927         * lib/sqrtl.c: Likewise.
928         * lib/trim.c: Likewise.
929         * lib/cosl.c: Use GNU style indentation. Insert space before function
930         argument list.
931         * lib/sinl.c: Likewise.
932         * lib/tsearch.c: Insert space after 'for'.
933         Reported by Jim Meyering.
934
935 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
936
937         * maint.mk (sc_Wundef_boolean): Check for the presence of the
938         config header before grepping, as it's not present before
939         autoreconf/configure are run.  Reported by Simon Josefsson.
940
941 2010-03-23  Bruno Haible  <bruno@clisp.org>
942
943         pt_chown: Make it work with automake < 1.11.
944         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
945         Reported by Simon Josefsson.
946
947 2010-03-23  Bruno Haible  <bruno@clisp.org>
948
949         pt_chown: Don't depend on GPLed modules.
950         * lib/pt_chown.c: Don't include idpriv.h.
951         (main): Don't drop privileges.
952         * modules/pt_chown (Depends-on): Remove idpriv-drop.
953         Reported by Simon Josefsson.
954
955 2010-03-24  Simon Josefsson  <simon@josefsson.org>
956
957         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
958         suggestions from karl@freefriends.org (Karl Berry).
959
960 2010-03-22  Eric Blake  <eblake@redhat.com>
961
962         gethostname: further tweaks
963         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
964         are overriding gethostname.
965         Suggested by Bruno Haible.
966
967 2010-03-21  Bruno Haible  <bruno@clisp.org>
968
969         Fix comments.
970         * lib/forkpty.c (rpl_forkpty): Fix comment.
971         * lib/openpty.c (rpl_openpty): Likewise.
972         Reported by Eric Blake.
973
974 2010-03-22  Eric Blake  <eblake@redhat.com>
975
976         gethostname: fix build on mingw
977         * lib/unistd.in.h (includes): Work around fact that mingw
978         <winsock2.h> re-includes <unistd.h>, by avoiding any
979         redeclarations if we are being included by <winsock2.h>.
980         Reported by Matthias Bolte.
981
982 2010-03-21  Bruno Haible  <bruno@clisp.org>
983
984         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
985         * lib/forkpty.c (forkpty): New replacement function, from glibc with
986         modifications.
987         * lib/pty.in.h (forkpty): Update declaration. Add comments.
988         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
989         provide the replacement.
990         * modules/forkpty (Depends-on): Add openpty, login_tty.
991         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
992         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
993         * doc/glibc-functions/forkpty.texi: More supported platforms.
994         * config/srclist.txt: Add forkpty.c (commented).
995
996 2010-03-21  Bruno Haible  <bruno@clisp.org>
997
998         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
999         (Makefile.am): Verify that PTY_LIB is defined.
1000
1001         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1002
1003 2010-03-21  Bruno Haible  <bruno@clisp.org>
1004
1005         Tests for module 'login_tty'.
1006         * modules/login_tty-tests: New file.
1007         * tests/test-login_tty.c: New file.
1008
1009         New module 'login_tty'.
1010         * lib/login_tty.c: New file.
1011         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1012         * modules/login_tty: New file.
1013         * doc/glibc-functions/login_tty.texi: Mention the new module.
1014
1015 2010-03-21  Bruno Haible  <bruno@clisp.org>
1016
1017         login_tty: Documentation.
1018         * doc/glibc-functions/login_tty.texi: New file.
1019         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1020
1021 2010-03-21  Bruno Haible  <bruno@clisp.org>
1022
1023         pty: Consistent macro naming.
1024         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1025         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1026         * modules/pty (configure.ac): Update.
1027
1028 2010-03-21  Bruno Haible  <bruno@clisp.org>
1029
1030         Tests for openpty: Make stricter.
1031         * tests/test-openpty.c (main): Add test of canonical processing and
1032         erase.
1033         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1034
1035         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1036         * lib/openpty.c (openpty): New replacement function.
1037         * lib/pty.in.h: Include <termios.h>.
1038         (openpty): Update declaration. Add comments.
1039         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1040         is not declared, arrange to provide the replacement. Check for _getpty
1041         and posix_openpt.
1042         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1043         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1044         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1045         * modules/pty-tests (test_pty_c___LDADD): New variable.
1046         * doc/glibc-functions/openpty.texi: More supported platforms.
1047
1048 2010-03-21  Bruno Haible  <bruno@clisp.org>
1049
1050         setenv: Tweaks.
1051         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1052         the test program.
1053         * doc/posix-functions/setenv.texi: Update platforms list.
1054
1055 2010-03-21  Bruno Haible  <bruno@clisp.org>
1056
1057         New module 'unlockpt'.
1058         * lib/unlockpt.c: New file, from glibc with modifications.
1059         * m4/unlockpt.m4: New file.
1060         * modules/unlockpt: New file.
1061         * lib/stdlib.in.h (unlockpt): New declaration.
1062         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1063         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1064         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1065         HAVE_UNLOCKPT.
1066         * doc/posix-functions/unlockpt.texi: Mention the new module.
1067         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1068         * config/srclist.txt: Add unlockpt.c (commented).
1069
1070 2010-03-21  Jim Meyering  <meyering@redhat.com>
1071
1072         maint.mk: prohibit inclusion of "intprops.h" without use
1073         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1074
1075 2010-03-21  Bruno Haible  <bruno@clisp.org>
1076
1077         New module 'grantpt'.
1078         * lib/grantpt.c: New file, from glibc with modifications.
1079         * m4/grantpt.m4: New file.
1080         * modules/grantpt: New file.
1081         * lib/stdlib.in.h (grantpt): New declaration.
1082         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1083         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1084         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1085         HAVE_GRANTPT.
1086         * doc/posix-functions/grantpt.texi: Mention the new module.
1087         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1088         * config/srclist.txt: Add grantpt.c (commented).
1089
1090 2010-03-21  Bruno Haible  <bruno@clisp.org>
1091
1092         New module 'pt_chown'.
1093         * lib/pt_chown.c: New file, from glibc with modifications.
1094         * lib/pty-private.h: New file, from glibc with modifications.
1095         * modules/pt_chown: New file.
1096         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1097
1098 2010-03-21  Bruno Haible  <bruno@clisp.org>
1099
1100         Tests for module 'ptsname'.
1101         * modules/ptsname-tests: New file.
1102         * tests/test-ptsname.c: New file.
1103
1104         New module 'ptsname'.
1105         * lib/ptsname.c: New file, from glibc with modifications.
1106         * m4/ptsname.m4: New file.
1107         * modules/ptsname: New file.
1108         * lib/stdlib.in.h (ptsname): New declaration.
1109         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1110         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1111         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1112         HAVE_PTSNAME.
1113         * doc/posix-functions/ptsname.texi: Mention the new module.
1114         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1115         * config/srclist.txt: Add ptsname.c (commented).
1116
1117 2010-03-21  Bruno Haible  <bruno@clisp.org>
1118
1119         Tests for module 'ttyname_r'.
1120         * modules/ttyname_r-tests: New file.
1121         * tests/test-ttyname_r.c: New file.
1122
1123         New module 'ttyname_r'.
1124         * lib/ttyname_r.c: New file.
1125         * m4/ttyname_r.m4: New file.
1126         * modules/ttyname_r: New file.
1127         * lib/unistd.in.h (ttyname_r): New declaration.
1128         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1129         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1130         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1131         HAVE_TTYNAME_R.
1132         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1133         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1134
1135 2010-03-20  Bruno Haible  <bruno@clisp.org>
1136
1137         signal: Undefine macro definitions in C++ mode.
1138         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1139         sigfillset): Undefine macro definitions from the system header in C++
1140         mode.
1141         Reported by John W. Eaton <jwe@gnu.org>.
1142
1143 2010-03-20  Bruno Haible  <bruno@clisp.org>
1144
1145         Ensure no #include statements inside extern "C" { ... }.
1146         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1147         contain #include statements.
1148         * lib/time.in.h: Likewise.
1149
1150 2010-03-20  Bruno Haible  <bruno@clisp.org>
1151
1152         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1153         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1154         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1155         Reported by John W. Eaton <jwe@gnu.org>.
1156
1157 2010-03-20  Bruno Haible  <bruno@clisp.org>
1158
1159         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1160         Reported by Jim Meyering.
1161
1162 2010-03-20  Bruno Haible  <bruno@clisp.org>
1163
1164         pipe: Set errno upon failure.
1165         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1166         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1167         errno value in error message.
1168
1169 2010-03-20  Bruno Haible  <bruno@clisp.org>
1170             Jim Meyering  <meyering@redhat.com>
1171
1172         lchown: Avoid "unused variable" warning.
1173         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1174
1175 2010-03-20  Bruno Haible  <bruno@clisp.org>
1176
1177         Work around unlink() bug on MacOS X 10.5.6.
1178         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1179         attempting to unlink a parent directory.
1180         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1181         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1182         activate for the replacement function.
1183         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1184
1185 2010-03-20  Bruno Haible  <bruno@clisp.org>
1186
1187         Fix link errors on Solaris 8.
1188         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1189         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1190
1191 2010-03-19  Jim Meyering  <meyering@redhat.com>
1192
1193         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1194         The _LIBC implementation of build_range_exp correctly honors the
1195         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1196         However, the non-_LIBC implementation would ignore that syntax-bit
1197         flag and return REG_ERANGE unconditionally.
1198         This change makes it honor that flag.
1199         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1200         Make two pointer parameters "const".
1201         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1202         (parse_bracket_exp): Update caller.
1203
1204         regex.m4: correct the reversed range endpoint ([b-a]) test
1205         * m4/regex.m4: When requiring that [b-a] evoke failure,
1206         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1207         test pass once again for x86-based systems.
1208
1209 2010-03-19  Bruno Haible  <bruno@clisp.org>
1210
1211         scandir: Fix link error on Solaris 8.
1212         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1213         macros.
1214
1215 2010-03-19  Bruno Haible  <bruno@clisp.org>
1216
1217         getusershell: Fix documentation.
1218         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1219         module.
1220         * doc/glibc-functions/setusershell.texi: Likewise.
1221
1222         getusershell: Provide declaration, missing on Solaris 9.
1223         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1224         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1225         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1226         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1228         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1229         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1230         HAVE_GETUSERSHELL.
1231         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1232
1233 2010-03-19  Bruno Haible  <bruno@clisp.org>
1234
1235         wctype: Provide iswblank function.
1236         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1237         exists and is fine.
1238         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1239         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1240         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1241         * doc/posix-functions/iswblank.texi: Update.
1242
1243 2010-03-19  Bruno Haible  <bruno@clisp.org>
1244
1245         Tests of module 'pty' in C++ mode.
1246         * modules/pty-tests: New file.
1247         * tests/test-pty-c++.cc: New file.
1248         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1249
1250 2010-03-19  Eric Blake  <eblake@redhat.com>
1251
1252         logb: fix documentation
1253         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1254         1.5 declaration bug.
1255
1256         forkpty, openpty: prefer glibc's const-safe prototype
1257         * lib/forkpty.c (rpl_forkpty): New file.
1258         * lib/openpty.c (rpl_openpty): Likewise.
1259         * modules/forkpty (Files): Distribute it.
1260         * modules/openpty (Files): Likewise.
1261         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1262         check...
1263         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1264         replacement for for non-const BSD signature.
1265         * modules/pty (Makefile.am): Substitute witnesses.
1266         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1267         * tests/test-forkpty.c: Update signature check.
1268         * tests/test-openpty.c: Likewise.
1269         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1270         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1271
1272         forkpty, openpty: split functions into new modules
1273         * modules/pty (Makefile.am): Substitute new witnesses.
1274         (Libraries): Move library detection...
1275         * modules/forkpty: ...into new module.
1276         * modules/openpty: Another new module.
1277         * modules/pty-tests: Rename and split...
1278         * modules/forkpty-tests: ...to this...
1279         * modules/openpty-tests: ...and this.
1280         * tests/test-pty.c: Rename and split...
1281         * tests/test-forkpty.c: ...to this...
1282         * tests/test-openpty.c: ...and this.
1283         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1284         (gl_PTY): Split library searching...
1285         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1286         (gl_FORKPTY, gl_OPENPTY): New macros.
1287         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1288         * NEWS: Mention the split.
1289         * MODULES.html.sh (Misc): Document the modules.
1290         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1291         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1292
1293         pty: improve replacement header
1294         * lib/pty.in.h: New file.
1295         * modules/pty (Files): Ship it.
1296         (Makefile.am): Always build replacement.
1297         * m4/pty.m4: Rename...
1298         * m4/pty_h.m4: ...to this.
1299         (gl_PTY): Modernize setting of witness macros; update check of
1300         forkpty to take proper advantage of cache.
1301         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1302
1303         getopt: avoid compiler warning
1304         * lib/getopt.c (attribute_hidden): Remove unused macro.
1305
1306 2010-03-18  Bruno Haible  <bruno@clisp.org>
1307
1308         Fix link errors on Solaris 8.
1309         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1310         * modules/search-tests (test_search_c___LDADD): Likewise.
1311         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1312         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1313         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1314         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1315         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1316         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1317         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1318
1319 2010-03-18  Bruno Haible  <bruno@clisp.org>
1320
1321         Fix bug introduced on 2010-03-14.
1322         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1323         (gl_SPAWN_H): Require it.
1324         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1325         Reported by Simon Josefsson.
1326
1327 2010-03-18  Bruno Haible  <bruno@clisp.org>
1328
1329         Fix typo introduced on 2009-12-31.
1330         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1331         posix_spawn_file_actions_adddup2.
1332
1333 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1334         and Eric Blake  <eblake@redhat.com>
1335
1336         test-vc-list-files-git: make more robust
1337         * tests/test-vc-list-files-git.sh: Unset problematic environment
1338         variables.  Chain commands together.
1339
1340 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1341
1342         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1343         `AC_CHECK_DECL' invocation.
1344
1345 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1346
1347         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1348         appears before executable statements. Suggested by Petr Sumbera
1349         <Petr.Sumbera@Sun.COM>.
1350
1351 2010-03-14  Bruno Haible  <bruno@clisp.org>
1352
1353         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1354         portability problems. Instead use a simpler test.
1355         (main): Check that invalid arguments are rejected only on Linux.
1356
1357 2010-03-14  Bruno Haible  <bruno@clisp.org>
1358
1359         Fix bug introduced on 2009-12-31.
1360         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1361         gl_PREREQ_SYS_H_WINSOCK2 always.
1362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1363         SYS_SOCKET_H variable.
1364         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1365         Update comments.
1366         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1367         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1368         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1369         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1370         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1371
1372 2010-03-14  Bruno Haible  <bruno@clisp.org>
1373
1374         Fix values returned by sinl, cosl.
1375         * lib/trigl.h: Add specification comments.
1376         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1377         that combines the values from the precomputed table with the values of
1378         the Chebyshev polynomials.
1379
1380 2010-03-14  Bruno Haible  <bruno@clisp.org>
1381
1382         Fix compilation error when modules 'posix_spawn[p]' are not used.
1383         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1384         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1385
1386 2010-03-14  Bruno Haible  <bruno@clisp.org>
1387
1388         Fix compilation error on mingw when module 'time_r' is not used.
1389         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1390         is 1.
1391         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1392         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1393         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1394         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1395
1396 2010-03-14  Bruno Haible  <bruno@clisp.org>
1397
1398         Fix compilation error with Sun C.
1399         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1400         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1401         instead of GCC specific ULONG_LONG_MAX.
1402         * lib/xstrtoll.c: Likewise.
1403         * lib/xstrtoull.c: Likewise.
1404
1405 2010-03-13  Bruno Haible  <bruno@clisp.org>
1406
1407         Allow the user to disable C++ code and tests.
1408         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1409         (gl_PROG_ANSI_CXX): Require it.
1410
1411 2010-03-13  Bruno Haible  <bruno@clisp.org>
1412
1413         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1414         cases.
1415
1416 2010-03-13  Bruno Haible  <bruno@clisp.org>
1417
1418         Test that gnulib does not break the standard C++ headers.
1419         * tests/test-locale-c++2.cc: New file.
1420         * modules/locale-tests (Files): Add it.
1421         (Makefile.am): Compile it for test-locale-c++.
1422         * tests/test-math-c++2.cc: New file.
1423         * modules/math-tests (Files): Add it.
1424         (Makefile.am): Compile it for test-math-c++.
1425         * tests/test-signal-c++2.cc: New file.
1426         * modules/signal-tests (Files): Add it.
1427         (Makefile.am): Compile it for test-signal-c++.
1428         * tests/test-stdio-c++2.cc: New file.
1429         * modules/stdio-tests (Files): Add it.
1430         (Makefile.am): Compile it for test-stdio-c++.
1431         * tests/test-stdlib-c++2.cc: New file.
1432         * modules/stdlib-tests (Files): Add it.
1433         (Makefile.am): Compile it for test-stdlib-c++.
1434         * tests/test-string-c++2.cc: New file.
1435         * modules/string-tests (Files): Add it.
1436         (Makefile.am): Compile it for test-string-c++.
1437         * tests/test-time-c++2.cc: New file.
1438         * modules/time-tests (Files): Add it.
1439         (Makefile.am): Compile it for test-time-c++.
1440         Reported by John W. Eaton <jwe@gnu.org>.
1441
1442 2010-03-13  Bruno Haible  <bruno@clisp.org>
1443
1444         * gnulib-tool (func_usage): Clarify which options are available for
1445         --create-testdir and --create-megatestdir.
1446
1447 2010-03-13  Bruno Haible  <bruno@clisp.org>
1448
1449         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1450         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1451         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1452         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1453         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1454         when appropriate.
1455         Reported by Jim Meyering.
1456
1457 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1458
1459         * gnulib-tool (func_import): Explain origin of code.
1460
1461 2010-03-12  Bruno Haible  <bruno@clisp.org>
1462
1463         Fix problem with automake's definition of CXXLINK.
1464         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1465         Reported by Simon Josefsson and Ludovic Courtès.
1466
1467 2010-03-12  Bruno Haible  <bruno@clisp.org>
1468
1469         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1470         stable releases.
1471
1472 2010-03-11  Bruno Haible  <bruno@clisp.org>
1473
1474         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1475         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1476         whether the system provides one variant or multiple variants of the
1477         function.
1478         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1479         C++ compilers.
1480         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1481         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1482         Reported by Jim Meyering.
1483
1484 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1485
1486         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1487
1488 2010-03-08  Bruno Haible  <bruno@clisp.org>
1489
1490         gnulib-tool: Add support for --libtool in --create-testdir.
1491         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1492         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1493
1494 2010-03-08  Eric Blake  <eblake@redhat.com>
1495
1496         gnulib-tool.texi: mention possibility of git submodule
1497         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1498         submodules.
1499         * doc/.gitignore: Ignore another generated file.
1500
1501 2010-03-08  Karl Berry  <karl@gnu.org>
1502
1503         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1504         of committing gnulib files while skipping others.
1505
1506 2010-03-07  Bruno Haible  <bruno@clisp.org>
1507
1508         Tests of module 'wctype' in C++ mode.
1509         * tests/test-wctype-c++.cc: New file.
1510         * modules/wctype-tests (Files): Add it and tests/signature.h.
1511         (Depends-on): Add ansi-c++-opt.
1512         (Makefile.am): Arrange to compile and run test-wctype-c++.
1513
1514         Tests of module 'wchar' in C++ mode.
1515         * tests/test-wchar-c++.cc: New file.
1516         * modules/wchar-tests (Files): Add it and tests/signature.h.
1517         (Depends-on): Add ansi-c++-opt.
1518         (Makefile.am): Arrange to compile and run test-wchar-c++.
1519         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1520         gl_MODULE_INDICATOR.
1521
1522         Tests of module 'unistd' in C++ mode.
1523         * tests/test-unistd-c++.cc: New file.
1524         * modules/unistd-tests (Files): Add it and tests/signature.h.
1525         (Depends-on): Add ansi-c++-opt.
1526         (Makefile.am): Arrange to compile and run test-unistd-c++.
1527         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1528         gl_MODULE_INDICATOR.
1529
1530         Tests of module 'time' in C++ mode.
1531         * tests/test-time-c++.cc: New file.
1532         * modules/time-tests (Files): Add it and tests/signature.h.
1533         (Depends-on): Add ansi-c++-opt.
1534         (Makefile.am): Arrange to compile and run test-time-c++.
1535         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1536
1537         Tests of module 'sys_time' in C++ mode.
1538         * tests/test-sys_time-c++.cc: New file.
1539         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1540         (Depends-on): Add ansi-c++-opt.
1541         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1542         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1543         gl_MODULE_INDICATOR.
1544
1545         Tests of module 'sys_stat' in C++ mode.
1546         * tests/test-sys_stat-c++.cc: New file.
1547         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1548         (Depends-on): Add ansi-c++-opt.
1549         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1550         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1551         gl_MODULE_INDICATOR.
1552
1553         Tests of module 'sys_socket' in C++ mode.
1554         * tests/test-sys_socket-c++.cc: New file.
1555         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1556         (Depends-on): Add ansi-c++-opt.
1557         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1558         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1559         gl_MODULE_INDICATOR.
1560
1561         Tests of module 'sys_select' in C++ mode.
1562         * tests/test-sys_select-c++.cc: New file.
1563         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1564         (Depends-on): Add ansi-c++-opt.
1565         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1566         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1567         gl_MODULE_INDICATOR.
1568
1569         Tests of module 'sys_ioctl' in C++ mode.
1570         * tests/test-sys_ioctl-c++.cc: New file.
1571         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1572         (Depends-on): Add ansi-c++-opt.
1573         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1575         gl_MODULE_INDICATOR.
1576
1577         Tests of module 'string' in C++ mode.
1578         * tests/test-string-c++.cc: New file.
1579         * modules/string-tests (Files): Add it and tests/signature.h.
1580         (Depends-on): Add ansi-c++-opt.
1581         (Makefile.am): Arrange to compile and run test-string-c++.
1582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1583         gl_MODULE_INDICATOR.
1584
1585         Tests of module 'stdlib' in C++ mode.
1586         * tests/test-stdlib-c++.cc: New file.
1587         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1588         (Depends-on): Add ansi-c++-opt.
1589         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1590         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1591         gl_MODULE_INDICATOR.
1592
1593         Tests of module 'stdio' in C++ mode.
1594         * tests/test-stdio-c++.cc: New file.
1595         * modules/stdio-tests (Files): Add it and tests/signature.h.
1596         (Depends-on): Add ansi-c++-opt.
1597         (Makefile.am): Arrange to compile and run test-stdio-c++.
1598         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1599         gl_MODULE_INDICATOR.
1600
1601         Tests of module 'spawn' in C++ mode.
1602         * tests/test-spawn-c++.cc: New file.
1603         * modules/spawn-tests (Files): Add it and tests/signature.h.
1604         (Depends-on): Add ansi-c++-opt.
1605         (Makefile.am): Arrange to compile and run test-spawn-c++.
1606         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1607         gl_MODULE_INDICATOR.
1608
1609         Tests of module 'signal' in C++ mode.
1610         * tests/test-signal-c++.cc: New file.
1611         * modules/signal-tests (Files): Add it and tests/signature.h.
1612         (Depends-on): Add ansi-c++-opt.
1613         (Makefile.am): Arrange to compile and run test-signal-c++.
1614         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1615         gl_MODULE_INDICATOR.
1616
1617         Tests of module 'search' in C++ mode.
1618         * tests/test-search-c++.cc: New file.
1619         * modules/search-tests (Files): Add it and tests/signature.h.
1620         (Depends-on): Add ansi-c++-opt.
1621         (Makefile.am): Arrange to compile and run test-search-c++.
1622         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1623         gl_MODULE_INDICATOR.
1624
1625         Tests of module 'math' in C++ mode.
1626         * tests/test-math-c++.cc: New file.
1627         * modules/math-tests (Files): Add it and tests/signature.h.
1628         (Depends-on): Add ansi-c++-opt.
1629         (Makefile.am): Arrange to compile and run test-math-c++.
1630         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1631
1632         Tests of module 'locale' in C++ mode.
1633         * tests/test-locale-c++.cc: New file.
1634         * modules/locale-tests (Files): Add it and tests/signature.h.
1635         (Depends-on): Add ansi-c++-opt.
1636         (Makefile.am): Arrange to compile and run test-locale-c++.
1637         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1638         gl_MODULE_INDICATOR.
1639
1640         Tests of module 'langinfo' in C++ mode.
1641         * tests/test-langinfo-c++.cc: New file.
1642         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1643         (Depends-on): Add ansi-c++-opt.
1644         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1645         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1646         gl_MODULE_INDICATOR.
1647
1648         Tests of module 'iconv-h' in C++ mode.
1649         * tests/test-iconv-h-c++.cc: New file.
1650         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1651         (Depends-on): Add ansi-c++-opt.
1652         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1653
1654         Tests of module 'glob' in C++ mode.
1655         * tests/test-glob-c++.cc: New file.
1656         * modules/glob-tests (Files): Add it.
1657         (Depends-on): Add ansi-c++-opt.
1658         (Makefile.am): Arrange to compile and run test-glob-c++.
1659
1660         Tests of module 'fcntl-h' in C++ mode.
1661         * tests/test-fcntl-h-c++.cc: New file.
1662         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1663         (Depends-on): Add ansi-c++-opt.
1664         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1665         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1666         gl_MODULE_INDICATOR.
1667
1668         Tests of module 'dirent' in C++ mode.
1669         * tests/test-dirent-c++.cc: New file.
1670         * modules/dirent-tests (Files): Add it and tests/signature.h.
1671         (Depends-on): Add ansi-c++-opt.
1672         (Makefile.am): Arrange to compile and run test-dirent-c++.
1673         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1674         gl_MODULE_INDICATOR.
1675
1676         New module 'ansi-c++-opt'.
1677         * modules/ansi-c++-opt: New file.
1678         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1679
1680         Document C++ namespace mode.
1681         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1682
1683         wctype: Avoid #define replacements in C++ mode.
1684         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1685         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1686         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1687         In C++, define a namespaced alias symbol.
1688         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1689         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1690         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1691         rule.
1692
1693         wchar: Avoid #define replacements in C++ mode.
1694         * lib/wchar.in.h: Include c++defs.h.
1695         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1696         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1697         symbol.
1698         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1699         * modules/wchar (Depends-on): Add c++defs.
1700         (Makefile.am): Update wchar.h rule.
1701
1702         unistd: Avoid #define replacements in C++ mode.
1703         * lib/unistd.in.h: Include c++defs.h.
1704         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1705         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1706         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1707         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1708         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1709         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1710         symbol.
1711         (environ): Update.
1712         * modules/unistd (Depends-on): Add c++defs.
1713         (Makefile.am): Update unistd.h rule.
1714
1715         time: Avoid #define replacements in C++ mode.
1716         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1717         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1718         define a namespaced alias symbol.
1719         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1720         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1721         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1722         * modules/time (Depends-on): Add c++defs, warn-on-use.
1723         (Makefile.am): Update time.h rule.
1724         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1725         * modules/nanosleep (configure.ac): Likewise.
1726         * modules/strptime (configure.ac): Likewise.
1727         * modules/timegm (configure.ac): Likewise.
1728
1729         sys_time: Avoid #define replacements in C++ mode.
1730         * lib/sys_time.in.h: Include c++defs.h.
1731         (gettimeofday): In C++, define a namespaced alias symbol.
1732         * modules/sys_time (Depends-on): Add c++defs.
1733         (Makefile.am): Update sys/time.h rule.
1734
1735         sys_stat: Avoid #define replacements in C++ mode.
1736         * lib/sys_stat.in.h: Include c++defs.h.
1737         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1738         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1739         namespaced alias symbol.
1740         In C++, define a namespaced alias symbol.
1741         * modules/sys_stat (Depends-on): Add c++defs.
1742         (Makefile.am): Update sys/stat.h rule.
1743
1744         sys_socket: Avoid #define replacements in C++ mode.
1745         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1746         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1747         definitions also when the system has a <sys/socket.h>.
1748         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1749         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1750         In C++, define a namespaced alias symbol.
1751         * modules/sys_socket (Depends-on): Add c++defs.
1752         (Makefile.am): Update sys/socket.h rule.
1753
1754         sys_select: Avoid #define replacements in C++ mode.
1755         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1756         definitions also when the system has a <sys/select.h>.
1757         (select): In C++, define a namespaced alias symbol.
1758         * modules/sys_select (Depends-on): Add c++defs.
1759         (Makefile.am): Update sys/select.h rule.
1760
1761         sys_ioctl: Avoid #define replacements in C++ mode.
1762         * lib/sys_ioctl.in.h: Include c++defs.h.
1763         (ioctl): In C++, define a namespaced alias symbol.
1764         * modules/sys_ioctl (Depends-on): Add c++defs.
1765         (Makefile.am): Update sys/ioctl.h rule.
1766
1767         string: Avoid #define replacements in C++ mode.
1768         * lib/string.in.h: Include c++defs.h.
1769         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1770         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1771         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1772         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1773         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1774         * modules/string (Depends-on): Add c++defs.
1775         (Makefile.am): Update string.h rule.
1776
1777         stdlib: Avoid #define replacements in C++ mode.
1778         * lib/stdlib.in.h: Include c++defs.h.
1779         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1780         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1781         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1782         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1783         symbol.
1784         * modules/stdlib (Depends-on): Add c++defs.
1785         (Makefile.am): Update stdlib.h rule.
1786
1787         stdio: Avoid #define replacements in C++ mode.
1788         * lib/stdio.in.h: Include c++defs.h.
1789         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1790         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1791         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1792         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1793         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1794         namespaced alias symbol.
1795         * modules/stdio (Depends-on): Add c++defs.
1796         (Makefile.am): Update stdio.h rule.
1797
1798         spawn: Avoid #define replacements in C++ mode.
1799         * lib/spawn.in.h: Include c++defs.h.
1800         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1801         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1802         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1803         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1804         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1805         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1806         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1807         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1808         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1809         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1810         In C++, define a namespaced alias symbol.
1811         * modules/spawn (Depends-on): Add c++defs.
1812         (Makefile.am): Update spawn.h rule.
1813
1814         signal: Avoid #define replacements in C++ mode.
1815         * lib/signal.in.h: Include c++defs.h.
1816         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1817         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1818         namespaced alias symbol.
1819         * modules/signal (Depends-on): Add c++defs.
1820         (Makefile.am): Update signal.h rule.
1821
1822         search: Avoid #define replacements in C++ mode.
1823         * lib/search.in.h: Include c++defs.h.
1824         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1825         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1826         symbol.
1827         * modules/search (Depends-on): Add c++defs.
1828         (Makefile.am): Update search.h rule.
1829
1830         math: Avoid #define replacements in C++ mode.
1831         * lib/math.in.h: Include c++defs.h.
1832         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1833         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1834         trunc, truncl): In C++, define a namespaced alias symbol.
1835         * modules/math (Depends-on): Add c++defs.
1836         (Makefile.am): Update math.h rule.
1837
1838         locale: Avoid #define replacements in C++ mode.
1839         * lib/locale.in.h: Include c++defs.h.
1840         (duplocale): In C++, define a namespaced alias symbol.
1841         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1842         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1843         * modules/locale (Depends-on): Add c++defs.
1844         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1845
1846         langinfo: Avoid #define replacements in C++ mode.
1847         * lib/langinfo.in.h: Include c++defs.h.
1848         (nl_langinfo): In C++, define a namespaced alias symbol.
1849         * modules/langinfo (Depends-on): Add c++defs.
1850         (Makefile.am): Update langinfo.h rule.
1851
1852         iconv-h: Avoid #define replacements in C++ mode.
1853         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1854         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1855         symbol.
1856         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1857         whenever iconv is present.
1858         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1859         (Makefile.am): Update iconv.h rule.
1860
1861         glob: Avoid #define replacements in C++ mode.
1862         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1863         (_gl_glob_errfunc_fn): New type.
1864         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1865         symbol.
1866         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1867         (Makefile.am): Update glob.h rule.
1868
1869         fcntl-h: Avoid #define replacements in C++ mode.
1870         * lib/fcntl.in.h: Include c++defs.h.
1871         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1872         * modules/fcntl-h (Depends-on): Add c++defs.
1873         (Makefile.am): Update fcntl.h rule.
1874
1875         dirent: Avoid #define replacements in C++ mode.
1876         * lib/dirent.in.h: Include c++defs.h.
1877         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1878         namespaced alias symbol.
1879         (dirfd): Update declaration.
1880         * modules/dirent (Depends-on): Add c++defs.
1881         (Makefile.am): Update dirent.h rule.
1882
1883         ctype: Make it usable in C++ code.
1884         * lib/ctype.in.h: Include c++defs.h.
1885         (isblank): Declare as extern "C".
1886         * modules/ctype (Depends-on): Add c++defs.
1887         (Makefile.am): Update ctype.h rule.
1888
1889         New module 'c++defs'.
1890         * modules/c++defs: New file.
1891         * build-aux/c++defs.h: New file.
1892         Reported by John W. Eaton <jwe@gnu.org>.
1893
1894 2010-03-07  Bruno Haible  <bruno@clisp.org>
1895
1896         logb: Provide missing declaration for Cygwin.
1897         * lib/math.in.h (logb): New declaration.
1898         * m4/logb.m4: New file.
1899         * modules/logb (Files): Add m4/logb.m4.
1900         (Depends-on): Add math.
1901         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1902         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1904         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1905         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1906
1907 2010-03-07  Bruno Haible  <bruno@clisp.org>
1908
1909         Fix test-cond link error.
1910         * tests/test-cond.c: Include <stdio.h>.
1911
1912 2010-03-07  Bruno Haible  <bruno@clisp.org>
1913
1914         Fix test-dirent-safer link error.
1915         * modules/dirent-safer-tests (Makefile.am): Define
1916         test_dirent_safer_LDADD.
1917
1918 2010-03-07  Bruno Haible  <bruno@clisp.org>
1919
1920         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1921         among default module list.
1922
1923 2010-03-07  Bruno Haible  <bruno@clisp.org>
1924
1925         Fix link error on platforms with GNU libiconv.
1926         * modules/unistr/u8-strcoll-tests (Makefile): Define
1927         test_u8_strcoll_LDADD.
1928         * modules/unistr/u16-strcoll-tests (Makefile): Define
1929         test_u16_strcoll_LDADD.
1930         * modules/unistr/u32-strcoll-tests (Makefile): Define
1931         test_u32_strcoll_LDADD.
1932
1933 2010-03-07  Bruno Haible  <bruno@clisp.org>
1934
1935         Use POSIX declarations for socket functions.
1936         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1937         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1938         rpl_sendto): Change declaration to match POSIX.
1939         * lib/connect.c (rpl_connect): Likewise.
1940         * lib/accept.c (rpl_accept): Likewise.
1941         * lib/bind.c (rpl_bind): Likewise.
1942         * lib/getpeername.c (rpl_getpeername): Likewise.
1943         * lib/getsockname.c (rpl_getsockname): Likewise.
1944         * lib/recv.c (rpl_recv): Likewise.
1945         * lib/send.c (rpl_send): Likewise.
1946         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1947         * lib/sendto.c (rpl_sendto): Likewise.
1948
1949 2010-03-06  Bruno Haible  <bruno@clisp.org>
1950
1951         Clarify access, euidaccess, faccessat.
1952         * doc/posix-functions/faccessat.texi: Mention security problem under
1953         "Other problems", not "Portability problems".
1954         * doc/posix-functions/access.texi: Likewise. Mention a related security
1955         problem.
1956         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1957         * lib/euidaccess.c: Add comments about platforms.
1958         * lib/unistd.in.h (access, euidaccess): Add warnings.
1959
1960 2010-03-07  Bruno Haible  <bruno@clisp.org>
1961
1962         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1963         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1964         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1965         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1966         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1967         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1968         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1969         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1970         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1972         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1973         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1974         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1975         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1976         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1977         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1978         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1979         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1980         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1981         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1982         Likewise.
1983         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1984         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1985         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1986         Likewise.
1987         * tests/test-spawn.c (main): Make it work when
1988         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1989
1990 2010-03-07  Bruno Haible  <bruno@clisp.org>
1991
1992         Fix incorrect Makefile.am generation in German locale.
1993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1994         Execute sed command with character range in C locale.
1995
1996 2010-03-06  Bruno Haible  <bruno@clisp.org>
1997
1998         Tests for module 'iconv-h'.
1999         * modules/iconv-h-tests: New file.
2000         * tests/test-iconv-h.c: New file.
2001
2002         New module 'iconv-h'.
2003         * modules/iconv-h: New file.
2004         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2005         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2006         (configure.ac): Remove gl_ICONV_H.
2007         (Makefile.am): Remove rule for iconv.h.
2008
2009 2010-03-06  Bruno Haible  <bruno@clisp.org>
2010
2011         More consistent naming of *.m4 files.
2012         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2013         * modules/wctype (Files): Update.
2014
2015         More consistent naming of *.m4 files.
2016         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2017         * modules/wchar (Files): Update.
2018
2019 2010-03-06  Jim Meyering  <meyering@redhat.com>
2020
2021         euidaccess: relax license to LGPLv2+
2022         * modules/euidaccess (License): Relax to LGPLv2+.
2023
2024 2010-03-06  Bruno Haible  <bruno@clisp.org>
2025
2026         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2027         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2028         (Makefile.am): Augment lib_SOURCES instead.
2029
2030 2010-03-04  Jim Meyering  <meyering@redhat.com>
2031
2032         utime: remove obsolete module
2033         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2034         unnecessary for years, and has been marked as obsolete for 10 months.
2035         * modules/utime: Remove file.
2036         * lib/utime.c: Remove file.
2037         * m4/utime.m4: Remove file.
2038         * m4/utimes-null.m4: Remove file.
2039         * doc/posix-functions/utime.texi (utime): Remove reference to
2040         the module.  Move the sole "fixed by gnulib" item into the
2041         "problems not fixed by Gnulib" list.
2042         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2043
2044 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2045
2046         * modules/exit (License): Relax license to LGPLv2+.
2047         (Status): Mark as obsolete.
2048         * NEWS: Mention deprecated 'exit' module.
2049         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2050         of now obsolete 'exit'.
2051
2052 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2053
2054         fts-lgpl: remove unused module
2055         * modules/fts-lgpl: Remove.
2056         * MODULES.html.sh (func_all_modules): Adjust.
2057         * check-module (find_included_lib_files): Adjust.
2058         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2059
2060 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2061
2062         copy-acl: enhance Solaris ACL error handling
2063         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2064         * lib/set-mode-acl.c (qset_acl): Likewise.
2065
2066 2010-03-02  Bruno Haible  <bruno@clisp.org>
2067
2068         spawn: Don't override the system defined values on FreeBSD 8.
2069         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2070         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2071         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2072         if HAVE_POSIX_SPAWN is 1.
2073         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2074
2075 2010-03-01  Bruno Haible  <bruno@clisp.org>
2076
2077         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2078         regarding Automake.
2079
2080 2010-02-25  Bruno Haible  <bruno@clisp.org>
2081
2082         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2083         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2084         setting, not afterwards.
2085         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2086
2087 2010-02-24  Eric Blake  <eblake@redhat.com>
2088
2089         bootstrap, git-version-gen: use timestamp
2090         * build-aux/git-version-gen (scriptversion): Force UTC.
2091         * build-aux/bootstrap (scriptversion): New variable.
2092
2093         bootstrap: allow older git
2094         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2095         older than 1.6.4.  Requested by the libvirt project.
2096
2097 2010-02-23  Eric Blake  <eblake@redhat.com>
2098
2099         warn-on-use: work with old autoconf
2100         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2101         AS_VAR semantics of autoconf 2.60.
2102         Reported by Bruno Haible.
2103
2104         bootstrap: improve some comments
2105         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2106         clarification comments.
2107
2108         gettimeofday: provide correct function
2109         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2110         when replacement is declared, otherwise provide gettimeofday.
2111         Reported by Michael Goffioul.
2112
2113 2010-02-23  Jim Meyering  <meyering@redhat.com>
2114
2115         lib-ignore: relax license to "unlimited", not LGPLv2+
2116         * modules/lib-ignore (License): Relax to "unlimited".
2117
2118 2010-02-23  Jim Meyering  <meyering@redhat.com>
2119
2120         lib-ignore: relax license to LGPLv2+
2121         * modules/lib-ignore (License): Relax to LGPLv2+.
2122
2123 2010-02-22  Eric Blake  <eblake@redhat.com>
2124
2125         lseek: avoid bash 3.2 broken pipe bug
2126         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2127         warning from bash 3.2.
2128         Reported by Ben Pfaff, with analysis from Bruno Haible.
2129
2130         bootstrap: support non-FSF copyright holder
2131         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2132         bootstrap.conf override of COPYRIGHT_HOLDER.
2133         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2134
2135         bootstrap: interoperate with gettext 0.14.1
2136         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2137
2138         bootstrap: allow for alternate submodule location
2139         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2140         hardcoding submodule location.
2141         (gnulib_mk): Allow direct use of Makefile.am.
2142
2143         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2144         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2145         rather than reconfiguring where the submodule points.
2146
2147         gettimeofday: restore support for platforms that lack function
2148         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2149         replacement if function is missing.
2150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2151         * modules/sys_time (Makefile.am): Substitute it.
2152         * lib/sys_time.in.h (gettimeofday): Check it.
2153         Reported by Michael Goffioul.
2154
2155 2010-02-21  Bruno Haible  <bruno@clisp.org>
2156
2157         * lib/stdio.in.h (obstack_printf): Fix typo.
2158
2159 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2160
2161         vc-list-files: use bzr ls's -R option
2162         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2163         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2164
2165 2010-02-21  Jim Meyering  <meyering@redhat.com>
2166
2167         init.sh: fix EXEEXT shims to work also for names like test-prog
2168         * tests/init.sh: Re-exec a better shell, when needed.
2169         If the current shell lacks support for posix $(...), an init.sh-using
2170         test will now try to find a shell that supports that.  If EXEEXT is
2171         nonempty, we also require support for hyphen-in-alias-name and shell
2172         substitutions like ${var#glob}.  Failure to find such a shell results
2173         in a skipped test.
2174
2175 2010-02-21  Bruno Haible  <bruno@clisp.org>
2176
2177         Really work around around "broken pipe" error message from bash 3.2.
2178         * gnulib-tool (func_reset_sigpipe): Remove function.
2179         (echo): In bash 3.2, define to a function that uses printf.
2180         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2181
2182 2010-02-20  Bruno Haible  <bruno@clisp.org>
2183
2184         Restore support for automake 1.9.6 with autoconf 2.61.
2185         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2186         Reported by James Youngman <jay@gnu.org>.
2187
2188 2010-02-20  Bruno Haible  <bruno@clisp.org>
2189
2190         Improve *printf warning condition.
2191         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2192         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2193         and the function is overridden due to SIGPIPE emulation.
2194
2195 2010-02-20  Bruno Haible  <bruno@clisp.org>
2196
2197         * lib/stdio.in.h: Tweak comments.
2198
2199 2010-02-19  Bruno Haible  <bruno@clisp.org>
2200
2201         Make it easier to find modules. New gnulib-tool option '--find'.
2202         * gnulib-tool: New option --find.
2203         (func_usage): Document it.
2204         (func_sanitize_modulelist): New function, extracted from
2205         func_all_modules.
2206         (func_all_modules): Invoke it.
2207         * doc/gnulib-tool.texi (Which modules?): New node.
2208
2209 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2210
2211         * lib/sys_select.in.h: Provide select replacement even if
2212         sys/select.h exists on a system, for Interix.
2213
2214 2010-02-18  Jim Meyering  <meyering@redhat.com>
2215
2216         init.sh: don't use $(...) just yet
2217         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2218         to accommodate e.g., Solaris' /bin/sh.
2219
2220 2010-02-17  Bruno Haible  <bruno@clisp.org>
2221
2222         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2223         Reported by Ludovic Courtès <ludo@gnu.org>.
2224
2225 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2226
2227         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2228         linking with -lintl.
2229
2230 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2231
2232         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2233         if not provided by the system's netdb.h.  Reported by
2234         ludo@gnu.org (Ludovic Courtès).
2235
2236 2010-02-15  Jim Meyering  <meyering@redhat.com>
2237
2238         init.sh: improve portability and efficiency
2239         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2240         "dummy" in a for loop.
2241         Use '!', not '^' to select the complement of a character set used
2242         in a "case" statement.
2243         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2244         Suggestions from Eric Blake.
2245
2246         init.sh: automatically accommodate programs with the .exe suffix
2247         Automatically arrange for an invocation of "prog" to execute the
2248         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2249         may use the simpler "prog", yet still work when built on a system
2250         that requires specifying the added suffix.
2251         Do this by constructing a function named "prog" that invokes
2252         "prog.exe" for each .exe file in selected directories.
2253         * tests/init.sh (find_exe_basenames_): New function.
2254         (create_exe_shim_functions_): New function.
2255         (path_prepend_): Use it.
2256
2257         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2258         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2259         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2260
2261 2010-02-14  Jim Meyering  <meyering@redhat.com>
2262
2263         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2264         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2265         (sc_prohibit_hash_pjw_without_use): New rule.
2266
2267         maint.mk: allow the default upload destination dir to be overridden
2268         * top/maint.mk (upload_dest_dir_): Define with a default that
2269         preserves the status quo.
2270         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2271         Reported by Peter Simons.
2272
2273         maint.mk: prohibit inclusion of "hash.h" without_use
2274         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2275
2276 2010-02-10  Jim Meyering  <meyering@redhat.com>
2277
2278         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2279         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2280
2281 2010-02-09  Eric Blake  <ebb9@byu.net>
2282         and Bruno Haible  <bruno@clisp.org>
2283
2284         obstack-printf-posix: ensure declaration
2285         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2286         extracted from gl_FUNC_OBSTACK_PRINTF.
2287         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2288         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2289         Likewise.
2290         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2291         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2292         0.
2293
2294 2010-02-08  Bruno Haible  <bruno@clisp.org>
2295
2296         gnulib-tool: Fix typo in 2010-02-07 commit.
2297         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2298         Reported by Eric Blake.
2299
2300 2010-02-07  Bruno Haible  <bruno@clisp.org>
2301
2302         gnulib-tool: Fix up caching patches.
2303         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2304         option --no-cache. Use associative arrays when supported by the shell.
2305         (sed_comments): New variable.
2306         (modcache): Renamed from do_cache.
2307         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2308         abbreviate unnecessarily.
2309         (have_associative): New variable.
2310         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2311         way also for ksh and zsh.
2312         (func_init_sed_convert_to_cache_statements): New function, extracted
2313         from func_cache_lookup_module. Add support for associative arrays.
2314         Don't set the c_MODULE_cached variable here. Ignore all lines before
2315         the first field header. Remove only the final newline, not all trailing
2316         newlines. Support empty fields correctly. Limit the use of 'eval' to
2317         assignments.
2318         (func_get_description, func_get_status, func_get_notice,
2319         func_get_applicability, func_get_filelist, func_get_dependencies,
2320         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2321         func_get_automake_snippet, func_get_include_directive,
2322         func_get_link_directive, func_get_license, func_get_maintainer):
2323         Update documentation. List the unoptimized code first. Add support for
2324         associative arrays. Limit the use of 'eval' to assignments.
2325         (func_get_applicability): Undo stylistic pessimisations.
2326         (func_get_automake_snippet, func_get_include_directive): Reduce code
2327         duplication.
2328         (func_modules_transitive_closure, func_modules_add_dummy,
2329         func_modules_notice, func_modules_to_filelist, func_add_file,
2330         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2331         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2332         func_create_testdir, func_create_megatestdir): Update documentation.
2333
2334 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2335
2336         * gnulib-tool (func_cache_lookup_module): Store the module name
2337         belonging to the cache variable; error out if two different
2338         module names map to the same cache variable name.
2339
2340 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2341
2342         gnulib-tool: Make caching optional.
2343         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2344         Update matching short versions of --no-changelog.
2345         (func_usage): Update.
2346         (sed_extract_cache_prog): Renamed from ...
2347         (sed_extract_prog): ... this; revert to old extraction script.
2348         (func_get_description, func_get_status)
2349         (func_get_notice, func_get_applicability, func_get_filelist)
2350         (func_get_dependencies, func_get_autoconf_early_snippet)
2351         (func_get_autoconf_snippet, func_get_automake_snippet)
2352         (func_get_include_directive, func_get_link_directive)
2353         (func_get_license, func_get_maintainer): If $do_cache is false,
2354         use old, non-caching extraction scripts.
2355         Suggestion by Bruno Haible.
2356
2357 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2358
2359         gnulib-tool: cache module metainformation.
2360         * gnulib-tool (sed_extract_prog): Match newline before each
2361         header, and rewrite header to a shell variable suffix.
2362         (func_cache_var, func_cache_lookup_module): New functions,
2363         to turn a module name into a cache variable prefix, and to
2364         look up and cache module metainformation.
2365         (func_get_description, func_get_status)
2366         (func_get_notice, func_get_applicability, func_get_filelist)
2367         (func_get_dependencies, func_get_autoconf_early_snippet)
2368         (func_get_autoconf_snippet, func_get_automake_snippet)
2369         (func_get_include_directive, func_get_link_directive)
2370         (func_get_license, func_get_maintainer): Use
2371         func_cache_lookup_module.
2372
2373 2010-02-07  Bruno Haible  <bruno@clisp.org>
2374
2375         fnctl: Fix missing dependency.
2376         * modules/fcntl (Depends-on): Add getdtablesize.
2377         Reported by John W. Eaton <jwe@gnu.org>.
2378
2379 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2380
2381         Argp: fix recognition of short alias options.
2382
2383         * lib/argp-parse.c (convert_options): Fix improper use of
2384         `|' between character values.
2385         * tests/test-argp.c (group1_option): New alias option
2386         --read (-r).
2387         (group1_parser): Special handling for 'r'.
2388         (test15): New test case.
2389         (test_fun): Add test15.
2390         * tests/test-argp-2.sh: Update expected --help and --usage
2391         outputs.
2392
2393 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2394
2395         * tests/test-argp.c: Fix indentation.
2396
2397 2010-02-04  Eric Blake  <ebb9@byu.net>
2398
2399         gettimeofday: expose type of second argument
2400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2401         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2402         * tests/test-gettimeofday.c: Use it to silence warning.
2403         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2404         the issue.
2405
2406 2010-02-03  Jim Meyering  <meyering@redhat.com>
2407
2408         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2409         * lib/regcomp.c (TYPE_SIGNED): Define.
2410         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2411
2412         regcomp.c: avoid a new -Wshadow warning
2413         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2414
2415 2010-02-01  Jim Meyering  <meyering@redhat.com>
2416
2417         removing useless parentheses in cpp #define directives
2418         For motivation, see commit c0221df4, "define STREQ(a,b)
2419         consistently, removing useless parentheses"
2420         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2421         * lib/mountlist.c (MNT_IGNORE): Likewise.
2422         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2423
2424 2010-02-01  Eric Blake  <ebb9@byu.net>
2425
2426         sys_time: use link-warning
2427         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2428         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2429         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2430         * modules/sys_time (Depends-on): Add warn-on-use.
2431         (Makefile.am): Always build replacement.
2432         (configure.ac): Update substitutions.
2433         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2434         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2435         bother with SYS_TIME_H.
2436         * modules/gettimeofday (configure.ac): Declare indicator.
2437         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2438         in use.
2439
2440         closein-tests: silence compiler warning
2441         * tests/test-closein.c (main): Ignore fread result.
2442         * modules/closein-tests (Depends-on): Add ignore-value.
2443
2444         tests: silence warning about system return
2445         * tests/test-areadlink-with-size.c (main): Ignore system result.
2446         * tests/test-areadlink.c (main): Likewise.
2447         * tests/test-areadlinkat-with-size.c (main): Likewise.
2448         * tests/test-areadlinkat.c (main): Likewise.
2449         * tests/test-canonicalize-lgpl.c (main): Likewise.
2450         * tests/test-canonicalize.c (main): Likewise.
2451         * tests/test-chown.c (main): Likewise.
2452         * tests/test-fchownat.c (main): Likewise.
2453         * tests/test-fdutimensat.c (main): Likewise.
2454         * tests/test-fstatat.c (main): Likewise.
2455         * tests/test-futimens.c (main): Likewise.
2456         * tests/test-lchown.c (main): Likewise.
2457         * tests/test-link.c (main): Likewise.
2458         * tests/test-linkat.c (main): Likewise.
2459         * tests/test-lstat.c (main): Likewise.
2460         * tests/test-mkdir.c (main): Likewise.
2461         * tests/test-mkdirat.c (main): Likewise.
2462         * tests/test-mkfifo.c (main): Likewise.
2463         * tests/test-mkfifoat.c (main): Likewise.
2464         * tests/test-mknod.c (main): Likewise.
2465         * tests/test-readlink.c (main): Likewise.
2466         * tests/test-remove.c (main): Likewise.
2467         * tests/test-rename.c (main): Likewise.
2468         * tests/test-renameat.c (main): Likewise.
2469         * tests/test-rmdir.c (main): Likewise.
2470         * tests/test-symlink.c (main): Likewise.
2471         * tests/test-symlinkat.c (main): Likewise.
2472         * tests/test-unlink.c (main): Likewise.
2473         * tests/test-unlinkat.c (main): Likewise.
2474         * tests/test-utimens.c (main): Likewise.
2475         * tests/test-utimensat.c (main): Likewise.
2476         * modules/areadlink-tests (Depends-on): Add ignore-value.
2477         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2478         * modules/areadlinkat-tests (Depends-on): Likewise.
2479         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2480         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2481         * modules/canonicalize-tests (Depends-on): Likewise.
2482         * modules/chown-tests (Depends-on): Likewise.
2483         * modules/fdutimensat-tests (Depends-on): Likewise.
2484         * modules/futimens-tests (Depends-on): Likewise.
2485         * modules/lchown-tests (Depends-on): Likewise.
2486         * modules/link-tests (Depends-on): Likewise.
2487         * modules/linkat-tests (Depends-on): Likewise.
2488         * modules/lstat-tests (Depends-on): Likewise.
2489         * modules/mkdir-tests (Depends-on): Likewise.
2490         * modules/mkfifo-tests (Depends-on): Likewise.
2491         * modules/mkfifoat-tests (Depends-on): Likewise.
2492         * modules/mknod-tests (Depends-on): Likewise.
2493         * modules/openat-tests (Depends-on): Likewise.
2494         * modules/readlink-tests (Depends-on): Likewise.
2495         * modules/remove-tests (Depends-on): Likewise.
2496         * modules/rename-tests (Depends-on): Likewise.
2497         * modules/renameat-tests (Depends-on): Likewise.
2498         * modules/rmdir-tests (Depends-on): Likewise.
2499         * modules/symlink-tests (Depends-on): Likewise.
2500         * modules/symlinkat-tests (Depends-on): Likewise.
2501         * modules/unlink-tests (Depends-on): Likewise.
2502         * modules/utimens-tests (Depends-on): Likewise.
2503         * modules/utimensat-tests (Depends-on): Likewise.
2504
2505 2010-01-31  Bruno Haible  <bruno@clisp.org>
2506
2507         Perform the same test for many <math.h> functions.
2508         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2509         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2510         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2511         of gl_MATHFUNC.
2512         * modules/acos (configure.ac): Likewise.
2513         * modules/asin (configure.ac): Likewise.
2514         * modules/atan (configure.ac): Likewise.
2515         * modules/atan2 (configure.ac): Likewise.
2516         * modules/cbrt (configure.ac): Likewise.
2517         * modules/copysign (configure.ac): Likewise.
2518         * modules/cos (configure.ac): Likewise.
2519         * modules/cosh (configure.ac): Likewise.
2520         * modules/erf (configure.ac): Likewise.
2521         * modules/erfc (configure.ac): Likewise.
2522         * modules/exp (configure.ac): Likewise.
2523         * modules/fmod (configure.ac): Likewise.
2524         * modules/hypot (configure.ac): Likewise.
2525         * modules/j0 (configure.ac): Likewise.
2526         * modules/j1 (configure.ac): Likewise.
2527         * modules/jn (configure.ac): Likewise.
2528         * modules/lgamma (configure.ac): Likewise.
2529         * modules/log (configure.ac): Likewise.
2530         * modules/log10 (configure.ac): Likewise.
2531         * modules/log1p (configure.ac): Likewise.
2532         * modules/pow (configure.ac): Likewise.
2533         * modules/remainder (configure.ac): Likewise.
2534         * modules/sin (configure.ac): Likewise.
2535         * modules/sinh (configure.ac): Likewise.
2536         * modules/tan (configure.ac): Likewise.
2537         * modules/tanh (configure.ac): Likewise.
2538         * modules/y0 (configure.ac): Likewise.
2539         * modules/y1 (configure.ac): Likewise.
2540         * modules/yn (configure.ac): Likewise.
2541         Suggested by Paolo Bonzini.
2542
2543 2010-01-31  Bruno Haible  <bruno@clisp.org>
2544
2545         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2546
2547 2010-01-31  Bruno Haible  <bruno@clisp.org>
2548
2549         Work around getdelim() bug on FreeBSD 8.0.
2550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2551         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2552         not work.
2553         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2554         is 1.
2555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2556         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2557         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2558         a non-zero size.
2559         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2560
2561 2010-01-31  Bruno Haible  <bruno@clisp.org>
2562
2563         Work around getline() bug on FreeBSD 8.0.
2564         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2565         and a non-zero size.
2566         * tests/test-getline.c (main): Likewise.
2567         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2568         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2569
2570 2010-01-28  Eric Blake  <ebb9@byu.net>
2571
2572         regex: fix build failure
2573         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2574         platforms.
2575
2576 2010-01-28  Jim Meyering  <meyering@redhat.com>
2577
2578         regex: do not ignore memory allocation failure
2579         * lib/regex_internal.c (create_cd_newstate): Detect
2580         re_node_set_init_copy failure.   Extracted from glibc commit
2581         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2582
2583         regex: sync more white-space changes from libc
2584         * lib/regex_internal.c: White-space only changes.
2585         * lib/regexec.c: Likewise.
2586
2587         regex: add many uses of __attribute_warn_unused_result__
2588         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2589         * lib/regexec.c: Likewise.
2590         Extracted from a messy glibc commit.
2591
2592         regcomp.c: spelling and merge-artifact from glibc
2593         * lib/regcomp.c: Merge remainder of glibc's
2594         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2595
2596         regcomp.c: sync white-space changes from glibc
2597         * lib/regcomp.c: Merge to accommodate white space
2598         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2599
2600         regcomp.c: do not ignore internal return values
2601         * lib/regcomp.c: Do not ignore internal return values.
2602         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2603         but without its white-space changes and spelling fixes.
2604
2605         regex_internal.h: define __attribute_warn_unused_result__
2606         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2607
2608         maint: add a syntax-check rule to check for vulnerable Makefile.in
2609         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2610
2611 2010-01-27  Jim Meyering  <meyering@redhat.com>
2612
2613         ncftpput-ftp: clean up spaces
2614         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2615         Remove trailing blanks.
2616
2617 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2618
2619         * build-aux/git-version-gen: Fix copyright statement.
2620         * build-aux/gnupload: Likewise.
2621         * tests/test-arcfour.c: Likewise.
2622         * tests/test-arctwo.c: Likewise.
2623         * tests/test-count-one-bits.c: Likewise.
2624         * tests/test-crc.c: Likewise.
2625         * tests/test-des.c: Likewise.
2626         * tests/test-gc-arcfour.c: Likewise.
2627         * tests/test-gc-arctwo.c: Likewise.
2628         * tests/test-gc-des.c: Likewise.
2629         * tests/test-gc-hmac-md5.c: Likewise.
2630         * tests/test-gc-hmac-sha1.c: Likewise.
2631         * tests/test-gc-md2.c: Likewise.
2632         * tests/test-gc-md4.c: Likewise.
2633         * tests/test-gc-md5.c: Likewise.
2634         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2635         * tests/test-gc-rijndael.c: Likewise.
2636         * tests/test-gc-sha1.c: Likewise.
2637         * tests/test-gc.c: Likewise.
2638         * tests/test-gethostname.c: Likewise.
2639         * tests/test-gettimeofday.c: Likewise.
2640         * tests/test-hash.c: Likewise.
2641         * tests/test-hmac-md5.c: Likewise.
2642         * tests/test-hmac-sha1.c: Likewise.
2643         * tests/test-md2.c: Likewise.
2644         * tests/test-md4.c: Likewise.
2645         * tests/test-md5.c: Likewise.
2646         * tests/test-memchr.c: Likewise.
2647         * tests/test-memchr2.c: Likewise.
2648         * tests/test-memcmp.c: Likewise.
2649         * tests/test-memmem.c: Likewise.
2650         * tests/test-memrchr.c: Likewise.
2651         * tests/test-rawmemchr.c: Likewise.
2652         * tests/test-read-file.c: Likewise.
2653         * tests/test-rijndael.c: Likewise.
2654         * tests/test-sockets.c: Likewise.
2655         * tests/test-strchrnul.c: Likewise.
2656         * tests/test-strstr.c: Likewise.
2657         * tests/test-strtod.c: Likewise.
2658         * build-aux/ncftpput-ftp: Likewise.
2659
2660 2010-01-26  Eric Blake  <ebb9@byu.net>
2661
2662         ignore-value: update recommended header name
2663         * modules/ignore-value (Include): Only use <> for headers that
2664         exist in glibc.
2665
2666 2010-01-26  Jim Meyering  <meyering@redhat.com>
2667
2668         test-userspec.c: avoid compiler warnings
2669         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2670         and "initialization discards qualifiers..." warnings.
2671         Put the first "uid" in its own scope, and make char* members "const".
2672
2673 2010-01-25  Bruno Haible  <bruno@clisp.org>
2674
2675         gnulib-tool: Make warning diagnostics consistent.
2676         * gnulib-tool (func_warning): New function.
2677         Use it everywhere where gnulib-tool produces output to stderr and it is
2678         not a fatal error.
2679
2680 2010-01-25  Bruno Haible  <bruno@clisp.org>
2681
2682         Fix test dependencies.
2683         * modules/xstrtol-tests (Depends-on): Add inttypes.
2684         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2685
2686 2010-01-25 Pádraig Brady <P@draigBrady.com>
2687
2688         syntax-check: detect incorrect boolean macro values in config.h
2689         * modules/maintainer-makefile (configure.ac): Parameterize the location
2690         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2691         The logic is from Eric Blake and the location indicated by Jim Meyering.
2692         Note the more natural CONFIG_HEADER name is prohibited by automake
2693         for backwards compatibility reasons.
2694         * top/maint.mk (sc_Wundef_boolean): New rule.
2695
2696 2010-01-25  Jim Meyering  <meyering@redhat.com>
2697
2698         bootstrap: detect MacOS 10.6's shasum, too
2699         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2700         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2701
2702 2010-01-23  Jim Meyering  <meyering@redhat.com>
2703
2704         xstrtoll: new module
2705         * modules/xstrtoll: New file.
2706         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2707         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2708         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2709         ./configure fails if you use this module and lack "long long".
2710         * modules/xstrtoll-tests: New module.
2711         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2712         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2713         new init.sh-based test framework.
2714
2715 2010-01-24  Bruno Haible  <bruno@clisp.org>
2716
2717         Tests for module 'yn'.
2718         * modules/yn-tests: New file.
2719         * tests/test-yn.c: New file.
2720
2721         Tests for module 'y1'.
2722         * modules/y1-tests: New file.
2723         * tests/test-y1.c: New file.
2724
2725         Tests for module 'y0'.
2726         * modules/y0-tests: New file.
2727         * tests/test-y0.c: New file.
2728
2729         Tests for module 'tanh'.
2730         * modules/tanh-tests: New file.
2731         * tests/test-tanh.c: New file.
2732
2733         Tests for module 'tan'.
2734         * modules/tan-tests: New file.
2735         * tests/test-tan.c: New file.
2736
2737         Tests for module 'sqrt'.
2738         * modules/sqrt-tests: New file.
2739         * tests/test-sqrt.c: New file.
2740
2741         Tests for module 'sinh'.
2742         * modules/sinh-tests: New file.
2743         * tests/test-sinh.c: New file.
2744
2745         Tests for module 'sin'.
2746         * modules/sin-tests: New file.
2747         * tests/test-sin.c: New file.
2748
2749         Tests for module 'rint'.
2750         * modules/rint-tests: New file.
2751         * tests/test-rint.c: New file.
2752
2753         Tests for module 'remainder'.
2754         * modules/remainder-tests: New file.
2755         * tests/test-remainder.c: New file.
2756
2757         Tests for module 'pow'.
2758         * modules/pow-tests: New file.
2759         * tests/test-pow.c: New file.
2760
2761         Tests for module 'nextafter'.
2762         * modules/nextafter-tests: New file.
2763         * tests/test-nextafter.c: New file.
2764
2765         Tests for module 'modf'.
2766         * modules/modf-tests: New file.
2767         * tests/test-modf.c: New file.
2768
2769         Tests for module 'logb'.
2770         * modules/logb-tests: New file.
2771         * tests/test-logb.c: New file.
2772
2773         Tests for module 'log1p'.
2774         * modules/log1p-tests: New file.
2775         * tests/test-log1p.c: New file.
2776
2777         Tests for module 'log10'.
2778         * modules/log10-tests: New file.
2779         * tests/test-log10.c: New file.
2780
2781         Tests for module 'log'.
2782         * modules/log-tests: New file.
2783         * tests/test-log.c: New file.
2784
2785         Tests for module 'lgamma'.
2786         * modules/lgamma-tests: New file.
2787         * tests/test-lgamma.c: New file.
2788
2789         Tests for module 'ldexp'.
2790         * modules/ldexp-tests: New file.
2791         * tests/test-ldexp.c: New file.
2792
2793         Tests for module 'jn'.
2794         * modules/jn-tests: New file.
2795         * tests/test-jn.c: New file.
2796
2797         Tests for module 'j1'.
2798         * modules/j1-tests: New file.
2799         * tests/test-j1.c: New file.
2800
2801         Tests for module 'j0'.
2802         * modules/j0-tests: New file.
2803         * tests/test-j0.c: New file.
2804
2805         Tests for module 'hypot'.
2806         * modules/hypot-tests: New file.
2807         * tests/test-hypot.c: New file.
2808
2809         Tests for module 'fmod'.
2810         * modules/fmod-tests: New file.
2811         * tests/test-fmod.c: New file.
2812
2813         Tests for module 'fabs'.
2814         * modules/fabs-tests: New file.
2815         * tests/test-fabs.c: New file.
2816
2817         Tests for module 'exp'.
2818         * modules/exp-tests: New file.
2819         * tests/test-exp.c: New file.
2820
2821         Tests for module 'erfc'.
2822         * modules/erfc-tests: New file.
2823         * tests/test-erfc.c: New file.
2824
2825         Tests for module 'erf'.
2826         * modules/erf-tests: New file.
2827         * tests/test-erf.c: New file.
2828
2829         Tests for module 'cosh'.
2830         * modules/cosh-tests: New file.
2831         * tests/test-cosh.c: New file.
2832
2833         Tests for module 'cos'.
2834         * modules/cos-tests: New file.
2835         * tests/test-cos.c: New file.
2836
2837         Tests for module 'copysign'.
2838         * modules/copysign-tests: New file.
2839         * tests/test-copysign.c: New file.
2840
2841         Tests for module 'cbrt'.
2842         * modules/cbrt-tests: New file.
2843         * tests/test-cbrt.c: New file.
2844
2845         Tests for module 'atan2'.
2846         * modules/atan2-tests: New file.
2847         * tests/test-atan2.c: New file.
2848
2849         Tests for module 'atan'.
2850         * modules/atan-tests: New file.
2851         * tests/test-atan.c: New file.
2852
2853         Tests for module 'asin'.
2854         * modules/asin-tests: New file.
2855         * tests/test-asin.c: New file.
2856
2857         Tests for module 'acos'.
2858         * modules/acos-tests: New file.
2859         * tests/test-acos.c: New file.
2860
2861 2010-01-24  Bruno Haible  <bruno@clisp.org>
2862
2863         Fix tests for common <math.h> functions.
2864         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2865         code snippet that references the function pointer, rather than merely
2866         calling the function. Substitute the FUNC_LIBM variable.
2867         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2868         * modules/acos (configure.ac): Likewise.
2869         * modules/asin (configure.ac): Likewise.
2870         * modules/atan (configure.ac): Likewise.
2871         * modules/atan2 (configure.ac): Likewise.
2872         * modules/cbrt (configure.ac): Likewise.
2873         * modules/copysign (configure.ac): Likewise.
2874         * modules/cos (configure.ac): Likewise.
2875         * modules/cosh (configure.ac): Likewise.
2876         * modules/erf (configure.ac): Likewise.
2877         * modules/erfc (configure.ac): Likewise.
2878         * modules/exp (configure.ac): Likewise.
2879         * modules/fabs (configure.ac): Likewise.
2880         * modules/fmod (configure.ac): Likewise.
2881         * modules/hypot (configure.ac): Likewise.
2882         * modules/j0 (configure.ac): Likewise.
2883         * modules/j1 (configure.ac): Likewise.
2884         * modules/jn (configure.ac): Likewise.
2885         * modules/ldexp (configure.ac): Likewise.
2886         * modules/lgamma (configure.ac): Likewise.
2887         * modules/log (configure.ac): Likewise.
2888         * modules/log10 (configure.ac): Likewise.
2889         * modules/log1p (configure.ac): Likewise.
2890         * modules/logb (configure.ac): Likewise.
2891         * modules/modf (configure.ac): Likewise.
2892         * modules/nextafter (configure.ac): Likewise.
2893         * modules/pow (configure.ac): Likewise.
2894         * modules/remainder (configure.ac): Likewise.
2895         * modules/rint (configure.ac): Likewise.
2896         * modules/sin (configure.ac): Likewise.
2897         * modules/sinh (configure.ac): Likewise.
2898         * modules/tan (configure.ac): Likewise.
2899         * modules/tanh (configure.ac): Likewise.
2900         * modules/y0 (configure.ac): Likewise.
2901         * modules/y1 (configure.ac): Likewise.
2902         * modules/yn (configure.ac): Likewise.
2903
2904 2010-01-24  Bruno Haible  <bruno@clisp.org>
2905
2906         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2907         * tests/test-acosl.c (x): New variable.
2908         (main): Store argument in x and fetch it from x.
2909         * tests/test-asinl.c (x): New variable.
2910         (main): Store argument in x and fetch it from x.
2911         * tests/test-atanl.c (x): New variable.
2912         (main): Store argument in x and fetch it from x.
2913         * tests/test-cosl.c (x): New variable.
2914         (main): Store argument in x and fetch it from x.
2915         * tests/test-expl.c (x): New variable.
2916         (main): Store argument in x and fetch it from x.
2917         * tests/test-logl.c (x): New variable.
2918         (main): Store argument in x and fetch it from x.
2919         * tests/test-sinl.c (x): New variable.
2920         (main): Store argument in x and fetch it from x.
2921         * tests/test-sqrtl.c (x): New variable.
2922         (main): Store argument in x and fetch it from x.
2923         * tests/test-tanl.c (x): New variable.
2924         (main): Store argument in x and fetch it from x.
2925
2926 2010-01-24  Bruno Haible  <bruno@clisp.org>
2927
2928         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2929         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2930         assignments to the initial TESTS_ENVIRONMENT.
2931         * doc/gnulib.texi (Unit test modules): Document it.
2932         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2933         TESTS_ENVIRONMENT.
2934         * modules/btowc-tests (Makefile.am): Likewise.
2935         * modules/c-stack-tests (Makefile.am): Likewise.
2936         * modules/c-strcase-tests (Makefile.am): Likewise.
2937         * modules/copy-file-tests (Makefile.am): Likewise.
2938         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2939         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2940         * modules/mbrtowc-tests (Makefile.am): Likewise.
2941         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2942         * modules/mbscasestr-tests (Makefile.am): Likewise.
2943         * modules/mbschr-tests (Makefile.am): Likewise.
2944         * modules/mbscspn-tests (Makefile.am): Likewise.
2945         * modules/mbsinit-tests (Makefile.am): Likewise.
2946         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2947         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2948         * modules/mbspbrk-tests (Makefile.am): Likewise.
2949         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2950         * modules/mbsrchr-tests (Makefile.am): Likewise.
2951         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2952         * modules/mbsspn-tests (Makefile.am): Likewise.
2953         * modules/mbsstr-tests (Makefile.am): Likewise.
2954         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2955         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2956         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2957         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2958         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2959         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2960         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2961         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2962         * modules/wcrtomb-tests (Makefile.am): Likewise.
2963         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2964         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2965         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2966         assignments from TESTS_ENVIRONMENT.
2967         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2968         augmentation.
2969         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2970         * modules/atexit-tests (Makefile.am): Likewise.
2971         * modules/binary-io-tests (Makefile.am): Likewise.
2972         * modules/closein-tests (Makefile.am): Likewise.
2973         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2974         * modules/exclude-tests (Makefile.am): Likewise.
2975         * modules/fflush-tests (Makefile.am): Likewise.
2976         * modules/fpending-tests (Makefile.am): Likewise.
2977         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2978         * modules/freadahead-tests (Makefile.am): Likewise.
2979         * modules/freadptr-tests (Makefile.am): Likewise.
2980         * modules/freadseek-tests (Makefile.am): Likewise.
2981         * modules/fseek-tests (Makefile.am): Likewise.
2982         * modules/fseeko-tests (Makefile.am): Likewise.
2983         * modules/ftell-tests (Makefile.am): Likewise.
2984         * modules/ftello-tests (Makefile.am): Likewise.
2985         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2986         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2987         * modules/lseek-tests (Makefile.am): Likewise.
2988         * modules/parse-duration-tests (Makefile.am): Likewise.
2989         * modules/perror-tests (Makefile.am): Likewise.
2990         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2991         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2992         * modules/pipe-tests (Makefile.am): Likewise.
2993         * modules/pread-tests (Makefile.am): Likewise.
2994         * modules/printf-posix-tests (Makefile.am): Likewise.
2995         * modules/select-tests (Makefile.am): Likewise.
2996         * modules/sigpipe-tests (Makefile.am): Likewise.
2997         * modules/tsearch-tests (Makefile.am): Likewise.
2998         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2999         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3000         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3001         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3002         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3003         * modules/version-etc-tests (Makefile.am): Likewise.
3004         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3005         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3006         * modules/xalloc-die-tests (Makefile.am): Likewise.
3007         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3008         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3009         * modules/xstrtol-tests (Makefile.am): Likewise.
3010         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3011         * modules/yesno-tests (Makefile.am): Likewise.
3012         Suggested by Jim Meyering.
3013
3014 2010-01-24  Bruno Haible  <bruno@clisp.org>
3015
3016         More documentation.
3017         * doc/gnulib.texi (Writing modules): New chapter.
3018         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3019         the new chapter.
3020
3021 2010-01-24  Jim Meyering  <meyering@redhat.com>
3022
3023         maint.mk: do not prepend "./" after filtering
3024         * top/maint.mk (_prepend_srcdir_prefix): New variable
3025         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3026         "./" when $(srcdir) is ".".
3027
3028         define STREQ(a,b) consistently, removing useless parentheses
3029         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3030         since the only risk is that "a" or "b" contains an unparenthesized
3031         comma, but if either did that, STREQ would have 3 or more arguments.
3032         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3033         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3034         * lib/hash-triple.c (STREQ): Likewise.
3035         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3036         * lib/getugroups.c (STREQ): Likewise.
3037
3038 2010-01-23  Jim Meyering  <meyering@redhat.com>
3039
3040         maint.mk: fix syntax-check in a non-srcdir build directory
3041         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3042         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3043
3044 2010-01-22  Jim Meyering  <meyering@redhat.com>
3045
3046         userspec: add unit tests
3047         * tests/test-userspec.c: New file.
3048         * modules/userspec-tests: Likewise.
3049
3050 2010-01-21  Jim Meyering  <meyering@redhat.com>
3051
3052         maint.mk: handle source file names containing "." robustly
3053         * top/maint.mk (_dot_escaped_srcdir): Define.
3054         (VC_LIST): Use it in LHS of sed substitution.
3055
3056 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3057
3058         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3059         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3060         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3061         from a non-srcdir build.
3062
3063 2010-01-20  Eric Blake  <ebb9@byu.net>
3064
3065         warn-on-use: use instead of link-warning
3066         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3067         * modules/unistd (Depends-on, Makefile.am): Likewise.
3068         * modules/arpa_inet (Depends-on): Replace link-warning with
3069         warn-on-use.
3070         (Makefile.am): Update rules accordingly.
3071         * modules/ctype (Depends-on, Makefile.am): Likewise.
3072         * modules/dirent (Depends-on, Makefile.am): Likewise.
3073         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3074         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3075         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3076         * modules/locale (Depends-on, Makefile.am): Likewise.
3077         * modules/math (Depends-on, Makefile.am): Likewise.
3078         * modules/search (Depends-on, Makefile.am): Likewise.
3079         * modules/signal (Depends-on, Makefile.am): Likewise.
3080         * modules/spawn (Depends-on, Makefile.am): Likewise.
3081         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3082         * modules/string (Depends-on, Makefile.am): Likewise.
3083         * modules/strings (Depends-on, Makefile.am): Likewise.
3084         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3085         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3086         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3087         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3088         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3089         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3090         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3091         * modules/wchar (Depends-on, Makefile.am): Likewise.
3092         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3093         should be poisoned.
3094         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3095         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3096         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3097         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3098         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3099         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3100         * m4/math_h.m4 (gl_MATH_H): Likewise.
3101         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3102         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3103         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3104         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3105         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3106         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3107         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3108         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3109         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3112         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3113         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3114         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3115         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3116         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3117         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3118         GL_LINK_WARNING.
3119         * lib/ctype.in.h: Likewise.
3120         * lib/dirent.in.h: Likewise.
3121         * lib/fcntl.in.h: Likewise.
3122         * lib/inttypes.in.h: Likewise.
3123         * lib/langinfo.in.h: Likewise.
3124         * lib/locale.in.h: Likewise.
3125         * lib/math.in.h: Likewise.
3126         * lib/search.in.h: Likewise.
3127         * lib/signal.in.h: Likewise.
3128         * lib/spawn.in.h: Likewise.
3129         * lib/stdio.in.h: Likewise.
3130         * lib/stdlib.in.h: Likewise.
3131         * lib/string.in.h: Likewise.
3132         * lib/strings.in.h: Likewise.
3133         * lib/sys_file.in.h: Likewise.
3134         * lib/sys_ioctl.in.h: Likewise.
3135         * lib/sys_select.in.h: Likewise.
3136         * lib/sys_socket.in.h: Likewise.
3137         * lib/sys_stat.in.h: Likewise.
3138         * lib/sys_times.in.h: Likewise.
3139         * lib/sys_utsname.in.h: Likewise.
3140         * lib/unistd.in.h: Likewise.
3141         * lib/wchar.in.h: Likewise.
3142
3143 2010-01-20  Bruno Haible  <bruno@clisp.org>
3144
3145         Avoid duplicate -lm.
3146         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3147         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3149         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3150         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3151         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3152         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3153         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3154         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3155         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3156         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3157         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3158         Reported by Paolo Bonzini.
3159
3160 2010-01-19  Bruno Haible  <bruno@clisp.org>
3161
3162         langinfo, nl_langinfo: Relicense under LGPLv2+.
3163         * modules/langinfo (License): Change to LGPLv2+.
3164         * modules/nl_langinfo (License): Likewise.
3165         Patch by David Lutterkort <lutter@redhat.com>.
3166
3167 2010-01-19  Bruno Haible  <bruno@clisp.org>
3168
3169         Avoid compilation error with cc on OSF/1 5.1.
3170         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3171         statement, not before.
3172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3173
3174 2010-01-18  Bruno Haible  <bruno@clisp.org>
3175
3176         Avoid a link error due to the __printf__ symbol.
3177         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3178         and 2.6.x.
3179         (__format__, __printf__): Remove definitions.
3180         * lib/argp-fmtstream.h: Likewise.
3181         * lib/argp.h: Likewise.
3182         * lib/error.h: Likewise.
3183         * lib/vasnprintf.h: Likewise.
3184         * lib/xprintf.h: Likewise.
3185         * lib/xvasprintf.h: Likewise.
3186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3187
3188 2010-01-18  Bruno Haible  <bruno@clisp.org>
3189
3190         Tests for module 'tanl'.
3191         * modules/tanl-tests: New file.
3192         * tests/test-tanl.c: New file.
3193
3194         Tests for module 'sqrtl'.
3195         * modules/sqrtl-tests: New file.
3196         * tests/test-sqrtl.c: New file.
3197
3198         Tests for module 'sinl'.
3199         * modules/sinl-tests: New file.
3200         * tests/test-sinl.c: New file.
3201
3202         Tests for module 'logl'.
3203         * modules/logl-tests: New file.
3204         * tests/test-logl.c: New file.
3205
3206         Tests for module 'expl'.
3207         * modules/expl-tests: New file.
3208         * tests/test-expl.c: New file.
3209
3210         Tests for module 'cosl'.
3211         * modules/cosl-tests: New file.
3212         * tests/test-cosl.c: New file.
3213
3214         Tests for module 'atanl'.
3215         * modules/atanl-tests: New file.
3216         * tests/test-atanl.c: New file.
3217
3218         Tests for module 'asinl'.
3219         * modules/asinl-tests: New file.
3220         * tests/test-asinl.c: New file.
3221
3222         Tests for module 'acosl'.
3223         * modules/acosl-tests: New file.
3224         * tests/test-acosl.c: New file.
3225
3226         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3227         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3228         tanl): Use the standard gnulib idiom.
3229         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3230         * lib/sinl.c: Likewise.
3231         * lib/tanl.c: Don't include trigl.c.
3232         (kernel_tanl): Make static.
3233         * lib/sincosl.c: Include trigl.h first.
3234         * lib/trigl.c: Likewise.
3235         * m4/acosl.m4: New file.
3236         * m4/asinl.m4: New file.
3237         * m4/atanl.m4: New file.
3238         * m4/cosl.m4: New file.
3239         * m4/expl.m4: New file.
3240         * m4/logl.m4: New file.
3241         * m4/sinl.m4: New file.
3242         * m4/sqrtl.m4: New file.
3243         * m4/tanl.m4: New file.
3244         * m4/mathl.m4: Remove file.
3245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3246         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3247         Don't initialize GNULIB_MATHL.
3248         * modules/acosl: New file.
3249         * modules/asinl: New file.
3250         * modules/atanl: New file.
3251         * modules/cosl: New file.
3252         * modules/expl: New file.
3253         * modules/logl: New file.
3254         * modules/sinl: New file.
3255         * modules/sqrtl: New file.
3256         * modules/tanl: New file.
3257         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3258         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3259         substitute GNULIB_MATHL.
3260         * modules/mathl: Rewritten.
3261         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3262         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3263         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3264         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3265         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3266         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3267         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3268         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3269         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3270
3271 2010-01-18  Bruno Haible  <bruno@clisp.org>
3272
3273         sqrt: Make gl_FUNC_SQRT requirable.
3274         * m4/sqrt.m4: New file.
3275         * modules/sqrt (Files): Add it.
3276         (configure.ac): Invoke gl_FUNC_SQRT.
3277
3278 2010-01-18  Bruno Haible  <bruno@clisp.org>
3279
3280         New modules for common <math.h> functions.
3281         * m4/mathfunc.m4: New file.
3282         * modules/acos: New file.
3283         * modules/asin: New file.
3284         * modules/atan: New file.
3285         * modules/atan2: New file.
3286         * modules/cbrt: New file.
3287         * modules/copysign: New file.
3288         * modules/cos: New file.
3289         * modules/cosh: New file.
3290         * modules/erf: New file.
3291         * modules/erfc: New file.
3292         * modules/exp: New file.
3293         * modules/fabs: New file.
3294         * modules/fmod: New file.
3295         * modules/hypot: New file.
3296         * modules/j0: New file.
3297         * modules/j1: New file.
3298         * modules/jn: New file.
3299         * modules/ldexp: New file.
3300         * modules/lgamma: New file.
3301         * modules/log: New file.
3302         * modules/log10: New file.
3303         * modules/log1p: New file.
3304         * modules/logb: New file.
3305         * modules/modf: New file.
3306         * modules/nextafter: New file.
3307         * modules/pow: New file.
3308         * modules/remainder: New file.
3309         * modules/rint: New file.
3310         * modules/sin: New file.
3311         * modules/sinh: New file.
3312         * modules/sqrt: New file.
3313         * modules/tan: New file.
3314         * modules/tanh: New file.
3315         * modules/y0: New file.
3316         * modules/y1: New file.
3317         * modules/yn: New file.
3318         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3319         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3320         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3321         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3322         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3323         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3324         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3325         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3326         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3327         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3328         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3329         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3330         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3331         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3332         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3333         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3334         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3335         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3336         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3337         * doc/posix-functions/log.texi: Mention the 'log' module.
3338         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3339         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3340         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3341         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3342         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3343         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3344         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3345         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3346         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3347         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3348         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3349         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3350         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3351         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3352         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3353         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3354
3355 2010-01-18  Jim Meyering  <meyering@redhat.com>
3356
3357         ignore-value: relax license to LGPLv2+
3358         * modules/ignore-value (License): Relax to LGPLv2+.
3359
3360         getdate: don't leak when TZ contains two or more '"'s
3361         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3362         double quote in TZ after the first one.
3363
3364         readtokens: do not leak internal token_lengths buffer
3365         * lib/readtokens.c (readtokens): Free the local, lengths,
3366         when the supplied "token_lengths" parameter is NULL.
3367
3368 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3369
3370         Fix a couple of missing LIBTHREAD link failures on AIX.
3371         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3372         $(LIBTHREAD).
3373         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3374
3375         Link test-poll against INET_PTON_LIB.
3376         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3377         for inet_pton on Solaris 10.
3378
3379 2010-01-17  Bruno Haible  <bruno@clisp.org>
3380
3381         unistdio/*-sprintf: Fix typo in module description.
3382         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3383         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3384         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3385         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3386         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3387         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3388         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3390
3391 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3392
3393         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3394         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3395         variables in shell case patterns, for AIX and HP-UX ksh.
3396
3397         Split large sed scripts, for HP-UX sed.
3398         * modules/stdio: Split sed scripts around 50 sed commands,
3399         to avoid HP-UX limit of 99 commands, in the near future.
3400         * modules/string: Likewise.
3401         * modules/unistd: Likewise.
3402
3403         gnulib-tool: avoid writing in the current directory.
3404         * gnulib-tool (func_emit_lib_Makefile_am)
3405         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3406         not in the current directory, so concurrent gnulib-tool
3407         instances do not interfere.
3408
3409 2010-01-16  Jim Meyering  <meyering@redhat.com>
3410
3411         doc: update users.txt
3412         * users.txt: Add grep.
3413         (diffutils, gzip): Update URLs.
3414
3415 2010-01-12  Bruno Haible  <bruno@clisp.org>
3416
3417         posix_spawn: Avoid test failure on Cygwin.
3418         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3419         characters.
3420         Reported by Simon Josefsson.
3421
3422 2010-01-12  Bruno Haible  <bruno@clisp.org>
3423
3424         * tests/test-cond.c (main): When skipping the test, show the reason.
3425
3426 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3427
3428         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3429
3430 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3431
3432         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3433         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3434
3435 2010-01-12  Eric Blake  <ebb9@byu.net>
3436
3437         build: guarantee AS_VAR_IF
3438         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3439         (gl_AS_VAR_IF): Move...
3440         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3441         Reported by Simon Josefsson.
3442
3443 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3444
3445         * lib/stdio.in.h: Fix typo.
3446
3447 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3448
3449         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3450         libgpg-error.
3451
3452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3453
3454         * tests/test-xalloc-die.sh: Use $EXEEXT.
3455
3456 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3457             Bruno Haible  <bruno@clisp.org>
3458
3459         getlogin, getlogin_r: Avoid test failure.
3460         * tests/test-getlogin.c: Include <stdio.h>.
3461         (main): Skip the test when the function fails because stdin is not a
3462         tty.
3463         * tests/test-getlogin_r.c: Include <stdio.h>.
3464         (main): Skip the test when the function fails because stdin is not a
3465         tty.
3466
3467 2010-01-11  Eric Blake  <ebb9@byu.net>
3468
3469         tests: avoid more large file warnings
3470         * tests/test-fflush.c: Avoid warning about ftell use.
3471         * tests/test-fseek.c: Avoid warning about fseek use.
3472
3473 2010-01-10  Bruno Haible  <bruno@clisp.org>
3474
3475         nproc: Work better on Linux when /proc and /sys are not mounted.
3476         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3477         as lower bound when, on glibc/Linux systems,
3478         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3479         Suggested by Pádraig Brady <P@draigbrady.com>.
3480         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3481
3482         nproc: Refactor.
3483         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3484         extracted from num_processors.
3485         (num_processors): Call it.
3486
3487 2010-01-11  Jim Meyering  <meyering@redhat.com>
3488
3489         utimecmp: avoid new warning from upcoming gcc-4.5.0
3490         * lib/utimecmp.c (BILLION): Define using #define rather than an
3491         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3492
3493 2010-01-11  Eric Blake  <ebb9@byu.net>
3494
3495         math: add portability warnings for classification macros
3496         * modules/math (Depends-on): Add warn-on-use.
3497         (Makefile.am): Provide new substitutions.
3498         * m4/math_h.m4 (gl_MATH_H): Require inline.
3499         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3500         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3501         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3502         implement warnings.
3503
3504         unistd: warn on use of environ without module
3505         * modules/unistd (Depends-on): Add warn-on-use.
3506         (Makefile.am): Provide new substitutions.
3507         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3508         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3509
3510         stdio: warn on suspicious uses
3511         * modules/stdio (Depends-on): Add warn-on-use.
3512         (Makefile.am): Provide new substitutions.
3513         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3514         fseeko.
3515         * lib/stdio.in.h (gets): Always warn on use.
3516         (fseek, ftell): Adjust when warnings are issued, and honor
3517         _GL_NO_LARGE_FILES as a way to silence the warning.
3518         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3519         any warning about large file offsets.
3520         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3521         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3522         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3523         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3524         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3525         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3526         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3527         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3528
3529         warn-on-use: new module
3530         * modules/warn-on-use: New file.
3531         * build-aux/warn-on-use.h: Likewise.
3532         * m4/warn-on-use.m4: Likewise.
3533         * MODULES.html.sh (Support for building): Mention it.
3534
3535 2010-01-10  Bruno Haible  <bruno@clisp.org>
3536
3537         Tests for module 'unistr/u32-strdup'.
3538         * modules/unistr/u32-strdup-tests: New file.
3539         * tests/unistr/test-u32-strdup.c: New file.
3540
3541         Tests for module 'unistr/u16-strdup'.
3542         * modules/unistr/u16-strdup-tests: New file.
3543         * tests/unistr/test-u16-strdup.c: New file.
3544
3545         Tests for module 'unistr/u8-strdup'.
3546         * modules/unistr/u8-strdup-tests: New file.
3547         * tests/unistr/test-u8-strdup.c: New file.
3548         * tests/unistr/test-strdup.h: New file.
3549
3550         Tests for module 'unistr/u32-strncmp'.
3551         * modules/unistr/u32-strncmp-tests: New file.
3552         * tests/unistr/test-u32-strncmp.c: New file.
3553
3554         Tests for module 'unistr/u16-strncmp'.
3555         * modules/unistr/u16-strncmp-tests: New file.
3556         * tests/unistr/test-u16-strncmp.c: New file.
3557
3558         Tests for module 'unistr/u8-strncmp'.
3559         * modules/unistr/u8-strncmp-tests: New file.
3560         * tests/unistr/test-u8-strncmp.c: New file.
3561         * tests/unistr/test-strncmp.h: New file.
3562
3563         Tests for module 'unistr/u32-strcoll'.
3564         * modules/unistr/u32-strcoll-tests: New file.
3565         * tests/unistr/test-u32-strcoll.c: New file.
3566
3567         Tests for module 'unistr/u16-strcoll'.
3568         * modules/unistr/u16-strcoll-tests: New file.
3569         * tests/unistr/test-u16-strcoll.c: New file.
3570
3571         Tests for module 'unistr/u8-strcoll'.
3572         * modules/unistr/u8-strcoll-tests: New file.
3573         * tests/unistr/test-u8-strcoll.c: New file.
3574
3575         Tests for module 'unistr/u32-strcmp'.
3576         * modules/unistr/u32-strcmp-tests: New file.
3577         * tests/unistr/test-u32-strcmp.c: New file.
3578         * tests/unistr/test-u32-strcmp.h: New file.
3579
3580         Tests for module 'unistr/u16-strcmp'.
3581         * modules/unistr/u16-strcmp-tests: New file.
3582         * tests/unistr/test-u16-strcmp.c: New file.
3583         * tests/unistr/test-u16-strcmp.h: New file.
3584
3585         Tests for module 'unistr/u8-strcmp'.
3586         * modules/unistr/u8-strcmp-tests: New file.
3587         * tests/unistr/test-u8-strcmp.c: New file.
3588         * tests/unistr/test-u8-strcmp.h: New file.
3589         * tests/unistr/test-strcmp.h: New file.
3590
3591         Tests for module 'unistr/u32-strncat'.
3592         * modules/unistr/u32-strncat-tests: New file.
3593         * tests/unistr/test-u32-strncat.c: New file.
3594
3595         Tests for module 'unistr/u16-strncat'.
3596         * modules/unistr/u16-strncat-tests: New file.
3597         * tests/unistr/test-u16-strncat.c: New file.
3598
3599         Tests for module 'unistr/u8-strncat'.
3600         * modules/unistr/u8-strncat-tests: New file.
3601         * tests/unistr/test-u8-strncat.c: New file.
3602         * tests/unistr/test-strncat.h: New file.
3603
3604         Tests for module 'unistr/u32-strcat'.
3605         * modules/unistr/u32-strcat-tests: New file.
3606         * tests/unistr/test-u32-strcat.c: New file.
3607
3608         Tests for module 'unistr/u16-strcat'.
3609         * modules/unistr/u16-strcat-tests: New file.
3610         * tests/unistr/test-u16-strcat.c: New file.
3611
3612         Tests for module 'unistr/u8-strcat'.
3613         * modules/unistr/u8-strcat-tests: New file.
3614         * tests/unistr/test-u8-strcat.c: New file.
3615         * tests/unistr/test-strcat.h: New file.
3616
3617         Tests for module 'unistr/u32-stpncpy'.
3618         * modules/unistr/u32-stpncpy-tests: New file.
3619         * tests/unistr/test-u32-stpncpy.c: New file.
3620
3621         Tests for module 'unistr/u16-stpncpy'.
3622         * modules/unistr/u16-stpncpy-tests: New file.
3623         * tests/unistr/test-u16-stpncpy.c: New file.
3624
3625         Tests for module 'unistr/u8-stpncpy'.
3626         * modules/unistr/u8-stpncpy-tests: New file.
3627         * tests/unistr/test-u8-stpncpy.c: New file.
3628         * tests/unistr/test-stpncpy.h: New file.
3629
3630         Tests for module 'unistr/u32-strncpy'.
3631         * modules/unistr/u32-strncpy-tests: New file.
3632         * tests/unistr/test-u32-strncpy.c: New file.
3633
3634         Tests for module 'unistr/u16-strncpy'.
3635         * modules/unistr/u16-strncpy-tests: New file.
3636         * tests/unistr/test-u16-strncpy.c: New file.
3637
3638         Tests for module 'unistr/u8-strncpy'.
3639         * modules/unistr/u8-strncpy-tests: New file.
3640         * tests/unistr/test-u8-strncpy.c: New file.
3641         * tests/unistr/test-strncpy.h: New file.
3642
3643         Tests for module 'unistr/u32-stpcpy'.
3644         * modules/unistr/u32-stpcpy-tests: New file.
3645         * tests/unistr/test-u32-stpcpy.c: New file.
3646
3647         Tests for module 'unistr/u16-stpcpy'.
3648         * modules/unistr/u16-stpcpy-tests: New file.
3649         * tests/unistr/test-u16-stpcpy.c: New file.
3650
3651         Tests for module 'unistr/u8-stpcpy'.
3652         * modules/unistr/u8-stpcpy-tests: New file.
3653         * tests/unistr/test-u8-stpcpy.c: New file.
3654         * tests/unistr/test-stpcpy.h: New file.
3655
3656         Tests for module 'unistr/u32-strcpy'.
3657         * modules/unistr/u32-strcpy-tests: New file.
3658         * tests/unistr/test-u32-strcpy.c: New file.
3659
3660         Tests for module 'unistr/u16-strcpy'.
3661         * modules/unistr/u16-strcpy-tests: New file.
3662         * tests/unistr/test-u16-strcpy.c: New file.
3663
3664         Tests for module 'unistr/u8-strcpy'.
3665         * modules/unistr/u8-strcpy-tests: New file.
3666         * tests/unistr/test-u8-strcpy.c: New file.
3667         * tests/unistr/test-strcpy.h: New file.
3668
3669         Tests for module 'unistr/u32-strnlen'.
3670         * modules/unistr/u32-strnlen-tests: New file.
3671         * tests/unistr/test-u32-strnlen.c: New file.
3672
3673         Tests for module 'unistr/u16-strnlen'.
3674         * modules/unistr/u16-strnlen-tests: New file.
3675         * tests/unistr/test-u16-strnlen.c: New file.
3676
3677         Tests for module 'unistr/u8-strnlen'.
3678         * modules/unistr/u8-strnlen-tests: New file.
3679         * tests/unistr/test-u8-strnlen.c: New file.
3680         * tests/unistr/test-strnlen.h: New file.
3681
3682         Tests for module 'unistr/u32-strlen'.
3683         * modules/unistr/u32-strlen-tests: New file.
3684         * tests/unistr/test-u32-strlen.c: New file.
3685
3686         Tests for module 'unistr/u16-strlen'.
3687         * modules/unistr/u16-strlen-tests: New file.
3688         * tests/unistr/test-u16-strlen.c: New file.
3689
3690         Tests for module 'unistr/u8-strlen'.
3691         * modules/unistr/u8-strlen-tests: New file.
3692         * tests/unistr/test-u8-strlen.c: New file.
3693
3694         Tests for module 'unistr/u32-prev'.
3695         * modules/unistr/u32-prev-tests: New file.
3696         * tests/unistr/test-u32-prev.c: New file.
3697
3698         Tests for module 'unistr/u16-prev'.
3699         * modules/unistr/u16-prev-tests: New file.
3700         * tests/unistr/test-u16-prev.c: New file.
3701
3702         Tests for module 'unistr/u8-prev'.
3703         * modules/unistr/u8-prev-tests: New file.
3704         * tests/unistr/test-u8-prev.c: New file.
3705
3706         Tests for module 'unistr/u32-next'.
3707         * modules/unistr/u32-next-tests: New file.
3708         * tests/unistr/test-u32-next.c: New file.
3709
3710         Tests for module 'unistr/u16-next'.
3711         * modules/unistr/u16-next-tests: New file.
3712         * tests/unistr/test-u16-next.c: New file.
3713
3714         Tests for module 'unistr/u8-next'.
3715         * modules/unistr/u8-next-tests: New file.
3716         * tests/unistr/test-u8-next.c: New file.
3717
3718         Tests for module 'unistr/u32-strmbtouc'.
3719         * modules/unistr/u32-strmbtouc-tests: New file.
3720         * tests/unistr/test-u32-strmbtouc.c: New file.
3721
3722         Tests for module 'unistr/u16-strmbtouc'.
3723         * modules/unistr/u16-strmbtouc-tests: New file.
3724         * tests/unistr/test-u16-strmbtouc.c: New file.
3725
3726         Tests for module 'unistr/u8-strmbtouc'.
3727         * modules/unistr/u8-strmbtouc-tests: New file.
3728         * tests/unistr/test-u8-strmbtouc.c: New file.
3729
3730         Tests for module 'unistr/u32-strmblen'.
3731         * modules/unistr/u32-strmblen-tests: New file.
3732         * tests/unistr/test-u32-strmblen.c: New file.
3733
3734         Tests for module 'unistr/u16-strmblen'.
3735         * modules/unistr/u16-strmblen-tests: New file.
3736         * tests/unistr/test-u16-strmblen.c: New file.
3737
3738         Tests for module 'unistr/u8-strmblen'.
3739         * modules/unistr/u8-strmblen-tests: New file.
3740         * tests/unistr/test-u8-strmblen.c: New file.
3741
3742         Tests for module 'unistr/u32-cpy-alloc'.
3743         * modules/unistr/u32-cpy-alloc-tests: New file.
3744         * tests/unistr/test-u32-cpy-alloc.c: New file.
3745
3746         Tests for module 'unistr/u16-cpy-alloc'.
3747         * modules/unistr/u16-cpy-alloc-tests: New file.
3748         * tests/unistr/test-u16-cpy-alloc.c: New file.
3749
3750         Tests for module 'unistr/u8-cpy-alloc'.
3751         * modules/unistr/u8-cpy-alloc-tests: New file.
3752         * tests/unistr/test-u8-cpy-alloc.c: New file.
3753         * tests/unistr/test-cpy-alloc.h: New file.
3754
3755         Tests for module 'unistr/u32-mbsnlen'.
3756         * modules/unistr/u32-mbsnlen-tests: New file.
3757         * tests/unistr/test-u32-mbsnlen.c: New file.
3758
3759         Tests for module 'unistr/u16-mbsnlen'.
3760         * modules/unistr/u16-mbsnlen-tests: New file.
3761         * tests/unistr/test-u16-mbsnlen.c: New file.
3762
3763         Tests for module 'unistr/u8-mbsnlen'.
3764         * modules/unistr/u8-mbsnlen-tests: New file.
3765         * tests/unistr/test-u8-mbsnlen.c: New file.
3766
3767         Tests for module 'unistr/u32-chr'.
3768         * modules/unistr/u32-chr-tests: New file.
3769         * tests/unistr/test-u32-chr.c: New file.
3770
3771         Tests for module 'unistr/u16-chr'.
3772         * modules/unistr/u16-chr-tests: New file.
3773         * tests/unistr/test-u16-chr.c: New file.
3774
3775         Tests for module 'unistr/u8-chr'.
3776         * modules/unistr/u8-chr-tests: New file.
3777         * tests/unistr/test-u8-chr.c: New file.
3778         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3779
3780         Tests for module 'unistr/u32-cmp2'.
3781         * modules/unistr/u32-cmp2-tests: New file.
3782         * tests/unistr/test-u32-cmp2.c: New file.
3783
3784         Tests for module 'unistr/u16-cmp2'.
3785         * modules/unistr/u16-cmp2-tests: New file.
3786         * tests/unistr/test-u16-cmp2.c: New file.
3787
3788         Tests for module 'unistr/u8-cmp2'.
3789         * modules/unistr/u8-cmp2-tests: New file.
3790         * tests/unistr/test-u8-cmp2.c: New file.
3791         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3792
3793         Tests for module 'unistr/u32-cmp'.
3794         * modules/unistr/u32-cmp-tests: New file.
3795         * tests/unistr/test-u32-cmp.c: New file.
3796
3797         Tests for module 'unistr/u16-cmp'.
3798         * modules/unistr/u16-cmp-tests: New file.
3799         * tests/unistr/test-u16-cmp.c: New file.
3800
3801         Tests for module 'unistr/u8-cmp'.
3802         * modules/unistr/u8-cmp-tests: New file.
3803         * tests/unistr/test-u8-cmp.c: New file.
3804         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3805
3806         Tests for module 'unistr/u32-set'.
3807         * modules/unistr/u32-set-tests: New file.
3808         * tests/unistr/test-u32-set.c: New file.
3809
3810         Tests for module 'unistr/u16-set'.
3811         * modules/unistr/u16-set-tests: New file.
3812         * tests/unistr/test-u16-set.c: New file.
3813
3814         Tests for module 'unistr/u8-set'.
3815         * modules/unistr/u8-set-tests: New file.
3816         * tests/unistr/test-u8-set.c: New file.
3817         * tests/unistr/test-set.h: New file.
3818
3819         Tests for module 'unistr/u32-move'.
3820         * modules/unistr/u32-move-tests: New file.
3821         * tests/unistr/test-u32-move.c: New file.
3822
3823         Tests for module 'unistr/u16-move'.
3824         * modules/unistr/u16-move-tests: New file.
3825         * tests/unistr/test-u16-move.c: New file.
3826
3827         Tests for module 'unistr/u8-move'.
3828         * modules/unistr/u8-move-tests: New file.
3829         * tests/unistr/test-u8-move.c: New file.
3830         * tests/unistr/test-move.h: New file.
3831
3832         Tests for module 'unistr/u32-cpy'.
3833         * modules/unistr/u32-cpy-tests: New file.
3834         * tests/unistr/test-u32-cpy.c: New file.
3835
3836         Tests for module 'unistr/u16-cpy'.
3837         * modules/unistr/u16-cpy-tests: New file.
3838         * tests/unistr/test-u16-cpy.c: New file.
3839
3840         Tests for module 'unistr/u8-cpy'.
3841         * modules/unistr/u8-cpy-tests: New file.
3842         * tests/unistr/test-u8-cpy.c: New file.
3843         * tests/unistr/test-cpy.h: New file.
3844
3845 2010-01-09  Bruno Haible  <bruno@clisp.org>
3846
3847         Tests for module 'unistr/u32-uctomb'.
3848         * modules/unistr/u32-uctomb-tests: New file.
3849         * tests/unistr/test-u32-uctomb.c: New file.
3850
3851         Tests for module 'unistr/u16-uctomb'.
3852         * modules/unistr/u16-uctomb-tests: New file.
3853         * tests/unistr/test-u16-uctomb.c: New file.
3854
3855         Tests for module 'unistr/u8-uctomb'.
3856         * modules/unistr/u8-uctomb-tests: New file.
3857         * tests/unistr/test-u8-uctomb.c: New file.
3858
3859         Tests for module 'unistr/u32-mbtoucr'.
3860         * modules/unistr/u32-mbtoucr-tests: New file.
3861         * tests/unistr/test-u32-mbtoucr.c: New file.
3862
3863         Tests for module 'unistr/u16-mbtoucr'.
3864         * modules/unistr/u16-mbtoucr-tests: New file.
3865         * tests/unistr/test-u16-mbtoucr.c: New file.
3866
3867         Tests for module 'unistr/u8-mbtoucr'.
3868         * modules/unistr/u8-mbtoucr-tests: New file.
3869         * tests/unistr/test-u8-mbtoucr.c: New file.
3870
3871         Tests for module 'unistr/u32-mbtouc'.
3872         * modules/unistr/u32-mbtouc-tests: New file.
3873         * tests/unistr/test-u32-mbtouc.c: New file.
3874
3875         Tests for module 'unistr/u16-mbtouc'.
3876         * modules/unistr/u16-mbtouc-tests: New file.
3877         * tests/unistr/test-u16-mbtouc.c: New file.
3878
3879         Tests for module 'unistr/u8-mbtouc'.
3880         * modules/unistr/u8-mbtouc-tests: New file.
3881         * tests/unistr/test-u8-mbtouc.c: New file.
3882
3883         Tests for module 'unistr/u32-mbtouc-unsafe'.
3884         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3885         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3886         * tests/unistr/test-u32-mbtouc.h: New file.
3887
3888         Tests for module 'unistr/u16-mbtouc-unsafe'.
3889         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3890         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3891         * tests/unistr/test-u16-mbtouc.h: New file.
3892
3893         Tests for module 'unistr/u8-mbtouc-unsafe'.
3894         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3895         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3896         * tests/unistr/test-u8-mbtouc.h: New file.
3897
3898         Tests for module 'unistr/u32-mblen'.
3899         * modules/unistr/u32-mblen-tests: New file.
3900         * tests/unistr/test-u32-mblen.c: New file.
3901
3902         Tests for module 'unistr/u16-mblen'.
3903         * modules/unistr/u16-mblen-tests: New file.
3904         * tests/unistr/test-u16-mblen.c: New file.
3905
3906         Tests for module 'unistr/u8-mblen'.
3907         * modules/unistr/u8-mblen-tests: New file.
3908         * tests/unistr/test-u8-mblen.c: New file.
3909
3910         Tests for module 'unistr/u32-to-u16'.
3911         * modules/unistr/u32-to-u16-tests: New file.
3912         * tests/unistr/test-u32-to-u16.c: New file.
3913
3914         Tests for module 'unistr/u32-to-u8'.
3915         * modules/unistr/u32-to-u8-tests: New file.
3916         * tests/unistr/test-u32-to-u8.c: New file.
3917
3918         Tests for module 'unistr/u16-to-u32'.
3919         * modules/unistr/u16-to-u32-tests: New file.
3920         * tests/unistr/test-u16-to-u32.c: New file.
3921
3922         Tests for module 'unistr/u16-to-u8'.
3923         * modules/unistr/u16-to-u8-tests: New file.
3924         * tests/unistr/test-u16-to-u8.c: New file.
3925
3926         Tests for module 'unistr/u8-to-u32'.
3927         * modules/unistr/u8-to-u32-tests: New file.
3928         * tests/unistr/test-u8-to-u32.c: New file.
3929
3930         Tests for module 'unistr/u8-to-u16'.
3931         * modules/unistr/u8-to-u16-tests: New file.
3932         * tests/unistr/test-u8-to-u16.c: New file.
3933
3934         Tests for module 'unistr/u32-check'.
3935         * modules/unistr/u32-check-tests: New file.
3936         * tests/unistr/test-u32-check.c: New file.
3937
3938         Tests for module 'unistr/u16-check'.
3939         * modules/unistr/u16-check-tests: New file.
3940         * tests/unistr/test-u16-check.c: New file.
3941
3942         Tests for module 'unistr/u8-check'.
3943         * modules/unistr/u8-check-tests: New file.
3944         * tests/unistr/test-u8-check.c: New file.
3945
3946         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3947         (category_equals): New function.
3948         (main): Add more tests.
3949         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3950
3951         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3952
3953 2010-01-10  Bruno Haible  <bruno@clisp.org>
3954
3955         unistr/u*-strcoll: Try harder to distinguish different strings.
3956         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3957         compare s1 and s2 to see if they are different.
3958
3959 2010-01-10  Bruno Haible  <bruno@clisp.org>
3960
3961         unistr/u*-stpncpy: Fix the return value.
3962         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3963         description of the return value consistent with stpncpy in glibc.
3964         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3965         written non-NUL unit.
3966
3967 2010-01-10  Bruno Haible  <bruno@clisp.org>
3968
3969         unistr/u*-next: Add missing dependencies.
3970         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3971         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3972         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3973
3974 2010-01-10  Bruno Haible  <bruno@clisp.org>
3975
3976         unistr/u8-mbsnlen: Fix return value for incomplete character.
3977         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3978         u8_mblen.
3979         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3980         Remove unistr/u8-mblen.
3981         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3982         u16_mblen.
3983         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3984         Remove unistr/u16-mblen.
3985
3986 2010-01-10  Bruno Haible  <bruno@clisp.org>
3987
3988         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3989         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3990         Reported by Brian Gough <bjg@gnu.org> and
3991         Chris Clayton <chris2553@googlemail.com> via
3992         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3993
3994 2010-01-09  Bruno Haible  <bruno@clisp.org>
3995
3996         unistr/u16-to-u32: Reject invalid input.
3997         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3998         u16_mbtouc.
3999         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4000         Remove unistr/u16-mbtouc.
4001
4002         unistr/u16-to-u8: Reject invalid input.
4003         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4004         u16_mbtouc.
4005         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4006         Remove unistr/u16-mbtouc.
4007
4008         unistr/u8-to-u32: Reject invalid input.
4009         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4010         u8_mbtouc.
4011         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4012         Remove unistr/u8-mbtouc.
4013
4014         unistr/u8-to-u16: Reject invalid input.
4015         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4016         u8_mbtouc.
4017         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4018         Remove unistr/u8-mbtouc.
4019
4020 2010-01-09  Bruno Haible  <bruno@clisp.org>
4021
4022         Tests for module 'getlogin'.
4023         * modules/getlogin-tests: New file.
4024         * tests/test-getlogin.c: New file.
4025
4026         New module 'getlogin'.
4027         * lib/unistd.in.h (getlogin): New declaration.
4028         * lib/getlogin.c: New file.
4029         * m4/getlogin.m4: New file.
4030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4031         HAVE_GETLOGIN.
4032         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4033         HAVE_GETLOGIN.
4034         * modules/getlogin: New file.
4035         * doc/posix-functions/getlogin.texi: Mention the new module.
4036         Reported by John W. Eaton <jwe@gnu.org>.
4037
4038 2010-01-09  Bruno Haible  <bruno@clisp.org>
4039
4040         getlogin_r: Support for native Windows.
4041         * lib/getlogin_r.c: Include <windows.h>
4042         (getlogin_r): Implement for native Windows.
4043         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4044         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4045         via John W. Eaton <jwe@gnu.org>.
4046
4047 2010-01-09  Bruno Haible  <bruno@clisp.org>
4048
4049         getlogin_r: Small fixes.
4050         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4051         succeeds.
4052         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4053         before testing whether getlogin_r is declared. No need to set
4054         HAVE_DECL_GETLOGIN_R to 1.
4055         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4056
4057 2010-01-09  Bruno Haible  <bruno@clisp.org>
4058
4059         * lib/unistd.in.h (getlogin_r): Add comment.
4060
4061 2010-01-09  Bruno Haible  <bruno@clisp.org>
4062
4063         Tests for module 'getlogin_r'.
4064         * modules/getlogin_r-tests: New file.
4065         * tests/test-getlogin_r.c: New file.
4066
4067 2010-01-09  Jim Meyering  <meyering@redhat.com>
4068
4069         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4070         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4071         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4072
4073 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4074
4075         * lib/dup2.c (rpl_dup2): Improve comment.
4076
4077 2010-01-08  Eric Blake  <ebb9@byu.net>
4078
4079         maint.mk: allow packages to add makefile @@ exceptions
4080         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4081         (sc_makefile_check): Rename...
4082         (sc_makefile_at_at_check): ...to this, and use hook.
4083
4084         dup2: work around mingw bug
4085         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4086         Reported by Simon Josefsson.
4087
4088 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4089
4090         glob: Fix C++ compilation.
4091         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4092         C++.
4093
4094 2010-01-07  Bruno Haible  <bruno@clisp.org>
4095
4096         Fix indentation of wctype.in.h, broken since 2007-01-06.
4097         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4098
4099 2010-01-07  Bruno Haible  <bruno@clisp.org>
4100
4101         mbslen: Avoid collision with system function.
4102         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4103         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4104         * m4/mbslen.m4: New file.
4105         * modules/mbslen (Files): Add it.
4106         (configure.ac): Invoke gl_MBSLEN.
4107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4108         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4109         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4110         via Ian Beckwith <ianb@erislabs.net>.
4111
4112 2010-01-07  Bruno Haible  <bruno@clisp.org>
4113
4114         dirent: Document the last fix.
4115         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4116
4117 2010-01-07  Bruno Haible  <bruno@clisp.org>
4118
4119         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4120         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4121         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4122         va_list are defined.
4123         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4124         Reported by Eric Blake.
4125
4126 2010-01-07  Bruno Haible  <bruno@clisp.org>
4127
4128         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4129         * modules/xlist (Depends-on): Add 'list',
4130         * modules/xoset (Depends-on): Add 'oset'.
4131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4132
4133 2010-01-07  Bruno Haible  <bruno@clisp.org>
4134
4135         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4136         * doc/posix-functions/strncasecmp.texi: Likewise.
4137
4138 2010-01-07  Bruno Haible  <bruno@clisp.org>
4139
4140         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4141
4142 2010-01-07  John W. Eaton  <jwe@octave.org>
4143
4144         wctype: allow C++ use
4145         * lib/wctype.in.h: Add extern "C" block for C++.
4146
4147 2010-01-06  Eric Blake  <ebb9@byu.net>
4148
4149         maint.mk: detect incorrect GFDL usage
4150         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4151
4152 2010-01-06  Jim Meyering  <meyering@redhat.com>
4153         and Eric Blake  <ebb9@byu.net>
4154
4155         maint.mk: ignore multi-line copyright in NEWS
4156         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4157
4158 2010-01-06  Eric Blake  <ebb9@byu.net>
4159
4160         select: add missing dependency
4161         * modules/select-tests (Depends-on): Move sockets dependency...
4162         * modules/select (Depends-on): ...here.
4163         Reported by Ian Beckwith.
4164
4165         doc: regenerate INSTALL
4166         * doc/INSTALL: Reflect recent autoconf update.
4167         * doc/INSTALL.ISO: Likewise.
4168         * doc/INSTALL.UTF-8: Likewise.
4169
4170         pread: fix compilation on glibc
4171         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4172         Reported by Ralf Wildenhues.
4173
4174         dirent: fix test failure
4175         * lib/dirent.in.h (includes): Guarantee ino_t.
4176         Reported by Ralf Wildenhues.
4177
4178 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4179
4180         linkat, renameat: avoid bad free
4181         * lib/at-func2.c (at_func2): Fix typo.
4182         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4183
4184 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4185
4186         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4187         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4188         to avoid failure of symlink test later.
4189
4190 2010-01-06  Eric Blake  <ebb9@byu.net>
4191
4192         stdio, unistd: guarantee ssize_t
4193         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4194         2008 are exposed when needed.
4195         * lib/stdio.in.h (includes): Likewise.
4196         Reported by Ralf Wildenhues.
4197
4198 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4199
4200         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4201         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4202         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4203
4204 2010-01-06  Jim Meyering  <meyering@redhat.com>
4205
4206         readtokens: this module *does* require xalloc.h
4207         It uses only functions that were omitted by the old syntax-check rule.
4208         * lib/readtokens.c: Include "xalloc.h" once again.
4209         * modules/readtokens (Depends-on): Add xalloc.
4210         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4211
4212 2010-01-05  Eric Blake  <ebb9@byu.net>
4213
4214         maint: support 'make announcement' from a VPATH build
4215         * top/maint.mk (announcement): Look for correct NEWS file.
4216
4217 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4218
4219         utimens (fdutimens): ignore a negative FD, per contract
4220         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4221         when we have a valid file descriptor.  Otherwise, using a brand
4222         new glibc (with just-patched futimens that now fails with EBADF)
4223         would cause this function to fail with ENOSYS.
4224         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4225         See also http://bugzilla.redhat.com/552320.
4226
4227 2010-01-05  Eric Blake  <ebb9@byu.net>
4228
4229         strcase: document what it provides
4230         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4231         gnulib module.
4232         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4233         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4234
4235 2010-01-05  Jim Meyering  <meyering@redhat.com>
4236
4237         maint: remove useless inclusions of "xalloc.h"
4238         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4239         * lib/readtokens.c: Likewise.
4240         * lib/same.c: Likewise.
4241         * modules/getloadavg (Depends-on): Remove xalloc.
4242         * modules/readtokens: Likewise.
4243         * modules/same: Likewise.
4244
4245         maint.mk: include 4 more function names in alloca.h-checking regexp
4246         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4247         regexp.  Before, we would give a false-positive (saying alloca.h
4248         is included unnecessarily) when the only uses involved omitted symbols.
4249
4250         xalloc.h: use consistent formatting
4251         * lib/xalloc.h: Move declarations to start in the first column.
4252
4253 2010-01-05  Eric Blake  <ebb9@byu.net>
4254
4255         mkdir: avoid xalloc
4256         * lib/mkdir.c (includes): Drop unused header.
4257         Reported by John W. Eaton.
4258
4259 2010-01-04  Jim Meyering  <meyering@redhat.com>
4260
4261         nl_langinfo: avoid configure-time syntax error
4262         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4263         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4264         the empty string.  Don't let that provoke a shell syntax error.
4265
4266         regcomp, regexec, fnmatch: avoid array bounds read error
4267         * lib/regcomp.c (build_equiv_class): From glibc:
4268         Use only the low 24 bits of a findidx return value as an index
4269         into the weights array.  Patch by Ulrich Drepper:
4270         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4271         * lib/regexec.c (check_node_accept_bytes): Likewise.
4272         * lib/fnmatch_loop.c (FCT): Likewise.
4273
4274         regcomp: skip collseq lookup when there are no rules
4275         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4276         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4277
4278         regcomp: recognize ill-formed { } expressions
4279         * lib/regcomp.c (parse_dup_op): From glibc:
4280         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4281
4282         regcomp: fix typo in comment
4283         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4284         s/satisfy/satisfies/.
4285
4286         regcomp: sync from glibc: remove dead store
4287         * lib/regcomp.c (duplicate_node_closure): Remove useless
4288         search_duplicated_node call and dead store.
4289
4290         regcomp: sync from glibc; always use nl_langinfo
4291         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4292         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4293         * modules/regex (Depends-on): Add nl_langinfo.
4294
4295 2010-01-04  Eric Blake  <ebb9@byu.net>
4296
4297         fdopendir: fix configure test
4298         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4299
4300 2010-01-01  Bruno Haible  <bruno@clisp.org>
4301
4302         wchar: Remove unused configure check.
4303         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4304
4305 2010-01-01  Eric Blake  <ebb9@byu.net>
4306
4307         headers: make check of system header explicit
4308         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4309         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4310         ourselves.
4311         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4313         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4314         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4315         internals.
4316         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4317         missing.
4318         Suggested by Bruno Haible.
4319
4320 2010-01-01  Jim Meyering  <meyering@redhat.com>
4321
4322         ChangeLog: tweak to eliminate unnecessary copyright line
4323         * ChangeLog: Remove a copyright line that was mistakenly updated
4324         by today's update-copyright run.  Reported by Eric Blake.
4325
4326         test-update-copyright: don't let envvar setting cause test failure
4327         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4328
4329 2010-01-01  Bruno Haible  <bruno@clisp.org>
4330
4331         localename: Avoid gcc warning.
4332         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4333         function if it is not used.
4334
4335 2010-01-01  Jim Meyering  <meyering@redhat.com>
4336
4337         update nearly all FSF copyright year lists to include 2010
4338         Use the same procedure as for 2009, outlined in
4339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4340
4341         version-etc: set COPYRIGHT_YEAR to 2010
4342         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4343
4344 2009-12-31  Eric Blake  <ebb9@byu.net>
4345
4346         doc: correct availability of cygwin 1.5.x getopt
4347         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4348         variables.
4349         * doc/posix-functions/opterr.texi (opterr): Likewise.
4350         * doc/posix-functions/optind.texi (optind): Likewise.
4351         * doc/posix-functions/optopt.texi (optopt): Likewise.
4352         * doc/posix-functions/tzname.texi (tzname): Likewise.
4353
4354         openat: update maintainer
4355         * modules/openat (Maintainer): Add myself.
4356
4357         utimens: avoid shadowing warning
4358         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4359         buffers into one, to avoid shadowing, as well as avoiding a
4360         redundant stat.
4361         Reported by Jim Meyering.
4362
4363         test-dup2: avoid compiler warning
4364         * tests/test-dup2.c (is_inheritable): Only define if used.
4365
4366 2010-01-01  Bruno Haible  <bruno@clisp.org>
4367
4368         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4369         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4370         defined, use wctomb instead of wcrtomb.
4371
4372 2010-01-01  Bruno Haible  <bruno@clisp.org>
4373
4374         iconv: Reject native Solaris iconv.
4375         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4376         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4377
4378 2009-12-31  Bruno Haible  <bruno@clisp.org>
4379
4380         * tests/test-signal.c (main): Remove test of 'SIG'.
4381
4382 2009-12-31  Bruno Haible  <bruno@clisp.org>
4383
4384         spawn: Fix incomplete fix.
4385         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4386         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4387         warnings for GNULIB_POSIXCHECK again.
4388         Reported by Eric Blake.
4389
4390 2009-12-31  Bruno Haible  <bruno@clisp.org>
4391
4392         Avoid namespace pollution on glibc systems.
4393         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4394         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4395         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4396         glibc systems.
4397
4398 2009-12-31  Bruno Haible  <bruno@clisp.org>
4399
4400         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4401         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4402         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4403         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4404         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4405         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4406         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4407
4408 2009-12-31  Bruno Haible  <bruno@clisp.org>
4409
4410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4411         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4412         afterwards.
4413
4414 2009-12-31  Bruno Haible  <bruno@clisp.org>
4415
4416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4417         SYS_UTSNAME_H.
4418
4419 2009-12-31  Bruno Haible  <bruno@clisp.org>
4420
4421         spawn: Fix misapplied patch.
4422         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4423         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4424         warnings for GNULIB_POSIXCHECK.
4425
4426 2009-12-31  Bruno Haible  <bruno@clisp.org>
4427
4428         times: Update after sys_times changed.
4429         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4430         * modules/times (Files): Add it.
4431         (configure.ac): Invoke gl_FUNC_TIMES.
4432
4433 2009-12-31  Bruno Haible  <bruno@clisp.org>
4434
4435         Use AC_C_INLINE where necessary.
4436         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4437         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4438         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4439         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4440         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4441         * m4/mbiter.m4 (gl_MBITER): Likewise.
4442         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4443         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4444         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4445         * modules/u64 (configure.ac): Likewise.
4446
4447 2009-12-31  Bruno Haible  <bruno@clisp.org>
4448
4449         Use AC_C_INLINE instead of module 'inline' where possible.
4450         * modules/inline (Description): Clarify purpose.
4451         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4452         * modules/count-one-bits (Depends-on): Remove inline.
4453         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4454         * modules/openat (Depends-on): Remove inline.
4455         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4456         instead of depending on module 'inline'.
4457         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4458         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4459         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4460         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4461         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4462         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4463         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4464         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4465         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4466         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4467         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4468         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4469         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4470         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4471         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4472         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4473         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4474         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4475         Likewise.
4476         * modules/unictype/property-ascii-hex-digit (Depends-on,
4477         configure.ac): Likewise.
4478         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4479         configure.ac): Likewise.
4480         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4481         configure.ac): Likewise.
4482         * modules/unictype/property-bidi-block-separator (Depends-on,
4483         configure.ac): Likewise.
4484         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4485         configure.ac): Likewise.
4486         * modules/unictype/property-bidi-common-separator (Depends-on,
4487         configure.ac): Likewise.
4488         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4489         Likewise.
4490         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4491         configure.ac): Likewise.
4492         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4493         configure.ac): Likewise.
4494         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4495         configure.ac): Likewise.
4496         * modules/unictype/property-bidi-european-digit (Depends-on,
4497         configure.ac): Likewise.
4498         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4499         configure.ac): Likewise.
4500         * modules/unictype/property-bidi-left-to-right (Depends-on,
4501         configure.ac): Likewise.
4502         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4503         configure.ac): Likewise.
4504         * modules/unictype/property-bidi-other-neutral (Depends-on,
4505         configure.ac): Likewise.
4506         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4507         Likewise.
4508         * modules/unictype/property-bidi-segment-separator (Depends-on,
4509         configure.ac): Likewise.
4510         * modules/unictype/property-bidi-whitespace (Depends-on,
4511         configure.ac): Likewise.
4512         * modules/unictype/property-combining (Depends-on, configure.ac):
4513         Likewise.
4514         * modules/unictype/property-composite (Depends-on, configure.ac):
4515         Likewise.
4516         * modules/unictype/property-currency-symbol (Depends-on,
4517         configure.ac): Likewise.
4518         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4519         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4520         Likewise.
4521         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4522         configure.ac): Likewise.
4523         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4524         Likewise.
4525         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4526         Likewise.
4527         * modules/unictype/property-extender (Depends-on, configure.ac):
4528         Likewise.
4529         * modules/unictype/property-format-control (Depends-on, configure.ac):
4530         Likewise.
4531         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4532         Likewise.
4533         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4534         Likewise.
4535         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4536         Likewise.
4537         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4538         Likewise.
4539         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4540         Likewise.
4541         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4542         Likewise.
4543         * modules/unictype/property-id-start (Depends-on, configure.ac):
4544         Likewise.
4545         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4546         Likewise.
4547         * modules/unictype/property-ids-binary-operator (Depends-on,
4548         configure.ac): Likewise.
4549         * modules/unictype/property-ids-trinary-operator (Depends-on,
4550         configure.ac): Likewise.
4551         * modules/unictype/property-ignorable-control (Depends-on,
4552         configure.ac): Likewise.
4553         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4554         Likewise.
4555         * modules/unictype/property-join-control (Depends-on, configure.ac):
4556         Likewise.
4557         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4558         Likewise.
4559         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4560         Likewise.
4561         * modules/unictype/property-logical-order-exception (Depends-on,
4562         configure.ac): Likewise.
4563         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4564         Likewise.
4565         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4566         * modules/unictype/property-non-break (Depends-on, configure.ac):
4567         Likewise.
4568         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4569         Likewise.
4570         * modules/unictype/property-numeric (Depends-on, configure.ac):
4571         Likewise.
4572         * modules/unictype/property-other-alphabetic (Depends-on,
4573         configure.ac): Likewise.
4574         * modules/unictype/property-other-default-ignorable-code-point
4575         (Depends-on, configure.ac): Likewise.
4576         * modules/unictype/property-other-grapheme-extend (Depends-on,
4577         configure.ac): Likewise.
4578         * modules/unictype/property-other-id-continue (Depends-on,
4579         configure.ac): Likewise.
4580         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4581         Likewise.
4582         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4583         Likewise.
4584         * modules/unictype/property-other-math (Depends-on, configure.ac):
4585         Likewise.
4586         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4587         Likewise.
4588         * modules/unictype/property-paired-punctuation (Depends-on,
4589         configure.ac): Likewise.
4590         * modules/unictype/property-paragraph-separator (Depends-on,
4591         configure.ac): Likewise.
4592         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4593         Likewise.
4594         * modules/unictype/property-pattern-white-space (Depends-on,
4595         configure.ac): Likewise.
4596         * modules/unictype/property-private-use (Depends-on, configure.ac):
4597         Likewise.
4598         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4599         Likewise.
4600         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4601         Likewise.
4602         * modules/unictype/property-radical (Depends-on, configure.ac):
4603         Likewise.
4604         * modules/unictype/property-sentence-terminal (Depends-on,
4605         configure.ac): Likewise.
4606         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4607         Likewise.
4608         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4609         * modules/unictype/property-terminal-punctuation (Depends-on,
4610         configure.ac): Likewise.
4611         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4612         Likewise.
4613         * modules/unictype/property-unassigned-code-value (Depends-on,
4614         configure.ac): Likewise.
4615         * modules/unictype/property-unified-ideograph (Depends-on,
4616         configure.ac): Likewise.
4617         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4618         Likewise.
4619         * modules/unictype/property-variation-selector (Depends-on,
4620         configure.ac): Likewise.
4621         * modules/unictype/property-white-space (Depends-on, configure.ac):
4622         Likewise.
4623         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4624         Likewise.
4625         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4626         Likewise.
4627         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4628         Likewise.
4629         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4630         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4631         Likewise.
4632
4633 2009-12-31  Bruno Haible  <bruno@clisp.org>
4634
4635         Remove unnecessary AC_C_INLINE invocation.
4636         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4637         since 2009-08-21.
4638
4639 2009-12-31  Jim Meyering  <meyering@redhat.com>
4640
4641         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4642         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4643         With this change, we can all remove the gpg_key_ID = ... definition
4644         from our respective cfg.mk files.
4645
4646         maint.mk: create announcement template in ~/, not in /tmp
4647         * top/maint.mk (emit_upload_commands): Adjust.
4648         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4649         Remove temporary file, .ci-msg.
4650
4651 2009-12-31  Eric Blake  <ebb9@byu.net>
4652
4653         link-warning: always build headers with link warnings
4654         * modules/arpa_inet (Makefile.am): Always build replacement
4655         header.
4656         * modules/ctype (Makefile.am): Likewise.
4657         * modules/dirent (Makefile.am): Likewise.
4658         * modules/inttypes (Makefile.am): Likewise.
4659         * modules/langinfo (Makefile.am): Likewise.
4660         * modules/locale (Makefile.am): Likewise.
4661         * modules/spawn (Makefile.am): Likewise.
4662         * modules/sys_file (Makefile.am): Likewise.
4663         * modules/sys_ioctl (Makefile.am): Likewise.
4664         * modules/sys_select (Makefile.am): Likewise.
4665         * modules/sys_socket (Makefile.am): Likewise.
4666         * modules/sys_times (Makefile.am): Likewise.
4667         * modules/sys_utsname (Makefile.am): Likewise.
4668         * modules/sys_wait (Makefile.am): Likewise.
4669         * modules/wchar (Makefile.am): Likewise.
4670         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4671         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4672         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4673         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4674         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4675         Likewise.
4676         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4677         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4678         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4679         Likewise.
4680         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4681         Likewise.
4682         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4683         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4684         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4685         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4686         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4687         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4688         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4689         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4690         (gl_WCHAR_H_DEFAULTS): Likewise.
4691
4692 2009-12-31  Eric Blake  <ebb9@byu.net>
4693
4694         signal, spawn: use link warnings
4695         * lib/signal.in.h (sigset_t): Make unconditional.
4696         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4697         (sigpending, sigprocmask, sigaction): Add link warnings.
4698         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4699         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4700         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4701         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4702         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4703         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4704         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4705         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4706         (posix_spawn_file_actions_destroy)
4707         (posix_spawn_file_actions_addopen)
4708         (posix_spawn_file_actions_addclose)
4709         (posix_spawn_file_actions_adddup2): Likewise.
4710         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4711         * tests/test-signal.c (main): Enhance test.
4712
4713         spawn: improve wrapper support
4714         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4715         (gl_SPAWN_H_DEFAULTS): New defaults.
4716         * modules/spawn (Makefile.am): Substitute them.
4717         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4718         Only declare if missing or broken.
4719
4720         sys_times, sys_utsname: use include_next
4721         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4722         header.
4723         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4725         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4726         * modules/sys_times (Depends-on): Add include_next.
4727         (Makefile.am): Substitute additional values.
4728         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4729         * lib/sys_times.in.h (includes): Include native header, if
4730         available.
4731         * lib/sys_utsname.in.h (includes): Likewise.
4732         * tests/test-sys_times.c (main): Enhance test.
4733
4734         fdutimensat: revert prior patch
4735         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4736         utimens.h.
4737         Reported by Bruno Haible.
4738
4739 2009-12-30  Eric Blake  <ebb9@byu.net>
4740
4741         sys_wait: drop link-warning dependency
4742         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4743         link-warning efforts.
4744         * lib/sys_wait.in.h: Likewise.
4745
4746         fdutimensat: remove bogus dependency
4747         * modules/fdutimensat (Depends-on): Drop inline.
4748
4749         unistd: fix typo
4750         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4751
4752 2009-12-30  Bruno Haible  <bruno@clisp.org>
4753
4754         Fix compilation error with Solaris cc.
4755         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4756         * lib/unicase/u16-is-invariant.c: Likewise.
4757         * lib/unicase/u32-is-invariant.c: Likewise.
4758         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4759
4760 2009-12-30  Bruno Haible  <bruno@clisp.org>
4761
4762         Fix test crash.
4763         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4764         locales.
4765         Reported by Simon Josefsson <simon@josefsson.org>.
4766
4767 2009-12-30  Bruno Haible  <bruno@clisp.org>
4768
4769         Fix compilation error on most platforms.
4770         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4771         Reported by Simon Josefsson <simon@josefsson.org>
4772         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4773
4774 2009-12-30  Eric Blake  <ebb9@byu.net>
4775
4776         futimens, utimensat: work around ntfs-3g bug
4777         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4778         a ctime bug is present, and expand workaround to cover ntfs-3g.
4779         * lib/utimens.c (fdutimens, lutimens): Likewise.
4780         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4781         (validate_timespec): Adjust return value.
4782         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4783         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4784         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4785
4786 2009-12-29  Eric Blake  <ebb9@byu.net>
4787
4788         link-warning: make usage consistent
4789         * modules/ctype (Depends-on): Add link-warning.
4790         (Makefile.am): Update rules accordingly.
4791         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4792         * modules/locale (Depends-on, Makefile.am): Likewise.
4793         * modules/sys_file (Makefile.am): Likewise.
4794         * modules/getopt-posix (Makefile.am): Delete unused link warning
4795         efforts.
4796         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4797         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4798         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4799         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4800
4801         stdio: remove unused variables
4802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4804         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4805
4806         tests: test more substitute headers
4807         * modules/ctype-tests: New file.
4808         * modules/dirent-tests: Likewise.
4809         * modules/spawn-tests: Likewise.
4810         * modules/sys_file-tests: Likewise.
4811         * modules/sys_ioctl-tests: Likewise.
4812         * modules/sys_wait-tests: Likewise.
4813         * tests/test-ctype.c: Likewise.
4814         * tests/test-dirent.c: Likewise.
4815         * tests/test-spawn.c: Likewise.
4816         * tests/test-sys_file.c: Likewise.
4817         * tests/test-sys_ioctl.c: Likewise.
4818         * tests/test-sys_wait.c: Likewise.
4819         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4820         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4821         whether or not flock is in use.
4822
4823         tests: remove License section from module
4824         * modules/arpa_inet-tests: Remove unneeded section.
4825         * modules/byteswap-tests: Likewise.
4826         * modules/ceilf-tests: Likewise.
4827         * modules/ceill-tests: Likewise.
4828         * modules/crypto/des-tests: Likewise.
4829         * modules/crypto/gc-arcfour-tests: Likewise.
4830         * modules/crypto/gc-arctwo-tests: Likewise.
4831         * modules/crypto/gc-des-tests: Likewise.
4832         * modules/crypto/gc-hmac-md5-tests: Likewise.
4833         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4834         * modules/crypto/gc-md2-tests: Likewise.
4835         * modules/crypto/gc-md4-tests: Likewise.
4836         * modules/crypto/gc-md5-tests: Likewise.
4837         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4838         * modules/crypto/gc-rijndael-tests: Likewise.
4839         * modules/crypto/gc-sha1-tests: Likewise.
4840         * modules/crypto/gc-tests: Likewise.
4841         * modules/crypto/md2-tests: Likewise.
4842         * modules/crypto/md4-tests: Likewise.
4843         * modules/fcntl-h-tests: Likewise.
4844         * modules/floorf-tests: Likewise.
4845         * modules/floorl-tests: Likewise.
4846         * modules/frexp-nolibm-tests: Likewise.
4847         * modules/frexp-tests: Likewise.
4848         * modules/frexpl-nolibm-tests: Likewise.
4849         * modules/frexpl-tests: Likewise.
4850         * modules/getaddrinfo-tests: Likewise.
4851         * modules/inttypes-tests: Likewise.
4852         * modules/isfinite-tests: Likewise.
4853         * modules/isinf-tests: Likewise.
4854         * modules/ldexpl-tests: Likewise.
4855         * modules/locale-tests: Likewise.
4856         * modules/math-tests: Likewise.
4857         * modules/netdb-tests: Likewise.
4858         * modules/netinet_in-tests: Likewise.
4859         * modules/printf-frexp-tests: Likewise.
4860         * modules/printf-frexpl-tests: Likewise.
4861         * modules/priv-set-tests: Likewise.
4862         * modules/random_r-tests: Likewise.
4863         * modules/round-tests: Likewise.
4864         * modules/roundf-tests: Likewise.
4865         * modules/roundl-tests: Likewise.
4866         * modules/search-tests: Likewise.
4867         * modules/select-tests: Likewise.
4868         * modules/signal-tests: Likewise.
4869         * modules/stdbool-tests: Likewise.
4870         * modules/stddef-tests: Likewise.
4871         * modules/stdint-tests: Likewise.
4872         * modules/stdio-tests: Likewise.
4873         * modules/stdlib-tests: Likewise.
4874         * modules/string-tests: Likewise.
4875         * modules/strings-tests: Likewise.
4876         * modules/sys_select-tests: Likewise.
4877         * modules/sys_socket-tests: Likewise.
4878         * modules/sys_stat-tests: Likewise.
4879         * modules/sys_time-tests: Likewise.
4880         * modules/sys_utsname-tests: Likewise.
4881         * modules/sysexits-tests: Likewise.
4882         * modules/time-tests: Likewise.
4883         * modules/trunc-tests: Likewise.
4884         * modules/truncf-tests: Likewise.
4885         * modules/truncl-tests: Likewise.
4886         * modules/tsearch-tests: Likewise.
4887         * modules/unistd-tests: Likewise.
4888         * modules/wchar-tests: Likewise.
4889         * modules/wctype-tests: Likewise.
4890
4891         tests: fix license on several tests
4892         * tests/test-des.c: Update to GPLv3+.
4893         * tests/test-flock.c: Likewise.
4894         * tests/test-fsync.c: Likewise.
4895         * tests/test-futimens.h: Likewise.
4896         * tests/test-gc-arcfour.c: Likewise.
4897         * tests/test-gc-arctwo.c: Likewise.
4898         * tests/test-gc-des.c: Likewise.
4899         * tests/test-gc-hmac-md5.c: Likewise.
4900         * tests/test-gc-hmac-sha1.c: Likewise.
4901         * tests/test-gc-md2.c: Likewise.
4902         * tests/test-gc-md4.c: Likewise.
4903         * tests/test-gc-md5.c: Likewise.
4904         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4905         * tests/test-gc-rijndael.c: Likewise.
4906         * tests/test-gc-sha1.c: Likewise.
4907         * tests/test-gc.c: Likewise.
4908         * tests/test-getcwd.c: Likewise.
4909         * tests/test-link.c: Likewise.
4910         * tests/test-link.h: Likewise.
4911         * tests/test-lutimens.h: Likewise.
4912         * tests/test-md2.c: Likewise.
4913         * tests/test-md4.c: Likewise.
4914         * tests/test-mkdir.h: Likewise.
4915         * tests/test-rename.c: Likewise.
4916         * tests/test-rename.h: Likewise.
4917         * tests/test-safe-alloc.c: Likewise.
4918         * tests/test-utimens-common.h: Likewise.
4919         * tests/test-utimens.h: Likewise.
4920
4921         maint: sync license texts
4922         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4923         * doc/gpl-3.0.texi: Revert copyright year update.
4924         * doc/lgpl-3.0.texi: Likewise.
4925
4926 2009-12-29  Jim Meyering  <meyering@redhat.com>
4927
4928         update nearly all FSF copyright year lists to include 2009
4929         The files named by the following are exempted:
4930             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4931               test -f "$dst" && { echo "$dst"; continue; }
4932               test -d "$dst" || continue
4933               echo "$dst"/$(basename "$src")
4934             done > exempt
4935             git ls-files tests/unictype >> exempt
4936         In the remaining files, convert to all-interval notation if
4937         - there is already at least one year interval like 2000-2003
4938         - the file is maintained by me
4939         - the file is in lib/uni*/, where that style already prevails
4940         Otherwise, use update-copyright's default.
4941
4942 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4943         and Eric Blake  <ebb9@byu.net>
4944
4945         tests: don't require debug system() to pass
4946         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4947         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4948         * tests/test-unlink.h (test_unlink_func): Likewise.
4949         * tests/test-fstatat.c (main): ...into callers.
4950         * tests/test-lstat.c (main): Likewise.
4951         * tests/test-rmdir.c (main): Likewise.
4952         * tests/test-unlink.c (main): Likewise.
4953         * tests/test-unlinkat.c (main): Likewise.
4954         * tests/test-areadlink-with-size.c (main): Don't require a
4955         debug-only system call to pass, aiding cross-testing to mingw.
4956         * tests/test-areadlink.c (main): Likewise.
4957         * tests/test-areadlinkat-with-size.c (main): Likewise.
4958         * tests/test-areadlinkat.c (main): Likewise.
4959         * tests/test-canonicalize-lgpl.c (main): Likewise.
4960         * tests/test-canonicalize.c (main): Likewise.
4961         * tests/test-chown.c (main): Likewise.
4962         * tests/test-fchownat.c (main): Likewise.
4963         * tests/test-lchown.c (main): Likewise.
4964         * tests/test-fdutimensat.c (main): Likewise.
4965         * tests/test-futimens.c (main): Likewise.
4966         * tests/test-link.c (main): Likewise.
4967         * tests/test-linkat.c (main): Likewise.
4968         * tests/test-mkdir.c (main): Likewise.
4969         * tests/test-mkdirat.c (main): Likewise.
4970         * tests/test-mkfifo.c (main): Likewise.
4971         * tests/test-mkfifoat.c (main): Likewise.
4972         * tests/test-mknod.c (main): Likewise.
4973         * tests/test-readlink.c (main): Likewise.
4974         * tests/test-remove.c (main): Likewise.
4975         * tests/test-rename.c (main): Likewise.
4976         * tests/test-renameat.c (main): Likewise.
4977         * tests/test-symlink.c (main): Likewise.
4978         * tests/test-symlinkat.c (main): Likewise.
4979         * tests/test-utimens.c (main): Likewise.
4980         * tests/test-utimensat.c (main): Likewise.
4981
4982 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4983
4984         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4985         on $(UNUSED_PARAMETER_H) to avoid build failure.
4986
4987 2009-12-28  Jim Meyering  <meyering@redhat.com>
4988
4989         update-copyright: you may specify a max. line length other than 72
4990         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4991
4992         maint: use consistent FSF copyright line syntax
4993         * lib/posixtm.c: Add missing comma in FSF copyright line.
4994         * lib/posixtm.h: Likewise.
4995         * lib/getugroups.c: Add missing ", Inc.".
4996
4997         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4998         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4999         FSF copyright line.  Remove trailing blanks.
5000
5001 2009-12-28  Eric Blake  <ebb9@byu.net>
5002
5003         test-dup2: reduce dependencies
5004         * modules/cloexec (Configure.ac): Set witness.
5005         * modules/dup2-tests (Depends-on): Drop cloexec.
5006         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5007         not present.
5008         Suggested by Bruno Haible.
5009
5010 2009-12-26  Bruno Haible  <bruno@clisp.org>
5011
5012         Remove an unneeded dependency.
5013         * modules/fseterr (Depends-on): Remove dup2.
5014
5015 2009-12-26  Eric Blake  <ebb9@byu.net>
5016
5017         tests: use macros.h in more places
5018         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5019         (ASSERT_STREAM): Provide default of stderr.
5020         * tests/test-dirent-safer.c: Include macros.h, using alternate
5021         stream for assertions.
5022         * tests/test-dup-safer.c: Likewise.
5023         * tests/test-freopen-safer.c: Likewise.
5024         * tests/test-getopt.c: Likewise.
5025         * tests/test-openat-safer.c: Likewise.
5026         * tests/test-pipe.c: Likewise.
5027         * tests/test-popen-safer.c: Likewise.
5028         * modules/dirent-safer-tests (Files): Include macros.h.
5029         * modules/unistd-safer-tests (Files): Likewise.
5030         * modules/freopen-safer-tests (Files): Likewise.
5031         * modules/getopt-posix-tests (Files): Likewise.
5032         * modules/openat-safer-tests (Files): Likewise.
5033         * modules/pipe-tests (Files): Likewise.
5034
5035 2009-12-26  Bruno Haible  <bruno@clisp.org>
5036
5037         javacomp: Portability fix.
5038         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5039         that it also works on Solaris.
5040
5041 2009-12-26  Bruno Haible  <bruno@clisp.org>
5042
5043         localename: Fix storage allocation of gl_locale_name_thread's result.
5044         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5045         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5046         all platforms that have 'uselocale'.
5047         (gl_locale_name_thread_unsafe): New function, extracted from
5048         gl_locale_name_thread.
5049         (gl_locale_name_thread): Call struniq on all platforms that have
5050         'uselocale'.
5051         * tests/test-localename.c (test_locale_name_thread): Check that the
5052         resulting strings are permanently allocated.
5053         * modules/localename-tests (Depends-on): Add strdup.
5054
5055 2009-12-26  Bruno Haible  <bruno@clisp.org>
5056
5057         * tests/test-localename.c (categories): Fill in the strings.
5058
5059 2009-12-26  Jim Meyering  <meyering@redhat.com>
5060
5061         isdir: complete the removal of m4/isdir.m4
5062         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5063
5064         isdir: clean up, since at least grep still uses it
5065         * lib/isdir.c: Include "isdir.h".
5066         (S_ISDIR): Remove now-unneeded definition.
5067         * modules/isdir (Files): Add lib/isdir.h.
5068         * lib/isdir.h: New file, with declaration.
5069         * m4/isdir.m4: Remove file -- unneeded.
5070
5071 2009-12-25  Bruno Haible  <bruno@clisp.org>
5072
5073         selinux-h: Make generated .h files standalone.
5074         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5075         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5076         * lib/se-selinux.in.h: Likewise.
5077         * modules/selinux-h (Depends-on): Add unused-parameter.
5078         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5079         selinux/selinux.h and selinux/context.h.
5080         Suggested by Eric Blake.
5081
5082 2009-12-25  Bruno Haible  <bruno@clisp.org>
5083
5084         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5085         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5086         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5087         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5088         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5089
5090 2009-12-24  Bruno Haible  <bruno@clisp.org>
5091
5092         openat: Fix warning.
5093         * lib/openat-proc.c: Include <unistd.h>.
5094
5095 2009-12-24  Bruno Haible  <bruno@clisp.org>
5096
5097         New module 'unused-parameter'.
5098         * build-aux/unused-parameter.h: New file, extracted from earlier
5099         gnulib-common.m4.
5100         * modules/unused-parameter: New file.
5101         * lib/unistr.h: Include unused-parameter.h.
5102         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5103         _GL_UNUSED.
5104         * modules/unistr/base (Depends-on): Add unused-parameter.
5105
5106 2009-12-24  Bruno Haible  <bruno@clisp.org>
5107
5108         Add missing dependencies to 'extensions' module.
5109         * m4/extensions.m4: Add comment.
5110         * modules/accept4 (Depends-on): Add extensions.
5111         * modules/dup3 (Depends-on): Likewise.
5112         * modules/fcntl (Depends-on): Likewise.
5113         * modules/futimens (Depends-on): Likewise.
5114         * modules/mknod (Depends-on): Likewise.
5115         * modules/pipe2 (Depends-on): Likewise.
5116         * modules/stat-time (Depends-on): Likewise.
5117         * modules/strcasestr-simple (Depends-on): Likewise.
5118         * modules/strsignal (Depends-on): Likewise.
5119         * modules/utimensat (Depends-on): Likewise.
5120         * modules/localcharset (Depends-on): Likewise. Needed because of
5121         gl_FCNTL_O_FLAGS.
5122         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5123         AC_TYPE_MBSTATE_T.
5124         * modules/wcsnrtombs (Depends-on): Likewise.
5125         * modules/wcsrtombs (Depends-on): Likewise.
5126
5127 2009-12-24  Bruno Haible  <bruno@clisp.org>
5128
5129         binary-io: Avoid gcc warning due to SET_BINARY.
5130         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5131         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5132
5133 2009-12-24  Bruno Haible  <bruno@clisp.org>
5134
5135         Avoid future namespace pollution on glibc systems.
5136         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5137         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5138         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5139         glibc systems.
5140
5141 2009-12-24  Bruno Haible  <bruno@clisp.org>
5142
5143         Refactor common macros used in tests.
5144         * tests/macros.h: New file.
5145         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5146         and/or <stdlib.h>, if appropriate.
5147         (ASSERT, SIZEOF): Remove macros.
5148         * tests/test-areadlink-with-size.c: Likewise.
5149         * tests/test-areadlinkat.c: Likewise.
5150         * tests/test-areadlinkat-with-size.c: Likewise.
5151         * tests/test-argmatch.c: Likewise.
5152         * tests/test-argv-iter.c: Likewise.
5153         * tests/test-array-mergesort.c: Likewise.
5154         * tests/test-array_list.c: Likewise.
5155         * tests/test-array_oset.c: Likewise.
5156         * tests/test-avltree_list.c: Likewise.
5157         * tests/test-avltree_oset.c: Likewise.
5158         * tests/test-avltreehash_list.c: Likewise.
5159         * tests/test-base64.c: Likewise.
5160         * tests/test-binary-io.c: Likewise.
5161         * tests/test-bitrotate.c: Likewise.
5162         * tests/test-btowc.c: Likewise.
5163         * tests/test-byteswap.c: Likewise.
5164         * tests/test-c-ctype.c: Likewise.
5165         * tests/test-c-stack.c: Likewise.
5166         * tests/test-c-strcasecmp.c: Likewise.
5167         * tests/test-c-strcasestr.c: Likewise.
5168         * tests/test-c-strncasecmp.c: Likewise.
5169         * tests/test-c-strstr.c: Likewise.
5170         * tests/test-canonicalize-lgpl.c: Likewise.
5171         * tests/test-canonicalize.c: Likewise.
5172         * tests/test-carray_list.c: Likewise.
5173         * tests/test-ceilf1.c: Likewise.
5174         * tests/test-ceilf2.c: Likewise.
5175         * tests/test-ceill.c: Likewise.
5176         * tests/test-chown.c: Likewise.
5177         * tests/test-cloexec.c: Likewise.
5178         * tests/test-copy-acl.c: Likewise.
5179         * tests/test-copy-file.c: Likewise.
5180         * tests/test-count-one-bits.c: Likewise.
5181         * tests/test-dprintf-posix.c: Likewise.
5182         * tests/test-dup2.c: Likewise.
5183         * tests/test-dup3.c: Likewise.
5184         * tests/test-duplocale.c: Likewise.
5185         * tests/test-fbufmode.c: Likewise.
5186         * tests/test-fchdir.c: Likewise.
5187         * tests/test-fchownat.c: Likewise.
5188         * tests/test-fcntl-safer.c: Likewise.
5189         * tests/test-fcntl.c: Likewise.
5190         * tests/test-fdopendir.c: Likewise.
5191         * tests/test-fdutimensat.c: Likewise.
5192         * tests/test-fflush2.c: Likewise.
5193         * tests/test-file-has-acl.c: Likewise.
5194         * tests/test-filevercmp.c: Likewise.
5195         * tests/test-flock.c: Likewise.
5196         * tests/test-floorf1.c: Likewise.
5197         * tests/test-floorf2.c: Likewise.
5198         * tests/test-floorl.c: Likewise.
5199         * tests/test-fnmatch.c: Likewise.
5200         * tests/test-fopen.h: Likewise.
5201         * tests/test-fpending.c: Likewise.
5202         * tests/test-fprintf-posix.c: Likewise.
5203         * tests/test-fpurge.c: Likewise.
5204         * tests/test-freadable.c: Likewise.
5205         * tests/test-freadahead.c: Likewise.
5206         * tests/test-freading.c: Likewise.
5207         * tests/test-freadptr.c: Likewise.
5208         * tests/test-freadptr2.c: Likewise.
5209         * tests/test-freadseek.c: Likewise.
5210         * tests/test-freopen.c: Likewise.
5211         * tests/test-frexp.c: Likewise.
5212         * tests/test-frexpl.c: Likewise.
5213         * tests/test-fseek.c: Likewise.
5214         * tests/test-fseeko.c: Likewise.
5215         * tests/test-fstatat.c: Likewise.
5216         * tests/test-fstrcmp.c: Likewise.
5217         * tests/test-fsync.c: Likewise.
5218         * tests/test-ftell.c: Likewise.
5219         * tests/test-ftello.c: Likewise.
5220         * tests/test-func.c: Likewise.
5221         * tests/test-futimens.c: Likewise.
5222         * tests/test-fwritable.c: Likewise.
5223         * tests/test-fwriting.c: Likewise.
5224         * tests/test-getcwd.c: Likewise.
5225         * tests/test-getdate.c: Likewise.
5226         * tests/test-getdelim.c: Likewise.
5227         * tests/test-getdtablesize.c: Likewise.
5228         * tests/test-getgroups.c: Likewise.
5229         * tests/test-getline.c: Likewise.
5230         * tests/test-getndelim2.c: Likewise.
5231         * tests/test-glob.c: Likewise.
5232         * tests/test-hash.c: Likewise.
5233         * tests/test-i-ring.c: Likewise.
5234         * tests/test-iconv-utf.c: Likewise.
5235         * tests/test-iconv.c: Likewise.
5236         * tests/test-idpriv-drop.c: Likewise.
5237         * tests/test-idpriv-droptemp.c: Likewise.
5238         * tests/test-inet_ntop.c: Likewise.
5239         * tests/test-inet_pton.c: Likewise.
5240         * tests/test-isblank.c: Likewise.
5241         * tests/test-isfinite.c: Likewise.
5242         * tests/test-isinf.c: Likewise.
5243         * tests/test-isnan.c: Likewise.
5244         * tests/test-isnand.h: Likewise.
5245         * tests/test-isnanf.h: Likewise.
5246         * tests/test-isnanl.h: Likewise.
5247         * tests/test-lchown.c: Likewise.
5248         * tests/test-ldexpl.c: Likewise.
5249         * tests/test-link.c: Likewise.
5250         * tests/test-linkat.c: Likewise.
5251         * tests/test-linked_list.c: Likewise.
5252         * tests/test-linkedhash_list.c: Likewise.
5253         * tests/test-localename.c: Likewise.
5254         * tests/test-lseek.c: Likewise.
5255         * tests/test-lstat.c: Likewise.
5256         * tests/test-mbmemcasecmp.c: Likewise.
5257         * tests/test-mbmemcasecoll.c: Likewise.
5258         * tests/test-mbrtowc.c: Likewise.
5259         * tests/test-mbscasecmp.c: Likewise.
5260         * tests/test-mbscasestr1.c: Likewise.
5261         * tests/test-mbscasestr2.c: Likewise.
5262         * tests/test-mbscasestr3.c: Likewise.
5263         * tests/test-mbscasestr4.c: Likewise.
5264         * tests/test-mbschr.c: Likewise.
5265         * tests/test-mbscspn.c: Likewise.
5266         * tests/test-mbsinit.c: Likewise.
5267         * tests/test-mbsncasecmp.c: Likewise.
5268         * tests/test-mbsnrtowcs.c: Likewise.
5269         * tests/test-mbspbrk.c: Likewise.
5270         * tests/test-mbspcasecmp.c: Likewise.
5271         * tests/test-mbsrchr.c: Likewise.
5272         * tests/test-mbsrtowcs.c: Likewise.
5273         * tests/test-mbsspn.c: Likewise.
5274         * tests/test-mbsstr1.c: Likewise.
5275         * tests/test-mbsstr2.c: Likewise.
5276         * tests/test-mbsstr3.c: Likewise.
5277         * tests/test-memchr.c: Likewise.
5278         * tests/test-memchr2.c: Likewise.
5279         * tests/test-memcmp.c: Likewise.
5280         * tests/test-memmem.c: Likewise.
5281         * tests/test-memrchr.c: Likewise.
5282         * tests/test-mkdir.c: Likewise.
5283         * tests/test-mkdirat.c: Likewise.
5284         * tests/test-mkfifo.c: Likewise.
5285         * tests/test-mkfifoat.c: Likewise.
5286         * tests/test-mknod.c: Likewise.
5287         * tests/test-nanosleep.c: Likewise.
5288         * tests/test-nl_langinfo.c: Likewise.
5289         * tests/test-obstack-printf.c: Likewise.
5290         * tests/test-open.c: Likewise.
5291         * tests/test-openat.c: Likewise.
5292         * tests/test-pipe-filter-gi1.c: Likewise.
5293         * tests/test-pipe-filter-gi2-main.c: Likewise.
5294         * tests/test-pipe-filter-ii1.c: Likewise.
5295         * tests/test-pipe-filter-ii2-main.c: Likewise.
5296         * tests/test-pipe2.c: Likewise.
5297         * tests/test-popen.h: Likewise.
5298         * tests/test-posixtm.c: Likewise.
5299         * tests/test-pread.c: Likewise.
5300         * tests/test-printf-frexp.c: Likewise.
5301         * tests/test-printf-frexpl.c: Likewise.
5302         * tests/test-printf-posix.c: Likewise.
5303         * tests/test-priv-set.c: Likewise.
5304         * tests/test-quotearg.c: Likewise.
5305         * tests/test-random_r.c: Likewise.
5306         * tests/test-rawmemchr.c: Likewise.
5307         * tests/test-rbtree_list.c: Likewise.
5308         * tests/test-rbtree_oset.c: Likewise.
5309         * tests/test-rbtreehash_list.c: Likewise.
5310         * tests/test-readlink.c: Likewise.
5311         * tests/test-remove.c: Likewise.
5312         * tests/test-rename.c: Likewise.
5313         * tests/test-renameat.c: Likewise.
5314         * tests/test-rmdir.c: Likewise.
5315         * tests/test-round1.c: Likewise.
5316         * tests/test-roundf1.c: Likewise.
5317         * tests/test-roundl.c: Likewise.
5318         * tests/test-safe-alloc.c: Likewise.
5319         * tests/test-sameacls.c: Likewise.
5320         * tests/test-set-mode-acl.c: Likewise.
5321         * tests/test-setenv.c: Likewise.
5322         * tests/test-sigaction.c: Likewise.
5323         * tests/test-signbit.c: Likewise.
5324         * tests/test-sleep.c: Likewise.
5325         * tests/test-snprintf-posix.c: Likewise.
5326         * tests/test-snprintf.c: Likewise.
5327         * tests/test-sprintf-posix.c: Likewise.
5328         * tests/test-stat-time.c: Likewise.
5329         * tests/test-stat.c: Likewise.
5330         * tests/test-strcasestr.c: Likewise.
5331         * tests/test-strchrnul.c: Likewise.
5332         * tests/test-strerror.c: Likewise.
5333         * tests/test-striconv.c: Likewise.
5334         * tests/test-striconveh.c: Likewise.
5335         * tests/test-striconveha.c: Likewise.
5336         * tests/test-strsignal.c: Likewise.
5337         * tests/test-strstr.c: Likewise.
5338         * tests/test-strtod.c: Likewise.
5339         * tests/test-strverscmp.c: Likewise.
5340         * tests/test-symlink.c: Likewise.
5341         * tests/test-symlinkat.c: Likewise.
5342         * tests/test-trunc1.c: Likewise.
5343         * tests/test-trunc2.c: Likewise.
5344         * tests/test-truncf1.c: Likewise.
5345         * tests/test-truncf2.c: Likewise.
5346         * tests/test-truncl.c: Likewise.
5347         * tests/test-uname.c: Likewise.
5348         * tests/test-unlink.c: Likewise.
5349         * tests/test-unlinkat.c: Likewise.
5350         * tests/test-unsetenv.c: Likewise.
5351         * tests/test-usleep.c: Likewise.
5352         * tests/test-utimens.c: Likewise.
5353         * tests/test-utimensat.c: Likewise.
5354         * tests/test-vasnprintf-posix.c: Likewise.
5355         * tests/test-vasnprintf-posix2.c: Likewise.
5356         * tests/test-vasnprintf.c: Likewise.
5357         * tests/test-vasprintf-posix.c: Likewise.
5358         * tests/test-vasprintf.c: Likewise.
5359         * tests/test-vdprintf-posix.c: Likewise.
5360         * tests/test-vfprintf-posix.c: Likewise.
5361         * tests/test-vprintf-posix.c: Likewise.
5362         * tests/test-vsnprintf-posix.c: Likewise.
5363         * tests/test-vsnprintf.c: Likewise.
5364         * tests/test-vsprintf-posix.c: Likewise.
5365         * tests/test-wcrtomb.c: Likewise.
5366         * tests/test-wcsnrtombs.c: Likewise.
5367         * tests/test-wcsrtombs.c: Likewise.
5368         * tests/test-wctype.c: Likewise.
5369         * tests/test-wcwidth.c: Likewise.
5370         * tests/test-xfprintf-posix.c: Likewise.
5371         * tests/test-xmemdup0.c: Likewise.
5372         * tests/test-xprintf-posix.c: Likewise.
5373         * tests/test-xvasprintf.c: Likewise.
5374         * tests/unicase/test-locale-language.c: Likewise.
5375         * tests/unicase/test-mapping-part1.h: Likewise.
5376         * tests/unicase/test-predicate-part1.h: Likewise.
5377         * tests/unicase/test-u8-casecmp.c: Likewise.
5378         * tests/unicase/test-u8-casecoll.c: Likewise.
5379         * tests/unicase/test-u8-casefold.c: Likewise.
5380         * tests/unicase/test-u8-is-cased.c: Likewise.
5381         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5382         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5383         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5384         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5385         * tests/unicase/test-u8-tolower.c: Likewise.
5386         * tests/unicase/test-u8-totitle.c: Likewise.
5387         * tests/unicase/test-u8-toupper.c: Likewise.
5388         * tests/unicase/test-u16-casecmp.c: Likewise.
5389         * tests/unicase/test-u16-casecoll.c: Likewise.
5390         * tests/unicase/test-u16-casefold.c: Likewise.
5391         * tests/unicase/test-u16-is-cased.c: Likewise.
5392         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5393         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5394         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5395         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5396         * tests/unicase/test-u16-tolower.c: Likewise.
5397         * tests/unicase/test-u16-totitle.c: Likewise.
5398         * tests/unicase/test-u16-toupper.c: Likewise.
5399         * tests/unicase/test-u32-casecmp.c: Likewise.
5400         * tests/unicase/test-u32-casecoll.c: Likewise.
5401         * tests/unicase/test-u32-casefold.c: Likewise.
5402         * tests/unicase/test-u32-is-cased.c: Likewise.
5403         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5404         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5405         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5406         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5407         * tests/unicase/test-u32-tolower.c: Likewise.
5408         * tests/unicase/test-u32-totitle.c: Likewise.
5409         * tests/unicase/test-u32-toupper.c: Likewise.
5410         * tests/unicase/test-ulc-casecmp.c: Likewise.
5411         * tests/unicase/test-ulc-casecoll.c: Likewise.
5412         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5413         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5414         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5415         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5416         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5417         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5418         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5419         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5420         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5421         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5422         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5423         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5424         * tests/unictype/test-bidi_byname.c: Likewise.
5425         * tests/unictype/test-bidi_name.c: Likewise.
5426         * tests/unictype/test-bidi_of.c: Likewise.
5427         * tests/unictype/test-bidi_test.c: Likewise.
5428         * tests/unictype/test-block_list.c: Likewise.
5429         * tests/unictype/test-block_of.c: Likewise.
5430         * tests/unictype/test-block_test.c: Likewise.
5431         * tests/unictype/test-categ_and.c: Likewise.
5432         * tests/unictype/test-categ_and_not.c: Likewise.
5433         * tests/unictype/test-categ_byname.c: Likewise.
5434         * tests/unictype/test-categ_name.c: Likewise.
5435         * tests/unictype/test-categ_none.c: Likewise.
5436         * tests/unictype/test-categ_of.c: Likewise.
5437         * tests/unictype/test-categ_or.c: Likewise.
5438         * tests/unictype/test-categ_test_withtable.c: Likewise.
5439         * tests/unictype/test-combining.c: Likewise.
5440         * tests/unictype/test-decdigit.c: Likewise.
5441         * tests/unictype/test-digit.c: Likewise.
5442         * tests/unictype/test-mirror.c: Likewise.
5443         * tests/unictype/test-numeric.c: Likewise.
5444         * tests/unictype/test-pr_byname.c: Likewise.
5445         * tests/unictype/test-pr_test.c: Likewise.
5446         * tests/unictype/test-predicate-part1.h: Likewise.
5447         * tests/unictype/test-scripts.c: Likewise.
5448         * tests/unictype/test-sy_c_ident.c: Likewise.
5449         * tests/unictype/test-sy_java_ident.c: Likewise.
5450         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5451         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5452         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5453         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5454         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5455         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5456         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5457         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5458         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5459         * tests/uninorm/test-compat-decomposition.c: Likewise.
5460         * tests/uninorm/test-composition.c: Likewise.
5461         * tests/uninorm/test-decomposing-form.c: Likewise.
5462         * tests/uninorm/test-decomposition.c: Likewise.
5463         * tests/uninorm/test-u8-nfc.c: Likewise.
5464         * tests/uninorm/test-u8-nfd.c: Likewise.
5465         * tests/uninorm/test-u8-nfkc.c: Likewise.
5466         * tests/uninorm/test-u8-nfkd.c: Likewise.
5467         * tests/uninorm/test-u8-normcmp.c: Likewise.
5468         * tests/uninorm/test-u8-normcoll.c: Likewise.
5469         * tests/uninorm/test-u16-nfc.c: Likewise.
5470         * tests/uninorm/test-u16-nfd.c: Likewise.
5471         * tests/uninorm/test-u16-nfkc.c: Likewise.
5472         * tests/uninorm/test-u16-nfkd.c: Likewise.
5473         * tests/uninorm/test-u16-normcmp.c: Likewise.
5474         * tests/uninorm/test-u16-normcoll.c: Likewise.
5475         * tests/uninorm/test-u32-nfc.c: Likewise.
5476         * tests/uninorm/test-u32-nfd.c: Likewise.
5477         * tests/uninorm/test-u32-nfkc.c: Likewise.
5478         * tests/uninorm/test-u32-nfkd.c: Likewise.
5479         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5480         * tests/uninorm/test-u32-normcmp.c: Likewise.
5481         * tests/uninorm/test-u32-normcoll.c: Likewise.
5482         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5483         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5484         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5485         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5486         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5487         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5488         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5489         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5490         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5491         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5492         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5493         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5494         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5495         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5496         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5497         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5498         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5499         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5500         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5501         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5502         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5503         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5504         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5505         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5506         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5507         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5508         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5509         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5510         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5511         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5512         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5513         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5514         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5515         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5516         * tests/uniwidth/test-u8-width.c: Likewise.
5517         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5518         * tests/uniwidth/test-u16-width.c: Likewise.
5519         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5520         * tests/uniwidth/test-u32-width.c: Likewise.
5521         * tests/uniwidth/test-uc_width.c: Likewise.
5522         * tests/uniwidth/test-uc_width2.c: Likewise.
5523         * modules/acl-tests (Files): Add tests/macros.h.
5524         * modules/areadlink-tests (Files): Likewise.
5525         * modules/areadlink-with-size-tests (Files): Likewise.
5526         * modules/areadlinkat-tests (Files): Likewise.
5527         * modules/areadlinkat-with-size-tests (Files): Likewise.
5528         * modules/argmatch-tests (Files): Likewise.
5529         * modules/argv-iter-tests (Files): Likewise.
5530         * modules/array-list-tests (Files): Likewise.
5531         * modules/array-mergesort-tests (Files): Likewise.
5532         * modules/array-oset-tests (Files): Likewise.
5533         * modules/avltree-list-tests (Files): Likewise.
5534         * modules/avltree-oset-tests (Files): Likewise.
5535         * modules/avltreehash-list-tests (Files): Likewise.
5536         * modules/base64-tests (Files): Likewise.
5537         * modules/binary-io-tests (Files): Likewise.
5538         * modules/bitrotate-tests (Files): Likewise.
5539         * modules/btowc-tests (Files): Likewise.
5540         * modules/byteswap-tests (Files): Likewise.
5541         * modules/c-ctype-tests (Files): Likewise.
5542         * modules/c-stack-tests (Files): Likewise.
5543         * modules/c-strcase-tests (Files): Likewise.
5544         * modules/c-strcasestr-tests (Files): Likewise.
5545         * modules/c-strstr-tests (Files): Likewise.
5546         * modules/canonicalize-lgpl-tests (Files): Likewise.
5547         * modules/canonicalize-tests (Files): Likewise.
5548         * modules/carray-list-tests (Files): Likewise.
5549         * modules/ceilf-tests (Files): Likewise.
5550         * modules/ceill-tests (Files): Likewise.
5551         * modules/chown-tests (Files): Likewise.
5552         * modules/cloexec-tests (Files): Likewise.
5553         * modules/copy-file-tests (Files): Likewise.
5554         * modules/count-one-bits-tests (Files): Likewise.
5555         * modules/dprintf-posix-tests (Files): Likewise.
5556         * modules/dup2-tests (Files): Likewise.
5557         * modules/dup3-tests (Files): Likewise.
5558         * modules/duplocale-tests (Files): Likewise.
5559         * modules/fbufmode-tests (Files): Likewise.
5560         * modules/fchdir-tests (Files): Likewise.
5561         * modules/fcntl-safer-tests (Files): Likewise.
5562         * modules/fcntl-tests (Files): Likewise.
5563         * modules/fdopendir-tests (Files): Likewise.
5564         * modules/fdutimensat-tests (Files): Likewise.
5565         * modules/fflush-tests (Files): Likewise.
5566         * modules/filevercmp-tests (Files): Likewise.
5567         * modules/flock-tests (Files): Likewise.
5568         * modules/floorf-tests (Files): Likewise.
5569         * modules/floorl-tests (Files): Likewise.
5570         * modules/fnmatch-tests (Files): Likewise.
5571         * modules/fopen-safer-tests (Files): Likewise.
5572         * modules/fopen-tests (Files): Likewise.
5573         * modules/fpending-tests (Files): Likewise.
5574         * modules/fprintf-posix-tests (Files): Likewise.
5575         * modules/fpurge-tests (Files): Likewise.
5576         * modules/freadable-tests (Files): Likewise.
5577         * modules/freadahead-tests (Files): Likewise.
5578         * modules/freading-tests (Files): Likewise.
5579         * modules/freadptr-tests (Files): Likewise.
5580         * modules/freadseek-tests (Files): Likewise.
5581         * modules/freopen-tests (Files): Likewise.
5582         * modules/frexp-nolibm-tests (Files): Likewise.
5583         * modules/frexp-tests (Files): Likewise.
5584         * modules/frexpl-nolibm-tests (Files): Likewise.
5585         * modules/frexpl-tests (Files): Likewise.
5586         * modules/fseek-tests (Files): Likewise.
5587         * modules/fseeko-tests (Files): Likewise.
5588         * modules/fstrcmp-tests (Files): Likewise.
5589         * modules/fsync-tests (Files): Likewise.
5590         * modules/ftell-tests (Files): Likewise.
5591         * modules/ftello-tests (Files): Likewise.
5592         * modules/func-tests (Files): Likewise.
5593         * modules/futimens-tests (Files): Likewise.
5594         * modules/fwritable-tests (Files): Likewise.
5595         * modules/fwriting-tests (Files): Likewise.
5596         * modules/getcwd-tests (Files): Likewise.
5597         * modules/getdate-tests (Files): Likewise.
5598         * modules/getdelim-tests (Files): Likewise.
5599         * modules/getdtablesize-tests (Files): Likewise.
5600         * modules/getgroups-tests (Files): Likewise.
5601         * modules/getline-tests (Files): Likewise.
5602         * modules/getndelim2-tests (Files): Likewise.
5603         * modules/glob-tests (Files): Likewise.
5604         * modules/hash-tests (Files): Likewise.
5605         * modules/i-ring-tests (Files): Likewise.
5606         * modules/iconv-tests (Files): Likewise.
5607         * modules/iconv_open-utf-tests (Files): Likewise.
5608         * modules/idpriv-drop-tests (Files): Likewise.
5609         * modules/idpriv-droptemp-tests (Files): Likewise.
5610         * modules/inet_ntop-tests (Files): Likewise.
5611         * modules/inet_pton-tests (Files): Likewise.
5612         * modules/isblank-tests (Files): Likewise.
5613         * modules/isfinite-tests (Files): Likewise.
5614         * modules/isinf-tests (Files): Likewise.
5615         * modules/isnan-tests (Files): Likewise.
5616         * modules/isnand-nolibm-tests (Files): Likewise.
5617         * modules/isnand-tests (Files): Likewise.
5618         * modules/isnanf-nolibm-tests (Files): Likewise.
5619         * modules/isnanf-tests (Files): Likewise.
5620         * modules/isnanl-nolibm-tests (Files): Likewise.
5621         * modules/isnanl-tests (Files): Likewise.
5622         * modules/lchown-tests (Files): Likewise.
5623         * modules/ldexpl-tests (Files): Likewise.
5624         * modules/link-tests (Files): Likewise.
5625         * modules/linkat-tests (Files): Likewise.
5626         * modules/linked-list-tests (Files): Likewise.
5627         * modules/linkedhash-list-tests (Files): Likewise.
5628         * modules/localename-tests (Files): Likewise.
5629         * modules/lseek-tests (Files): Likewise.
5630         * modules/lstat-tests (Files): Likewise.
5631         * modules/mbmemcasecmp-tests (Files): Likewise.
5632         * modules/mbmemcasecoll-tests (Files): Likewise.
5633         * modules/mbrtowc-tests (Files): Likewise.
5634         * modules/mbscasecmp-tests (Files): Likewise.
5635         * modules/mbscasestr-tests (Files): Likewise.
5636         * modules/mbschr-tests (Files): Likewise.
5637         * modules/mbscspn-tests (Files): Likewise.
5638         * modules/mbsinit-tests (Files): Likewise.
5639         * modules/mbsncasecmp-tests (Files): Likewise.
5640         * modules/mbsnrtowcs-tests (Files): Likewise.
5641         * modules/mbspbrk-tests (Files): Likewise.
5642         * modules/mbspcasecmp-tests (Files): Likewise.
5643         * modules/mbsrchr-tests (Files): Likewise.
5644         * modules/mbsrtowcs-tests (Files): Likewise.
5645         * modules/mbsspn-tests (Files): Likewise.
5646         * modules/mbsstr-tests (Files): Likewise.
5647         * modules/memchr-tests (Files): Likewise.
5648         * modules/memchr2-tests (Files): Likewise.
5649         * modules/memcmp-tests (Files): Likewise.
5650         * modules/memmem-tests (Files): Likewise.
5651         * modules/memrchr-tests (Files): Likewise.
5652         * modules/mkdir-tests (Files): Likewise.
5653         * modules/mkfifo-tests (Files): Likewise.
5654         * modules/mkfifoat-tests (Files): Likewise.
5655         * modules/mknod-tests (Files): Likewise.
5656         * modules/nanosleep-tests (Files): Likewise.
5657         * modules/nl_langinfo-tests (Files): Likewise.
5658         * modules/obstack-printf-tests (Files): Likewise.
5659         * modules/open-tests (Files): Likewise.
5660         * modules/openat-tests (Files): Likewise.
5661         * modules/pipe-filter-gi-tests (Files): Likewise.
5662         * modules/pipe-filter-ii-tests (Files): Likewise.
5663         * modules/pipe2-tests (Files): Likewise.
5664         * modules/popen-safer-tests (Files): Likewise.
5665         * modules/popen-tests (Files): Likewise.
5666         * modules/posixtm-tests (Files): Likewise.
5667         * modules/pread-tests (Files): Likewise.
5668         * modules/printf-frexp-tests (Files): Likewise.
5669         * modules/printf-frexpl-tests (Files): Likewise.
5670         * modules/printf-posix-tests (Files): Likewise.
5671         * modules/priv-set-tests (Files): Likewise.
5672         * modules/quotearg-tests (Files): Likewise.
5673         * modules/random_r-tests (Files): Likewise.
5674         * modules/rawmemchr-tests (Files): Likewise.
5675         * modules/rbtree-list-tests (Files): Likewise.
5676         * modules/rbtree-oset-tests (Files): Likewise.
5677         * modules/rbtreehash-list-tests (Files): Likewise.
5678         * modules/readlink-tests (Files): Likewise.
5679         * modules/remove-tests (Files): Likewise.
5680         * modules/rename-tests (Files): Likewise.
5681         * modules/renameat-tests (Files): Likewise.
5682         * modules/rmdir-tests (Files): Likewise.
5683         * modules/round-tests (Files): Likewise.
5684         * modules/roundf-tests (Files): Likewise.
5685         * modules/roundl-tests (Files): Likewise.
5686         * modules/safe-alloc-tests (Files): Likewise.
5687         * modules/setenv-tests (Files): Likewise.
5688         * modules/sigaction-tests (Files): Likewise.
5689         * modules/signbit-tests (Files): Likewise.
5690         * modules/sleep-tests (Files): Likewise.
5691         * modules/snprintf-posix-tests (Files): Likewise.
5692         * modules/snprintf-tests (Files): Likewise.
5693         * modules/sprintf-posix-tests (Files): Likewise.
5694         * modules/stat-tests (Files): Likewise.
5695         * modules/stat-time-tests (Files): Likewise.
5696         * modules/strcasestr-tests (Files): Likewise.
5697         * modules/strchrnul-tests (Files): Likewise.
5698         * modules/strerror-tests (Files): Likewise.
5699         * modules/striconv-tests (Files): Likewise.
5700         * modules/striconveh-tests (Files): Likewise.
5701         * modules/striconveha-tests (Files): Likewise.
5702         * modules/strsignal-tests (Files): Likewise.
5703         * modules/strstr-tests (Files): Likewise.
5704         * modules/strtod-tests (Files): Likewise.
5705         * modules/strverscmp-tests (Files): Likewise.
5706         * modules/symlink-tests (Files): Likewise.
5707         * modules/symlinkat-tests (Files): Likewise.
5708         * modules/trunc-tests (Files): Likewise.
5709         * modules/truncf-tests (Files): Likewise.
5710         * modules/truncl-tests (Files): Likewise.
5711         * modules/uname-tests (Files): Likewise.
5712         * modules/unicase/cased-tests (Files): Likewise.
5713         * modules/unicase/ignorable-tests (Files): Likewise.
5714         * modules/unicase/locale-language-tests (Files): Likewise.
5715         * modules/unicase/tolower-tests (Files): Likewise.
5716         * modules/unicase/totitle-tests (Files): Likewise.
5717         * modules/unicase/toupper-tests (Files): Likewise.
5718         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5719         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5720         * modules/unicase/u8-casefold-tests (Files): Likewise.
5721         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5722         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5723         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5724         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5725         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5726         * modules/unicase/u8-tolower-tests (Files): Likewise.
5727         * modules/unicase/u8-totitle-tests (Files): Likewise.
5728         * modules/unicase/u8-toupper-tests (Files): Likewise.
5729         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5730         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5731         * modules/unicase/u16-casefold-tests (Files): Likewise.
5732         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5733         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5734         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5735         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5736         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5737         * modules/unicase/u16-tolower-tests (Files): Likewise.
5738         * modules/unicase/u16-totitle-tests (Files): Likewise.
5739         * modules/unicase/u16-toupper-tests (Files): Likewise.
5740         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5741         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5742         * modules/unicase/u32-casefold-tests (Files): Likewise.
5743         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5744         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5745         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5746         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5747         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5748         * modules/unicase/u32-tolower-tests (Files): Likewise.
5749         * modules/unicase/u32-totitle-tests (Files): Likewise.
5750         * modules/unicase/u32-toupper-tests (Files): Likewise.
5751         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5752         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5753         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5754         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5755         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5756         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5757         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5758         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5759         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5760         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5761         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5762         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5763         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5764         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5765         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5766         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5767         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5768         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5769         * modules/unictype/block-list-tests (Files): Likewise.
5770         * modules/unictype/block-of-tests (Files): Likewise.
5771         * modules/unictype/block-test-tests (Files): Likewise.
5772         * modules/unictype/category-C-tests (Files): Likewise.
5773         * modules/unictype/category-Cc-tests (Files): Likewise.
5774         * modules/unictype/category-Cf-tests (Files): Likewise.
5775         * modules/unictype/category-Cn-tests (Files): Likewise.
5776         * modules/unictype/category-Co-tests (Files): Likewise.
5777         * modules/unictype/category-Cs-tests (Files): Likewise.
5778         * modules/unictype/category-L-tests (Files): Likewise.
5779         * modules/unictype/category-Ll-tests (Files): Likewise.
5780         * modules/unictype/category-Lm-tests (Files): Likewise.
5781         * modules/unictype/category-Lo-tests (Files): Likewise.
5782         * modules/unictype/category-Lt-tests (Files): Likewise.
5783         * modules/unictype/category-Lu-tests (Files): Likewise.
5784         * modules/unictype/category-M-tests (Files): Likewise.
5785         * modules/unictype/category-Mc-tests (Files): Likewise.
5786         * modules/unictype/category-Me-tests (Files): Likewise.
5787         * modules/unictype/category-Mn-tests (Files): Likewise.
5788         * modules/unictype/category-N-tests (Files): Likewise.
5789         * modules/unictype/category-Nd-tests (Files): Likewise.
5790         * modules/unictype/category-Nl-tests (Files): Likewise.
5791         * modules/unictype/category-No-tests (Files): Likewise.
5792         * modules/unictype/category-P-tests (Files): Likewise.
5793         * modules/unictype/category-Pc-tests (Files): Likewise.
5794         * modules/unictype/category-Pd-tests (Files): Likewise.
5795         * modules/unictype/category-Pe-tests (Files): Likewise.
5796         * modules/unictype/category-Pf-tests (Files): Likewise.
5797         * modules/unictype/category-Pi-tests (Files): Likewise.
5798         * modules/unictype/category-Po-tests (Files): Likewise.
5799         * modules/unictype/category-Ps-tests (Files): Likewise.
5800         * modules/unictype/category-S-tests (Files): Likewise.
5801         * modules/unictype/category-Sc-tests (Files): Likewise.
5802         * modules/unictype/category-Sk-tests (Files): Likewise.
5803         * modules/unictype/category-Sm-tests (Files): Likewise.
5804         * modules/unictype/category-So-tests (Files): Likewise.
5805         * modules/unictype/category-Z-tests (Files): Likewise.
5806         * modules/unictype/category-Zl-tests (Files): Likewise.
5807         * modules/unictype/category-Zp-tests (Files): Likewise.
5808         * modules/unictype/category-Zs-tests (Files): Likewise.
5809         * modules/unictype/category-and-not-tests (Files): Likewise.
5810         * modules/unictype/category-and-tests (Files): Likewise.
5811         * modules/unictype/category-byname-tests (Files): Likewise.
5812         * modules/unictype/category-name-tests (Files): Likewise.
5813         * modules/unictype/category-none-tests (Files): Likewise.
5814         * modules/unictype/category-of-tests (Files): Likewise.
5815         * modules/unictype/category-or-tests (Files): Likewise.
5816         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5817         * modules/unictype/combining-class-tests (Files): Likewise.
5818         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5819         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5820         * modules/unictype/ctype-blank-tests (Files): Likewise.
5821         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5822         * modules/unictype/ctype-digit-tests (Files): Likewise.
5823         * modules/unictype/ctype-graph-tests (Files): Likewise.
5824         * modules/unictype/ctype-lower-tests (Files): Likewise.
5825         * modules/unictype/ctype-print-tests (Files): Likewise.
5826         * modules/unictype/ctype-punct-tests (Files): Likewise.
5827         * modules/unictype/ctype-space-tests (Files): Likewise.
5828         * modules/unictype/ctype-upper-tests (Files): Likewise.
5829         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5830         * modules/unictype/decimal-digit-tests (Files): Likewise.
5831         * modules/unictype/digit-tests (Files): Likewise.
5832         * modules/unictype/mirror-tests (Files): Likewise.
5833         * modules/unictype/numeric-tests (Files): Likewise.
5834         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5835         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5836         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5837         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5838         Likewise.
5839         * modules/unictype/property-bidi-block-separator-tests (Files):
5840         Likewise.
5841         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5842         Likewise.
5843         * modules/unictype/property-bidi-common-separator-tests (Files):
5844         Likewise.
5845         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5846         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5847         Likewise.
5848         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5849         Likewise.
5850         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5851         Likewise.
5852         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5853         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5854         Likewise.
5855         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5856         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5857         Likewise.
5858         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5859         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5860         * modules/unictype/property-bidi-segment-separator-tests (Files):
5861         Likewise.
5862         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5863         * modules/unictype/property-byname-tests (Files): Likewise.
5864         * modules/unictype/property-combining-tests (Files): Likewise.
5865         * modules/unictype/property-composite-tests (Files): Likewise.
5866         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5867         * modules/unictype/property-dash-tests (Files): Likewise.
5868         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5869         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5870         Likewise.
5871         * modules/unictype/property-deprecated-tests (Files): Likewise.
5872         * modules/unictype/property-diacritic-tests (Files): Likewise.
5873         * modules/unictype/property-extender-tests (Files): Likewise.
5874         * modules/unictype/property-format-control-tests (Files): Likewise.
5875         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5876         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5877         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5878         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5879         * modules/unictype/property-hyphen-tests (Files): Likewise.
5880         * modules/unictype/property-id-continue-tests (Files): Likewise.
5881         * modules/unictype/property-id-start-tests (Files): Likewise.
5882         * modules/unictype/property-ideographic-tests (Files): Likewise.
5883         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5884         * modules/unictype/property-ids-trinary-operator-tests (Files):
5885         Likewise.
5886         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5887         * modules/unictype/property-iso-control-tests (Files): Likewise.
5888         * modules/unictype/property-join-control-tests (Files): Likewise.
5889         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5890         * modules/unictype/property-line-separator-tests (Files): Likewise.
5891         * modules/unictype/property-logical-order-exception-tests (Files):
5892         Likewise.
5893         * modules/unictype/property-lowercase-tests (Files): Likewise.
5894         * modules/unictype/property-math-tests (Files): Likewise.
5895         * modules/unictype/property-non-break-tests (Files): Likewise.
5896         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5897         * modules/unictype/property-numeric-tests (Files): Likewise.
5898         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5899         * modules/unictype/property-other-default-ignorable-code-point-tests
5900         (Files): Likewise.
5901         * modules/unictype/property-other-grapheme-extend-tests (Files):
5902         Likewise.
5903         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5904         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5905         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5906         * modules/unictype/property-other-math-tests (Files): Likewise.
5907         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5908         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5909         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5910         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5911         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5912         * modules/unictype/property-private-use-tests (Files): Likewise.
5913         * modules/unictype/property-punctuation-tests (Files): Likewise.
5914         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5915         * modules/unictype/property-radical-tests (Files): Likewise.
5916         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5917         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5918         * modules/unictype/property-space-tests (Files): Likewise.
5919         * modules/unictype/property-terminal-punctuation-tests (Files):
5920         Likewise.
5921         * modules/unictype/property-test-tests (Files): Likewise.
5922         * modules/unictype/property-titlecase-tests (Files): Likewise.
5923         * modules/unictype/property-unassigned-code-value-tests (Files):
5924         Likewise.
5925         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5926         * modules/unictype/property-uppercase-tests (Files): Likewise.
5927         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5928         * modules/unictype/property-white-space-tests (Files): Likewise.
5929         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5930         * modules/unictype/property-xid-start-tests (Files): Likewise.
5931         * modules/unictype/property-zero-width-tests (Files): Likewise.
5932         * modules/unictype/scripts-tests (Files): Likewise.
5933         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5934         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5935         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5936         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5937         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5938         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5939         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5940         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5941         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5942         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5943         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5944         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5945         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5946         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5947         * modules/uninorm/composition-tests (Files): Likewise.
5948         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5949         * modules/uninorm/decomposition-tests (Files): Likewise.
5950         * modules/uninorm/filter-tests (Files): Likewise.
5951         * modules/uninorm/nfc-tests (Files): Likewise.
5952         * modules/uninorm/nfd-tests (Files): Likewise.
5953         * modules/uninorm/nfkc-tests (Files): Likewise.
5954         * modules/uninorm/nfkd-tests (Files): Likewise.
5955         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5956         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5957         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5958         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5959         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5960         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5961         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5962         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5963         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5964         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5965         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5966         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5967         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5968         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5969         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5970         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5971         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5972         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5973         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5974         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5975         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5976         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5977         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5978         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5979         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5980         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5981         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5982         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5983         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5984         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5985         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5986         * modules/uniwidth/u8-width-tests (Files): Likewise.
5987         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5988         * modules/uniwidth/u16-width-tests (Files): Likewise.
5989         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5990         * modules/uniwidth/u32-width-tests (Files): Likewise.
5991         * modules/uniwidth/width-tests (Files): Likewise.
5992         * modules/unlink-tests (Files): Likewise.
5993         * modules/unsetenv-tests (Files): Likewise.
5994         * modules/usleep-tests (Files): Likewise.
5995         * modules/utimens-tests (Files): Likewise.
5996         * modules/utimensat-tests (Files): Likewise.
5997         * modules/vasnprintf-posix-tests (Files): Likewise.
5998         * modules/vasnprintf-tests (Files): Likewise.
5999         * modules/vasprintf-posix-tests (Files): Likewise.
6000         * modules/vasprintf-tests (Files): Likewise.
6001         * modules/vdprintf-posix-tests (Files): Likewise.
6002         * modules/vfprintf-posix-tests (Files): Likewise.
6003         * modules/vprintf-posix-tests (Files): Likewise.
6004         * modules/vsnprintf-posix-tests (Files): Likewise.
6005         * modules/vsnprintf-tests (Files): Likewise.
6006         * modules/vsprintf-posix-tests (Files): Likewise.
6007         * modules/wcrtomb-tests (Files): Likewise.
6008         * modules/wcsnrtombs-tests (Files): Likewise.
6009         * modules/wcsrtombs-tests (Files): Likewise.
6010         * modules/wctype-tests (Files): Likewise.
6011         * modules/wcwidth-tests (Files): Likewise.
6012         * modules/xmemdup0-tests (Files): Likewise.
6013         * modules/xprintf-posix-tests (Files): Likewise.
6014         * modules/xvasprintf-tests (Files): Likewise.
6015
6016 2009-12-24  Eric Blake  <ebb9@byu.net>
6017
6018         test-nanosleep: fix typo
6019         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6020         patch.
6021         Reported by Bruno Haible.
6022
6023 2009-12-24  Bruno Haible  <bruno@clisp.org>
6024
6025         Reduce namespace pollution on glibc systems.
6026         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6027         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6028         systems.
6029         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6030         <getopt.h> on glibc systems.
6031         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6032         systems.
6033         * lib/fcntl.c: Include <unistd.h> here instead.
6034
6035 2009-12-24  Bruno Haible  <bruno@clisp.org>
6036
6037         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6038
6039 2009-12-24  Eric Blake  <ebb9@byu.net>
6040
6041         tests: add signature checks
6042         * tests/signature.h (SIGNATURE_CHECK): New file.
6043         * modules/atexit-tests (Files): Use it.
6044         * modules/btowc-tests (Files): Likewise.
6045         * modules/canonicalize-lgpl-tests (Files): Likewise.
6046         * modules/ceilf-tests (Files): Likewise.
6047         * modules/ceill-tests (Files): Likewise.
6048         * modules/chown-tests (Files): Likewise.
6049         * modules/dprintf-posix-tests (Files): Likewise.
6050         * modules/dup2-tests (Files): Likewise.
6051         * modules/dup3-tests (Files): Likewise.
6052         * modules/duplocale-tests (Files): Likewise.
6053         * modules/fchdir-tests (Files): Likewise.
6054         * modules/fcntl-tests (Files): Likewise.
6055         * modules/fdopendir-tests (Files): Likewise.
6056         * modules/fflush-tests (Files): Likewise.
6057         * modules/flock-tests (Files): Likewise.
6058         * modules/floorf-tests (Files): Likewise.
6059         * modules/floorl-tests (Files): Likewise.
6060         * modules/fnmatch-tests (Files): Likewise.
6061         * modules/fopen-tests (Files): Likewise.
6062         * modules/fprintf-posix-tests (Files): Likewise.
6063         * modules/freopen-tests (Files): Likewise.
6064         * modules/frexp-nolibm-tests (Files): Likewise.
6065         * modules/frexp-tests (Files): Likewise.
6066         * modules/frexpl-nolibm-tests (Files): Likewise.
6067         * modules/frexpl-tests (Files): Likewise.
6068         * modules/fseek-tests (Files): Likewise.
6069         * modules/fseeko-tests (Files): Likewise.
6070         * modules/fsync-tests (Files): Likewise.
6071         * modules/ftell-tests (Files): Likewise.
6072         * modules/ftello-tests (Files): Likewise.
6073         * modules/futimens-tests (Files): Likewise.
6074         * modules/getaddrinfo-tests (Files): Likewise.
6075         * modules/getcwd-tests (Files): Likewise.
6076         * modules/getdelim-tests (Files): Likewise.
6077         * modules/getdtablesize-tests (Files): Likewise.
6078         * modules/getgroups-tests (Files): Likewise.
6079         * modules/gethostname-tests (Files): Likewise.
6080         * modules/getline-tests (Files): Likewise.
6081         * modules/getopt-posix-tests (Files): Likewise.
6082         * modules/gettimeofday-tests (Files): Likewise.
6083         * modules/glob-tests (Files): Likewise.
6084         * modules/iconv-tests (Files): Likewise.
6085         * modules/inet_ntop-tests (Files): Likewise.
6086         * modules/inet_pton-tests (Files): Likewise.
6087         * modules/isblank-tests (Files): Likewise.
6088         * modules/lchown-tests (Files): Likewise.
6089         * modules/ldexpl-tests (Files): Likewise.
6090         * modules/link-tests (Files): Likewise.
6091         * modules/linkat-tests (Files): Likewise.
6092         * modules/lseek-tests (Files): Likewise.
6093         * modules/lstat-tests (Files): Likewise.
6094         * modules/mbrtowc-tests (Files): Likewise.
6095         * modules/mbsinit-tests (Files): Likewise.
6096         * modules/mbsnrtowcs-tests (Files): Likewise.
6097         * modules/mbsrtowcs-tests (Files): Likewise.
6098         * modules/memchr-tests (Files): Likewise.
6099         * modules/memcmp-tests (Files): Likewise.
6100         * modules/memmem-tests (Files): Likewise.
6101         * modules/memrchr-tests (Files): Likewise.
6102         * modules/mkdir-tests (Files): Likewise.
6103         * modules/mkfifo-tests (Files): Likewise.
6104         * modules/mkfifoat-tests (Files): Likewise.
6105         * modules/mknod-tests (Files): Likewise.
6106         * modules/nanosleep-tests (Files): Likewise.
6107         * modules/nl_langinfo-tests (Files): Likewise.
6108         * modules/obstack-printf-tests (Files): Likewise.
6109         * modules/open-tests (Files): Likewise.
6110         * modules/openat-tests (Files): Likewise.
6111         * modules/perror-tests (Files): Likewise.
6112         * modules/pipe2-tests (Files): Likewise.
6113         * modules/poll-tests (Files): Likewise.
6114         * modules/popen-tests (Files): Likewise.
6115         * modules/posix_spawn-tests (Files): Likewise.
6116         * modules/posix_spawnp-tests (Files): Likewise.
6117         * modules/pread-tests (Files): Likewise.
6118         * modules/printf-posix-tests (Files): Likewise.
6119         * modules/pty-tests (Files): Likewise.
6120         * modules/random_r-tests (Files): Likewise.
6121         * modules/rawmemchr-tests (Files): Likewise.
6122         * modules/readlink-tests (Files): Likewise.
6123         * modules/remove-tests (Files): Likewise.
6124         * modules/rename-tests (Files): Likewise.
6125         * modules/renameat-tests (Files): Likewise.
6126         * modules/rmdir-tests (Files): Likewise.
6127         * modules/round-tests (Files): Likewise.
6128         * modules/roundf-tests (Files): Likewise.
6129         * modules/roundl-tests (Files): Likewise.
6130         * modules/select-tests (Files): Likewise.
6131         * modules/setenv-tests (Files): Likewise.
6132         * modules/sigaction-tests (Files): Likewise.
6133         * modules/sleep-tests (Files): Likewise.
6134         * modules/snprintf-posix-tests (Files): Likewise.
6135         * modules/snprintf-tests (Files): Likewise.
6136         * modules/sprintf-posix-tests (Files): Likewise.
6137         * modules/stat-tests (Files): Likewise.
6138         * modules/strcasestr-tests (Files): Likewise.
6139         * modules/strchrnul-tests (Files): Likewise.
6140         * modules/strerror-tests (Files): Likewise.
6141         * modules/strsignal-tests (Files): Likewise.
6142         * modules/strstr-tests (Files): Likewise.
6143         * modules/strtod-tests (Files): Likewise.
6144         * modules/strverscmp-tests (Files): Likewise.
6145         * modules/symlink-tests (Files): Likewise.
6146         * modules/symlinkat-tests (Files): Likewise.
6147         * modules/times-tests (Files): Likewise.
6148         * modules/trunc-tests (Files): Likewise.
6149         * modules/truncf-tests (Files): Likewise.
6150         * modules/truncl-tests (Files): Likewise.
6151         * modules/tsearch-tests (Files): Likewise.
6152         * modules/uname-tests (Files): Likewise.
6153         * modules/unlink-tests (Files): Likewise.
6154         * modules/unsetenv-tests (Files): Likewise.
6155         * modules/usleep-tests (Files): Likewise.
6156         * modules/utimensat-tests (Files): Likewise.
6157         * modules/vasprintf-tests (Files): Likewise.
6158         * modules/vdprintf-posix-tests (Files): Likewise.
6159         * modules/vfprintf-posix-tests (Files): Likewise.
6160         * modules/vprintf-posix-tests (Files): Likewise.
6161         * modules/vsnprintf-posix-tests (Files): Likewise.
6162         * modules/vsnprintf-tests (Files): Likewise.
6163         * modules/vsprintf-posix-tests (Files): Likewise.
6164         * modules/wcrtomb-tests (Files): Likewise.
6165         * modules/wcsnrtombs-tests (Files): Likewise.
6166         * modules/wcsrtombs-tests (Files): Likewise.
6167         * modules/wcwidth-tests (Files): Likewise.
6168         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6169         * tests/test-isinf.c (isinf): Likewise.
6170         * tests/test-isnan.c (isnan): Likewise.
6171         * tests/test-signbit.c (signbit): Likewise.
6172         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6173         declaration, either as macro or with correct signature.
6174         (select): Ensure function under test is declared with correct
6175         signature in correct header.
6176         * tests/test-atexit.c (atexit): Likewise.
6177         * tests/test-btowc.c (btowc): Likewise.
6178         * tests/test-canonicalize-lgpl.c (realpath)
6179         (canonicalize_file_name): Likewise.
6180         * tests/test-ceilf1.c (ceilf): Likewise.
6181         * tests/test-ceill.c (ceill): Likewise.
6182         * tests/test-chown.c (chown): Likewise.
6183         * tests/test-dprintf-posix.c (dprintf): Likewise.
6184         * tests/test-dup2.c (dup2): Likewise.
6185         * tests/test-dup3.c (dup3): Likewise.
6186         * tests/test-duplocale.c (duplocale): Likewise.
6187         * tests/test-fchdir.c (fchdir): Likewise.
6188         * tests/test-fchownat.c (fchownat): Likewise.
6189         * tests/test-fcntl.c (fcntl): Likewise.
6190         * tests/test-fdopendir.c (fdopendir): Likewise.
6191         * tests/test-fflush.c (fflush): Likewise.
6192         * tests/test-flock.c (flock): Likewise.
6193         * tests/test-floorf1.c (floorf): Likewise.
6194         * tests/test-floorl.c (floorl): Likewise.
6195         * tests/test-fnmatch.c (fnmatch): Likewise.
6196         * tests/test-fopen.c (fopen): Likewise.
6197         * tests/test-fprintf-posix.c (fprintf): Likewise.
6198         * tests/test-freopen.c (freopen): Likewise.
6199         * tests/test-frexp.c (frexp): Likewise.
6200         * tests/test-frexpl.c (frexpl): Likewise.
6201         * tests/test-fseek.c (fseek): Likewise.
6202         * tests/test-fseeko.c (fseeko): Likewise.
6203         * tests/test-fstatat.c (fstatat): Likewise.
6204         * tests/test-fsync.c (fsync): Likewise.
6205         * tests/test-ftell.c (ftell): Likewise.
6206         * tests/test-ftello.c (ftello): Likewise.
6207         * tests/test-futimens.c (futimens): Likewise.
6208         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6209         (gai_strerror): Likewise.
6210         * tests/test-getcwd.c (getcwd): Likewise.
6211         * tests/test-getdelim.c (getdelim): Likewise.
6212         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6213         * tests/test-getgroups.c (getgroups): Likewise.
6214         * tests/test-gethostname.c (gethostname): Likewise.
6215         * tests/test-getline.c (getline): Likewise.
6216         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6217         Likewise.
6218         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6219         * tests/test-glob.c (glob, globfree): Likewise.
6220         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6221         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6222         * tests/test-inet_pton.c (inet_pton): Likewise.
6223         * tests/test-isblank.c (isblank): Likewise.
6224         * tests/test-lchown.c (lchown): Likewise.
6225         * tests/test-ldexpl.c (ldexpl): Likewise.
6226         * tests/test-link.c (link): Likewise.
6227         * tests/test-linkat.c (linkat): Likewise.
6228         * tests/test-lseek.c (lseek): Likewise.
6229         * tests/test-lstat.c (lstat): Likewise.
6230         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6231         * tests/test-mbsinit.c (mbsinit): Likewise.
6232         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6233         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6234         * tests/test-memchr.c (memchr): Likewise.
6235         * tests/test-memcmp.c (memcmp): Likewise.
6236         * tests/test-memmem.c (memmem): Likewise.
6237         * tests/test-memrchr.c (memrchr): Likewise.
6238         * tests/test-mkdir.c (mkdir): Likewise.
6239         * tests/test-mkdirat.c (mkdirat): Likewise.
6240         * tests/test-mkfifo.c (mkfifo): Likewise.
6241         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6242         * tests/test-mknod.c (mknod): Likewise.
6243         * tests/test-nanosleep.c (nanosleep): Likewise.
6244         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6245         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6246         Likewise.
6247         * tests/test-open.c (open): Likewise.
6248         * tests/test-openat.c (openat): Likewise.
6249         * tests/test-perror.c (perror): Likewise.
6250         * tests/test-pipe2.c (pipe2): Likewise.
6251         * tests/test-poll.c (poll): Likewise.
6252         * tests/test-popen.c (popen, pclose): Likewise.
6253         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6254         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6255         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6256         (posix_spawn_file_actions_destroy)
6257         (posix_spawn_file_actions_addclose)
6258         (posix_spawn_file_actions_addopen)
6259         (posix_spawn_file_actions_adddup2): Likewise.
6260         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6261         * tests/test-pread.c (pread): Likewise.
6262         * tests/test-printf-posix.c (printf): Likewise.
6263         * tests/test-pty.c (openpty, forkpty): Likewise.
6264         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6265         (random_r): Likewise.
6266         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6267         * tests/test-readlink.c (readlink): Likewise.
6268         * tests/test-remove.c (remove): Likewise.
6269         * tests/test-rename.c (rename): Likewise.
6270         * tests/test-renameat.c (renameat): Likewise.
6271         * tests/test-rmdir.c (rmdir): Likewise.
6272         * tests/test-round1.c (round): Likewise.
6273         * tests/test-roundf1.c (roundf): Likewise.
6274         * tests/test-roundl.c (roundl): Likewise.
6275         * tests/test-setenv.c (setenv): Likewise.
6276         * tests/test-sigaction.c (sigaction): Likewise.
6277         * tests/test-sleep.c (sleep): Likewise.
6278         * tests/test-snprintf.c (snprintf): Likewise.
6279         * tests/test-sprintf-posix.c (sprintf): Likewise.
6280         * tests/test-stat.c (stat): Likewise.
6281         * tests/test-stpncpy.c (stpncpy): Likewise.
6282         * tests/test-strcasestr.c (strcasestr): Likewise.
6283         * tests/test-strchrnul.c (strchrnul): Likewise.
6284         * tests/test-strerror.c (strerror): Likewise.
6285         * tests/test-strsignal.c (strsignal): Likewise.
6286         * tests/test-strstr.c (strstr): Likewise.
6287         * tests/test-strtod.c (strtod): Likewise.
6288         * tests/test-strverscmp.c (strverscmp): Likewise.
6289         * tests/test-symlink.c (symlink): Likewise.
6290         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6291         * tests/test-times.c (times): Likewise.
6292         * tests/test-trunc1.c (trunc): Likewise.
6293         * tests/test-truncf1.c (truncf): Likewise.
6294         * tests/test-truncl.c (truncl): Likewise.
6295         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6296         Likewise.
6297         * tests/test-uname.c (uname): Likewise.
6298         * tests/test-unlink.c (unlink): Likewise.
6299         * tests/test-unlinkat.c (unlinkat): Likewise.
6300         * tests/test-unsetenv.c (unsetenv): Likewise.
6301         * tests/test-usleep.c (usleep): Likewise.
6302         * tests/test-utimensat.c (utimensat): Likewise.
6303         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6304         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6305         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6306         * tests/test-vprintf-posix.c (vprintf): Likewise.
6307         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6308         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6309         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6310         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6311         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6312         * tests/test-wcwidth.c (wcwidth): Likewise.
6313
6314         build: pull in conditional headers during GNULIB_POSIXCHECK
6315         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6316         definitions from any conditionally-included headers.
6317         * lib/stdlib.in.h (includes): Likewise.
6318         * lib/unistd.in.h (includes): Likewise.
6319
6320 2009-12-24  Bruno Haible  <bruno@clisp.org>
6321
6322         * tests/test-argv-iter.c: Include header file being tested immediately
6323         after config.h.
6324         * tests/test-base64.c: Likewise.
6325         * tests/test-flock.c: Likewise.
6326         * tests/test-fsync.c: Likewise.
6327         * tests/test-getdate.c: Likewise.
6328         * tests/test-getndelim2.c: Likewise.
6329         * tests/test-isfinite.c: Likewise.
6330         * tests/test-isinf.c: Likewise.
6331         * tests/test-strerror.c: Likewise.
6332         * tests/test-strsignal.c: Likewise.
6333
6334 2009-12-23  Eric Blake  <ebb9@byu.net>
6335
6336         unistd: work around cygwin bug
6337         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6338         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6339         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6340
6341 2009-12-23  Bruno Haible  <bruno@clisp.org>
6342
6343         localename: More tests.
6344         * tests/test-localename.c (SIZEOF): New macro.
6345         (categories): New variable.
6346         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6347         test_locale_name_default): Add test w.r.t. thread locale.
6348         (test_locale_name_thread): New function.
6349         (main): Invoke it.
6350
6351         localename: Make aware of thread locale.
6352         * lib/localename.h (gl_locale_name_thread): New declaration.
6353         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6354         behaviour with respect to thread locale.
6355         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6356         <langinfo.h>, glthread/lock.h.
6357         (SIZE_BITS): New macro.
6358         (string_hash): New function.
6359         (struct hash_node): New type.
6360         (HASH_TABLE_SIZE): New macro.
6361         (struniq_hash_table, struniq_lock): New variables.
6362         (struniq): New function.
6363         (gl_locale_name_thread): New function.
6364         (gl_locale_name): Invoke it.
6365         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6366         * modules/localename (Depends-on): Add lock.
6367         Reported by Mike Gran <spk121@yahoo.com>.
6368
6369 2009-12-23  Eric Blake  <ebb9@byu.net>
6370
6371         va-args: new module
6372         * modules/va-args: New file.
6373         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6374         * MODULES.html.sh (Core language properties): Mention it.
6375
6376         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6377         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6378         named alias for __attribute__((__unused__)).
6379         * lib/chown.c: Update client.
6380         * lib/fchmodat.c: Likewise.
6381         * lib/fts.c: Likewise.
6382         * lib/getdate.y: Likewise.
6383         * lib/getgroups.c: Likewise.
6384         * lib/getopt.c: Likewise.
6385         * lib/getugroups.c: Likewise.
6386         * lib/mkdir.c: Likewise.
6387         * lib/mkfifo.c: Likewise.
6388         * lib/mkfifoat.c: Likewise.
6389         * lib/mknod.c: Likewise.
6390         * lib/mknodat.c: Likewise.
6391         * lib/readlink.c: Likewise.
6392         * lib/se-context.in.h: Likewise.
6393         * lib/se-selinux.in.h: Likewise.
6394         * lib/sockets.c: Likewise.
6395         * lib/symlink.c: Likewise.
6396         * lib/symlinkat.c: Likewise.
6397         * lib/unicodeio.c: Likewise.
6398         * lib/unistr.h: Likewise.
6399         * tests/test-areadlink.c: Likewise.
6400         * tests/test-areadlinkat.c: Likewise.
6401         * tests/test-filenamecat.c: Likewise.
6402         * tests/test-fseeko.c: Likewise.
6403         * tests/test-ftello.c: Likewise.
6404         * tests/test-getdate.c: Likewise.
6405         * tests/test-getgroups.c: Likewise.
6406         * tests/test-gethostname.c: Likewise.
6407         * tests/test-quotearg.c: Likewise.
6408         * tests/test-version-etc.c: Likewise.
6409         * tests/test-xalloc-die.c: Likewise.
6410         * tests/test-xfprintf-posix.c: Likewise.
6411         * tests/test-xprintf-posix.c: Likewise.
6412         * tests/test-xvasprintf.c: Likewise.
6413
6414         tests: avoid compiler warnings
6415         * tests/test-fcntl.c (main): Delete unused parameters.
6416         * tests/test-freopen-safer.c (main): Likewise.
6417         * tests/test-xalloc-die.c (main): Mark unused parameters.
6418         * tests/test-fseeko.c (main): Likewise.
6419         * tests/test-ftello.c (main): Likewise.
6420         * tests/test-nanosleep.c (main): Avoid declaration warning.
6421         * tests/test-sleep.c (main): Likewise.
6422         * tests/test-unsetenv.c (main): Silence warning about string
6423         literal.
6424         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6425
6426 2009-12-23  Bruno Haible  <bruno@clisp.org>
6427
6428         * tests/test-localename.c (test_locale_name): New function, extracted
6429         from main. Also test mixed situations.
6430         (test_locale_name_posix, test_locale_name_environ,
6431         test_locale_name_default): New functions.
6432         (main): Invoke them all.
6433         * modules/localename-tests (configure.ac): Test for newlocale.
6434
6435 2009-12-23  Bruno Haible  <bruno@clisp.org>
6436
6437         unistd: Ensure getcwd gets declared before being overridden.
6438         * lib/unistd.in.h: Conditionally include <io.h>.
6439
6440 2009-12-22  Bruno Haible  <bruno@clisp.org>
6441
6442         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6443         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6444         (gl_WCHAR_H): Invoke it.
6445         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6446         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6447         Reported by Karl Berry <karl@freefriends.org>.
6448
6449 2009-12-22  Eric Blake  <ebb9@byu.net>
6450
6451         math, unistd: avoid redundant includes
6452         * lib/math.in.h (isnan): No need to re-include <math.h>.
6453         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6454
6455         getsubopt: work around cygwin bug
6456         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6457         avoid conflicting with system getsubopt.
6458         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6459         bug.
6460
6461         getopt: synchronize from glibc
6462         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6463         parameter order.  Adjust all callers.
6464         (_getopt_internal_r, main): Adjust quoting in error messages.
6465         Drop considerations for outdated POSIX 1003.2 error message.
6466         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6467         callers.
6468         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6469
6470         test-getopt: test stderr behavior
6471         * modules/getopt-posix-tests (Depends-on): Add dup2.
6472         * tests/test-getopt.c (ASSERT): Avoid stderr.
6473         (main): Move stderr to a temporary file.
6474         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6475         Instead, add parameter to inform caller if output occurred.
6476         (test_getopt): Adjust all existing tests to expect silence, and
6477         add new tests of leading ":".
6478         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6479         glibc shortcomings with leading "-:" or "+:" in optstring.
6480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6481         Likewise.
6482         * doc/posix-functions/getopt.texi (getopt): Likewise.
6483
6484         test-getopt: enhance test
6485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6486         supports optind=0.
6487         * tests/test-getopt.c (OPTIND_MIN): Move...
6488         * tests/test-getopt.h (OPTIND_MIN): ...here.
6489         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6490         Require that optind=0 works, since modern BSD supports it in
6491         addition to optreset, and since coreutils expects it.
6492         (test_getopt_long_only): New test.
6493         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6494         glibc shortcomings with 'W;', and enforcement of optind=0.
6495         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6496         Likewise.
6497
6498 2009-12-21  Bruno Haible  <bruno@clisp.org>
6499
6500         localename: Improvements for MacOS X and Cygwin.
6501         * lib/localename.h (gl_locale_name_environ): New declaration.
6502         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6503         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6504         (gl_locale_name_posix): Invoke it.
6505         (gl_locale_name_default): Add comments. Use Windows native API also on
6506         Cygwin.
6507
6508 2009-12-21  Bruno Haible  <bruno@clisp.org>
6509
6510         Update list of Win32 locale ids.
6511         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6512         (LANG_SAMI): Renamed from LANG_SAAMI.
6513         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6514         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6515         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6516         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6517         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6518         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6519         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6520         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6521         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6522         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6523         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6524         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6525         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6526         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6527         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6528         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6529         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6530         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6531         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6532         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6533         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6534         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6535         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6536         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6537         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6538         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6539         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6540         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6541         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6542         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6543         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6544         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6545         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6546         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6547         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6548         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6549         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6550         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6551         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6552         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6553         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6554         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6555         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6556         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6557         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6558         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6559         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6560         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6561         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6562         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6563         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6564         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6565         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6566         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6567         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6568         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6569         Add more languages and countries for Sami, Sorbian. Add more countries
6570         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6571         for Pashto. Change country for Syriac, Tswana.
6572
6573 2009-12-21  Eric Blake  <ebb9@byu.net>
6574
6575         test-utimens: avoid spurious failure
6576         * tests/test-chown.h (nap): Factor...
6577         * tests/nap.h: ...into new file.
6578         * tests/test-lchown.h (nap): Avoid duplication.
6579         * tests/test-utimens-common.h (nap): Use shared implementation,
6580         necessary on file systems with 1-second resolution.
6581         * modules/chown-tests (Files): Include new file.
6582         * modules/fdutimensat-tests (Files): Likewise.
6583         * modules/futimens-tests (Files): Likewise.
6584         * modules/lchown-tests (Files): Likewise.
6585         * modules/openat-tests (Files): Likewise.
6586         * modules/utimens-tests (Files): Likewise.
6587         * modules/utimensat-tests (Files): Likewise.
6588
6589 2009-12-19  Eric Blake  <ebb9@byu.net>
6590
6591         futimens, utimensat: work around Linux bug
6592         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6593         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6594         * lib/utimensat.c (rpl_utimensat): Work around it.
6595         * lib/futimens.c (rpl_futimens): Adjust comment.
6596
6597         utimens: work around Linux ctime bug
6598         * lib/utimens.c (detect_ctime_bug): New helper function.
6599         (update_timespec): Differentiate between workaround needed for
6600         this bug vs. what is needed for systems that lack utimensat.
6601         (fdutimens, lutimens): Work around bug.
6602
6603         utimens: check for ctime update
6604         * tests/test-utimens-common.h (check_ctime): Define.
6605         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6606         * tests/test-futimens.h (test_futimens): Likewise.
6607         * tests/test-lutimens.h (test_lutimens): Likewise.
6608         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6609         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6610
6611 2009-12-19  Bruno Haible  <bruno@clisp.org>
6612
6613         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6614         * tests/test-dprintf-posix2.sh: New file.
6615         * tests/test-dprintf-posix2.c: New file.
6616         * modules/dprintf-posix-tests (Files): Add them.
6617         (configure.ac): Check for getrlimit and setrlimit.
6618         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6619
6620 2009-12-19  Bruno Haible  <bruno@clisp.org>
6621
6622         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6623         * tests/test-fprintf-posix3.sh: New file.
6624         * tests/test-fprintf-posix3.c: New file.
6625         * modules/fprintf-posix-tests (Files): Add them.
6626         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6627
6628 2009-12-19  Eric Blake  <ebb9@byu.net>
6629
6630         dirfd: fix prototype
6631         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6632         * lib/dirfd.c (dirfd): Likewise.
6633
6634         canonicalize: reduce memory usage
6635         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6636         allocation to size.
6637         Reported by Solar Designer <solar@openwall.com>.
6638
6639 2009-12-19  Bruno Haible  <bruno@clisp.org>
6640
6641         New module attribute 'Applicability'.
6642         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6643         * gnulib-tool: New option --extract-applicability.
6644         (func_usage): Document it.
6645         (sed_extract_prog): Recognize it.
6646         (func_get_applicability): New function.
6647         (func_import): Generalize handling of 'link-warning' module.
6648         * modules/link-warning (Applicability): New section.
6649         * modules/arg-nonnull (Applicability): New section.
6650         Repoted by Simon Josefsson <simon@josefsson.org>.
6651
6652 2009-12-19  Bruno Haible  <bruno@clisp.org>
6653
6654         fflush: tweak
6655         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6656         * lib/fseeko.c (rpl_fseeko): Likewise.
6657
6658 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6659
6660         * lib/gl_list.h: Fix typo in comment.
6661
6662 2009-12-16  Eric Blake  <ebb9@byu.net>
6663
6664         fcntl: use to simplify other modules
6665         * modules/cloexec (Depends-on): Add fcntl.
6666         * modules/fchdir (Depends-on): Likewise.
6667         * modules/fd-safer-flag (Depends-on): Likewise.
6668         * modules/unistd-safer (Depends-on): Likewise.
6669         * modules/dup3 (configure.ac): Set module indicator.
6670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6671         missing.
6672         * lib/fchdir.c (_gl_register_dup): Fix comment.
6673         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6674         * lib/dup-safer.c (dup_safer): Likewise.
6675         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6676         * lib/dup3.c (dup3): Likewise.
6677         * tests/test-fchdir.c (main): Enhance test.
6678         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6679
6680         fcntl: port portions of fcntl to mingw
6681         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6682         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6683         replacement for mingw.
6684         * modules/fcntl (Description): Update.
6685         (Depends-on): Add dup2.
6686         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6687         * modules/fcntl-h (Makefile.am): Substitute it.
6688         * lib/fcntl.in.h (fcntl): Update declaration.
6689         (F_DUPFD, F_GETFD): New macros, when needed.
6690         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6691         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6692         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6693         we now guarantee.
6694
6695         fcntl: work around cygwin bug in F_DUPFD
6696         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6697         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6698         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6699         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6700         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6701
6702         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6703         * modules/fcntl (Files): List new files.
6704         (configure.ac): Run a test.
6705         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6706         * lib/fcntl.c (rpl_fcntl): Likewise.
6707         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6708         (gl_FCNTL_H): Always replace fcntl.h.
6709         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6710         * lib/fcntl.in.h (fcntl): Declare replacement.
6711         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6712         needed, plus a witness.
6713         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6714         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6715         * tests/test-fcntl.c: New file.
6716         * modules/fcntl-tests: Likewise.
6717
6718         binary-io: avoid potential compilation warning
6719         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6720         directives.
6721
6722         fflush: avoid compilation error on NetBSD
6723         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6724         between off_t and fpos_t, since the latter is sometimes a struct.
6725         * lib/fseeko.c (rpl_fseeko): Likewise.
6726         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6727
6728 2009-12-15  Eric Blake  <ebb9@byu.net>
6729
6730         fcntl-h, stdio, sys_ioctl: fix declarations
6731         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6732         function must not take arguments.
6733         * lib/sys_ioctl.in.h (ioctl): Likewise.
6734         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6735         (open): Add a link warning.
6736
6737 2009-12-15  Jim Meyering  <meyering@redhat.com>
6738
6739         areadlink, areadlink-with-size: relax license to LGPLv2+
6740         * modules/areadlink (License): Relax to LGPLv2+.
6741         * modules/areadlink-with-size (License): Likewise.
6742
6743 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6744             Bruno Haible  <bruno@clisp.org>
6745
6746         *printf: Fix memory leak.
6747         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6748         * lib/vfprintf.c (vfprintf): Likewise.
6749         * lib/dprintf.c (dprintf): Likewise.
6750         * lib/vdprintf.c (vdprintf): Likewise.
6751
6752 2009-12-14  Eric Blake  <ebb9@byu.net>
6753
6754         accept4: adjust module dependencies
6755         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6756
6757         utimens: one more try at avoiding compiler warning
6758         * lib/utimens.c (lutimens): Lower scope of result.
6759
6760 2009-12-13  Bruno Haible  <bruno@clisp.org>
6761
6762         Move the malloc checking from module 'list' to new module 'xlist'.
6763         * modules/xlist: New file.
6764         * lib/gl_xlist.h: New file.
6765         * lib/gl_xlist.c: New file.
6766         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6767         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6768         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6769         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6770         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6771         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6772         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6773         gl_sortedlist_nx_add): New declarations.
6774         (struct gl_list_implementation): Rename and change methods accordingly.
6775         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6776         (gl_list_nx_create): Renamed from gl_list_create.
6777         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6778         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6779         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6780         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6781         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6782         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6783         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6784         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6785         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6786         gl_list_create_empty.
6787         (gl_list_nx_create): Renamed from gl_list_create.
6788         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6789         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6790         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6791         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6792         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6793         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6794         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6795         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6796         * lib/gl_array_list.c: Don't include xalloc.h.
6797         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6798         NULL upon out-of-memory.
6799         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6800         out-of-memory.
6801         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6802         Change return type to 'int'.
6803         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6804         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6805         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6806         upon out-of-memory.
6807         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6808         upon out-of-memory.
6809         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6810         upon out-of-memory.
6811         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6812         upon out-of-memory.
6813         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6814         out-of-memory.
6815         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6816         Update.
6817         (gl_array_list_implementation): Update.
6818         * lib/gl_carray_list.c: Don't include xalloc.h.
6819         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6820         Return NULL upon out-of-memory.
6821         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6822         out-of-memory.
6823         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6824         Change return type to 'int'.
6825         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6826         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6827         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6828         upon out-of-memory.
6829         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6830         upon out-of-memory.
6831         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6832         out-of-memory.
6833         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6834         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6835         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6836         Update.
6837         (gl_carray_list_implementation): Update.
6838         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6839         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6840         gl_linked_create_empty. Return NULL upon out-of-memory.
6841         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6842         out-of-memory.
6843         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6844         Change return type to 'int'. Return -1 upon out-of-memory.
6845         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6846         out-of-memory.
6847         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6848         upon out-of-memory.
6849         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6850         upon out-of-memory.
6851         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6852         NULL upon out-of-memory.
6853         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6854         upon out-of-memory.
6855         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6856         out-of-memory.
6857         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6858         Update.
6859         * lib/gl_linked_list.c: Don't include xalloc.h.
6860         (gl_linked_list_implementation): Update.
6861         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6862         (add_to_bucket): Change return type to 'int'.
6863         (gl_linkedhash_list_implementation): Update.
6864         * lib/gl_anytree_list1.h (free_subtree): New function.
6865         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6866         gl_tree_create_empty. Return NULL upon out-of-memory.
6867         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6868         Change return type to 'int'. Return -1 upon out-of-memory.
6869         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6870         out-of-memory.
6871         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6872         (gl_tree_remove_node): New function, moved here from
6873         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6874         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6875         Update.
6876         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6877         malloc, not xmalloc. Return NULL upon out-of-memory.
6878         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6879         out-of-memory.
6880         (gl_tree_remove_node_from_tree): New function, extracted from
6881         gl_tree_remove_node.
6882         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6883         upon out-of-memory.
6884         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6885         out-of-memory.
6886         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6887         upon out-of-memory.
6888         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6889         upon out-of-memory.
6890         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6891         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6892         not xmalloc. Return NULL upon out-of-memory.
6893         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6894         out-of-memory.
6895         (gl_tree_remove_node_from_tree): New function, extracted from
6896         gl_tree_remove_node.
6897         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6898         upon out-of-memory.
6899         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6900         out-of-memory.
6901         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6902         upon out-of-memory.
6903         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6904         upon out-of-memory.
6905         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6906         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6907         gl_anytree_list1.h before gl_anyavltree_list2.h.
6908         (gl_avltree_list_implementation): Update.
6909         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6910         gl_anytree_list1.h before gl_anyavltree_list2.h.
6911         (gl_rbtree_list_implementation): Update.
6912         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6913         Change return type to 'int'. Return -1 upon out-of-memory. Use
6914         __builtin_expect.
6915         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6916         (gl_avltreehash_list_implementation): Update.
6917         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6918         (gl_rbtreehash_list_implementation): Update.
6919         * modules/array-list (Depends-on): Remove xalloc.
6920         * modules/carray-list (Depends-on): Likewise.
6921         * modules/linked-list (Depends-on): Likewise.
6922         * modules/linkedhash-list (Depends-on): Likewise.
6923         * modules/avltree-list (Depends-on): Likewise.
6924         * modules/rbtree-list (Depends-on): Likewise.
6925         * modules/avltreehash-list (Depends-on): Likewise.
6926         * modules/rbtreehash-list (Depends-on): Likewise.
6927
6928         * modules/xsublist: New file.
6929         * lib/gl_xsublist.h: New file.
6930         * lib/gl_xsublist.c: New file.
6931         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6932         (gl_sublist_nx_create): New declaration.
6933         * lib/gl_sublist.c: Don't include xalloc.h.
6934         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6935         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6936         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6937         Change return type to 'int'. Return -1 upon out-of-memory.
6938         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6939         upon out-of-memory.
6940         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6941         NULL upon out-of-memory.
6942         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6943         upon out-of-memory.
6944         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6945         NULL upon out-of-memory.
6946         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6947         NULL upon out-of-memory.
6948         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6949         upon out-of-memory.
6950         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6951         (gl_sublist_list_implementation): Update.
6952         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6953         upon out-of-memory.
6954         * modules/sublist (Depends-on): Remove xalloc.
6955
6956         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6957         * tests/test-carray_list.c: Likewise.
6958         * tests/test-linked_list.c: Likewise.
6959         * tests/test-linkedhash_list.c: Likewise.
6960         * tests/test-avltree_list.c: Likewise.
6961         * tests/test-rbtree_list.c: Likewise.
6962         * tests/test-avltreehash_list.c: Likewise.
6963         * tests/test-rbtreehash_list.c: Likewise.
6964         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6965         * modules/carray-list-tests (Makefile.am): Likewise.
6966         * modules/linked-list-tests (Makefile.am): Likewise.
6967         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6968         * modules/avltree-list-tests (Makefile.am): Likewise.
6969         * modules/rbtree-list-tests (Makefile.am): Likewise.
6970         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6971         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6972
6973         * NEWS: Mention the changes.
6974
6975         * lib/clean-temp.c: Include gl_xlist.h.
6976         * modules/clean-temp (Depends-on): Add xlist.
6977
6978         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6979         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6980
6981         * tests/test-array_oset.c: Include gl_xlist.h.
6982         * modules/array-oset-tests (Depends-on): Add xlist.
6983
6984         Reported by José E. Marchesi <jemarch@gnu.org>.
6985
6986 2009-12-13  Bruno Haible  <bruno@clisp.org>
6987
6988         Move the malloc checking from module 'oset' to new module 'xoset'.
6989         * modules/xoset: New file.
6990         * lib/gl_xoset.h: New file.
6991         * lib/gl_xoset.c: New file.
6992         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6993         declarations.
6994         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6995         (struct gl_oset_implementation): Rename and change methods accordingly.
6996         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6997         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6998         'int'. Mark as __warn_unused_result__.
6999         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7000         gl_oset_create_empty.
7001         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7002         'int'.
7003         * lib/gl_array_oset.c: Don't include xalloc.h.
7004         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7005         malloc, not xmalloc.
7006         (grow): Change return type to 'int'. Don't call xalloc_die.
7007         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7008         to 'int'.
7009         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7010         'int'.
7011         (gl_array_oset_implementation): Update.
7012         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7013         gl_tree_create_empty.
7014         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7015         'int'.
7016         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7017         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7018         xmalloc.
7019         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7020         not xmalloc.
7021         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7022         xmalloc.
7023         (gl_avltree_oset_implementation): Update.
7024         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7025         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7026         xmalloc.
7027         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7028         not xmalloc.
7029         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7030         xmalloc.
7031         (gl_rbtree_oset_implementation): Update.
7032         * modules/array-oset (Depends-on): Remove xalloc.
7033         * modules/avltree-oset (Depends-on): Likewise.
7034         * modules/rbtree-oset (Depends-on): Likewise.
7035         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7036         * tests/test-avltree_oset.c: Likewise.
7037         * tests/test-rbtree_oset.c: Likewise.
7038         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7039         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7040         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7041         * NEWS: Mention the change.
7042
7043 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7044
7045         maint.mk: allow a project to override release-prep commands
7046         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7047         commands into a new rule.
7048         (release-prep): New rule.
7049         (release-prep-hook): New overridable variable.
7050
7051 2009-12-13  Bruno Haible  <bruno@clisp.org>
7052
7053         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7054
7055 2009-12-13  Jim Meyering  <meyering@redhat.com>
7056
7057         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7058         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7059
7060 2009-12-12  Bruno Haible  <bruno@clisp.org>
7061
7062         duplocale: Tweak.
7063         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7064
7065 2009-12-12  Karl Berry  <karl@gnu.org>
7066
7067         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7068
7069 2009-12-12  Bruno Haible  <bruno@clisp.org>
7070
7071         * m4/po.m4: Undo incorrect untabification.
7072
7073 2009-12-12  Bruno Haible  <bruno@clisp.org>
7074
7075         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7076         * modules/c-strtod (Depends-on): Add locale.
7077         * modules/c-strtold (Depends-on): Likewise.
7078
7079 2009-12-12  Bruno Haible  <bruno@clisp.org>
7080
7081         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7082
7083 2009-12-11  Eric Blake  <ebb9@byu.net>
7084
7085         setenv: relax requirement in light of POSIX ruling
7086         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7087         not NULL.
7088         * tests/test-setenv.c (main): Relax test.
7089         * tests/test-unsetenv.c (main): Likewise.
7090         * doc/posix-functions/setenv.texi (setenv): Document this.
7091         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7092
7093 2009-12-11  Bruno Haible  <bruno@clisp.org>
7094
7095         New module 'fd-safer-flag'.
7096         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7097         * lib/dup-safer.c (dup_safer_flag): Remove function.
7098         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7099         * lib/fd-safer.c (fd_safer_flag): Remove function.
7100         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7101         * modules/cloexec (configure.ac): Drop indicator macro.
7102         * modules/fd-safer-flag: New file.
7103         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7104         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7105         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7106
7107 2009-12-11  Bruno Haible  <bruno@clisp.org>
7108
7109         Tests for module 'nl_langinfo'.
7110         * modules/nl_langinfo-tests: New file.
7111         * tests/test-nl_langinfo.sh: New file.
7112         * tests/test-nl_langinfo.c: New file.
7113
7114         New module 'nl_langinfo'.
7115         * lib/nl_langinfo.c: New file.
7116         * m4/nl_langinfo.m4: New file.
7117         * modules/nl_langinfo: New file.
7118         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7119
7120 2009-12-11  Bruno Haible  <bruno@clisp.org>
7121
7122         Tests for module 'langinfo'.
7123         * modules/langinfo-tests: New file.
7124         * tests/test-langinfo.c: New file.
7125
7126         New module 'langinfo'.
7127         * lib/langinfo.in.h: New file.
7128         * m4/langinfo_h.m4: New file.
7129         * modules/langinfo: New file.
7130         * doc/posix-headers/langinfo.texi: Mention the new module.
7131
7132 2009-12-11  Bruno Haible  <bruno@clisp.org>
7133
7134         * lib/config.charset: Untabify.
7135
7136 2009-12-11  Bruno Haible  <bruno@clisp.org>
7137
7138         * modules/unistd-safer (configure.ac): Drop indicator macro.
7139
7140 2009-12-11  Bruno Haible  <bruno@clisp.org>
7141
7142         Move pipe2-safer code to its own file.
7143         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7144         * lib/pipe-safer.c (pipe2_safer): Remove function.
7145         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7146         (Makefile.am): Add it to lib_SOURCES.
7147
7148 2009-12-10  Bruno Haible  <bruno@clisp.org>
7149
7150         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7151
7152 2009-12-10  Bruno Haible  <bruno@clisp.org>
7153
7154         Declare which arguments expect non-NULL values, for GCC and clang.
7155         * build-aux/arg-nonnull.h: New file.
7156         * modules/arg-nonnull: New file.
7157         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7158         (inet_ntop, inet_pton): Use it.
7159         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7160         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7161         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7162         (open, openat): Use it.
7163         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7164         (fnmatch): Use it.
7165         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7166         (getopt, getopt_long, getopt_long_only): Use it.
7167         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7168         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7169         Use it.
7170         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7171         (iconv_open): Use it.
7172         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7173         (strtoimax, strtoumax): Use it.
7174         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7175         (duplocale): Use it.
7176         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7177         (frexp, frexpl): Use it.
7178         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7179         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7180         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7181         (tsearch, tfind, tdelete, twalk): Use it.
7182         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7183         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7184         sigpending): Use it.
7185         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7186         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7187         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7188         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7189         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7190         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7191         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7192         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7193         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7194         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7195         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7196         Use it.
7197         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7198         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7199         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7200         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7201         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7202         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7203         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7204         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7205         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7206         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7207         strtoull, unsetenv): Use it.
7208         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7209         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7210         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7211         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7212         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7213         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7214         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7215         (strcasecmp, strncasecmp): Use it.
7216         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7217         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7218         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7219         rpl_setsockopt): Use it.
7220         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7221         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7222         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7223         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7224         (gettimeofday): Use it.
7225         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7226         (times): Use it.
7227         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7228         (uname): Use it.
7229         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7230         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7231         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7232         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7233         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7234         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7235         unlinkat, write): Use it.
7236         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7237         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7238         * lib/argv-iter.h: Include arg-nonnull.h.
7239         (_ATTRIBUTE_NONNULL_): Remove macro.
7240         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7241         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7242         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7243         optimization.
7244         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7245         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7246         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7247         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7248         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7249         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7250         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7251         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7252         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7253         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7254         * modules/dirent (Depends-on): Add arg-nonnull.
7255         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7256         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7257         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7258         * modules/fnmatch (Depends-on): Add arg-nonnull.
7259         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7260         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7261         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7262         * modules/glob (Depends-on): Add arg-nonnull.
7263         (Makefile.am): Insert arg-nonnull.h into glob.h.
7264         * modules/iconv_open (Depends-on): Add arg-nonnull.
7265         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7266         * modules/inttypes (Depends-on): Add arg-nonnull.
7267         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7268         * modules/locale (Depends-on): Add arg-nonnull.
7269         (Makefile.am): Insert arg-nonnull.h into locale.h.
7270         * modules/math (Depends-on): Add arg-nonnull.
7271         (Makefile.am): Insert arg-nonnull.h into math.h.
7272         * modules/netdb (Depends-on): Add arg-nonnull.
7273         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7274         * modules/search (Depends-on): Add arg-nonnull.
7275         (Makefile.am): Insert arg-nonnull.h into search.h.
7276         * modules/signal (Depends-on): Add arg-nonnull.
7277         (Makefile.am): Insert arg-nonnull.h into signal.h.
7278         * modules/spawn (Depends-on): Add arg-nonnull.
7279         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7280         * modules/stdio (Depends-on): Add arg-nonnull.
7281         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7282         * modules/stdlib (Depends-on): Add arg-nonnull.
7283         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7284         * modules/string (Depends-on): Add arg-nonnull.
7285         (Makefile.am): Insert arg-nonnull.h into string.h.
7286         * modules/strings (Depends-on): Add arg-nonnull.
7287         (Makefile.am): Insert arg-nonnull.h into strings.h.
7288         * modules/sys_socket (Depends-on): Add arg-nonnull.
7289         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7290         * modules/sys_stat (Depends-on): Add arg-nonnull.
7291         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7292         * modules/sys_time (Depends-on): Add arg-nonnull.
7293         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7294         * modules/sys_times (Depends-on): Add arg-nonnull.
7295         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7296         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7297         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7298         * modules/time (Depends-on): Add arg-nonnull.
7299         (Makefile.am): Insert arg-nonnull.h into time.h.
7300         * modules/unistd (Depends-on): Add arg-nonnull.
7301         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7302         * modules/wchar (Depends-on): Add arg-nonnull.
7303         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7304         * modules/argv-iter (Depends-on): Add arg-nonnull.
7305         * tests/test-canonicalize.c (null_ptr): New function.
7306         (main): Use it.
7307         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7308         (main): Use it.
7309         * tests/test-memmem.c (null_ptr): New function.
7310         (main): Use it.
7311         Reported by Jim Meyering.
7312
7313 2009-12-10  Bruno Haible  <bruno@clisp.org>
7314
7315         Use spaces for indentation, not tabs.
7316         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7317         * m4/*.m4: Untabify.
7318         * build-aux/*.h: Untabify.
7319         * tests/**/*.[hc]: Untabify.
7320         * README: New section "Indent with spaces, not TABs", based on
7321         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7322         * NEWS: Mention the change.
7323
7324 2009-12-10  Bruno Haible  <bruno@clisp.org>
7325
7326         pty test: Fix link error.
7327         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7328         test_pty_LDADD.
7329
7330 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7331
7332         * modules/pty: New file.
7333         * modules/pty-tests: New file.
7334         * m4/pty.m4: New file.
7335         * tests/test-pty.c: New file.
7336         * doc/glibc-headers/pty.texi: Modified.
7337         * doc/glibc-functions/forkpty.texi: Modified.
7338         * doc/glibc-functions/openpty.texi: Modified.
7339
7340 2009-12-10  Bruno Haible  <bruno@clisp.org>
7341
7342         Avoid syntax error in C++ mode.
7343         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7344
7345 2009-12-10  Bruno Haible  <bruno@clisp.org>
7346
7347         Use sed with option -e.
7348         * gnulib-tool (func_version, func_emit_copyright_notice,
7349         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7350         option -e to sed.
7351         * modules/link-warning (Makefile.am): Likewise.
7352
7353 2009-12-10  Jim Meyering  <meyering@redhat.com>
7354
7355         mgetgroups: do not write bytes beyond end of malloc'd buffer
7356         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7357         username, we call getgroups with a one-element-shorter buffer,
7358         but still told it the length was original, max_n_groups.
7359
7360 2009-12-09  Eric Blake  <ebb9@byu.net>
7361
7362         cloexec: relax license
7363         * modules/cloexec (Maintainer): Add myself.
7364         (License): Use LGPL, not GPL.
7365
7366         link-warning: optimize generation
7367         * modules/link-warning (Makefile.am): Reduce process usage.
7368
7369 2009-12-09  Bruno Haible  <bruno@clisp.org>
7370
7371         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7372         workaround was added on 2009-11-17.
7373
7374 2009-12-09  Jim Meyering  <meyering@redhat.com>
7375             Bruno Haible  <bruno@clisp.org>
7376
7377         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7378         * modules/link-warning (Makefile.am): Make the comment-removing sed
7379         command more robust in the face of bootstrap-prepended comment lines.
7380
7381 2009-12-09  Bruno Haible  <bruno@clisp.org>
7382
7383         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7384         most one group.
7385
7386 2009-12-09  Simon Josefsson <simon@josefsson.org>
7387             Bruno Haible  <bruno@clisp.org>
7388
7389         * build-aux/link-warning.h: Add copyright notice.
7390         * modules/link-warning (Makefile.am): Generate link-warning.h from
7391         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7392         * NEWS: Mention change in link-warning module.
7393         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7394         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7395         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7396         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7397         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7398         * modules/math (Makefile.am): Add dependency to math.h.
7399         * modules/search (Makefile.am): Add dependency to search.h.
7400         * modules/signal (Makefile.am): Add dependency to signal.h.
7401         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7402         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7403         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7404         * modules/string (Makefile.am): Add dependency to string.h.
7405         * modules/strings (Makefile.am): Add dependency to strings.h.
7406         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7407         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7408         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7409         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7410         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7411         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7412         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7413         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7414         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7415
7416 2009-12-09  Bruno Haible  <bruno@clisp.org>
7417
7418         fchdir: Optimize away rpl_fstat when possible.
7419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7420         REPLACE_OPEN_DIRECTORY.
7421         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7422
7423 2009-12-09  Bruno Haible  <bruno@clisp.org>
7424
7425         * lib/fchdir.c: Update comment.
7426
7427 2009-12-09  Bruno Haible  <bruno@clisp.org>
7428
7429         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7430
7431 2009-12-08  Eric Blake  <ebb9@byu.net>
7432
7433         fchdir: avoid memory leak on re-registration.
7434         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7435
7436 2009-12-08  Jim Meyering  <meyering@redhat.com>
7437
7438         init.sh: avoid Solaris 10 /bin/sh portability problem
7439         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7440         sourced script:
7441           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7442           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7443           bar
7444         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7445         and two tests used that idiom.
7446         * tests/init.sh: Update suggested usage comments.
7447         (path_prepend_): New function, to be used in place
7448         of the --src-path=DIR option.
7449         (setup_): Move PATH-prepending code into path_prepend_.
7450         * tests/test-pread.sh: Adapt to new usage.
7451         * tests/test-xalloc-die.sh: Likewise.
7452
7453 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7454
7455         * doc/gnulib.texi (Glibc pty.h): Add.
7456         * doc/glibc-functions/forkpty.texi: Add.
7457         * doc/glibc-functions/openpty.texi: Add.
7458         Suggested by Bruno Haible.
7459
7460 2009-12-08  Eric Blake  <ebb9@byu.net>
7461
7462         fchdir: fix logic bugs
7463         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7464         * tests/test-fchdir.c (main): Enhance test.
7465         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7466         is in use.
7467
7468         dup2: fix logic bugs
7469         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7470         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7471         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7472         exists.
7473         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7474
7475 2009-12-07  Eric Blake  <ebb9@byu.net>
7476
7477         unlink: fix m4 detection
7478         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7479
7480         unistd-safer: add unit test
7481         * modules/unistd-safer-tests: New file.
7482         * tests/test-dup-safer.c: Likewise.
7483         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7484         * tests/test-dup2.c (setmode): Likewise.
7485         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7486
7487         cloexec: preserve text vs. binary across dup_cloexec
7488         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7489         mode.
7490         * modules/dup2-tests (Depends-on): Add binary-io.
7491         * modules/cloexec-tests (Depends-on): Likewise.
7492         * tests/test-dup2.c (setmode, is_mode): New helpers.
7493         (main): Add tests that translation mode is preserved.
7494         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7495         Reported by Bruno Haible.
7496
7497         mgetgroups: reduce duplicate listings
7498         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7499         resulting array.
7500         * tests/test-chown.h (test_chown): Simplify client.
7501         * tests/test-lchown.h (test_lchown): Likewise.
7502
7503 2009-12-06  Bruno Haible  <bruno@clisp.org>
7504
7505         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7506         value.
7507
7508 2009-12-06  Bruno Haible  <bruno@clisp.org>
7509
7510         * lib/progname.c: Include stdio.h, stdlib.h.
7511         (set_program_name): Reject a NULL argument.
7512
7513 2009-12-05  Eric Blake  <ebb9@byu.net>
7514
7515         pipe2-safer: new module
7516         * modules/pipe2-safer: New file.
7517         * lib/unistd-safer.h (pipe2_safer): New prototype.
7518         * lib/unistd--.h (pipe2): New wrapper.
7519         * lib/pipe-safer.c (pipe2_safer): New function.
7520         * modules/pipe (Depends-on): Add pipe2-safer.
7521         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7522
7523         stdlib-safer: preserve cloexec flag for mkostemp[s]
7524         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7525         fd_safer_flag.
7526
7527         unistd-safer: allow preservation of cloexec status via flag
7528         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7529         prototypes.
7530         * lib/dup-safer.c (dup_safer_flag): New function.
7531         * lib/fd-safer.c (fd_safer_flag): Likewise.
7532         * modules/cloexec (configure.ac): Set witness.
7533
7534         test-dup2: enhance test
7535         * modules/dup2-tests (Depends-on): Add cloexec.
7536         * tests/test-dup2.c (main): Enhance test.
7537
7538         cloexec: add dup_cloexec
7539         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7540         header and comments.
7541         * lib/cloexec.c (set_cloexec_flag): Add comments.
7542         (dup_cloexec): New function, with mingw implementation borrowed
7543         from...
7544         * lib/w32spawn.h (dup_noinherit): ...here.
7545         * modules/execute (Depends-on): Add cloexec.
7546         * modules/pipe (Depends-on): Likewise.
7547         * modules/cloexec (Depends-on): Add dup2.
7548         * modules/cloexec-tests (Files): New file.
7549         * tests/test-cloexec.c: Likewise.
7550
7551         test-xalloc-die: fix test for mingw
7552         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7553         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7554         directory and .exe suffix off argv[0] output.
7555
7556         test-fseeko: fix test for mingw
7557         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7558         than undefining fseek, so test will pass on mingw.
7559
7560 2009-12-05  Bruno Haible  <bruno@clisp.org>
7561
7562         * lib/progname.h (set_program_name): Clarify specification.
7563         * lib/progname.c (set_program_name): Likewise.
7564         Reported by Jim Meyering.
7565
7566 2009-12-05  Jim Meyering  <meyering@redhat.com>
7567
7568         maint.mk: backslash-escape parens in default regexp
7569         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7570         backslash-escape the literal parentheses.
7571
7572         maint.mk: news-date-check: use grep -E
7573         * top/maint.mk (today): Define a Make variable, not a...
7574         (news-date-check): ...shell variable.
7575         (news-date-regexp): Use the Make variable.
7576         Use grep's -E option.  Change the failing diagnostic to mention
7577         the variable, $(news-date-regexp).
7578
7579 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7580
7581         maintainer-makefile: allow customization of NEWS entry format
7582         * top/maint.mk (news-date-regexp): New overridable variable.
7583         (news-date-check): Use it.
7584
7585 2009-12-04  Eric Blake  <ebb9@byu.net>
7586
7587         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7588         * lib/mgetgroups.h (xgetgroups): New prototype.
7589         * lib/mgetgroups.c (xgetgroups): New wrapper.
7590         (mgetgroups): Handle ENOSYS.
7591         * modules/mgetgroups (Depends-on): Add realloc.
7592         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7593
7594         mgetgroups: avoid argument promotion issues with -1
7595         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7596         for invalid gid_t.
7597         * tests/test-chown.h (getegid, test_chown): Likewise.
7598         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7599
7600 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7601
7602         exclude: Fix header file problems.
7603         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7604
7605 2009-12-01  Jim Meyering  <meyering@redhat.com>
7606
7607         fts: fts_open: do not let an empty string cause immediate failure
7608         This is required in support of GNU rm, for which the command
7609         "rm A '' B" must process and remove both A and B, in spite of
7610         the empty string argument.
7611         * lib/fts.c (fts_open): Do not let the presence of an empty string
7612         cause fts_open to fail immediately.  Most fts-using tools must be
7613         able to process all arguments, in order, and can be expected to
7614         diagnose such arguments themselves.
7615
7616 2009-11-30  Eric Blake  <ebb9@byu.net>
7617
7618         utimens: fix compilation error
7619         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7620         Declare variable at right scope.
7621
7622 2009-11-29  Jim Meyering  <meyering@redhat.com>
7623
7624         bootstrap: handle perl-5.11's changed --version output
7625         * build-aux/bootstrap (get_version): Handle perl separately,
7626         since perl-5.11's --version output is different.
7627
7628 2009-11-28  Jim Meyering  <meyering@redhat.com>
7629
7630         userspec: depend on the inttostr module, too
7631         * modules/userspec (Depends-on): Add inttostr.
7632
7633         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7634         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7635         number of MAXUID when it evaluates to (uid_t) -1.
7636         Likewise for group ID.  Reported by Matt McCutchen in
7637         <http://savannah.gnu.org/bugs/?28113>
7638
7639         userspec: reformat to use spaces, not TABs
7640         * lib/userspec.c: Expand TABs to spaces.
7641         Add Emacs' "indent-tabs-mode: nil" hint.
7642
7643 2009-11-27  Eric Blake  <ebb9@byu.net>
7644
7645         getopt-gnu: flush out another BSD bug
7646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7647         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7648         flush out BSD bug.
7649         * tests/test-getopt.h (test_getopt): End lists with NULL.
7650         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7651         (test_getopt_long_posix): Enhance test.
7652         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7653         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7654         getopt-gnu.
7655         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7656         Likewise.
7657
7658 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7659
7660         * modules/idpriv-droptemp-tests (Notice): Fix text.
7661
7662 2009-11-27  Jim Meyering  <meyering@redhat.com>
7663
7664         test-xalloc-die: avoid spurious failure due to libtool argv difference
7665         In a libtool-enabled project, this test would fail due to a difference
7666         in the emitted program name, e.g.,
7667         -test-xalloc-die: memory exhausted
7668         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7669         Use program to avoid that.
7670         * modules/xalloc-die-tests (Depends-on): Add progname.
7671         * tests/test-xalloc-die.c: Include progname.h".
7672         (program_name): Remove decl.
7673         (main): Call set_program_name.
7674         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7675
7676 2009-11-26  Richard Jones  <rjones@redhat.com>
7677
7678         w32sock: leave win32 error in place.
7679         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7680
7681 2009-11-26  Eric Blake  <ebb9@byu.net>
7682
7683         init.sh: suggest to use skip_ and fail_ functions in comments
7684         * tests/init.sh: Add a sentence.
7685
7686 2009-11-25  Bruno Haible  <bruno@clisp.org>
7687
7688         init.sh: add documentation in comments
7689         * tests/init.sh: Add some developer and user documentation.
7690
7691 2009-11-26  Jim Meyering  <meyering@redhat.com>
7692
7693         init.sh: accommodate even those who specify bogus srcdir manually
7694         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7695         configure-time tests to be sanitized, so that there is no need to
7696         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7697         (with no double quotes) suffices.  However, since tests may be
7698         invoked manually, and since you may explicitly set srcdir to the
7699         name of a directory containing spaces, do quote its uses here.
7700         * tests/test-pread.sh: Likewise.
7701         Suggested by Bruno Haible.
7702
7703         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7704         * tests/test-pread.sh: Write no data into the pipe, because
7705         test-pread actually reads none.  This avoids a diagnostic,
7706         "bash: echo: write error: Broken pipe", that arises in the unusual
7707         event something is ignoring SIGPIPE, and might be interpreted
7708         as some sort of failure.  Reported by Bruno Haible.
7709
7710 2009-11-25  Jim Meyering  <meyering@redhat.com>
7711
7712         test-pread: cover failure with ESPIPE and EINVAL
7713         * tests/test-pread.c (main): Test for failure, too.
7714         * tests/test-pread.sh: Invoke with stdin on a pipe.
7715         Suggested by Eric Blake.
7716
7717         pread: improvement and fix
7718         * modules/pread (Depends-on): Depend on lseek, for portability to
7719         e.g., mingw.  Suggested by Eric Blake.
7720         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7721
7722         unistd.in.h: correct declaration of pread
7723         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7724         Reported by Richard W.M. Jones.
7725
7726         test-pread.sh: distribute the test script
7727         * modules/pread-tests (Files): Include test-pread.sh.
7728
7729         test-pread.sh: clean up
7730         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7731         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7732         That is unnecessary, since it's always ".".
7733         Suggestion from Eric Blake.
7734
7735         test-pread.sh: make executable
7736         * tests/test-pread.sh: Set executable bit.
7737         Reported by Eric Blake.
7738
7739         correct typo in test-pread.sh
7740         * tests/test-pread.sh: Add #! line.
7741
7742         test pread
7743         * tests/test-pread.c: New file.
7744         * tests/test-pread.sh: Likewise.
7745         * modules/pread-tests: Likewise.
7746
7747         pread: new module
7748         * modules/pread: New file.
7749         * lib/unistd.in.h (pread): Define/declare.
7750         * lib/pread.c (pread): New file.
7751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7752         * modules/unistd (Makefile.am): Substitute witnesses.
7753         * doc/posix-functions/pread.texi (pread): Update.
7754         * MODULES.html.sh: Add pread.
7755
7756 2009-11-25  Jim Meyering  <meyering@redhat.com>
7757
7758         tests/init.sh: new file to be used via most *.sh tests
7759         * tests/init.sh: New file.
7760
7761 2009-11-25  Eric Blake  <ebb9@byu.net>
7762
7763         utimens: work around older Linux failure with symlinks
7764         * lib/utimens.c (lutimensat_works_really): New variable.
7765         (fdutimens, lutimens): Use it to manage kernels that support
7766         nanosecond times on files, but not on symlinks.
7767         Reported by Ondřej Vašík.
7768
7769         utimes: fix configure grammar
7770         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7771
7772 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7773
7774         regex: Fix fastmap for multibyte character ranges.
7775         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7776         characters when a multibyte character range is included.
7777
7778 2009-11-22  Andy Wingo  <wingo@pobox.com>
7779
7780         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7781         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7782
7783 2009-11-24  Bruno Haible  <bruno@clisp.org>
7784
7785         doc: Most *_l functions exist in MacOS X 10.5.
7786         * doc/posix-functions/duplocale.texi: Update platforms list.
7787         * doc/posix-functions/freelocale.texi: Likewise.
7788         * doc/posix-functions/newlocale.texi: Likewise.
7789         * doc/posix-functions/uselocale.texi: Likewise.
7790         * doc/posix-functions/isalnum_l.texi: Likewise.
7791         * doc/posix-functions/isalpha_l.texi: Likewise.
7792         * doc/posix-functions/isblank_l.texi: Likewise.
7793         * doc/posix-functions/iscntrl_l.texi: Likewise.
7794         * doc/posix-functions/isdigit_l.texi: Likewise.
7795         * doc/posix-functions/isgraph_l.texi: Likewise.
7796         * doc/posix-functions/islower_l.texi: Likewise.
7797         * doc/posix-functions/isprint_l.texi: Likewise.
7798         * doc/posix-functions/ispunct_l.texi: Likewise.
7799         * doc/posix-functions/isspace_l.texi: Likewise.
7800         * doc/posix-functions/isupper_l.texi: Likewise.
7801         * doc/posix-functions/iswalnum_l.texi: Likewise.
7802         * doc/posix-functions/iswalpha_l.texi: Likewise.
7803         * doc/posix-functions/iswblank_l.texi: Likewise.
7804         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7805         * doc/posix-functions/iswctype_l.texi: Likewise.
7806         * doc/posix-functions/iswdigit_l.texi: Likewise.
7807         * doc/posix-functions/iswgraph_l.texi: Likewise.
7808         * doc/posix-functions/iswlower_l.texi: Likewise.
7809         * doc/posix-functions/iswprint_l.texi: Likewise.
7810         * doc/posix-functions/iswpunct_l.texi: Likewise.
7811         * doc/posix-functions/iswspace_l.texi: Likewise.
7812         * doc/posix-functions/iswupper_l.texi: Likewise.
7813         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7814         * doc/posix-functions/isxdigit_l.texi: Likewise.
7815         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7816         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7817         * doc/posix-functions/strcoll_l.texi: Likewise.
7818         * doc/posix-functions/strfmon_l.texi: Likewise.
7819         * doc/posix-functions/strftime_l.texi: Likewise.
7820         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7821         * doc/posix-functions/strxfrm_l.texi: Likewise.
7822         * doc/posix-functions/tolower_l.texi: Likewise.
7823         * doc/posix-functions/toupper_l.texi: Likewise.
7824         * doc/posix-functions/towctrans_l.texi: Likewise.
7825         * doc/posix-functions/towlower_l.texi: Likewise.
7826         * doc/posix-functions/towupper_l.texi: Likewise.
7827         * doc/posix-functions/wcscoll_l.texi: Likewise.
7828         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7829         * doc/posix-functions/wctrans_l.texi: Likewise.
7830         * doc/posix-functions/wctype_l.texi: Likewise.
7831         * doc/glibc-functions/strptime_l.texi: Likewise.
7832         * doc/glibc-functions/strtod_l.texi: Likewise.
7833         * doc/glibc-functions/strtof_l.texi: Likewise.
7834         * doc/glibc-functions/strtol_l.texi: Likewise.
7835         * doc/glibc-functions/strtold_l.texi: Likewise.
7836         * doc/glibc-functions/strtoll_l.texi: Likewise.
7837         * doc/glibc-functions/strtoul_l.texi: Likewise.
7838         * doc/glibc-functions/strtoull_l.texi: Likewise.
7839         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7840         * doc/glibc-functions/wcstod_l.texi: Likewise.
7841         * doc/glibc-functions/wcstof_l.texi: Likewise.
7842         * doc/glibc-functions/wcstol_l.texi: Likewise.
7843         * doc/glibc-functions/wcstold_l.texi: Likewise.
7844         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7845         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7846         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7847
7848 2009-11-24  Bruno Haible  <bruno@clisp.org>
7849
7850         duplocale: Fix logic bug.
7851         * lib/duplocale.c: Don't include <langinfo.h>.
7852         (_NL_LOCALE_NAME): Remove macro.
7853         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7854         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7855
7856 2009-11-23  Jim Meyering  <meyering@redhat.com>
7857
7858         test-update-copyright: don't hard-code /usr/bin/perl
7859         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7860         perl to print the current year.  Gilles Espinasse reported that
7861         the replaced use of perl was hard-coded as /usr/bin/perl.
7862
7863 2009-11-23  Bruno Haible  <bruno@clisp.org>
7864
7865         duplocale: Add support for glibc 2.3.x.
7866         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7867
7868 2009-11-22  Bruno Haible  <bruno@clisp.org>
7869
7870         vasnprintf: Tiny optimization.
7871         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7872         MacOS X.
7873
7874 2009-11-22  Bruno Haible  <bruno@clisp.org>
7875
7876         Tests for module 'duplocale'.
7877         * modules/duplocale-tests: New file.
7878         * tests/test-duplocale.c: New file.
7879
7880         New module 'duplocale'.
7881         * m4/duplocale.m4: New file.
7882         * lib/locale.in.h (duplocale): New declaration.
7883         * lib/duplocale.c: New file.
7884         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7885         gl_LOCALE_H_DEFAULTS): New macros.
7886         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7887         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7888         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7889         REPLACE_DUPLOCALE.
7890         * modules/duplocale: New file.
7891         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7892
7893 2009-11-22  Bruno Haible  <bruno@clisp.org>
7894
7895         * modules/locale-tests (configure.ac): Test for newlocale function.
7896         * tests/test-locale.c: When the system has extended locale functions,
7897         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7898
7899         locale: Make locale_t available when possible.
7900         * lib/locale.in.h: Include <xlocale.h> when it exists.
7901         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7902         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7903         * modules/locale (Depends-on): Add extensions.
7904         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7905         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7906
7907 2009-11-22  Bruno Haible  <bruno@clisp.org>
7908
7909         Add comments.
7910         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7911         invocation.
7912         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7913         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7914         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7915
7916 2009-11-22  Bruno Haible  <bruno@clisp.org>
7917
7918         error: account for the possibility of freopen (stdout).
7919         * lib/error.c: Include <unistd.h>.
7920         (flush_stdout): New function, extracted from error and error_at_line.
7921         Determine stdout's fd dynamically.
7922         (error, error_at_line): Invoke flush_stdout.
7923         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7924         * modules/error (Depends-on): Add unistd.
7925
7926 2009-11-22  Bruno Haible  <bruno@clisp.org>
7927
7928         diffseq: Add comment.
7929         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7930
7931 2009-11-22  Jim Meyering  <meyering@redhat.com>
7932
7933         c-stack: avoid defining an unused static function
7934         * lib/c-stack.c (find_stack_direction): Do not define this function
7935         when it will not be used.
7936
7937         diffseq: avoid spurious gcc warnings
7938         * lib/diffseq.h (IF_LINT2): Define.
7939         (compareseq): Use it to initialize two members of "part".
7940         This avoids two used-uninitialized warnings.
7941
7942 2009-11-21  Jim Meyering  <meyering@redhat.com>
7943
7944         c-stack: avoid "ignoring return value of `write'" warning
7945         * lib/c-stack.c: Include "ignore-value.h".
7946         (die): Explicitly ignore each write return value.
7947         * modules/c-stack (Depends-on): Add ignore-value.
7948
7949 2009-11-21  Bruno Haible  <bruno@clisp.org>
7950
7951         diffseq: reduce scope of variable 'best'.
7952         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7953         variable, earlier used for two different purposes.
7954
7955 2009-11-21  Jim Meyering  <meyering@redhat.com>
7956
7957         diffseq: remove useless assignment to "best"
7958         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7959         assignment.  At that point "best" is already guaranteed to be zero.
7960
7961 2009-11-20  Eric Blake  <ebb9@byu.net>
7962
7963         build: mention ftp redirector in release announcements
7964         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7965         values that used to come from cfg.mk; mention FTP redirect URL.
7966         * build-aux/announce-gen: Mention the mirror list.
7967         Suggested by Karl Berry.
7968
7969         nanosleep: improve port to mingw
7970         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7972         LIB_NANOSLEEP, but only when needed.
7973         * modules/select (Link): Document LIBSOCKET.
7974         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7975         enough.
7976
7977         nanosleep: work around cygwin bug
7978         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7979         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7980         bug.
7981         (getnow): Delete, not needed.
7982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7983         LIB_CLOCK_GETTIME.
7984         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7985         clock-time, gettime.
7986         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7987         bug.
7988         * modules/nanosleep-tests: New test.
7989         * tests/test-nanosleep.c: New file.
7990
7991         sleep: work around cygwin bug
7992         * lib/sleep.c (rpl_sleep): Work around the bug.
7993         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7994         (gl_PREREQ_SLEEP): Delete unused macro.
7995         * modules/sleep (Depends-on): Add verify.
7996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7997         * modules/unistd (Makefile.am): Substitute witness.
7998         * lib/unistd.in.h (sleep): Update prototype.
7999         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8000         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8001         * modules/sleep-tests (Depends-on): Check for alarm.
8002
8003 2009-11-20  Jim Meyering  <meyering@redhat.com>
8004
8005         maint.mk: improve sc_prohibit_magic_number_exit
8006         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8007         so it does not match uses like System.exit(1).
8008         Add comments showing how to correct all offenders.
8009
8010 2009-11-19  Eric Blake  <ebb9@byu.net>
8011
8012         xalloc-die-tests: add missing library
8013         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8014
8015         test-xvasprintf: silence compiler warnings
8016         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8017         empty string from gcc.
8018
8019 2009-11-19  Jim Meyering  <meyering@redhat.com>
8020
8021         xfreopen: new module, from coreutils
8022         * modules/xfreopen: New module.
8023         * lib/xfreopen.c: New file.
8024         * lib/xfreopen.h: New file.
8025         * MODULES.html.sh (File stream based Input/Output"): Add it.
8026
8027 2009-11-19  Eric Blake  <ebb9@byu.net>
8028
8029         manywarnings: depend on warnings
8030         * modules/manywarnings (Depends-on): Add warnings.
8031
8032         build: avoid compiler warnings
8033         * lib/select.c (rpl_select): Delete unused variable.
8034         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8035
8036 2009-11-18  Eric Blake  <ebb9@byu.net>
8037
8038         tests: avoid false negative with --with-packager
8039         * tests/test-version-etc.sh: Discard packager information.
8040         * tests/test-argp-version-etc-1.sh: Likewise.
8041         Reported by Mike Frysinger.
8042
8043         utimens: fix regression on Solaris
8044         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8045         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8046         can only change fd timestamps via futimesat.  Instead, use an
8047         additional witness macro to avoid BSD bug.
8048         Reported by Jim Meyering.
8049
8050 2009-11-17  Eric Blake  <ebb9@byu.net>
8051
8052         usleep: use it to simplify tests
8053         * modules/stat-time-tests (Depends-on): Add usleep.
8054         (configure.ac): Drop usleep check.
8055         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8056         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8057         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8058         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8059         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8060         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8061         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8062         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8063         Likewise.
8064         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8065         * tests/test-lchown.h (nap): Likewise.
8066         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8067         * tests/test-stat-time.c (nap): Likewise.
8068         * tests/test-utimens-common.h (nap): Update comments.
8069
8070         usleep: new module
8071         * modules/usleep: New file.
8072         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8073         * lib/usleep.c (usleep): Likewise.
8074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8075         * modules/unistd (Makefile.am): Substitute witnesses.
8076         * lib/unistd.in.h (usleep): Add declaration.
8077         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8078         * MODULES.html.sh (Date and time): Likewise.
8079         * modules/usleep-tests (Depends-on): New test.
8080         * tests/test-usleep.c: New file.
8081
8082         chown: work around OpenBSD bug
8083         * lib/chown.c (rpl_chown): Work around the bug.
8084         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8085         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8086         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8087         * modules/chown (Depends-on): Add stdbool.
8088         * modules/lchown (Depends-on): Likewise.
8089         * doc/posix-functions/chown.texi (chown): Document the bug.
8090         * doc/posix-functions/lchown.texi (lchown): Likewise.
8091         * tests/test-lchown.h (test_chown): Relax test.
8092
8093         mkstemp: avoid conflict with C++ keyword template
8094         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8095         * lib/mkostemp.c (mkostemp): Likewise.
8096         * lib/mkostemps.c (mkostemps): Likewise.
8097         * lib/mkstemp.c (mkstemp): Likewise.
8098         * lib/mkstemps.c (mkstemps): Likewise.
8099
8100         xalloc-die-tests: optimize
8101         * tests/test-xalloc-die.sh: Reduce number of processes.
8102
8103 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8104
8105         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8106         patch from ludo@gnu.org (Ludovic Courtès).
8107
8108 2009-11-17  Jim Meyering  <meyering@redhat.com>
8109
8110         version-etc: use proper license string
8111         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8112         * modules/version-etc-fsf: Likewise.
8113
8114 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8115
8116         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8117         printed to stdout.  Deal with EOL differences.
8118
8119 2009-11-17  Eric Blake  <ebb9@byu.net>
8120
8121         unsetenv: work around Solaris bug
8122         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8123         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8124         Reported by Jim Meyering.
8125
8126         vasnprintf: avoid compiler warnings
8127         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8128         variables.
8129         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8130
8131 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8132
8133         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8134         settings since xalloc-die is no longer the self test,
8135         xalloc-die.sh is.
8136
8137 2009-11-17  Jim Meyering  <meyering@redhat.com>
8138
8139         test-xalloc-die.sh: make the code agree with the commit log
8140         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8141         at the end, just in case you happen to have a test-xalloc-die
8142         program in some other PATH directory.
8143
8144         test-xalloc-die.sh: fix a portability bug
8145         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8146         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8147         Otherwise, argv[0] (as often seen in diagnostics) would be too
8148         system-dependent, sometimes with, and sometimes without the leading "./".
8149
8150         version-etc-fsf: relax license to LGPLv3+
8151         * modules/version-etc-fsf (License): Relax license.
8152
8153 2009-11-16  Eric Blake  <ebb9@byu.net>
8154
8155         xalloc-die-tests: avoid printing null pointer
8156         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8157         shell script.
8158         * tests/test-xalloc-die.c (program_name): Declare.
8159         * tests/test-xalloc-die.sh (tmpfiles): New file.
8160
8161         setenv, unsetenv: work around various bugs
8162         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8163         (setenv) [HAVE_SETENV]: Work around bugs.
8164         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8165         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8166         for bugs.
8167         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8168         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8170         * modules/stdlib (Makefile.am): Update substitutions.
8171         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8172         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8173         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8174         * modules/setenv-tests: New test.
8175         * modules/unsetenv-tests: Likewise.
8176         * tests/test-setenv.c: New file.
8177         * tests/test-unsetenv.c: Likewise.
8178
8179 2009-11-16  Jim Meyering  <meyering@redhat.com>
8180
8181         version-etc: relax license to LGPLv3+
8182         * modules/version-etc (License): Relax license.
8183
8184         better AC_REQUIRE expanded-before-required-warning avoidance
8185         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8186         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8187         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8188         which is no longer needed.
8189
8190 2009-11-16  Eric Blake  <ebb9@byu.net>
8191
8192         test-freading: clean up temporary file
8193         * tests/test-freading.c (main): Remove file on success, and use
8194         ASSERT more liberally.
8195         Reported by Jim Meyering.
8196
8197 2009-11-16  Jim Meyering  <meyering@redhat.com>
8198
8199         avoid new AC_REQUIRE expanded-before-required warnings
8200         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8201         merely using it.
8202         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8203         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8204
8205 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8206
8207         * tests/test-xalloc-die.c: New file.
8208         * modules/xalloc-die-tests: New file.
8209         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8210         XFAIL_TESTS so it can be appended by modules.
8211
8212 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8213
8214         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8215         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8216
8217 2009-11-14  Eric Blake  <ebb9@byu.net>
8218
8219         fnmatch: avoid compiler warning
8220         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8221         to silence compiler warning about mismatch signedness in ?:.
8222         Reported by Robert Millan.
8223
8224         intprops: add double-inclusion guard
8225         * lib/intprops.h: Allow idempotent includes.
8226         Suggested by Bruce Korb.
8227
8228         openat: detect Solaris fchownat bug
8229         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8230         penalizing glibc chownat when only lchownat is broken.
8231         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8232         trailing slash bugs.
8233         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8234         * modules/openat-tests (Files): Include more files.
8235         (Depends-on): Add mgetgroups, sleep, stat-time.
8236         (configure.ac): Add additional checks.
8237         (Makefile.am): Build new test.
8238         * tests/test-fchownat.c: New file.
8239
8240         lchown: detect Solaris and FreeBSD bug
8241         * lib/lchown.c (rpl_lchown): Work around bug.
8242         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8244         * modules/unistd (Makefile.am): Populate it.
8245         * lib/unistd.in.h (lchown): Update declaration.
8246         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8247         * modules/lchown-tests: New file.
8248         * tests/test-lchown.h (test_lchown): Likewise.
8249         * tests/test-lchown.c (main): Likewise.
8250
8251         chown: detect Solaris and FreeBSD bug
8252         * lib/chown.c (rpl_chown): Work around bug.
8253         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8254         (gl_PREREQ_CHOWN): Delete.
8255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8256         * modules/unistd (Makefile.am): Populate it.
8257         * lib/unistd.in.h (chown): Update declaration.
8258         * lib/lchown.c (chown): Update client.
8259         * modules/lchown (Depends-on): Add lstat.
8260         * doc/posix-functions/chown.texi (chown): Document the bug.
8261         * doc/posix-functions/getgroups.texi (getgroups): Document
8262         getgroups pitfall.
8263         * modules/chown-tests: New file.
8264         * tests/test-chown.h (test_chown): Likewise.
8265         * tests/test-chown.c (main): Likewise.
8266
8267 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8268
8269         gnulib-tool: correctly detect absence of m4 directories
8270         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8271
8272 2009-11-14  Jim Meyering  <meyering@redhat.com>
8273
8274         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8275         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8276
8277 2009-11-14  John W. Eaton  <jwe@gnu.org>
8278
8279         strftime.h: wrap funtion declaration in extern "C" block
8280         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8281
8282 2009-11-13  Eric Blake  <ebb9@byu.net>
8283
8284         getgroups: avoid compiler warning
8285         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8286
8287         getgroups: work around FreeBSD bug
8288         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8289         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8290         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8291         * tests/test-getgroups.c (main): Fix buffer overrun.
8292
8293         getgroups: avoid compilation failure
8294         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8295         * modules/getgroups (Depends-on): Add stdint.
8296
8297 2009-11-13  Jim Meyering  <meyering@redhat.com>
8298
8299         test-getgroups: avoid compilation failure
8300         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8301
8302 2009-11-13  Eric Blake  <ebb9@byu.net>
8303
8304         mgetgroups: new module, taken from coreutils
8305         * modules/mgetgroups: New file.
8306         * lib/mgetgroups.h: Likewise.
8307         * lib/mgetgroups.c (mgetgroups): Likewise.
8308         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8309         * MODULES.html.sh (Users and groups): Mention it.
8310
8311         getgroups: don't expose GETGROUPS_T to user
8312         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8313         an element at a time if GETGROUPS_T is wrong size.
8314         * lib/getugroups.h (getugroups): Change signature.
8315         * lib/unistd.in.h (getgroups): Likewise.
8316         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8317         signature needs fixing.
8318         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8319         AC_TYPE_GETGROUPS.
8320         * modules/group-member (Depends-on): Add getgroups.
8321         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8322         (group_member): Rely on getgroups replacement.
8323         * lib/getugroups.c (getugroups): Use gid_t.
8324         * tests/test-getgroups.c (main): Likewise.
8325         * NEWS: Mention the signature change.
8326         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8327         problem with signature.
8328         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8329         GETGROUPS_T is still useful for setgroups.
8330
8331         getgroups, getugroups: provide stubs for mingw
8332         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8333         * lib/getugroups.c (getugroups): Likewise.
8334         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8335         function.  Modernize replacement scheme.
8336         (gl_PREREQ_GETGROUPS): Delete.
8337         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8338         * modules/getgroups (configure.ac): Declare witness.
8339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8340         * modules/unistd (Depends-on): Substitute witness.
8341         * lib/unistd.in.h (getgroups): Declare replacement.
8342
8343         getgroups: avoid calling exit
8344         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8345         drop xalloc.
8346         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8347         dependencies.
8348         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8349         exiting, in the rare case of malloc failure.
8350
8351         getgroups: fix logic error
8352         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8353         has more than 20 groups.
8354         * modules/getgroups-tests: New test.
8355         * tests/test-getgroups.c: New file.
8356
8357 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8358
8359         * tests/test-base64.c: Improve.
8360
8361 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8362
8363         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8364         Blake <ebb9@byu.net>.
8365
8366 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8367
8368         * tests/test-xvasprintf.c: Add %s%s related checks.
8369
8370 2009-11-12  Eric Blake  <ebb9@byu.net>
8371
8372         version-etc: match standards.texi style
8373         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8374         and use <> only for URLs.
8375
8376 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8377
8378         fts: do not fail on a submount during traversal
8379         * lib/fts.c (fts_build): Read the stat info again after opening
8380         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8381         Original report at http://bugzilla.redhat.com/501848.
8382
8383 2009-11-12  Jim Meyering  <meyering@redhat.com>
8384
8385         bootstrap: sync from coreutils
8386         * build-aux/bootstrap (bootstrap_epilogue): New function.
8387         Use git_modules_config in one more place.  This make bootstrap's
8388         --gnulib-srcdir option more useful for testing.
8389
8390         bootstrap: generalize autoheader check
8391         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8392         AC_CONFIG_HEADERS.
8393
8394 2009-11-11  Eric Blake  <ebb9@byu.net>
8395
8396         mkfifoat: use new modules for Solaris and BSD bugs
8397         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8398         * lib/mkfifoat.c (mknodat): Split...
8399         * lib/mknodat.c (mknodat): ...into new file.
8400         * modules/mkfifoat (Files): Ship new file.
8401         (Depends-on): Add mkfifo, mknod.
8402         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8403         (Depends-on): Add symlink.
8404         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8405         redundant with test_mkfifo.h.
8406         (do_mkfifoat, do_mknodat): New helpers.
8407
8408         mknod: new module
8409         * modules/mknod: New file.
8410         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8411         * lib/mknod.c (mknod): Likewise.
8412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8413         defaults.
8414         * modules/sys_stat (Makefile.am): Substitute them.
8415         * lib/sys_stat.in.h (mknod): Declare replacement.
8416         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8417         Document it.
8418         * doc/posix-functions/mknod.texi (mknod): Likewise.
8419         * modules/mknod-tests: New test.
8420         * tests/test-mknod.c: Likewise.
8421
8422         mkfifo: new module
8423         * modules/mkfifo: New file.
8424         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8425         * lib/mkfifo.c (mkfifo): Likewise.
8426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8427         defaults.
8428         * modules/sys_stat (Makefile.am): Substitute them.
8429         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8430         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8431         Document it.
8432         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8433         * modules/mkfifo-tests: New test.
8434         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8435         from test-mkfifoat.c.
8436         * tests/test-mkfifo.c: New file.
8437
8438         readlink: detect FreeBSD bug
8439         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8440         slash on symlink.
8441         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8442         * tests/test-readlink.h (test_readlink): Enhance test.
8443
8444         symlink: detect FreeBSD bug
8445         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8446         slash on symlink.
8447         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8448         * tests/test-symlink.h (test_symlink): Enhance test.
8449
8450 2009-11-10  Eric Blake  <ebb9@byu.net>
8451
8452         link: detect FreeBSD bug
8453         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8454         symlink.
8455         * doc/posix-functions/link.texi (link): Document the bug.
8456         * tests/test-link.h (test_link): Enhance test.
8457         * tests/test-linkat.c (main): Update caller.
8458
8459         unlink, remove: detect FreeBSD bug
8460         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8461         slash on symlink.
8462         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8463         * doc/posix-functions/remove.texi (remove): Likewise.
8464         * tests/test-unlink.h (test_unlink): Enhance test.
8465         * tests/test-remove.c (main): Likewise.
8466
8467 2009-11-09  Eric Blake  <ebb9@byu.net>
8468
8469         rename: detect FreeBSD bug
8470         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8471         slash on symlink.
8472         * modules/renameat-tests (Depends-on): Add filenamecat.
8473         * tests/test-rename.h (test_rename): Allow one more errno.
8474         * tests/test-renameat.c (main): Likewise.
8475         * doc/posix-functions/rename.texi (rename): Document the bug.
8476
8477         open: detect FreeBSD bug
8478         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8479         symlink.
8480         * doc/posix-functions/open.texi (open): Document the bug.
8481         * doc/posix-functions/utimes.texi (utimes): Likewise.
8482         * tests/test-open.h (test_open): Add parameters, and test symlink
8483         handling.
8484         * tests/test-open.c (main): Adjust caller.
8485         * tests/test-fcntl-safer.c (main): Likewise.
8486         * modules/open-tests (Depends-on): Add stdbool, symlink.
8487         * modules/fcntl-safer-tests (Depends-on): Likewise.
8488         * tests/test-openat.c (main): Add test-open tests.
8489
8490         stat: detect FreeBSD bug
8491         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8492         symlink.
8493         * doc/posix-functions/stat.texi (stat): Document the bug.
8494         * tests/test-stat.h (test_stat_func): Add argument.
8495         * tests/test-stat.c (main): Adjust caller.
8496         * tests/test-fstatat.c (main): Likewise.
8497         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8498         Reported by Jim Meyering.
8499
8500 2009-11-09  James Youngman  <jay@gnu.org>
8501
8502         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8503         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8504
8505 2009-11-08  Jim Meyering  <meyering@redhat.com>
8506
8507         utimens: remove invalid futimesat call
8508         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8509         It used the file descriptor of the target file as the DIR_FD
8510         parameter and NULL as the file name.  That caused failure with
8511         errno == EFAULT on FreeBSD-8.0-rc2
8512
8513 2009-11-07  Eric Blake  <ebb9@byu.net>
8514
8515         fflush, freadseek: use fseeko, not fseek
8516         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8517         (clear_ungetc_buffer): Avoid potential problems on large files.
8518         * lib/freadseek.c (freadseek): Likewise.
8519         * modules/freadseek (Depends-on): Add fseeko.
8520         * modules/fseek (configure.ac): Set a witness.
8521         * tests/test-fflush.c (main): Use fseeko.
8522         * tests/test-fpurge.c (fseek): Disable link warning.
8523         * tests/test-freadable.c (fseek): Likewise.
8524         * tests/test-freading.c (fseek): Likewise.
8525         * tests/test-fseeko.c (fseek): Likewise.
8526         * tests/test-ftell.c (fseek): Likewise.
8527         * tests/test-ftello.c (fseek): Likewise.
8528         * tests/test-fwritable.c (fseek): Likewise.
8529         * tests/test-fwriting.c (fseek): Likewise.
8530
8531 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8532
8533         * modules/memchr (Depends-on): Drop getpagesize dependency.
8534
8535 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8536
8537         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8538         Reported by Ludovic Courtès.
8539         * build-aux/pmccabe2html: Improve example usage.
8540         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8541
8542 2009-11-06  Jim Meyering  <meyering@redhat.com>
8543
8544         do-release-commit-and-tag: New module.
8545         Automate the release-commit and tag process.
8546         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8547         * modules/do-release-commit-and-tag: New file.
8548         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8549
8550 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8551
8552         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8553         because test-select.c uses inet_pton.
8554
8555 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8556
8557         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8558         GETADDRINFO_LIB.  Bump serial number.
8559         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8560         Suggested by Eric Blake <ebb9@byu.net>.
8561
8562 2009-11-05  Eric Blake  <ebb9@byu.net>
8563
8564         strtod: detect darwin bug
8565         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8566         Reported by Leo Davis.
8567
8568         freopen-safer: new module
8569         * modules/freopen-safer: New module.
8570         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8571         * lib/freopen-safer.c (freopen_safer): New file.
8572         * lib/stdio-safer.h (freopen_safer): New declaration.
8573         * lib/stdio--.h (freopen): New override.
8574         * MODULES.html.sh (File stream based Input/Output): Mention it.
8575         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8576         freopen-safer module.
8577         * doc/posix-functions/stderr.texi (stderr): Likewise.
8578         * doc/posix-functions/stdin.texi (stdin): Likewise.
8579         * doc/posix-functions/stdout.texi (stdout): Likewise.
8580         * modules/freopen-safer-tests: New test.
8581         * tests/test-reopen-safer.c: New file.
8582
8583 2009-11-05  Jim Meyering  <meyering@redhat.com>
8584
8585         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8586         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8587
8588 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8589
8590         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8591
8592 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8593
8594         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8595
8596 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8597
8598         Fix link error.
8599         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8600         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8601
8602 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8603
8604         * tests/test-func.c: Also test value of __func__.
8605
8606 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8607
8608         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8609         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8610
8611 2009-11-05  Bruno Haible  <bruno@clisp.org>
8612
8613         Fix link error.
8614         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8615         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8616         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8617
8618 2009-11-05  Bruno Haible  <bruno@clisp.org>
8619
8620         Tests for module 'inet_pton'.
8621         * modules/inet_pton-tests: New file.
8622         * tests/test-inet_pton.c: New file.
8623
8624 2009-11-05  Bruno Haible  <bruno@clisp.org>
8625
8626         Tests for module 'inet_ntop'.
8627         * modules/inet_ntop-tests: New file.
8628         * tests/test-inet_ntop.c: New file.
8629
8630 2009-11-04  Eric Blake  <ebb9@byu.net>
8631
8632         stdlib-safer: wrap all mkstemp variants
8633         * modules/mkostemp (configure.ac): Set witness.
8634         * modules/mkostemps (configure.ac): Likewise.
8635         * modules/mkstemps (configure.ac): Likewise.
8636         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8637         (mkstemps_safer): Wrap more functions.
8638         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8639         wrapping.
8640         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8641         (mkstemps_safer): Implement the wrappers.
8642
8643         mkstemps, mkostemps: new modules
8644         * modules/mkostemps: New module.
8645         * modules/mkstemps: Likewise.
8646         * lib/mkostemps.c (mkostemps): New file.
8647         * lib/mkstemps.c (mkstemps): Likewise.
8648         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8649         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8651         * modules/stdlib (Makefile.am): Substitute them.
8652         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8653         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8654         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8655         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8656         * MODULES.html.sh (File system functions): Mention them.
8657
8658         tempname: resync from glibc
8659         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8660         same values for __GT_FILE as glibc.  Abort even when assertions
8661         are disabled.
8662         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8663         match its value otherwise.  Allow idempotent inclusion.
8664         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8665         * lib/mkostemp.c (mkostemp): Likewise.
8666         * lib/mkstemp.c (mkstemp): Likewise.
8667         * lib/tmpfile.c (tmpfile): Likewise.
8668         * NEWS: Document this.
8669
8670         utimens: fix use of futimens on older Linux
8671         * lib/utimens.c (fdutimens): Use updated, rather than original,
8672         timespec to avoid bug in older Linux kernel.
8673         Reported by Simon Josefsson.
8674
8675 2009-11-04  Bruno Haible  <bruno@clisp.org>
8676
8677         Make num_processors more flexible and consistent.
8678         * lib/nproc.h (enum nproc_query): New type.
8679         (num_processors): Add a 'query' argument.
8680         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8681         (num_processors): Add a 'query' argument. Test the value of the
8682         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8683         mingw, count the number of CPUs available for the current process.
8684         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8685         Check for sched_getaffinity and sched_getaffinity_np.
8686         * modules/nproc (Depends-on): Add c-ctype, extensions.
8687         * NEWS: Mention the change.
8688
8689 2009-11-03  Bruno Haible  <bruno@clisp.org>
8690
8691         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8692
8693 2009-11-03  Jim Meyering  <meyering@redhat.com>
8694
8695         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8696         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8697         if it is defined.
8698
8699 2009-11-02  Eric Blake  <ebb9@byu.net>
8700
8701         mktime, timegm: share common declaration
8702         * lib/mktime-internal.h: New file.
8703         * lib/mktime.c: Use it rather than open-coding a declaration.
8704         * lib/timegm.c: Likewise.
8705         * modules/mktime (Files): Ship it.
8706         * modules/timegm (Files): Likewise.
8707         Suggested by Bruno Haible.
8708
8709         test-update-copyright: update test to match script changes
8710         * tests/test-update-copyright.sh: Avoid hard-coding perl
8711         location.  Don't update *.bak created by earlier runs.
8712
8713 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8714             Simon Josefsson  <simon@josefsson.org>
8715             Bruno Haible  <bruno@clisp.org>
8716
8717         Fix link error on Solaris 8.
8718         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8719         also in libnsl. Define also INET_PTON_LIB.
8720         * modules/inet_pton (Link): New section.
8721
8722 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8723             Bruno Haible  <bruno@clisp.org>
8724
8725         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8726         * modules/inet_ntop (Link): New section.
8727         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8728
8729 2009-11-02  Eric Blake  <ebb9@byu.net>
8730
8731         maint: avoid compiler warnings in m4 macros
8732         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8733         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8734
8735 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8736
8737         * m4/pmccabe2html.m4: Remove file.
8738         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8739         function.  Change maintainer.
8740         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8741         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8742         Courtès).
8743
8744 2009-10-31  Eric Blake  <ebb9@byu.net>
8745
8746         fseeko: fix m4 regression
8747         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8748         regression from 2009-10-27.
8749         Reported by Ralf Wildenhues.
8750
8751 2009-10-31  Jim Meyering  <meyering@redhat.com>
8752
8753         inttostr: aesthetics and improved (compile-time) safety
8754         Define inttype_is_signed rather than inttype_is_unsigned,
8755         since the sole use is via "#if inttype_is_signed".
8756         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8757         inttype_is_unsigned.
8758         * lib/offtostr.c (inttype_is_signed): Likewise.
8759         * lib/uinttostr.c (inttype_is_signed): Likewise.
8760         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8761         * lib/inttostr.c (inttostr): Use verify to cross-check the
8762         inttype_is_signed value and the signedness of the actual type.
8763         * modules/inttostr (Depends-on): Add verify.
8764
8765 2009-10-30  Eric Blake  <ebb9@byu.net>
8766
8767         build: avoid compiler warnings
8768         * lib/fchmodat.c (lchmod): Mark unused variables.
8769         * lib/getopt.c (_getopt_initialize): Likewise.
8770         * lib/mktime.c (__mktime_internal): Provide prototype.
8771         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8772         older gcc that do not understand #pragma GCC diagnostic.
8773         * lib/uinttostr.c (inttype_is_unsigned): Define.
8774         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8775
8776 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8777
8778         stat: fix compilation on AIX
8779         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8780         only see struct stat64.
8781
8782 2009-10-30  Eric Blake  <ebb9@byu.net>
8783
8784         exclude: make more robust
8785         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8786         rather than masking a coding bug.
8787         Suggested by Bruno Haible.
8788
8789 2009-10-30  Jim Meyering  <meyering@redhat.com>
8790
8791         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8792         Rather than putting #!/usr/bin/perl on the first line,
8793         start with a variant of what's recommended by "man perlrun" that
8794         invokes the first "perl" program from your shell's search path.
8795         * build-aux/gitlog-to-changelog: Replace #!... as above.
8796         Add a "Local Variables" perl mode setting.
8797         Prompted by a patch from Ludovic Courtès.
8798         Improved by Eric Blake.
8799         * build-aux/useless-if-before-free: Likewise.
8800         * build-aux/announce-gen: Likewise.
8801         * build-aux/update-copyright: Likewise.
8802
8803 2009-10-29  Eric Blake  <ebb9@byu.net>
8804
8805         filenamecat-lgpl: adjust clients
8806         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8807         filenamecat.
8808         * modules/renameat (Depends-on): Likewise.
8809
8810         filenamecat: split into filenamecat-lgpl
8811         * modules/filenamecat-lgpl: New module.
8812         * modules/filenamecat (Files): Move library-safe files into
8813         filenamecat-lgpl.
8814         (Depends-on): Add filenamecat-lgpl.
8815         (configure.ac): Declare witness.
8816         * lib/filenamecat.h (file_name_concat): Only declare when using
8817         GPL module.
8818         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8819         Move...
8820         * lib/filenamecat-lgpl.c: ...into new file.
8821         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8822         (gl_FILE_NAME_CONCAT): Use it.
8823         * MODULES.html.sh (File system functions): Mention new module.
8824
8825         argp: avoid memory leak
8826         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8827         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8828         base_name, since the latter malloc()s and can call exit().
8829         Leak introduced 2006-07-03.
8830
8831         dirname-lgpl: adjust clients that don't need full dirname
8832         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8833         * modules/filenamecat (Depends-on): Likewise.
8834         * modules/linkat (Depends-on): Likewise.
8835         * modules/mkancesdirs (Depends-on): Likewise.
8836         * modules/mkdir (Depends-on): Likewise.
8837         * modules/openat (Depends-on): Likewise.
8838         * modules/savewd (Depends-on): Likewise.
8839         * modules/rename (Depends-on): Likewise.
8840         (License): Relax license.
8841         * modules/mkdir-tests (Depends-on): Drop progname.
8842         (Makefile.am): Delete unneeded LDADD.
8843         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8844
8845         dirname: split into dirname-lgpl
8846         * modules/dirname-lgpl: New module.
8847         * modules/dirname (Files): Move library-safe files into
8848         dirname-lgpl.
8849         (Depends-on): Add dirname-lgpl.
8850         (configure.ac): Declare witness.
8851         * modules/double-slash-root (License): Relax license.
8852         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8853         module.
8854         * lib/dirname.c (dir_len, mdir_name): Move...
8855         * lib/dirname-lgpl.c: ...into new file.
8856         * lib/basename.c (last_component, base_len): Move...
8857         * lib/basename-lgpl.c: ...into new file.
8858         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8859         (gl_DIRNAME): Use it.
8860         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8861         Mention new module.
8862         * modules/dirname-tests (Depends-on): Add progname.
8863         * tests/test-dirname.c (program_name): Delete.
8864
8865         mkdir: make safe for libraries
8866         * modules/mkdir (Depends-on): Drop xalloc.
8867         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8868         exit.
8869
8870         tests: avoid some compiler warnings
8871         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8872         literals.
8873         * tests/test-memchr.c (main): Avoid type mismatch.
8874         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8875         * tests/test-base64.c (main): Likewise.
8876         * tests/test-getdelim.c (main): Likewise.
8877         * tests/test-gethostname.c (main): Likewise.
8878         * tests/test-getline.c (main): Likewise.
8879         * tests/test-netinet_in.c (main): Likewise.
8880         * tests/test-select.c (open_server_socket, main): Likewise.
8881         * tests/test-select-stdin.c (main): Likewise.
8882         * tests/test-sockets.c (main): Likewise.
8883         * tests/test-strsignal.c (main): Likewise.
8884         * tests/test-sys_select.c (main): Likewise.
8885         * tests/test-sys_socket.c (main): Likewise.
8886         * tests/test-u64.c (main): Likewise.
8887         * tests/test-xfprintf-posix.c (main): Likewise.
8888         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8889
8890         sockets: avoid compiler warning
8891         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8892
8893         maint: detect usage(1) and other suspicious exits
8894         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8895
8896 2009-10-29  Jim Meyering  <meyering@redhat.com>
8897
8898         timespec: long-to-int truncation could make timespec_cmp malfunction
8899         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8900         a multiple of 2^32 nanoseconds as no difference.
8901
8902 2009-10-28  Jim Meyering  <meyering@redhat.com>
8903
8904         fprintftime: wrap macro code argument in "do {...} while(0)"
8905         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8906         cpy macro must be a statement that can be followed by a semicolon.
8907         Now that the else clause contains a comment and is hence longer
8908         than one line, I require curly braces.  That in turn requires
8909         that we wrap this code block in the standard do...while(0).
8910
8911         fprintftime: remove stray semicolon from previous change
8912         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8913
8914         fprintftime: avoid a warning about ignored fwrite return value
8915         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8916         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8917         that is unsafe.
8918         * modules/fprintftime (Depends-on): Add ignore-value.
8919
8920         exclude: avoid an unwarranted warning
8921         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8922
8923 2009-10-27  Eric Blake  <ebb9@byu.net>
8924
8925         fseek: avoid compilation failure when fflush is replaced
8926         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8927         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8928         module is in use.
8929         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8930         module is not in use; since REPLACE_FSEEK worked otherwise.
8931         (GNULIB_FTELLO): Likewise for ftell.
8932         Reported by Ian Beckwith and others.
8933
8934 2009-10-27  Bruno Haible  <bruno@clisp.org>
8935
8936         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8937         Reported by Jim Meyering.
8938
8939 2009-10-27  Jim Meyering  <jim@meyering.net>
8940             Bruno Haible  <bruno@clisp.org>
8941
8942         Avoid warning despite dropping the return value of fwrite.
8943         * lib/unicodeio.c: Include ignore-value.h.
8944         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8945         * modules/unicodeio (Depends-on): Add ignore-value.
8946
8947 2009-10-26  Eric Blake  <ebb9@byu.net>
8948
8949         areadlinkat: fix fallback path
8950         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8951         pointer and zero.
8952
8953 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8954
8955         Use a better IO block size for modern systems
8956         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8957         * lib/md2.c: Likewise.
8958         * lib/md4.c: Likewise.
8959         * lib/md5.c: Likewise.
8960         * lib/sha1.c: Likewise.
8961         * lib/sha256.c: Likewise.
8962         * lib/sha512.c: Likewise.
8963
8964 2009-10-22  Eric Blake  <ebb9@byu.net>
8965
8966         tests: avoid several compiler warnings
8967         * tests/test-getcwd.c (main): Avoid buffer underflow.
8968         * tests/test-getdate.c (main): String literals are not safe with
8969         putenv, so use setenv.  Declare unused argument.
8970         * modules/getdate-tests (Depends-on): Add setenv.
8971         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8972         problems with string literals in char *.
8973         * tests/test-hash.c (main): Avoid shadowing declaration.
8974         (insert_new): Treat string literals as char const *.
8975         * tests/test-getopt.h (test_getopt): Likewise.
8976         (getopt_loop): Alter types to minimize casting elsewhere.
8977         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8978         (test_getopt_long_posix): Likewise.
8979         (do_getopt_long): Add wrapper to minimize casting.
8980         * tests/test-atexit.c (clear_temp_file): Use void.
8981         * tests/test-areadlink-with-size.c (main): Declare unused
8982         arguments.
8983         * tests/test-areadlink.c (main): Likewise.
8984         * tests/test-areadlinkat-with-size.c (main): Likewise.
8985         * tests/test-areadlinkat.c (main): Likewise.
8986         * tests/test-canonicalize-lgpl.c (main): Likewise.
8987         * tests/test-canonicalize.c (main): Likewise.
8988         * tests/test-dirent-safer.c (main): Likewise.
8989         * tests/test-dirname.c (main): Likewise.
8990         * tests/test-dup2.c (main): Likewise.
8991         * tests/test-fchdir.c (main): Likewise.
8992         * tests/test-fcntl-h.c (main): Likewise.
8993         * tests/test-fcntl-safer.c (main): Likewise.
8994         * tests/test-fdopendir.c (main): Likewise.
8995         * tests/test-fdutimensat.c (main): Likewise.
8996         * tests/test-fflush.c (main): Likewise.
8997         * tests/test-filenamecat.c (main): Likewise.
8998         * tests/test-filevercmp.c (main): Likewise.
8999         * tests/test-fopen-safer.c (main): Likewise.
9000         * tests/test-fopen.c (main): Likewise.
9001         * tests/test-fpending.c (main): Likewise.
9002         * tests/test-fpurge.c (main): Likewise.
9003         * tests/test-freading.c (main): Likewise.
9004         * tests/test-fstatat.c (main): Likewise.
9005         * tests/test-fsync.c (main): Likewise.
9006         * tests/test-futimens.c (main): Likewise.
9007         * tests/test-getndelim2.c (main): Likewise.
9008         * tests/test-gettimeofday.c (main): Likewise.
9009         * tests/test-getopt.c (main): Likewise.
9010         * tests/test-i-ring.c (main): Likewise.
9011         * tests/test-inttypes.c (main): Likewise.
9012         * tests/test-link.c (main): Likewise.
9013         * tests/test-lstat.c (main): Likewise.
9014         * tests/test-math.c (main): Likewise.
9015         * tests/test-md5.c (main): Likewise.
9016         * tests/test-memchr2.c (main): Likewise.
9017         * tests/test-memrchr.c (main): Likewise.
9018         * tests/test-mkdir.c (main): Likewise.
9019         * tests/test-mkdirat.c (main): Likewise.
9020         * tests/test-mkfifoat.c (main): Likewise.
9021         * tests/test-open.c (main): Likewise.
9022         * tests/test-openat-safer.c (main): Likewise.
9023         * tests/test-openat.c (main): Likewise.
9024         * tests/test-quotearg.c (main): Likewise.
9025         * tests/test-rawmemchr.c (main): Likewise.
9026         * tests/test-readlink.c (main): Likewise.
9027         * tests/test-remove.c (main): Likewise.
9028         * tests/test-rename.c (main): Likewise.
9029         * tests/test-renameat.c (main): Likewise.
9030         * tests/test-rmdir.c (main): Likewise.
9031         * tests/test-sha1.c (main): Likewise.
9032         * tests/test-signal.c (main): Likewise.
9033         * tests/test-sigaction.c (main): Likewise.
9034         * tests/test-stat.c (main): Likewise.
9035         * tests/test-stat-time.c (main): Likewise.
9036         * tests/test-stddef.c (main): Likewise.
9037         * tests/test-stdint.c (main): Likewise.
9038         * tests/test-stdio.c (main): Likewise.
9039         * tests/test-stdlib.c (main): Likewise.
9040         * tests/test-strchrnul.c (main): Likewise.
9041         * tests/test-strerror.c (main): Likewise.
9042         * tests/test-string.c (main): Likewise.
9043         * tests/test-strtod.c (main): Likewise.
9044         * tests/test-strverscmp.c (main): Likewise.
9045         * tests/test-symlink.c (main): Likewise.
9046         * tests/test-symlinkat.c (main): Likewise.
9047         * tests/test-sys_stat.c (main): Likewise.
9048         * tests/test-sys_time.c (main): Likewise.
9049         * tests/test-time.c (main): Likewise.
9050         * tests/test-unistd.c (main): Likewise.
9051         * tests/test-unlink.c (main): Likewise.
9052         * tests/test-unlinkat.c (main): Likewise.
9053         * tests/test-utimens.c (main): Likewise.
9054         * tests/test-utimensat.c (main): Likewise.
9055         * tests/test-version-etc.c (main): Likewise.
9056         * tests/test-wchar.c (main): Likewise.
9057         * tests/test-wctype.c (main): Likewise.
9058         * tests/test-xprintf-posix.c (main): Likewise.
9059         * tests/test-posixtm.c (main): Likewise.
9060         (STREQ): Delete unused macro.
9061         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9062         shadowed variables.
9063         * tests/test-memchr.c (main): Likewise.
9064
9065 2009-10-21  Eric Blake  <ebb9@byu.net>
9066
9067         areadlinkat: avoid failure on older glibc
9068         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9069         rather than mis-comparing 0 against FUNC_RESULT of char*.
9070
9071 2009-10-21  Bruno Haible  <bruno@clisp.org>
9072
9073         * modules/stpncpy (License): Relicense under LGPLv2+.
9074         Reported by David Lutterkort <lutter@redhat.com>.
9075
9076 2009-10-20  Eric Blake  <ebb9@byu.net>
9077
9078         utimensat: work around Solaris 9 bug
9079         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9080         has trailing slash bugs.
9081         * tests/test-lutimens.h (test_lutimens): Enhance test.
9082         * tests/test-utimens.h (test_utimens): Likewise.
9083         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9084         * doc/posix-functions/utimes.texi (utimes): Likewise.
9085         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9086         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9087         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9088         * doc/posix-functions/futimens.texi (futimens): Likewise.
9089
9090         fdutimensat: new module
9091         * modules/fdutimensat: New file.
9092         * lib/fdutimensat.c (fdutimensat): Likewise.
9093         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9094         * MODULES.html.sh (File system functions): Mention module.
9095         * modules/fdutimensat-tests: New test.
9096         * tests/test-fdutimensat.c: Likewise.
9097
9098         doc: regenerate INSTALL
9099         * doc/INSTALL: Reflect recent autoconf update.
9100         * doc/INSTALL.ISO: Likewise.
9101         * doc/INSTALL.UTF-8: Likewise.
9102
9103 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9104
9105         acl: warn if ACL support is not detected
9106         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9107
9108 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9109
9110         * lib/nproc.h: Add extern "C" block for C++.
9111
9112 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9113             Bruno Haible  <bruno@clisp.org>
9114
9115         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9116         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9117         * doc/posix-functions/isalpha.texi: Likewise.
9118         * doc/posix-functions/isblank.texi: Likewise.
9119         * doc/posix-functions/iscntrl.texi: Likewise.
9120         * doc/posix-functions/isdigit.texi: Likewise.
9121         * doc/posix-functions/isgraph.texi: Likewise.
9122         * doc/posix-functions/islower.texi: Likewise.
9123         * doc/posix-functions/isprint.texi: Likewise.
9124         * doc/posix-functions/ispunct.texi: Likewise.
9125         * doc/posix-functions/isspace.texi: Likewise.
9126         * doc/posix-functions/isupper.texi: Likewise.
9127         * doc/posix-functions/isxdigit.texi: Likewise.
9128
9129 2009-10-18  Bruno Haible  <bruno@clisp.org>
9130
9131         Tests for module 'isblank'.
9132         * modules/isblank-tests: New file.
9133         * tests/test-isblank.c: New file.
9134
9135         New module 'isblank'.
9136         * lib/isblank.c: New file.
9137         * m4/isblank.m4: New file.
9138         * modules/isblank: New file.
9139         * doc/posix-functions/isblank.texi: Mention the new module.
9140
9141 2009-10-18  Bruno Haible  <bruno@clisp.org>
9142
9143         New module 'ctype'.
9144         * lib/ctype.in.h: New file.
9145         * m4/ctype.m4: New file.
9146         * modules/ctype: New file.
9147         * doc/posix-headers/ctype.texi: Mention the new module.
9148
9149 2009-10-18  Jim Meyering  <meyering@redhat.com>
9150
9151         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9152         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9153         right after its initialization, rather than farther down.
9154         Keeping these in close proximity makes it easier to ensure
9155         that each such variable is initialized.  E.g.,
9156
9157             LIB_CLOCK_GETTIME=
9158             AC_SUBST([LIB_CLOCK_GETTIME])
9159
9160         This change also increments these serial numbers.
9161         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9162         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9164
9165 2009-10-18  Bruno Haible  <bruno@clisp.org>
9166
9167         Don't let environment variables perturb build.
9168         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9169         (gl_PREREQ_GETHRXTIME): ... not here.
9170
9171 2009-10-18  Bruno Haible  <bruno@clisp.org>
9172
9173         Avoid symlink attack in localcharset module.
9174         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9175         (O_NOFOLLOW): Define fallback.
9176         (get_charset_aliases): Don't open the file if it is a symbolic link.
9177         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9178         gl_FCNTL_H.
9179         (gl_FCNTL_H): Require it.
9180         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9181         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9182         Reported by Fergal Glynn <fglynn@veracode.com>.
9183
9184 2009-10-18  Bruno Haible  <bruno@clisp.org>
9185
9186         Implement nproc for mingw.
9187         * lib/nproc.c: Include <windows.h>
9188         (num_processors): On native Windows platforms, try GetSystemInfo.
9189
9190 2009-10-18  Bruno Haible  <bruno@clisp.org>
9191
9192         Implement nproc for IRIX.
9193         * lib/nproc.c: Include <sys/sysmp.h>.
9194         (num_processors): On IRIX systems, try sysmp.
9195         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9196
9197 2009-10-18  Bruno Haible  <bruno@clisp.org>
9198
9199         Implement nproc for HP-UX.
9200         * lib/nproc.c: Include <sys/pstat.h>
9201         (num_processors): On HP-UX systems, try pstat_getdynamic.
9202         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9203         pstat_getdynamic.
9204
9205 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9206             Bruno Haible  <bruno@clisp.org>
9207
9208         Implement nproc for NetBSD, OpenBSD.
9209         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9210         (ARRAY_SIZE): New macro.
9211         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9212         * m4/nproc.m4: New file.
9213         * modules/nproc (Files): Add m4/nproc.m4.
9214         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9215         (Makefile.am): Instead, augment lib_SOURCES.
9216
9217 2009-10-18  Bruno Haible  <bruno@clisp.org>
9218
9219         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9220         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9221         sys/param.h.
9222
9223 2009-10-16  Eric Blake  <ebb9@byu.net>
9224
9225         utimensat: new module
9226         * modules/utimensat: New file.
9227         * lib/utimensat.c (utimensat): Likewise.
9228         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9229         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9230         so we can work around Linux bugs.
9231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9232         * modules/sys_stat (Makefile.am): Substitute them.
9233         * lib/sys_stat.in.h (utimensat): Declare it.
9234         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9235         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9236         * modules/utimensat-tests: New test.
9237         * tests/test-utimensat.c: Likewise.
9238
9239         utimens: let lutimens work on non-symlinks
9240         * lib/utimens.c (lutimens): Fall back to utimens rather than
9241         failing with ENOSYS, when file is not a symlink.
9242         (utimens): Reduce redirection.
9243         * tests/test-lutimens.h (test_lutimens): Update test to cover
9244         non-symlinks.
9245         * tests/test-utimens.h (test_utimens): Update test to cover
9246         symlinks.
9247         * tests/test-utimens.c (main): Update caller.
9248
9249         utimens: cache whether utimensat syscall works
9250         * lib/utimens.c (utimensat_works_really): New cache variable.
9251         (fdutimens, lutimens): Use it to avoid failing syscall.
9252
9253         test-stat-time, test-utimens: improve portability
9254         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9255         ext4 on alpha, and for cygwin.
9256         * tests/test-utimens-common.h: New file.
9257         (nap): Factor delays into single function.
9258         * tests/test-lutimens.h (test_lutimens): Use new header.
9259         * tests/test-futimens.h (test_futimens): Likewise.
9260         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9261         timestamps to occur from same machine, as was done previously for
9262         test_utimens.
9263         * modules/utimens-tests (Files): Ship new file.
9264         * modules/futimens-tests (Files): Likewise.
9265         Reported in part by Jim Meyering.
9266
9267         sys_stat: sort replacement declarations
9268         * lib/sys_stat.in.h: Sort declarations.
9269         * lib/futimens.c (futimens): Fix typo.
9270
9271 2009-10-15  Jim Meyering  <meyering@redhat.com>
9272
9273         don't let environment settings perturb build
9274         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9275         could cause a configure-time and/or build-time malfunction.
9276         Typically, a configure-time function-in-library test is performed
9277         via code like this:
9278
9279           LIB_VAR=
9280           AC_SUBST([LIB_VAR])
9281           prefix_saved_LIBS=$LIBS
9282             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9283                        [test "$ac_cv_search_FUNC" = "none required" ||
9284                         LIB_VAR=$ac_cv_search_FUNC])
9285           LIBS=$prefix_saved_LIBS
9286
9287         However, in each of the files affected by this change, the LIB_VAR=
9288         initialization was omitted.  Thus, when set in the environment, its
9289         value would propagate into generated Makefiles when FUNC is not found
9290         in LIB_NAME.
9291         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9292         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9294
9295 2009-10-14  Eric Blake  <ebb9@byu.net>
9296
9297         fchdir: avoid infinite recursion in mingw
9298         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9299         recursing.
9300
9301         test-stat-time: port to mingw
9302         * tests/test-stat-time.c (force_unlink): Return a value.
9303         (test_ctime) [W32]: Fix compilation error.
9304         (nap): Don't call usleep with too large an argument.  Use
9305         force_unlink.
9306         * doc/pastposix-functions/usleep.texi (usleep): Document the
9307         portability issue.
9308
9309 2009-10-13  Jim Meyering  <meyering@redhat.com>
9310
9311         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9312         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9313         * modules/pipe-filter-ii: Likewise.
9314         * modules/sys_socket-tests: Likewise.
9315         * modules/tsearch-tests: Likewise.
9316         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9317         (check): Depend on it.
9318
9319 2009-10-12  Eric Blake  <ebb9@byu.net>
9320
9321         utimens-tests: port to NFS file systems
9322         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9323         comparisons to avoid spurious failures from timestamp drift
9324         between NFS machines.
9325
9326 2009-10-12  Eric Blake  <ebb9@byu.net>
9327
9328         stat-time-tests: minor cleanups
9329         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9330         * tests/test-stat-time.c (nap): Separate assignment from call.
9331         Suggested by Paolo Bonzini and Bruno Haible.
9332
9333         sys_stat: guarantee struct timespec
9334         * lib/sys_stat.in.h (includes): Always include <time.h>
9335         * modules/sys_stat (Depends-on): Add time.
9336         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9337         mode_t permission values.
9338         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9339         get at subsecond timestamps.
9340
9341 2009-10-10  Eric Blake  <ebb9@byu.net>
9342
9343         futimens: new module
9344         * modules/futimens: New file.
9345         * lib/futimens.c (futimens): Likewise.
9346         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9347         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9348         we can work around Linux bugs.
9349         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9350         * modules/sys_stat (Makefile.am): Substitute them.
9351         * lib/sys_stat.in.h (futimens): Declare it.
9352         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9353         * doc/posix-functions/futimens.texi (futimens): Likewise.
9354         * modules/futimens-tests: New test.
9355         * tests/test-futimens.c: Likewise.
9356
9357         utimens: introduce fdutimens
9358         * lib/utimens.h (fdutimens): New prototype.
9359         * lib/utimens.c (gl_futimens): Move guts...
9360         (fdutimens): ...to new interface.
9361         * tests/test-utimens.c (do_fdutimens): Use it.
9362
9363         utimens: add UTIME_NOW and UTIME_OMIT support
9364         * lib/utimens.c (validate_timespec, update_timespec): New helper
9365         functions.
9366         (gl_futimens, lutimens): Use them.
9367         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9368         stdbool, sys_stat.
9369         (Link): Mention resulting library dependency.
9370         * modules/utimecmp (Link): Likewise.
9371         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9372         (Makefile.am): Pick up library dependency.
9373         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9374         definition.
9375         * tests/test-sys_stat.c: Test the definitions.
9376         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9377         * NEWS: Document library dependency.
9378
9379         utimecmp: support symlink timestamps
9380         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9381         hashing when possible.  Use pathconf when available.
9382         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9383         * modules/utimecmp (Depends-on): Add lstat.
9384
9385         utimens: add lutimens interface
9386         * lib/utimens.c (lutimens): New function.
9387         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9388         * lib/utimens.h (lutimens): Declare new interface.
9389         * tests/test-utimens.c (main): Enhance test.
9390         * tests/test-lutimens.h (test_lutimens): New file.
9391         * modules/utimens-tests (Files): Distribute it.
9392         (Depends-on): Add symlink.
9393         (configure.ac): Check for usleep.
9394
9395         utimens: validate futimens usage
9396         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9397         fewer syscalls on failure later on.  Avoid compiler warning on
9398         mingw.
9399         * modules/utimens (Depends-on): Add dup2.
9400
9401         utimens: add test
9402         * modules/utimens-tests: New test.
9403         * tests/test-utimens.h: New file.
9404         * tests/test-futimens.h: Likewise.
9405         * tests/test-utimens.c: Likewise.
9406
9407         doc: mention timestamp portability issues
9408         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9409         instead.
9410         * doc/posix-functions/utime.texi (utime): Likewise.
9411         * doc/posix-functions/utimes.texi (utimes): Likewise.
9412         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9413         instead.
9414         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9415         module.
9416         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9417         Mention weakness with symlink timestamps.
9418         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9419         to utimensat/futimens instead.
9420         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9421
9422         test-dup2: enhance test
9423         * tests/test-dup2.c (main): Also check AT_FDCWD.
9424
9425         test-stat-time: avoid more spurious failures
9426         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9427         xfs; and avoid race if the two timestamps cross quantization edge.
9428
9429         relocatable: prefer 'file system' over 'filesystem'
9430         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9431         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9432         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9433         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9434         * lib/relocatable.c (compute_curr_prefix): Likewise.
9435
9436 2009-10-10  Jim Meyering  <meyering@redhat.com>
9437
9438         stat-time-tests: check for the usleep function
9439         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9440
9441 2009-10-10  Bruno Haible  <bruno@clisp.org>
9442
9443         * modules/xnanosleep: Put the Link section after the Include section.
9444
9445 2009-10-09  Eric Blake  <ebb9@byu.net>
9446
9447         dup2: work around FreeBSD 6.1 bug
9448         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9449         * doc/posix-functions/dup2.texi (dup2): Document it.
9450         Reported by Nelson H. F. Beebe and Jim Meyering.
9451
9452         test-stat-time: port to buggy NFS clients
9453         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9454         (test_ctime): Also skip test if mtime and ctime are skewed.
9455
9456         maint: prefer 'file system' over 'filesystem'
9457         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9458         * doc/posix-functions/lstat.texi (lstat): Likewise.
9459         * lib/file-has-acl.c (file_has_acl): Likewise.
9460         * lib/fwriteerror.c [TEST]: Likewise.
9461         * tests/test-areadlink.h (test_areadlink): Likewise.
9462         * tests/test-areadlinkat-with-size.c (main): Likewise.
9463         * tests/test-areadlinkat.c (main): Likewise.
9464         * tests/test-canonicalize-lgpl.c (main): Likewise.
9465         * tests/test-canonicalize.c (main): Likewise.
9466         * tests/test-fstatat.c (main): Likewise.
9467         * tests/test-linkat.c (main): Likewise.
9468         * tests/test-lstat.h (test_lstat_func): Likewise.
9469         * tests/test-mkdir.h (test_mkdir): Likewise.
9470         * tests/test-readlink.h (test_readlink): Likewise.
9471         * tests/test-remove.c (main): Likewise.
9472         * tests/test-rename.h (test_rename): Likewise.
9473         * tests/test-renameat.c (main): Likewise.
9474         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9475         * tests/test-symlink.h (test_symlink): Likewise.
9476         * tests/test-symlinkat.c (main): Likewise.
9477         * tests/test-unlink.h (test_unlink_func): Likewise.
9478         * tests/test-unlinkat.c (main): Likewise.
9479
9480         maint: make realtime library usage explicit
9481         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9482         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9483         * modules/settime (Link): Likewise.
9484         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9485
9486         test-stat-time: speed up execution
9487         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9488         warning on mingw.
9489         (nap): New helper function.
9490         (prepare_test): Use it to reduce sleep time.
9491         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9492         execution.
9493         * modules/stat-time-tests (configure.ac): Check for usleep.
9494
9495 2009-10-09  Jim Meyering  <meyering@redhat.com>
9496
9497         selinux-h: always use getfilecon wrappers
9498         * lib/getfilecon.c: New file.
9499         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9500         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9501         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9502         (fgetfilecon): Provide a stub.
9503         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9504         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9505         file unconditionally.
9506         When <selinux/selinux.h> is found, arrange to use wrappers.
9507         * modules/selinux-h (Files): Add getfilecon.c.
9508         (Makefile.am): Substitute include-next-related bits
9509         into the now-always-generated selinux/selinux.h file.
9510         * doc/glibc-functions/lgetfilecon.texi: New file.
9511         * doc/glibc-functions/fgetfilecon.texi: New file.
9512         * doc/glibc-functions/getfilecon.texi: New file.
9513         * doc/glibc-functions/getfilecon-desc.texi: New file.
9514         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9515         which to pull in the new files.
9516         * MODULES.html.sh (Misc): Add selinux-h.
9517
9518 2009-10-08  Jim Meyering  <meyering@redhat.com>
9519
9520         unistd: fix comment typo
9521         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9522
9523 2009-10-08  Eric Blake  <ebb9@byu.net>
9524
9525         areadlink: use SIZE_MAX consistently
9526         * modules/areadlink (Depends-on): Add stdint.
9527         * modules/areadlink-with-size (Depends-on): Likewise.
9528         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9529         gives NULL; drop sys/types, since unistd gives size_t; and add
9530         stdint for SIZE_MAX.
9531         (SIZE_MAX): Rely on headers.
9532         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9533         and add stdint.
9534         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9535         (SIZE_MAX): Likewise.
9536         (INITIAL_BUF_SIZE): Turn into enum.
9537         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9538
9539 2009-10-08  Jim Meyering  <meyering@redhat.com>
9540
9541         areadlinkat: avoid compilation failure
9542         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9543         Fix typo in comment.
9544
9545 2009-10-07  Eric Blake  <ebb9@byu.net>
9546
9547         areadlinkat-with-size: new module
9548         * modules/areadlinkat-with-size: New module.
9549         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9550         * lib/areadlink.h (areadlinkat): Declare it.
9551         * MODULES.html.sh (File system functions): Mention it.
9552         * modules/areadlinkat-with-size-tests: New test.
9553         * tests/test-areadlinkat-with-size.c: New file.
9554
9555         xreadlinkat: new module
9556         * modules/xreadlinkat: New module.
9557         * lib/xreadlinkat.c (xreadlinkat): New file.
9558         * lib/xreadlink.h (xreadlinkat): Declare it.
9559         * MODULES.html.sh (File system functions): Mention it.
9560
9561         areadlinkat: new module
9562         * lib/at-func.c (FUNC_FAIL): New define.
9563         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9564         * modules/areadlinkat: New module.
9565         * lib/linkat.c (areadlinkat): Move...
9566         * lib/areadlinkat.c (areadlinkat): ...to new file.
9567         * lib/areadlink.h (areadlinkat): Declare it.
9568         * modules/linkat (Depends-on): Add areadlinkat.
9569         * MODULES.html.sh (File system functions): Mention it.
9570         * modules/areadlinkat-tests: New test.
9571         * tests/test-areadlinkat.c: New file.
9572
9573         areadlink, areadlink-with-size: add tests
9574         * modules/areadlink-tests: New test.
9575         * modules/areadlink-with-size-tests: Likewise.
9576         * tests/test-areadlink.h: New file.
9577         * tests/test-areadlink.c: Likewise.
9578         * tests/test-areadlink-with-size.c: Likewise.
9579
9580         maint: minor cleanups
9581         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9582         _UNUSED_PARAMETER_ instead.
9583         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9584         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9585         * modules/linkat-tests (Files): Distribute test-link.h.
9586
9587         openat, utimens: whitespace cleanup
9588         * lib/openat.c: Prefer space throughout, rather than mix of 8
9589         spaces vs. tabs.
9590         * lib/at-func.c: Likewise.
9591         * lib/utimens.c: Likewise.
9592
9593         openat: avoid using wrong fd
9594         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9595         working directory chooses same fd.
9596         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9597
9598         mkdir, mkdirat: fix cygwin 1.5.x bug
9599         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9600         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9601         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9602         bug.
9603         (gl_PREREQ_MKDIR): Delete unused macro.
9604         * modules/mkdir (Files): Track file rename.
9605         (configure.ac): Update macro name.
9606         * modules/openat (Depends-on): Add mkdir.
9607         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9608
9609         mkdir, mkdirat: add tests
9610         * modules/mkdir-tests: New test.
9611         * tests/test-mkdir.h: New file.
9612         * tests/test-mkdir.c: Likewise.
9613         * tests/test-mkdirat.c: Likewise.
9614         * modules/openat-tests (Files): Add new files.
9615         (Makefile.am): Run new test.
9616
9617 2009-10-06  Eric Blake  <ebb9@byu.net>
9618
9619         doc: tweak *at function documentation
9620         * doc/posix-functions/faccessat.texi (faccessat): Mention
9621         known issue with replacement.
9622         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9623         * doc/posix-functions/linkat.texi (linkat): Likewise.
9624         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9625         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9626         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9627         * doc/posix-functions/renameat.texi (renameat): Likewise.
9628         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9629
9630         openat: fix GNU/Hurd bug in unlinkat
9631         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9632         broken.
9633         * doc/posix-functions/unlink.texi (unlink): Document this.
9634         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9635
9636         fdopendir: fix GNU/Hurd bug
9637         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9638         allowing non-directory fds.
9639         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9640         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9641         * modules/dirent (Makefile.am): Substitute it.
9642         * lib/dirent.in.h (fdopendir): Declare replacement.
9643         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9644         * tests/test-fdopendir.c (main): Test something other than
9645         /dev/null, since on Hurd that behaves like a directory.
9646
9647         test-symlink: port to GNU/Hurd
9648         * tests/test-symlink.h (test_symlink): Relax expected errno.
9649
9650         doc: tweak more cygwin information
9651         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9652         now compatible with glibc.
9653         * doc/posix-functions/getopt.texi (getopt): Likewise.
9654
9655         getopt-gnu: add another test
9656         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9657         guarantee behavior relied on by m4.
9658         * tests/test-getopt.c (main): Use it.
9659         * modules/getopt-posix-tests (Depends-on): Add setenv.
9660         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9661
9662         getopt: fix compilation on darwin
9663         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9664         include.
9665         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9666         Reported by Ludovic Courtès.
9667
9668 2009-10-06  Bruno Haible  <bruno@clisp.org>
9669
9670         * modules/size_max (Description): Discourage its use.
9671         Reported by Simon Josefsson.
9672
9673 2009-10-06  Jim Meyering  <meyering@redhat.com>
9674
9675         linkat: avoid compilation failure
9676         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9677
9678 2009-10-05  Eric Blake  <ebb9@byu.net>
9679
9680         linkat: support Linux 2.6.17
9681         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9682         linkat on Linux, but allow cache variable override.
9683         * lib/linkat.c (rpl_linkat): Define override.
9684         * modules/linkat (Depends-on): Add symlinkat.
9685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9686         * modules/unistd (Makefile.am): Substitute it.
9687         * lib/unistd.in.h (linkat): Declare replacement.
9688         Reported by Pádraig Brady.
9689
9690         quotearg: port test to systems with C.UTF-8 locale
9691         * tests/test-quotearg.c (struct result_strings): Add another
9692         member, differentiating between C.ASCII and C.UTF-8 handling.
9693         (compare_strings): Add parameter.
9694         (main): Adjust all callers.
9695
9696         getopt: avoid clash with FreeBSD _getopt_internal
9697         * lib/getopt.in.h (_getopt_internal): Override the name.
9698         * lib/getopt_int.h (includes): Pick up any overrides.
9699         Reported by Reuben Thomas.
9700
9701         hash: allow C89 compilation
9702         * lib/hash.c (check_tuning): Move declaration before statement.
9703         Reported by Reuben Thomas.
9704
9705 2009-10-05  Karl Berry  <karl@gnu.org>
9706
9707         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9708
9709 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9710             Bruno Haible  <bruno@clisp.org>
9711
9712         * lib/uname.c (uname): Use a table-driven algorithm to compute
9713         Windows NT versions.
9714
9715 2009-10-04  Bruno Haible  <bruno@clisp.org>
9716
9717         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9718         program_invocation_short_name.
9719         * modules/progname (configure.ac): Test for presence of
9720         program_invocation_short_name.
9721         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9722
9723 2009-10-04  Bruno Haible  <bruno@clisp.org>
9724
9725         * lib/progname.c (set_program_name): Fix comment.
9726         Reported by Jim Meyering.
9727
9728 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9729             Bruno Haible  <bruno@clisp.org>
9730
9731         * lib/uname.c: Include <string.h>.
9732         (uname): Do only one call to GetVersionEx in the common case.
9733
9734 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9735             Bruno Haible  <bruno@clisp.org>
9736
9737         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9738         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9739         (uname): Add support for Windows CE and various non-x86 CPU types.
9740
9741 2009-10-03  Bruno Haible  <bruno@clisp.org>
9742
9743         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9744         invocation to tests/configure.ac.
9745         Reported by Ian Beckwith <ianb@erislabs.net>.
9746
9747 2009-10-02  Eric Blake  <ebb9@byu.net>
9748
9749         fchdir: avoid compiler warning
9750         * lib/fchdir.c (canonicalize_file_name)
9751         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9752
9753         test-open: support mingw errno values
9754         * tests/test-open.h (test_open): Relax test.
9755         * tests/test-fopen.h (test_fopen): Likewise.
9756         * tests/test-openat-safer.c (main): Likewise.
9757
9758         open: fix opening directory on mingw
9759         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9760
9761         test-open: on GNU/Hurd, /dev/null is a directory
9762         * tests/test-fopen.h (main): Rename...
9763         (test_fopen): ...to this.  Use a guaranteed non-directory when
9764         confirming open behavior on trailing slash.
9765         * tests/test-openat-safer.c (main): Likewise.
9766         * tests/test-open.h (main): Likewise....
9767         (test_open): ...to this.
9768         * tests/test-fopen.c (main): Adjust caller.
9769         * tests/test-fopen-safer.c (main): Likewise.
9770         * tests/test-open.c (main): Likewise.
9771         * tests/test-fcntl-safer.c (main): Likewise.
9772         Reported by Samuel Thibault.
9773
9774         rename, fchdir: don't ignore chdir failure
9775         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9776         * lib/rename.c (rpl_rename) [W32]: Likewise.
9777         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9778         an empty destination directory if source cannot be renamed,
9779         although there is still possibility for failure.
9780         * doc/posix-functions/rename.texi (rename): Document the race.
9781         Reported by Jim Meyering.
9782
9783         maint: cleanup whitespace in recent commits
9784         * lib/rename.c (rpl_rename): Remove tabs.
9785         * tests/test-link.h (test_link): Likewise.
9786         * lib/fchdir.c (get_name): Likewise.
9787         Reported by Jim Meyering.
9788
9789 2009-10-02  Ben Pfaff  <blp@gnu.org>
9790
9791         relocatable-prog-wrapper: Add missing dependency on
9792         double-slash-root.
9793         * modules/relocatable-prog-wrapper: Add dependency.
9794         Reported by Ian Beckwith <ianb@erislabs.net>.
9795
9796 2009-10-02  Eric Blake  <ebb9@byu.net>
9797
9798         renameat: fix Solaris bugs
9799         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9800         needed fixing.
9801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9802         * modules/stdio (Makefile.am): Substitute it.
9803         * lib/stdio.in.h (renameat): Declare replacement.
9804         * lib/renameat.c (rpl_renameat): Implement fix.
9805
9806         renameat: new module
9807         * modules/renameat: New file.
9808         * lib/renameat.c (renameat): Likewise.
9809         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9811         * modules/stdio (Makefile.am): Substitute them.
9812         * lib/stdio.in.h (renameat): Declare it.
9813         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9814         * doc/posix-functions/renameat.texi (renameat): Likewise.
9815         * modules/renameat-tests: New test.
9816         * tests/test-renameat.c: Likewise.
9817
9818         rename: fix mingw bugs
9819         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9820         directory overwrite bugs.
9821
9822         rename: fix another cygwin 1.5 bug
9823         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9824         checks.
9825         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9826         unnecessary cygwin workarounds.  Also work around bug with moving
9827         full directory onto an empty one.
9828         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9829
9830         rename-dest-slash: merge into rename module
9831         * modules/rename-dest-slash (Status): Mark obsolete.
9832         (Depends-on): Add rename.
9833         (Files): Let rename do it all.
9834         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9835         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9836         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9837         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9838         * lib/rename.c (rpl_rename): Update comments.
9839
9840         rename: fix cygwin 1.5.x bugs
9841         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9842         * lib/rename.c (rpl_rename): Work around them.
9843         * modules/rename (Depends-on): Add same-inode.
9844
9845         rename: fix Solaris 10 bug
9846         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9847         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9848         was the only bug.
9849
9850         rename: fix Solaris 9 bug
9851         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9852         on non-directory.  Avoid calling exit.
9853         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9854         strdup.
9855         * modules/rename-tests (Depends-on): Drop lstat.
9856         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9857         (gl_PREREQ_RENAME): Delete unused macro.
9858
9859         rename-dest-slash: fix NetBSD bug
9860         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9861         links.
9862         * modules/rename-dest-slash (Depends-on): Add same-inode.
9863
9864         rename-tests: new test, exposes several platform bugs
9865         * modules/rename-tests: New file.
9866         * tests/test-rename.h: Likewise.
9867         * tests/test-rename.c: Likewise.
9868         * doc/posix-functions/rename.texi (rename): Improve documentation,
9869         including bugs that will eventually be fixed in gnulib.
9870
9871 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9872
9873         * lib/uname.c: Include <stdlib.h>
9874         (uname): Assume version info is available.
9875
9876 2009-10-02  Jim Meyering  <meyering@redhat.com>
9877
9878         gnu-web-doc-update: correct --help output
9879         * build-aux/gnu-web-doc-update: Make --help output relevant.
9880
9881         gnu-web-doc-update: add standard options
9882         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9883
9884         gnu-web-doc-update: New module.
9885         Use this script to automatically update the on-line web documentation
9886         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9887         * modules/gnu-web-doc-update: New file, from coreutils.
9888         * build-aux/gnu-web-doc-update: New script.
9889
9890 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9891
9892         link: LoadLibrary is not needed.
9893         * lib/link.c: Use GetModuleHandle.
9894
9895 2009-10-01  Eric Blake  <ebb9@byu.net>
9896
9897         getopt: bump serial number
9898         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9899         change.
9900
9901         tests: tighten link, rmdir, and remove tests
9902         * tests/test-link.h (includes): No need to use <config.h> here.
9903         Clean up if directory hard link was created, otherwise test for
9904         trailing '.'.
9905         * tests/test-linkat.c (main): Simplify.
9906         * tests/test-remove.c (main): Enhance test for trailing '.'.
9907         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9908
9909 2009-10-01  Jim Meyering  <meyering@redhat.com>
9910
9911         maint.mk: requiring "make major" was annoying, for a "minor" release.
9912         What is intended is "stable", to contrast with alpha and beta,
9913         so require "make stable", not "make major".
9914         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9915         (get_tool_versions): Likewise.
9916         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9917
9918 2009-09-30  Ben Pfaff  <blp@gnu.org>
9919
9920         Fix broken build of replacement for Windows tmpfile().
9921         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9922         flags argument added along with the 'mkostemp' module.
9923
9924 2009-09-28  Bruno Haible  <bruno@clisp.org>
9925
9926         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9927         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9928         to 'remove_elt'.
9929         (gl_list_remove): Update.
9930         * lib/gl_list.c (gl_list_remove): Update.
9931         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9932         to 'remove_elt'.
9933         (gl_oset_remove): Update.
9934         * lib/gl_list.c (gl_oset_remove): Update.
9935         Reported by Eric Blake.
9936
9937 2009-09-28  Eric Blake  <ebb9@byu.net>
9938
9939         doc: mention yet more cygwin 1.7 status
9940         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9941         cygwin.
9942         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9943         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9944
9945         argp: fix test failure
9946         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9947         that are not upper-case.  Pass correct range to tolower.
9948
9949 2009-09-27  Jim Meyering  <meyering@redhat.com>
9950
9951         test-yesno: work around sparc-dash here-document infelicity
9952         Without this change, the literal \177 byte in a here document
9953         would make dash 0.5.5.1-3 access uninitialized memory.
9954         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9955         Instead, use a marker, "@", and filter through tr to create the desired
9956         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9957
9958 2009-09-27  Bruno Haible  <bruno@clisp.org>
9959
9960         Disable untested support for new flavours of ACLs on AIX.
9961         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9962         progress.
9963         * lib/set-mode-acl.c (qset_acl): Likewise.
9964
9965 2008-12-07  Bruno Haible  <bruno@clisp.org>
9966
9967         Add support for new flavours of ACLs on AIX. (Untested.)
9968         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9969         (file_has_acl): Add support for newer AIX.
9970         * lib/set-mode-acl.c (qset_acl): Likewise.
9971         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9972         Rainer Tammer <tammer@tammer.net>.
9973
9974 2009-09-26  Eric Blake  <ebb9@byu.net>
9975
9976         argp: fix compilation of getopt
9977         * lib/getopt.in.h (includes): Use different guard than glibc.
9978         Reported by Sergey Poznyakoff.
9979
9980         doc: mention more cygwin 1.7 status
9981         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9982         bug.
9983         * doc/posix-functions/execl.texi (execl): Likewise.
9984         * doc/posix-functions/execle.texi (execle): Likewise.
9985         * doc/posix-functions/execlp.texi (execlp): Likewise.
9986         * doc/posix-functions/execv.texi (execv): Likewise.
9987         * doc/posix-functions/execve.texi (execve): Likewise.
9988         * doc/posix-functions/execvp.texi (execvp): Likewise.
9989         * doc/glibc-functions/canonicalize_file_name.texi
9990         (canonicalize_file_name): Cygwin 1.7 now provides this.
9991         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9992         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9993         on AT_SYMLINK_NOFOLLOW.
9994
9995 2009-09-24  Eric Blake  <ebb9@byu.net>
9996
9997         test-linkat: make test more robust
9998         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9999
10000         getopt: fix inclusion guards for cygwin
10001         * modules/getopt-posix (Depends-on): Add include-next.
10002         (Makefile.am): Substitute more items in replacement header.
10003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10004         <getopt.h>.
10005         * lib/getopt.in.h (includes): Use split inclusion guard, and
10006         prefer <getopt.h> over include <unistd.h> when one is present.
10007         (option): Also override name of 'struct option'.
10008
10009         same-inode: revert prior change; it is not yet ready
10010         * NEWS: Undo mention of this change.
10011         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10012         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10013         * lib/cycle-check.c (cycle_check): Likewise.
10014         * lib/same.c (same_name): Likewise.
10015         * lib/at-func2.c (at_func2): Likewise.
10016
10017 2009-09-23  Eric Blake  <ebb9@byu.net>
10018
10019         linkat: new module
10020         * modules/linkat: New file.
10021         * lib/at-func2.c (at_func2): Likewise.
10022         * lib/linkat.c (linkat): Likewise.
10023         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10024         * lib/openat-priv.h (at_func2): Add declaration.
10025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10026         * modules/unistd (Makefile.am): Substitute them.
10027         * lib/unistd.in.h (linkat): Declare it.
10028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10029         * doc/posix-functions/linkat.texi (linkat): Likewise.
10030         * doc/posix-functions/link.texi (link): Tweak wording.
10031         * tests/test-link.c (main): Move guts...
10032         * tests/test-link.h (test_link): ...into new file.
10033         * modules/linkat-tests: New test.
10034         * tests/test-linkat.c: Likewise.
10035         * modules/link-tests (Files): Ship new file.
10036         (Depends-on): Add stdbool.
10037
10038         dirname: add library-safe mdir_name
10039         * lib/dirname.h (mdir_name): New prototype.
10040         * lib/dirname.c (dir_name): Move guts...
10041         (mdir_name): ...to new function that avoids xalloc_die.
10042
10043         fchdir: another mingw fix
10044         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10045         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10046         on mingw (where it has not yet been ported), and make it optional
10047         elsewhere.
10048         (_gl_register_fd): Use it.
10049
10050         same-inode: make SAME_INODE tri-state, to port to mingw
10051         * NEWS: Mention this change.
10052         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10053         st_ino always being 0.
10054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10055         * lib/cycle-check.c (cycle_check): Likewise.
10056         * lib/same.c (same_name): Likewise.
10057
10058         lstat: avoid mingw compilation error
10059         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10060         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10061         lstat ourselves.
10062         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10063         was adequate.
10064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10065         the checks for lstat.
10066         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10067
10068         link: fix test failure on Solaris 9
10069         * lib/link.c (rpl_link): Don't assume link will catch bogus
10070         trailing slash on source.
10071
10072         test-symlinkat: enhance test
10073         * tests/test-readlink.c (main): Move guts...
10074         * tests/test-readlink.h (test_readlink): ...into new file.
10075         * tests/test-symlink.c (main): Move guts...
10076         * tests/test-symlink.h (test_symlink): ...into new file.
10077         * tests/test-symlinkat.c (main): Use new files for further
10078         coverage.
10079         (do_symlink, do_readlink): New helper functions.
10080         * modules/symlink-tests (Files): Ship new file.
10081         (Depends-on): Add stdbool.
10082         * modules/readlink-tests (Files): Ship new file.
10083         (Depends-on): Add stdbool.
10084         * modules/symlinkat-tests (Files): Use new files.
10085
10086 2009-09-23  Eric Blake  <ebb9@byu.net>
10087
10088         readlink: document portability issue with symlink length
10089         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10090         systems have bogus st_size on symlinks, and mention the
10091         areadlink-with-size module.
10092         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10093         * doc/posix-functions/readlink.texi (readlink): Mention the
10094         areadlink module, and ERANGE failure.
10095         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10096         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10097
10098         readlink: fix Solaris 9 bug with trailing slash
10099         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10100         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10101         * doc/posix-functions/readlink.texi (readlink): Document this.
10102         * modules/readlink-tests: New test.
10103         * tests/test-readlink.c: Likewise.
10104
10105         readlink: fix cygwin 1.5.x bug with return type
10106         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10107         * lib/unistd.in.h (readlink): Use ssize_t.
10108         * lib/readlink.c (readlink): Likewise.
10109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10110         * modules/unistd (Makefile.am): Substitute it.
10111         * lib/unistd.in.h (readlink): Declare replacement.
10112         * doc/posix-functions/readlink.texi (readlink): Document this.
10113
10114         symlink: use throughout gnulib
10115         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10116         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10117         symlink is not used.
10118         * modules/symlinkat (Depends-on): Add symlink.
10119         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10120         * modules/canonicalize-tests (Depends-on): Likewise.
10121         * modules/lstat-tests (Depends-on): Likewise.
10122         * modules/openat-tests (Depends-on): Likewise.
10123         * modules/remove-tests (Depends-on): Likewise.
10124         * modules/rmdir-tests (Depends-on): Likewise.
10125         * modules/unlink-tests (Depends-on): Likewise.
10126         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10127         * tests/test-canonicalize.c (symlink): Likewise.
10128         * tests/test-fstatat.c (symlink): Likewise.
10129         * tests/test-lstat.c (symlink): Likewise.
10130         * tests/test-remove.c (symlink): Likewise.
10131         * tests/test-rmdir.c (symlink): Likewise.
10132         * tests/test-unlink.c (symlink): Likewise.
10133         * tests/test-unlinkat.c (symlink): Likewise.
10134
10135         symlink: new module, for Solaris 9 bug
10136         * modules/symlink: New file.
10137         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10138         * lib/symlink.c: Likewise.
10139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10140         * modules/unistd (Makefile.am): Substitute them.
10141         * lib/unistd.in.h (symlink): Declare replacement.
10142         * MODULES.html.sh (File system functions): Mention it.
10143         * doc/posix-functions/symlink.texi (symlink): Likewise.
10144         * modules/symlink-tests: New test.
10145         * tests/test-symlink.c: Likewise.
10146
10147 2009-09-23  Bruno Haible  <bruno@clisp.org>
10148
10149         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10150         when needed.
10151         Test case: gnulib-tool --import --with-tests atexit inttypes.
10152         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10153
10154 2009-09-23  Bruno Haible  <bruno@clisp.org>
10155
10156         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10157         subcommand, not in a subshell.
10158
10159 2009-09-22  Eric Blake  <ebb9@byu.net>
10160
10161         unistd: sort replacement declarations
10162         * lib/unistd.in.h: Sort declarations.
10163
10164         open, openat: minor optimization
10165         * lib/open.c (open): If open succeeded, len is non-zero.
10166         * lib/openat.c (rpl_openat): Likewise.
10167
10168         link-follow: ensure correct result
10169         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10170         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10171         distinguish between possible failures.
10172
10173 2009-09-21  Eric Blake  <ebb9@byu.net>
10174
10175         fts: avoid compiler warning
10176         * lib/fts.c (dirent_inode_sort_may_be_useful)
10177         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10178
10179 2009-09-19  Bruno Haible  <bruno@clisp.org>
10180
10181         * lib/progreloc.c (canonicalize_file_name): New declaration.
10182
10183 2009-09-19  Eric Blake  <ebb9@byu.net>
10184
10185         link: fix quoting
10186         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10187
10188         openat: fix openat bugs on Solaris 9
10189         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10190         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10191         * modules/openat (Depends-on): Add open.
10192         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10193         * modules/fcntl-h (Makefile.am): Substitute it.
10194         * lib/fcntl.in.h (openat): Declare replacement.
10195         * doc/posix-functions/openat.texi (openat): Document this.
10196
10197         openat: move fstatat and unlinkat into correct files
10198         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10199         compiled.
10200         * lib/openat.c (fstatat, unlinkat): Move...
10201         * lib/fstatat.c (fstatat): ...into correct files.
10202         * lib/unlinkat.c (unlinkat): Likewise.
10203
10204         openat: fix unlinkat bugs on Solaris 9
10205         * lib/unlinkat.c (unlinkat): New file.
10206         * modules/openat (Depends-on): Add unlink.
10207         (Files): Distribute it.
10208         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10209         trailing slash behavior is broken.
10210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10211         * modules/unistd (Makefile.am): Substitute it.
10212         * lib/unistd.in.h (unlinkat): Declare replacement.
10213         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10214
10215         openat: fix fstatat bugs on Solaris 9
10216         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10217         stat.
10218         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10219
10220         test-unlinkat: enhance test, to expose Solaris 9 bug
10221         * tests/test-unlink.c (main): Factor guts...
10222         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10223         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10224         * tests/test-rmdir.c (main): Adjust caller.
10225         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10226         (unlinker): New helper function.
10227         (rmdirat): Enhance check.
10228         * modules/rmdir-tests (Depends-on): Add stdbool.
10229         * modules/unlink-tests (Depends-on): Likewise.
10230         (Files): Add test-unlink.h.
10231         * modules/openat-tests (Files): Likewise.
10232         (Depends-on): Add unlinkdir.
10233
10234         test-fstatat: new test, to expose Solaris 9 bugs
10235         * tests/test-stat.c (main): Factor guts...
10236         * tests/test-stat.h (test_stat_func): ...into new file.
10237         * tests/test-lstat.c (main): Factor guts...
10238         * tests/test-lstat.h (test_lstat_func): ...into new file.
10239         * tests/test-fstatat.c: New file.
10240         * modules/stat-tests (Files): Add test-stat.h.
10241         * modules/lstat-tests (Files): Add test-lstat.h.
10242         (Depends-on): Add stdbool.
10243         * modules/openat-tests (Depends-on): Add pathmax.
10244         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10245         (Makefile.am): Run new test.
10246
10247         remove: new module, for mingw and Solaris 9 bugs
10248         * modules/remove: New file.
10249         * lib/remove.c: Likewise.
10250         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10252         * modules/stdio (Makefile.am): Use them.
10253         * lib/stdio.in.h (remove): Declare replacement.
10254         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10255         * doc/posix-functions/remove.texi (remove): Likewise.
10256         * modules/remove-tests: New test.
10257         * tests/test-remove.c: Likewise.
10258
10259         unlink: new module, for Solaris 9 bug
10260         * modules/unlink: New file.
10261         * lib/unlink.c: Likewise.
10262         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10264         * modules/unistd (Makefile.am): Use them.
10265         * lib/unistd.in.h (stat): Declare replacement.
10266         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10267         * doc/posix-functions/unlink.texi (unlink): Likewise.
10268         * modules/unlink-tests: New test.
10269         * tests/test-unlink.c: Likewise.
10270
10271         lstat: fix Solaris 9 bug
10272         * lib/lstat.c (lstat): Also check for trailing slash on
10273         non-symlink, non-directories.  Use stat module to simplify logic.
10274         * doc/posix-functions/lstat.texi (lstat): Document it.
10275         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10276         (configure.ac): Check for symlink.
10277         * tests/test-lstat.c (main): Add more tests.
10278
10279         stat: add as dependency to other modules
10280         * modules/chown (Depends-on): Add stat.
10281         * modules/euidaccess (Depends-on): Likewise.
10282         * modules/fchdir (Depends-on): Likewise.
10283         * modules/isdir (Depends-on): Likewise.
10284         * modules/link (Depends-on): Likewise.
10285         * modules/lstat (Depends-on): Likewise.
10286         * modules/mkdir-p (Depends-on): Likewise.
10287         * modules/modechange (Depends-on): Likewise.
10288         * modules/open (Depends-on): Likewise.
10289         * modules/readlink (Depends-on): Likewise.
10290         * modules/same (Depends-on): Likewise.
10291
10292         stat: fix Solaris 9 bug
10293         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10294         slash.
10295         * lib/stat.c (rpl_stat): Work around it.
10296         * doc/posix-functions/stat.texi (stat): Update documentation.
10297
10298         stat: new module, for mingw bug
10299         * modules/stat: New file.
10300         * lib/stat.c: Likewise.
10301         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10303         * modules/sys_stat (Makefile.am): Use them.
10304         * lib/sys_stat.in.h (stat): Declare replacement.
10305         * lib/openat.c (fstatat): Deal with lstat and stat being function
10306         macros.
10307         * modules/openat (Depends-on): Add inline.
10308         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10309         * doc/posix-functions/stat.texi (stat): Likewise.
10310         * modules/stat-tests: New test.
10311         * tests/test-stat.c: Likewise.
10312
10313 2009-09-19  Jim Meyering  <meyering@redhat.com>
10314
10315         syntax-check: detect unnecessary inclusion of canonicalize.h
10316         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10317
10318 2009-09-19  Eric Blake  <ebb9@byu.net>
10319
10320         canonicalize-lgpl: adjust clients to use correct header
10321         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10322         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10323         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10324         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10325         * lib/progreloc.c (includes): Likewise.
10326
10327 2009-09-19  Jim Meyering  <meyering@redhat.com>
10328
10329         test-posixtm.c: correct a comment
10330         * tests/test-posixtm.c: Correct first-line comment.
10331         Spotted by Eric Blake.
10332
10333 2009-09-16  Jim Meyering  <meyering@redhat.com>
10334
10335         posixtm-tests: make T const-correct; add a test case
10336         * tests/test-posixtm.c (T): Declare const.
10337         Add a test for -(2^31+1).
10338         Remove useless can-succeed-only-in-2002 test.
10339
10340         posixtm-tests: adjust the sole failing test
10341         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10342         expected output matches what mktime now produces.  Cross-checked via
10343         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10344
10345         posixtm: move #ifdef'd tests into a new module
10346         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10347         * tests/test-posixtm.c: ... this new file.
10348         * modules/posixtm-tests: New module.
10349
10350 2009-09-19  Eric Blake  <ebb9@byu.net>
10351
10352         openat: simplify use of at-func.c
10353         * lib/at-func.c (includes): Include prerequisites here, to
10354         simplify requirements on client files.
10355         * lib/openat-priv.h: Add double-inclusion guard.
10356         * lib/faccessat.c (includes): Simplify.
10357         * lib/fchmodat.c (includes): Likewise.
10358         * lib/fchownat.c (includes): Likewise.
10359         * lib/mkdirat.c (includes): Likewise.
10360         * lib/mkfifoat.c (includes): Likewise.
10361         * lib/symlinkat.c (includes): Likewise.
10362
10363         openat: allow return of fd 0
10364         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10365         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10366         unistd-safer.
10367         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10368         <fcntl.h>; this module does not leak fds.
10369         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10370         must be allowed to return 0, leaving openat_safer to add the
10371         safety.
10372         (openat_permissive): Avoid writing to just-opened fd 2 if
10373         restoring the current directory fails.
10374         * lib/openat-die.c (openat_restore_fail): Add comment.
10375         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10376         (save_cwd): Guarantee safe fd, but without use of open_safer.
10377         * tests/test-openat.c: New test.
10378         * modules/openat-tests (Files, Makefile.am): Distribute and build
10379         new file.
10380
10381         relocatable-prog-wrapper: fix build
10382         * modules/relocatable-prog-wrapper (Files): Update name of
10383         canonicalize m4 file, broken on 2009-09-17.
10384         Reported by emad hajjar <aleppos@hotmail.com>.
10385
10386 2009-09-19  Bruno Haible  <bruno@clisp.org>
10387
10388         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10389         * lib/safe-alloc.c: Likewise.
10390         Reported by Ian Beckwith <ianb@erislabs.net>.
10391
10392 2009-09-18  Bruno Haible  <bruno@clisp.org>
10393
10394         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10395         Reported by <erobles@sensacd.com.mx>.
10396
10397 2009-09-17  Eric Blake  <ebb9@byu.net>
10398
10399         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10400         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10401         slashes when checking if last component is missing.
10402         * tests/test-canonicalize.c (main): Test this.
10403
10404         canonicalize, canonicalize-lgpl: honor // if distinct from /
10405         * modules/canonicalize (Files): Add double-slash-root.m4.
10406         * modules/canonicalize-lgpl (Files): Likewise.
10407         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10408         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10409         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10410         fallback definition.
10411         (canonicalize_filename_mode): Use it to protect //.
10412         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10413         (__realpath): Likewise.
10414         * tests/test-canonicalize.c (main): Test this.
10415         * tests/test-canonicalize-lgpl.c (main): Likewise.
10416         * modules/canonicalize-tests (Depends-on): Add same-inode.
10417         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10418
10419         canonicalize-lgpl: fix glibc bug with trailing slash
10420         * m4/canonicalize-lgpl.m4: Move contents...
10421         * m4/canonicalize.m4: ...here.
10422         (gl_CANONICALIZE_LGPL): Factor realpath check...
10423         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10424         glibc 2.3.5 bug, fixed 2005-04-27.
10425         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10426         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10427         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10428         * modules/canonicalize-lgpl (Files): Manage file rename.
10429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10430         * modules/stdlib (Makefile.am): Substitute witness.
10431         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10432         is needed.
10433         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10434         replacement is required.
10435         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10436         * doc/glibc-functions/canonicalize_file_name.texi
10437         (canonicalize_file_name): Document this.
10438         * doc/posix-functions/realpath.texi (realpath): Likewise.
10439
10440         canonicalize-lgpl: reject non-directory with trailing slash
10441         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10442         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10443         catches failures in glibc 2.3.5.
10444         * tests/test-canonicalize.c (main): Likewise.
10445
10446         canonicalize-lgpl: use native realpath if it works
10447         * lib/canonicalize-lgpl.c (realpath): Guard with
10448         FUNC_REALPATH_WORKS.
10449         * lib/stdlib.in.h (realpath): Make declaration optional based on
10450         HAVE_REALPATH.
10451         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10452         native realpath works.
10453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10454         * modules/stdlib (Makefile.am): Substitute witness.
10455
10456         canonicalize, canonicalize-lgpl: use <stdlib.h>
10457         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10458         (Include): Mention <stdlib.h>.
10459         (configure.ac): Mention functions we provide.
10460         * modules/canonicalize (configure.ac): Likewise.
10461         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10462         realpath if canonicalize_file_name is missing.
10463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10464         * modules/stdlib (Makefile.am): Substitute witnesses.
10465         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10466         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10467         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10468         * NEWS: Document this.
10469         * doc/glibc-functions/canonicalize_file_name.texi
10470         (canonicalize_file_name): Likewise.
10471         * doc/posix-functions/realpath.texi (realpath): Likewise.
10472         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10473
10474         test-canonicalize: consolidate into single C program
10475         * tests/test-canonicalize.sh: Delete; move setup into...
10476         * tests/test-canonicalize.c (main): ...the program, making it
10477         easier to run in debugger.  Add some tests.
10478         * modules/canonicalize-tests (Files): Remove unused file.
10479         (Depends-on): Add progname.
10480         (configure.ac, Makefile.am): Simplify.
10481
10482         test-canonicalize-lgpl: consolidate into single C program
10483         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10484         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10485         easier to run in debugger.  Add some tests.
10486         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10487         (configure.ac, Makefile.am): Simplify.
10488
10489         canonicalize: avoid resolvepath
10490         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10491         unnecessary checks.
10492         * lib/canonicalize.c (includes): Simplify.
10493         (canonicalize_file_name): Drop resolvepath implementation.
10494         * modules/canonicalize (Depends-on): Drop filenamecat.
10495
10496         canonicalize: don't lose errno
10497         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10498         over calls to free.
10499
10500         canonicalize: simplify errno handling
10501         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10502         assignment.
10503
10504         canonicalize, canonicalize-lgpl: update module dependencies
10505         * modules/canonicalize (Depends-on): Add extensions, lstat,
10506         pathmax, stdlib.
10507         (Files): Drop pathmax.h.
10508         (configure.ac): Adjust macro name.
10509         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10510         lstat, stdlib, sys_stat.
10511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10512         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10513         extensions.
10514         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10515         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10516         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10517         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10518         declaration, if available.
10519         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10520         we can rely on the readlink module.
10521         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10522         (includes): Use <unistd.h> unconditionally.
10523
10524 2009-09-17  Eric Blake  <ebb9@byu.net>
10525
10526         maint: make Include sections of modules consistent
10527         * modules/alloca: Use only header name; no need to list #include.
10528         * modules/alloca-opt: Likewise.
10529         * modules/arpa_inet: Likewise.
10530         * modules/canon-host: Likewise.
10531         * modules/configmake: Likewise.
10532         * modules/dirent: Likewise.
10533         * modules/eealloc: Likewise.
10534         * modules/environ: Likewise.
10535         * modules/fchdir: Likewise.
10536         * modules/fcntl: Likewise.
10537         * modules/fcntl-h: Likewise.
10538         * modules/gethrxtime: Likewise.
10539         * modules/gettime: Likewise.
10540         * modules/ignore-value: Likewise.
10541         * modules/inet_ntop: Likewise.
10542         * modules/inet_pton: Likewise.
10543         * modules/inttypes: Likewise.
10544         * modules/isnand-nolibm: Likewise.
10545         * modules/isnanf-nolibm: Likewise.
10546         * modules/mbchar: Likewise.
10547         * modules/mbfile: Likewise.
10548         * modules/mbiter: Likewise.
10549         * modules/mbuiter: Likewise.
10550         * modules/netdb: Likewise.
10551         * modules/netinet_in: Likewise.
10552         * modules/nproc: Likewise.
10553         * modules/pagealign_alloc: Likewise.
10554         * modules/poll: Likewise.
10555         * modules/printf-frexp: Likewise.
10556         * modules/pthread: Likewise.
10557         * modules/putenv: Likewise.
10558         * modules/random_r: Likewise.
10559         * modules/relocatable-prog: Likewise.
10560         * modules/search: Likewise.
10561         * modules/select: Likewise.
10562         * modules/selinux-h: Likewise.
10563         * modules/settime: Likewise.
10564         * modules/signal: Likewise.
10565         * modules/size_max: Likewise.
10566         * modules/socklen: Likewise.
10567         * modules/ssize_t: Likewise.
10568         * modules/stdarg: Likewise.
10569         * modules/stdbool: Likewise.
10570         * modules/stddef: Likewise.
10571         * modules/stdint: Likewise.
10572         * modules/stdio: Likewise.
10573         * modules/stdlib: Likewise.
10574         * modules/string: Likewise.
10575         * modules/strings: Likewise.
10576         * modules/sys_file: Likewise.
10577         * modules/sys_ioctl: Likewise.
10578         * modules/sys_select: Likewise.
10579         * modules/sys_socket: Likewise.
10580         * modules/sys_stat: Likewise.
10581         * modules/sys_time: Likewise.
10582         * modules/sys_times: Likewise.
10583         * modules/sys_utsname: Likewise.
10584         * modules/sys_wait: Likewise.
10585         * modules/sysexits: Likewise.
10586         * modules/time: Likewise.
10587         * modules/times: Likewise.
10588         * modules/tmpfile: Likewise.
10589         * modules/trim: Likewise.
10590         * modules/unistd: Likewise.
10591         * modules/wchar: Likewise.
10592         * modules/wctype: Likewise.
10593
10594 2009-09-17  Bruno Haible  <bruno@clisp.org>
10595
10596         Make getdate.y compile on QNX and NetBSD 5 / i386.
10597         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10598         TIME_T_FITS_IN_LONG_INT.
10599         * lib/getdate.y (long_time_t): New type.
10600         (relative_time): Change type of 'seconds' field to long_time_t.
10601         (get_date): Update types of local variables. Check against overflow
10602         during conversion from long_time_t to time_t.
10603         Reported by Matt Kraai <kraai@ftbfs.org>
10604         and Hasso Tepper <hasso@netbsd.org>.
10605
10606 2009-09-17  Bruno Haible  <bruno@clisp.org>
10607
10608         * modules/COPYING: Update copyright years.
10609         * modules/README: Likeiwse.
10610         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10611         Reported by Ian Beckwith <ianb@erislabs.net>.
10612
10613 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10614
10615         * users.txt: Update references for gnuit package.
10616
10617 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10618
10619         * m4/getdelim.m4: Fix typo in copyright line.
10620
10621 2009-09-17  Bruno Haible  <bruno@clisp.org>
10622
10623         * lib/atoll.c: Use the standard header with GPL copyright.
10624         * lib/argz.in.h: Likewise.
10625         * lib/glob.c: Likewise.
10626         * lib/glob-libc.h: Likewise.
10627         * lib/random_r.c: Likewise.
10628         * lib/siglist.h: Likewise.
10629         * lib/strsignal.c: Likewise.
10630         Reported by Ian Beckwith <ianb@erislabs.net>.
10631
10632 2009-09-17  Eric Blake  <ebb9@byu.net>
10633
10634         rmdir: ensure correct dependency order
10635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10636
10637 2009-09-17  Bruno Haible  <bruno@clisp.org>
10638
10639         Disable assertion that fails on NetBSD 5 / i386.
10640         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10641         Reported by Sam Steingold <sds@gnu.org>
10642         and Hasso Tepper <hasso@netbsd.org>.
10643
10644 2009-09-16  Eric Blake  <ebb9@byu.net>
10645
10646         unlinkdir: port to mingw
10647         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10648         on which no one can unlink a directory.
10649
10650         stdlib: sort witness names
10651         * modules/stdlib (Makefile.am): Sort replacements.
10652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10653         * lib/stdlib.in.h: Likewise.
10654
10655         parse-duration-tests: avoid link failure
10656         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10657         LIBINTL.
10658         Reported by Tom G. Christensen.
10659
10660         openat-tests: ensure unlinkat behaves like rmdir
10661         * tests/test-rmdir.c (main): Factor guts...
10662         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10663         * modules/rmdir-tests (Files): Ship new file.
10664         * modules/openat-tests: New test.
10665         * tests/test-unlinkat.c: Likewise.
10666
10667         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10668         * modules/rmdir-errno (Status, Notice): Now obsolete.
10669
10670         rmdir: work around cygwin 1.5.x and mingw bugs
10671         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10672         * lib/rmdir.c (rmdir): Work around it.
10673         * modules/rmdir (Status, Notice): No longer obsolete.
10674         (Files): Add dos.m4.
10675         (Depends-on): Add unistd.
10676         (configure.ac): Set witnesses.
10677         (License): Relax to LGPLv2+.
10678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10679         * modules/unistd (Makefile.am): Substitute witnesses.
10680         * lib/unistd.in.h (rmdir): Declare replacement.
10681         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10682         * modules/rmdir-tests: New tests.
10683         * tests/test-rmdir.c: Likewise.
10684
10685 2009-09-15  Eric Blake  <ebb9@byu.net>
10686
10687         fchdir: improve use of replacement functions
10688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10690         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10691         REPLACE_CLOSEDIR.
10692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10693         * modules/sys_stat (Makefile.am): Substitute correct witness.
10694         * modules/dirent (Makefile.am): Likewise.
10695         * modules/unistd (Makefile.am): Likewise.
10696         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10697         * lib/unistd.in.h (dup): Likewise.
10698         * lib/sys_stat.in.h (fstat): Likewise.
10699
10700         maint: ignore gnulib-tool temp files
10701         * .gitignore: Ignore files created during gnulib-tool --test.
10702
10703 2009-09-13  Jim Meyering  <meyering@redhat.com>
10704
10705         posixtm: don't reject a time that specify "60" as the number of seconds
10706         * lib/posixtm.c (posixtime): The code to reject invalid dates
10707         would also reject a time specified with the .60 suffix.
10708         But POSIX allows that, in order to accommodate leap seconds.
10709         So don't reject it.
10710         (main): Adjust tests accordingly.
10711         * modules/posixtm (Depends-on): Add stpcpy.
10712
10713 2009-09-11  Jim Meyering  <meyering@redhat.com>
10714
10715         announce-gen: include [$release_type] in emitted Subject:
10716         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10717         e.g., [stable] in the emitted Subject: line.
10718
10719 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10720
10721         Remove obsolete macros from several modules.
10722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10723         obsolete Autoconf macros with their modern counterparts.
10724         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10725         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10726         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10727         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10728         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10729         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10731         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10732         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10733         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10734         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10736         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10737         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10738         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10739         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10740         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10741         * m4/time_r.m4 (gl_TIME_R): Likewise.
10742         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10743         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10744         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10745
10746         Fix copyright header in build-aux scripts.
10747         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10748         recommendation.
10749         * build-aux/ncftpput-ftp: Likewise.
10750         * build-aux/update-copyright: Likewise.
10751
10752 2009-09-09  Eric Blake  <ebb9@byu.net>
10753
10754         test-link: allow Linux choice of errno
10755         * tests/test-link.c (main): Relax test for alternate error.
10756
10757         strndup: fix improper m4 caching
10758         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10759         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10760         (gl_PREREQ_STRNDUP): Delete.
10761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10762         * modules/string (Makefile.am): Substitute it.
10763         * lib/string.in.h (strndup): Modernize prototype.
10764
10765         getcwd: port to mingw
10766         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10767         different from the POSIX assumptions made throughout the getcwd
10768         module; fortunately, the mingw getcwd does not need replacement.
10769         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10770         * modules/getcwd-tests: New test.
10771         * tests/test-getcwd.c: Likewise.
10772
10773         link: fix platform bugs
10774         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10775         * lib/link.c (link): Work around them.  Fix related mingw bug.
10776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10777         * modules/unistd (Makefile.am): Substitute it.
10778         * lib/unistd.in.h (link): Declare replacement.
10779         * doc/posix-functions/link.texi (link): Document this.
10780         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10781
10782         test-link: consolidate into single C program, test more cases
10783         * tests/test-link.sh: Delete.
10784         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10785         at least Cygwin and Solaris.
10786         * modules/link-tests (Files): Remove unused file.
10787         (Depends-on): Add errno, sys_stat.
10788         (Makefile.am): Simplify.
10789
10790 2009-09-08  Bruno Haible  <bruno@clisp.org>
10791
10792         Work around towlower, towupper bug on mingw.
10793         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10794         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10795         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10796         * doc/posix-functions/towupper.texi: Likewise.
10797         Reported by Eric Blake.
10798
10799 2009-09-08  Jim Meyering  <meyering@redhat.com>
10800
10801         build: don't try to run autoheader if we don't use it
10802         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10803         is not used in configure.ac.
10804
10805 2009-09-08  Eric Blake  <ebb9@byu.net>
10806
10807         euidaccess: fix compilation error
10808         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10809
10810         rawmemchr: relax license
10811         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10812         okay.
10813         Reported by Jim Meyering.
10814
10815         mkfifoat: new module
10816         * modules/mkfifoat: New file.
10817         * lib/mkfifoat.c: Likewise.
10818         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10820         * modules/sys_stat (Makefile.am): Use them.
10821         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10822         * MODULES.html.sh (File system functions): Mention module.
10823         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10824         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10825         * modules/mkfifoat-tests: New test.
10826         * tests/test-mkfifoat.c: Likewise.
10827
10828         strchrnul: relax license
10829         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10830         okay.
10831         Reported by Jim Meyering.
10832
10833 2009-09-08  Eric Blake  <ebb9@byu.net>
10834
10835         fstatat: fix compilation on Solaris
10836         * lib/fstatat.c (includes): Add fcntl.h.
10837         Reported by Pádraig Brady.
10838
10839 2009-09-07  Eric Blake  <ebb9@byu.net>
10840
10841         rename: modernize replacement
10842         * modules/rename (Depends-on): Add stdio.
10843         (configure.ac): Declare witness.
10844         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10845         stdio take care of replacement.
10846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10847         * modules/stdio (Makefile.am): Substitute them.
10848         * lib/stdio.in.h (rename): Declare replacement.
10849         * lib/rename.c (includes): Allow cross-compilation to non-windows
10850         machines.
10851         * doc/posix-functions/rename.texi (rename): Improve
10852         documentation.
10853
10854         stdio: sort witness names
10855         * modules/stdio (Makefile.am): Sort replacements.
10856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10857         * lib/stdio.in.h: Likewise.
10858
10859         getcwd: minor cleanups
10860         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10861         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10862
10863         openat: provide more convenience names
10864         * modules/faccessat (configure.ac): Add C witness.
10865         * lib/unistd.in.h (readlinkat): Fix typo.
10866         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10867         convenience wrappers.
10868         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10869         wrappers in syntax checks.
10870
10871 2009-09-06  Eric Blake  <ebb9@byu.net>
10872
10873         doc: fix comments in recent patches
10874         * lib/faccessat.c: Mention correct function.
10875         * lib/fchmodat.c: Likewise.
10876         * lib/fchownat.c: Likewise.
10877         * lib/symlinkat.c: Likewise.
10878         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10879         constants.
10880
10881         faccessat, symlinkat: continue cleanup of previous patch
10882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10883         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10884         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10886         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10887         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10888         set.
10889
10890 2009-09-06  Bruno Haible  <bruno@clisp.org>
10891
10892         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10893         (fstatat): Declare if GNULIB_FSTATAT is set.
10894         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10895         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10896         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10897         * modules/fcntl-h (Files): Remove m4/openat.m4.
10898         * modules/sys_stat (Files): Remove m4/openat.m4.
10899         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10900         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10901         * modules/unistd (Files): Remove m4/openat.m4.
10902         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10903         GNULIB_OPENAT.
10904         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10905         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10906         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10907         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10908         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10909         gl_OPENAT_DEFAULTS.
10910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10911         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10912         Don't require gl_OPENAT_DEFAULTS.
10913         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10914         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10915         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10916         (gl_OPENAT_DEFAULTS): Remove macro.
10917
10918 2009-09-06  Bruno Haible  <bruno@clisp.org>
10919
10920         * modules/openat (configure.ac): Remove unneeded witness.
10921
10922 2009-09-06  Bruno Haible  <bruno@clisp.org>
10923
10924         Set errno to ENOSYS when a function is entirely unsupported.
10925         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10926         EOPNOTSUPP.
10927         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10928         * modules/chown (Depends-on): Remove errno.
10929
10930 2009-09-06  Bruno Haible  <bruno@clisp.org>
10931
10932         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10933
10934 2009-09-06  Bruno Haible  <bruno@clisp.org>
10935
10936         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10937
10938 2009-09-06  Ben Pfaff  <blp@gnu.org>
10939             Bruno Haible  <bruno@clisp.org>
10940
10941         Work around a glibc bug in strtok_r.
10942         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10943         Undefine if UNDEFINE_STRTOK_R is set.
10944         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10946         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10947         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10948         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10949         UNDEFINE_STRTOK_R.
10950         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10951
10952 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10953
10954         exclude: minor fix
10955         * lib/exclude.c: Include wctype.h
10956
10957 2009-09-06  Akim Demaille  <demaille@gostai.com>
10958
10959         bootstrap: improve error message
10960         * build-aux/bootstrap (find_tool): Upon failure, report the list
10961         of candidates.
10962         Honor the initial value of the envvar.
10963
10964 2009-09-05  Eric Blake  <ebb9@byu.net>
10965
10966         symlinkat: new module
10967         * modules/symlinkat: New file.
10968         * lib/symlinkat.c: Likewise.
10969         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10971         * modules/unistd (Makefile.am): Use them.
10972         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10973         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10974         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10975         * MODULES.html.sh (File system functions): Mention module.
10976         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10977         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10978         * modules/symlinkat-tests: New test.
10979         * tests/test-symlinkat.c: Likewise.
10980
10981         test-openat-safer: add more checks
10982         * tests/test-openat-safer.c (main): Check more code paths.
10983
10984 2009-09-05  Jim Meyering  <meyering@redhat.com>
10985
10986         syntax-check: detect unnecessary inclusion of openat.h
10987         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10988
10989 2009-09-05  Bruno Haible  <bruno@clisp.org>
10990
10991         Support towlower, towupper.
10992         * doc/posix-functions/towlower.texi: Mention module wctype.
10993         * doc/posix-functions/towupper.texi: Likewise.
10994         * lib/wctype.in.h (towlower, towupper): New functions.
10995         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10996         (ASSERT): New macro.
10997         (e): New variable.
10998         (main): Test also towlower, towupper. Test WEOF argument.
10999         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11000
11001 2009-09-05  Bruno Haible  <bruno@clisp.org>
11002
11003         Fix conversion behaviour when the input is invalid.
11004         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11005         mark occurring in first pass of indirect conversion.
11006         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11007         input.
11008         Found by clang's static analyzer.
11009
11010 2009-09-05  Bruno Haible  <bruno@clisp.org>
11011
11012         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11013         where direct conversion is possible.
11014
11015 2009-09-04  Eric Blake  <ebb9@byu.net>
11016
11017         openat: fail with ENOENT on empty name
11018         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11019         buffer.
11020
11021         link-follow: fix logic bug in prior patch
11022         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11023         reversed sense of yes and no in prior patch.  Avoid confusing
11024         compilation failure with desired semantics.
11025
11026         link-follow: accomodate mingw and cross-compilation
11027         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11028         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11029         cross-compilation results to -1, to make linkat easier to
11030         implement when cross-compiling.  Trivially support mingw.
11031         * modules/link-follow (configure.ac): Call new name.
11032         * NEWS: Mention this.
11033
11034 2009-09-03  Eric Blake  <ebb9@byu.net>
11035
11036         faccessat: compile replacement
11037         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11038         needed.
11039
11040         fts: fix compilation error
11041         * lib/fts.c (includes): Re-add "openat.h", for
11042         openat_needs_fchdir.
11043
11044         faccessat: new module
11045         * modules/faccessat: New file.
11046         * lib/faccessat.c: Likewise.
11047         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11049         * modules/unistd (Makefile.am): Use it.
11050         * lib/unistd.in.h (faccessat): Declare it.
11051         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11052         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11053         * MODULES.html.sh (File system functions): Mention it.
11054         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11055         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11056
11057         euidaccess: prefer POSIX over non-standard implementation
11058         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11059         * lib/euidaccess.c (euidaccess): Use it if available.
11060
11061         openat: make template easier to use
11062         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11063         AT_FUNC_F2 to be undefined.
11064         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11065         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11066         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11067         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11068         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11069         Likewise.
11070         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11071         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11072         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11073         Likewise.
11074
11075         openat: declare in POSIX headers
11076         * NEWS: Mention this.
11077         * modules/openat (configure.ac): Declare witnesses.
11078         (Depends-on): Add fcntl-h, sys_stat, unistd.
11079         (Include): Mention correct headers.
11080         * modules/fcntl-h (Depends-on): Add link-warning.
11081         (Files): Add openat.m4.
11082         (Makefile.am): Substitute witnesses.
11083         * modules/sys_stat (Files, Makefile.am): Likewise.
11084         * modules/unistd (Files, Makefile.am): Likewise.
11085         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11086         (gl_OPENAT_DEFAULTS): New macro.
11087         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11089         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11090         (SYS_STAT_H): Remove unused variable.
11091         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11092         * lib/fcntl--.h (includes): Remove unneeded header.
11093         * lib/openat-safer.c (includes): Likewise.
11094         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11095         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11096         appropriate headers.
11097         (__OPENAT_PREFIX): Delete.
11098         * lib/fcntl.in.h (openat): Provide declaration.
11099         (AT_FDCWD): Fix Solaris bug.
11100         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11101         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11102         * lib/fchmodat.c (includes):  Adjust to find declaration.
11103         * lib/fchownat.c (includes): Likewise.
11104         * lib/mkdirat.c (includes): Likewise.
11105         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11106         still visible.
11107
11108 2009-09-02  Eric Blake  <ebb9@byu.net>
11109
11110         errno: use consistently
11111         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11112         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11113         * lib/canonicalize.c (ELOOP): Likewise.
11114         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11115         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11116         * lib/lchown.c (EOPNOTSUPP): Likewise.
11117         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11118         * lib/savewd.c (ESTALE): Likewise.
11119         * lib/settime.c (ENOSYS): Likewise.
11120         * lib/utimens.c (ENOSYS): Likewise.
11121         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11122         * lib/chdir-safer.c (ELOOP): Likewise.
11123         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11124         * modules/c-stack (Depends-on): Add errno.
11125         * modules/canonicalize (Depends-on): Likewise.
11126         * modules/chdir-safer (Depends-on): Likewise.
11127         * modules/fdopendir (Depends-on): Likewise.
11128         * modules/inet_ntop (Depends-on): Likewise.
11129         * modules/inet_pton (Depends-on): Likewise.
11130         * modules/lchown (Depends-on): Likewise.
11131         * modules/openat (Depends-on): Likewise.
11132         * modules/savewd (Depends-on): Likewise.
11133         * modules/settime (Depends-on): Likewise.
11134         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11135
11136         fts: avoid leaking fds
11137         * modules/fts (Depends-on): Add cloexec.
11138         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11139         flag.
11140
11141         fts: make directory fds more robust
11142         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11143         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11144
11145         backupfile, chdir-long, fts, savedir: make safer
11146         * lib/backupfile.c (includes): Use "dirent--.h", since
11147         numbered_backup can write to stderr during readdir.
11148         * lib/savedir.c (includes): Likewise.
11149         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11150         emulation can write to stderr on failure.
11151         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11152         * lib/getcwd.c: Document why opendir_safer is unused.
11153         * lib/glob.c: Likewise.
11154         * lib/scandir.c: Likewise.
11155         * lib/openat-proc.c: Likewise, for open_safer.
11156         * modules/backupfile (Depends-on): Add dirent-safer.
11157         * modules/savedir (Depends-on): Likewise.
11158         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11159         * modules/chdir-long (Depends-on): Add openat-safer.
11160
11161         openat-safer: new module
11162         * modules/openat-safer: New file.
11163         * lib/openat-safer.c: Likewise.
11164         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11165         * lib/fcntl-safer.h (openat_safer): Declare.
11166         * lib/fcntl--.h (openat): Override.
11167         * MODULES.html.sh (File descriptor based I/O): Mention it.
11168         * lib/openat.h: Add double-inclusion guards.
11169         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11170         "fcntl--.h", so we can implement openat.
11171         * modules/openat-safer-tests: New test.
11172         * tests/test-openat-safer.c: New file.
11173
11174         dirent-safer: new module
11175         * modules/dirent-safer: New file.
11176         * lib/dirent--.h: Likewise.
11177         * lib/dirent-safer.h: Likewise.
11178         * lib/opendir-safer.c: Likewise.
11179         * m4/dirent-safer.m4: Likewise.
11180         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11181         * modules/dirent-safer-tests: New test.
11182         * tests/test-dirent-safer.c: New file.
11183         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11184
11185         fdopendir: optimize on mingw
11186         * lib/unistd.in.h (_gl_directory_name): New prototype.
11187         * lib/fchdir.c (_gl_directory_name): Implement it.
11188         (fchdir): Use it to simplify implementation.
11189         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11190         fchdir, when available, to avoid calling [f]chdir().
11191
11192         fdopendir: split into its own module
11193         * lib/openat.c (fdopendir): Move...
11194         * lib/fdopendir.c: ...into new file.
11195         * modules/fdopendir: New module.
11196         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11197         * modules/openat (Depends-on): Add fdopendir.
11198         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11199         fdopendir here.
11200         * modules/savedir (Depends-on): Only need fdopendir, not full
11201         openat.
11202         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11203         * lib/openat.h (fdopendir): Drop prototype.
11204         * lib/dirent.in.h (fdopendir): Provide prototype.
11205         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11206         * modules/dirent (Makefile.am): Substitute them.
11207         * MODULES.html.sh (File system functions): Mention it.
11208         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11209         * modules/fdopendir-tests: New file.
11210         * tests/test-fdopendir.c: Likewise.
11211
11212         fchdir: use more consistent macro convention
11213         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11214         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11215         REPLACE_FCHDIR, rather than relying on config.h macros.
11216         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11217         inside a single make-time REPLACE_FCHDIR block, rather than using
11218         the config.h FCHDIR_REPLACEMENT.
11219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11220         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11221         Manage fstat replacement.
11222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11223         REPLACE_FCHDIR.
11224         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11225         (Makefile.am): Substitute REPLACE_FCHDIR.
11226         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11227         FCHDIR_REPLACEMENT.
11228         * lib/dup-safer.c (dup_safer): Likewise.
11229         * lib/dup2.c (rpl_dup2): Likewise.
11230         * lib/dup3.c (rpl_dup3): Likewise.
11231         * lib/open.c (rpl_open): Likewise.
11232
11233         fchdir: simplify error handling, and support dup3
11234         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11235         stdbool, malloc-posix, realloc-posix.
11236         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11237         (ensure_dirs_slot): Return false on allocation failure.
11238         (rpl_dup2): Delete.
11239         (_gl_register_dup): New function.
11240         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11241         (_gl_register_fd): Close fd on allocation failure.
11242         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11243         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11244         prototype.
11245         (rpl_dup2_fchdir): Delete prototype.
11246         * lib/open.c (open): Update caller.
11247         * lib/dup2.c (dup2): Track fchdir metadata.
11248         * lib/dup3.c (dup3): Likewise.
11249         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11251
11252 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11253
11254         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11255         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11256         don't pass arguments to AC_OUTPUT.
11257
11258 2009-09-02  Bruno Haible  <bruno@clisp.org>
11259
11260         * modules/mkdtemp (License): Relicense under LGPLv2+.
11261         Reported by Paolo Bonzini.
11262
11263 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11264
11265         Replace uses of obsolete autoconf macros in Jim's modules.
11266         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11267         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11268         can evoke a warning from autoconf when run with -Wobsolete
11269         enabled.  They were declared obsolete for good reasons (see
11270         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11271         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11272         should not continue using the deprecated macros.
11273         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11274         obsolete Autoconf macros with modern counterparts.
11275         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11276         * m4/dos.m4 (gl_AC_DOS): Likewise.
11277         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11278         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11279         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11280         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11281         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11282         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11283         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11284         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11285         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11286         Likewise.
11287         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11288         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11289         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11290         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11291         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11292         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11293
11294 2009-09-01  Eric Blake  <ebb9@byu.net>
11295
11296         fchdir: fix off-by-one bug in previous patch
11297         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11298         (_gl_unregister_fd): Delete useless if.
11299
11300 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11301
11302         maint.mk: sort the list of syntax-check rules
11303         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11304         easier to get a sense of progress when the rules are run sequentially
11305         and take a long time.
11306
11307 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11308
11309         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11310         * modules/netinet_in: Likewise.
11311         * modules/sys_file: Likewise.
11312         * modules/sys_ioctl: Likewise.
11313         * modules/sys_select: Likewise.
11314         * modules/sys_socket: Likewise.
11315         * modules/sys_stat: Likewise.
11316         * modules/sys_time: Likewise.
11317         * modules/sys_times: Likewise.
11318         * modules/sys_utsname: Likewise.
11319         * modules/sys_wait: Likewise.
11320
11321 2009-09-01  Jim Meyering  <meyering@redhat.com>
11322
11323         fts: help ensure that return values are not ignored
11324         * lib/fts_.h (__GNUC_PREREQ): Define.
11325         (__attribute_warn_unused_result__): Define.
11326         (fts_children, fts_close, fts_open, fts_read): Declare with
11327         __attribute_warn_unused_result__.
11328
11329         fts: fts_close now fails also when closing a dir file descriptor fails
11330         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11331         and propagate to caller, along with errno.
11332
11333         announce-gen: correct formatting in --help output
11334         * build-aux/announce-gen (usage): Move the one-line description in
11335         --help output "up", to where it belongs, just after Usage:.
11336
11337 2009-08-31  Eric Blake  <ebb9@byu.net>
11338
11339         fchdir: port to mingw
11340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11341         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11342         opened, then use a substitute.
11343         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11344         replacement.
11345         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11346         (_gl_register_fd): No need to check stat if open already filters
11347         all directories.
11348         (fchdir): Fix error condition to match POSIX.
11349         * modules/fchdir (Depends-on): Add sys_stat.
11350         * doc/posix-functions/open.texi (open): Document the limitation.
11351         * modules/fchdir-tests: New file.
11352         * tests/test-fchdir.c: Likewise.
11353
11354         canonicalize: allow cross-testing from cygwin to mingw
11355         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11356         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11357         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11358         Likewise.
11359         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11360         target does not support symlinks.
11361         * tests/test-canonicalize-lgpl.sh: Likewise.
11362
11363         chown: avoid compilation warning on mingw
11364         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11365         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11366         mingw.
11367         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11368         * modules/chown (Depends-on): Add errno.
11369
11370 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11371
11372         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11373         command.
11374
11375 2009-08-31  Jim Meyering  <meyering@redhat.com>
11376
11377         canonicalize: remove useless initialization
11378         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11379         initialization of local, "end".
11380
11381 2009-08-30  Bruno Haible  <bruno@clisp.org>
11382
11383         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11384         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11385         ENOSYS.
11386
11387 2009-08-30  Bruno Haible  <bruno@clisp.org>
11388
11389         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11390         /usr/xpg4/bin/tr when it exists.
11391         * tests/test-pipe-filter-gi1.sh: Likewise.
11392
11393 2009-08-30  Bruno Haible  <bruno@clisp.org>
11394
11395         Work around deficient /usr/bin/id program on Solaris.
11396         * tests/test-file-has-acl.sh (ID): New variable.
11397         * tests/test-set-mode-acl.sh (ID): Likewise.
11398         * tests/test-copy-acl.sh (ID): Likewise.
11399         * tests/test-copy-file.sh (ID): Likewise.
11400
11401 2009-08-30  Bruno Haible  <bruno@clisp.org>
11402
11403         New module 'xstriconveh'.
11404         * lib/xstriconveh.h: New file.
11405         * lib/xstriconveh.c: New file.
11406         * modules/xstriconveh: New file.
11407
11408 2009-08-30  Bruno Haible  <bruno@clisp.org>
11409
11410         Make it easier to use mem_cd_iconveh.
11411         * lib/striconveh.h (iconveh_t): New type.
11412         (iconveh_open, iconveh_close): New declarations.
11413         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11414         with a single 'const iconveh_t *' argument.
11415         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11416         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11417         with a single 'const iconveh_t *' argument.
11418         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11419         * tests/test-striconveh.c (main): Update.
11420         * NEWS: Mention the change.
11421
11422 2009-08-30  Bruno Haible  <bruno@clisp.org>
11423
11424         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11425         problem.
11426
11427 2009-08-30  Bruno Haible  <bruno@clisp.org>
11428
11429         Work around iconv_open problem on Solaris.
11430         * lib/iconv_open-solaris.gperf: New file.
11431         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11432         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11433         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11434         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11435         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11436         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11437
11438 2009-08-29  Jim Meyering  <meyering@redhat.com>
11439
11440         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11441         * top/maint.mk (cvs-check): Remove target; it was just an alias
11442         to the better-named vc-diff-check.
11443         (maintainer-distcheck): Remove rule.  It was used only from
11444         the (alpha/beta/major) target, and all of its commands but one
11445         were coreutils-specific.
11446         (vc-dist): Remove rule.
11447         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11448         Run vc-diff-check, not vc-dist.
11449         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11450
11451 2009-08-27  Bruno Haible  <bruno@clisp.org>
11452
11453         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11454         of 0.
11455
11456 2009-08-27  Bruno Haible  <bruno@clisp.org>
11457
11458         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11459         compilers.
11460         * doc/func.texi: Document the SunPRO C bug.
11461
11462 2009-08-27  Bruno Haible  <bruno@clisp.org>
11463
11464         Fix link error on Solaris.
11465         * tests/test-parse-duration.c (xstrdup): Remove function.
11466
11467 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11468
11469         ignore-value: handle pointer types, too
11470         * lib/ignore-value.h (__attribute__): Remove definition.
11471         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11472         of a more concise and more-often effective "(void) i" statement.
11473         (ignore_ptr): New function to suppress warnings from functions that
11474         return pointers, and to make it explicit that one function doesn't
11475         handle all cases.
11476
11477 2009-08-25  Bruno Haible  <bruno@clisp.org>
11478
11479         dup2: work around a Linux bug.
11480         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11481         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11482         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11483         Reported by Simon Josefsson.
11484
11485 2009-08-25  Jim Meyering  <meyering@redhat.com>
11486
11487         libguestfs uses gnulib
11488         * users.txt: Add libguestfs.
11489
11490 2009-08-24  Eric Blake  <ebb9@byu.net>
11491
11492         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11493         * lib/pipe2.c (includes): Add binary-io.h.
11494         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11495
11496 2009-08-24  Bruno Haible  <bruno@clisp.org>
11497
11498         Tolerate declared but missing accept4 syscall.
11499         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11500         available.
11501         * lib/sys_socket.in.h (accept4): If the function is already present,
11502         override it.
11503         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11504         * modules/accept4 (Makefile.am): Compile accept4.c always.
11505         Reported by Paolo Bonzini and Eric Blake.
11506
11507 2009-08-23  Bruno Haible  <bruno@clisp.org>
11508
11509         New module 'accept4'.
11510         * lib/sys_socket.in.h (accept4): New declaration.
11511         * lib/accept4.c: New file.
11512         * m4/accept4.m4: New file.
11513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11514         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11515         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11516         HAVE_ACCEPT4.
11517         * modules/accept4: New file.
11518         * doc/glibc-functions/accept4.texi: Mention the new module.
11519
11520 2009-08-24  Jim Meyering  <meyering@redhat.com>
11521
11522         progname: also set global program_invocation_name, when possible
11523         Before this change, a libtool-enabled program that calls glibc's
11524         error function would report the program name as
11525         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11526         * modules/progname (configure.ac): Check for a declaration of
11527         program_invocation_name.
11528         * lib/progname.c:  Include <errno.h>.
11529         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11530         Set program_invocation_name.
11531
11532 2009-08-23  Bruno Haible  <bruno@clisp.org>
11533
11534         * lib/dup3.c: Include <string.h>.
11535
11536 2009-08-23  Bruno Haible  <bruno@clisp.org>
11537
11538         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11539         * lib/pipe2.c (pipe2): Likewise.
11540         Suggested by Eric Blake.
11541
11542 2009-08-23  Bruno Haible  <bruno@clisp.org>
11543
11544         Tolerate declared but missing dup3 syscall.
11545         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11546         * lib/unistd.in.h (dup3): If the function is already present,
11547         override it.
11548         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11549         * modules/dup3 (Makefile.am): Compile dup3.c always.
11550         Reported by Paolo Bonzini.
11551
11552 2009-08-23  Bruno Haible  <bruno@clisp.org>
11553
11554         Tolerate declared but missing pipe2 syscall.
11555         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11556         available.
11557         * lib/unistd.in.h (pipe2): If the function is already present,
11558         override it.
11559         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11560         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11561         Reported by Paolo Bonzini.
11562
11563 2009-08-23  Bruno Haible  <bruno@clisp.org>
11564
11565         * lib/pipe2.c (pipe2): Move #ifs inside function.
11566
11567 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11568
11569         quotearg: document limitations of quote_these_too
11570         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11571         those limitations are created.
11572         * lib/quotearg.h (set_char_quoting): Document that digits and
11573         letters that are special after backslash are not permitted.
11574         (quotearg_char): Cross-reference set_char_quoting documentation.
11575
11576 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11577
11578         quotearg: implement custom_quoting_style
11579         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11580         right_quote fields.
11581         (set_custom_quoting): New public function.
11582         (quotearg_buffer_restyled): Add left_quote and right_quote
11583         arguments, handle them very much like locale quoting, and update
11584         all uses.
11585         (quotearg_n_custom): New public function.
11586         (quotearg_n_custom_mem): New public function.
11587         (quotearg_custom): New public function.
11588         (quotearg_custom_mem): New public function.
11589         * lib/quotearg.h: Prototype and document new public functions.
11590         (enum quoting_style): For escape_quoting_style and
11591         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11592         ignored even though they're otherwise like c_quoting_style.
11593         Add custom_quoting_style member and document with comparison to
11594         clocale_quoting_style.
11595         * tests/test-quotearg.c (custom_quotes): New array.
11596         (custom_results): New array.
11597         (main): Extend to test custom quoting.
11598
11599 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11600
11601         quotearg: fix right quote escaping when it's in quote_these_too
11602         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11603         quote, be sure to prepend only one backslash.
11604         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11605         (main): Test it.
11606
11607 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11608
11609         quotearg-tests: test escaping of embedded locale quotes
11610         * tests/test-quotearg.c (struct result_strings): Add member for
11611         new input.
11612         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11613         (inputs): Add new input.
11614         (results_g): Add expected results.
11615         (flag_results): Likewise.
11616         (locale_results): Likewise.
11617         (compare_strings): Check those.
11618
11619 2009-08-23  Bruno Haible  <bruno@clisp.org>
11620
11621         Tests for module 'dup3'.
11622         * modules/dup3-tests: New file.
11623         * tests/test-dup3.c: New file.
11624
11625         New module 'dup3'.
11626         * lib/unistd.in.h (dup3): New declaration.
11627         * lib/dup3.c: New file.
11628         * m4/dup3.m4: New file.
11629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11630         HAVE_DUP3.
11631         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11632         * modules/dup3: New file.
11633         * doc/glibc-functions/dup3.texi: Mention the new module.
11634
11635 2009-08-23  Bruno Haible  <bruno@clisp.org>
11636
11637         Tweak the dup2 test.
11638         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11639         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11640         the test file is still empty. Fix argument order of lseek.
11641
11642 2009-08-23  Bruno Haible  <bruno@clisp.org>
11643
11644         Avoid test link errors when the modules getopt-gnu, gettext are used.
11645         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11647
11648 2009-08-23  Bruno Haible  <bruno@clisp.org>
11649
11650         Fix getdtablesize() on mingw.
11651         * lib/getdtablesize.c (getdtablesize): Implement differently.
11652         * lib/unistd.in.h (getdtablesize): Improve comment.
11653
11654 2009-08-23  Bruno Haible  <bruno@clisp.org>
11655
11656         New module 'mkostemp'.
11657         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11658         * lib/stdlib.in.h (mksotemp): New declaration.
11659         * lib/mkostemp.c: New file, from glibc with modifications.
11660         * lib/tempname.h (GT_FILE): Remove outdated comment.
11661         (gen_tempname): Add flags argument.
11662         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11663         (__GT_FILE): Map to 1.
11664         (small_open, large_open): Remove macros.
11665         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11666         * lib/mkstemp.c (mkstemp): Update.
11667         * lib/mkdtemp.c (mkdtemp): Likewise.
11668         * m4/mkostemp.m4: New file.
11669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11670         HAVE_MKOSTEMP.
11671         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11672         HAVE_MKOSTEMP.
11673         * modules/mkostemp: New file, based on modules/mkstemp.
11674         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11675         * NEWS: Mention the change.
11676
11677 2009-08-23  Bruno Haible  <bruno@clisp.org>
11678
11679         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11680         Reported by Eric Blake.
11681
11682 2009-08-23  Bruno Haible  <bruno@clisp.org>
11683
11684         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11685         Reported by Eric Blake.
11686
11687 2009-08-23  Bruno Haible  <bruno@clisp.org>
11688
11689         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11690         * modules/pipe2 (Depends-on): Likewise.
11691
11692 2009-08-23  Eric Blake  <ebb9@byu.net>
11693
11694         fcntl-h: add O_TTY_INIT support
11695         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11696         * tests/test-fcntl-h.c (o): Test it.
11697         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11698
11699         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11700         * modules/fcntl: Move <fcntl.h> header replacement...
11701         * modules/fcntl-h: ...to new name, so as not to collide with
11702         like-named function.
11703         * tests/test-fcntl.c: Rename...
11704         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11705         * modules/fcntl-tests: Rename...
11706         * modules/fcntl-h-tests: ...to this.  Update test file name.
11707         * modules/chdir-long (Depends-on): Update clients.
11708         * modules/chdir-safer (Depends-on): Likewise.
11709         * modules/fcntl-safer (Depends-on): Likewise.
11710         * modules/fts (Depends-on): Likewise.
11711         * modules/mkancesdirs (Depends-on): Likewise.
11712         * modules/mkdir-p (Depends-on): Likewise.
11713         * modules/open (Depends-on): Likewise.
11714         * modules/savewd (Depends-on): Likewise.
11715         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11716         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11717
11718 2009-08-22  Bruno Haible  <bruno@clisp.org>
11719
11720         * modules/binary-io (License): Relicense under LGPL.
11721         * modules/pipe2 (License): Likewise.
11722
11723 2009-08-22  Bruno Haible  <bruno@clisp.org>
11724
11725         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11726         return value.
11727         * lib/pipe-filter-gi.c (filter_init): Likewise.
11728         Reported by Eric Blake.
11729
11730 2009-08-22  Bruno Haible  <bruno@clisp.org>
11731
11732         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11733         * modules/pipe (Depends-on): Add pipe2.
11734
11735 2009-08-22  Bruno Haible  <bruno@clisp.org>
11736
11737         Tests for module 'pipe2'.
11738         * modules/pipe2-tests: New file.
11739         * tests/test-pipe2.c: New file.
11740
11741         New module 'pipe2'.
11742         * lib/unistd.in.h (pipe2): New declaration.
11743         * lib/pipe2.c: New file.
11744         * m4/pipe2.m4: New file.
11745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11746         HAVE_PIPE2.
11747         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11748         * modules/pipe2: New file.
11749         * doc/glibc-functions/pipe2.texi: Mention the new module.
11750
11751 2009-08-22  Bruno Haible  <bruno@clisp.org>
11752
11753         Reference some new glibc functions.
11754         * doc/glibc-functions/accept4.texi: New file.
11755         * doc/glibc-functions/dup3.texi: New file.
11756         * doc/glibc-functions/mkostemp.texi: New file.
11757         * doc/glibc-functions/pipe2.texi: New file.
11758         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11759         (Glibc sys/socket.h): Refer to accept4.
11760         (Glibc unistd.h): Refer to dup3, pipe2.
11761         Reported by Eric Blake.
11762
11763 2009-08-22  Jim Meyering  <meyering@redhat.com>
11764             Bruno Haible  <bruno@clisp.org>
11765
11766         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11767         This makes it so packages using automake-1.11's silent-rules option
11768         can print e.g., a single "GEN    configmake.h" line, rather than
11769         the 30+ statements that perform the job.  If you want to see the
11770         actual commands, you can still run "make V=1".
11771         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11772         so that make output is abbreviated when those variables are defined
11773         appropriately.
11774         * modules/argz: Likewise.
11775         * modules/arpa_inet: Likewise.
11776         * modules/byteswap: Likewise.
11777         * modules/configmake: Likewise.
11778         * modules/dirent: Likewise.
11779         * modules/errno: Likewise.
11780         * modules/fcntl: Likewise.
11781         * modules/float: Likewise.
11782         * modules/fnmatch: Likewise.
11783         * modules/getopt-posix: Likewise.
11784         * modules/glob: Likewise.
11785         * modules/iconv_open: Likewise.
11786         * modules/inttypes: Likewise.
11787         * modules/localcharset: Likewise.
11788         * modules/locale: Likewise.
11789         * modules/math: Likewise.
11790         * modules/netdb: Likewise.
11791         * modules/netinet_in: Likewise.
11792         * modules/poll: Likewise.
11793         * modules/posix_spawnp-tests: Likewise.
11794         * modules/sched: Likewise.
11795         * modules/search: Likewise.
11796         * modules/selinux-h: Likewise.
11797         * modules/signal: Likewise.
11798         * modules/spawn: Likewise.
11799         * modules/stdarg: Likewise.
11800         * modules/stdbool: Likewise.
11801         * modules/stddef: Likewise.
11802         * modules/stdint: Likewise.
11803         * modules/stdio: Likewise.
11804         * modules/stdlib: Likewise.
11805         * modules/string: Likewise.
11806         * modules/strings: Likewise.
11807         * modules/sys_file: Likewise.
11808         * modules/sys_ioctl: Likewise.
11809         * modules/sys_select: Likewise.
11810         * modules/sys_socket: Likewise.
11811         * modules/sys_stat: Likewise.
11812         * modules/sys_time: Likewise.
11813         * modules/sys_times: Likewise.
11814         * modules/sys_utsname: Likewise.
11815         * modules/sys_wait: Likewise.
11816         * modules/sysexits: Likewise.
11817         * modules/time: Likewise.
11818         * modules/unistd: Likewise.
11819         * modules/wchar: Likewise.
11820         * modules/wctype: Likewise.
11821
11822 2009-08-22  Jim Meyering  <meyering@redhat.com>
11823
11824         announce-gen: detect write failure
11825         * build-aux/announce-gen: Add Coda at end.
11826         Remove equivalent-but-more-verbose block at top.
11827
11828 2009-08-19  Akim Demaille  <demaille@gostai.com>
11829
11830         bootstrap: --help to stdout.
11831         * bootstrap (usage): Don't send --help to stderr.
11832         Use a here doc instead of a long string.
11833
11834 2009-08-21  Eric Blake  <ebb9@byu.net>
11835
11836         test-popen-safer: split from test-popen
11837         * tests/test-popen.c (main): Move...
11838         * tests/test-popen.h: ...into new file.
11839         * tests/test-popen-safer2.c: New file.
11840         * modules/popen-tests (Files): Add test-popen.h.
11841         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11842         Suggested by Bruno Haible.
11843
11844         test-fcntl-safer: split from test-open
11845         * tests/test-open.c (main): Move...
11846         * tests/test-open.h: ...into new file.
11847         * tests/test-fcntl-safer.c: New file.
11848         * modules/open-tests (Files): Add test-open.h.
11849         * modules/fcntl-safer-tests: New file.
11850         Suggested by Bruno Haible.
11851
11852         test-fopen-safer: split from test-fopen
11853         * tests/test-fopen.c (main): Move...
11854         * tests/test-fopen.h: ...into new file.
11855         * tests/test-fopen-safer.c: New file.
11856         * modules/fopen-tests (Files): Add test-fopen.h.
11857         * modules/fopen-safer-tests: New file.
11858         Suggested by Bruno Haible.
11859
11860 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11861
11862         popen-safer: test O_CLOEXEC at run-time.
11863         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11864
11865 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11866
11867         fcntl: move more flags to the header
11868         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11869         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11870         * lib/fcntl.in.h: Do both things here.
11871
11872 2009-08-21  Jim Meyering  <meyering@redhat.com>
11873
11874         consistently remove $@-t before redirecting to it
11875         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11876         * modules/alloca-opt: Likewise.
11877         * modules/byteswap: Likewise.
11878         * modules/fnmatch: Likewise.
11879         * modules/getopt-posix: Likewise.
11880         * modules/glob: Likewise.
11881         * modules/poll: Likewise.
11882         * modules/posix_spawnp-tests: Likewise.
11883         * modules/sys_socket: Likewise.
11884         * modules/sysexits: Likewise.
11885
11886 2009-08-21  Eric Blake  <ebb9@byu.net>
11887
11888         popen: simplify access to original popen
11889         * lib/popen.c (rpl_popen): No need to worry about popen being a
11890         macro.
11891         Reported by Bruno Haible.
11892
11893 2009-08-20  Eric Blake  <ebb9@byu.net>
11894
11895         build: avoid some compiler warnings
11896         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11897         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11898         type.
11899         (new_exclude_segment, excluded_file_pattern_p)
11900         (excluded_file_name_p): Reduce scope.
11901         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11902         old-style declaration.
11903
11904 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11905
11906         * tests/test-exclude1.sh: Handle Windows EOL.
11907         * tests/test-exclude2.sh: Likewise.
11908         * tests/test-exclude3.sh: Likewise.
11909         * tests/test-exclude4.sh: Likewise.
11910         * tests/test-exclude5.sh: Likewise.
11911         * tests/test-exclude6.sh: Likewise.
11912         * tests/test-exclude7.sh: Likewise.
11913
11914 2009-08-19  Akim Demaille  <demaille@gostai.com>
11915
11916         bootstrap: find sha1sum when named gsha1sum.
11917         * bootstrap (find_tool): New.
11918         ($SHA1SUM): New.
11919         Use it.
11920
11921 2009-08-20  Jim Meyering  <meyering@redhat.com>
11922
11923         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11924         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11925         expression that converts "." in a file name to "\." in the resulting
11926         regexp.  Start with a dummy statement, so that prior shell variable
11927         definitions are expanded portably.  Reported by Simon Josefsson.
11928
11929 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11930
11931         Fix polling for writeability of a screen buffer.
11932         * lib/poll.c: Distinguish input and screen buffers for the
11933         Win32 implementation.
11934         * lib/select.c: Likewise.
11935
11936 2009-08-19  Eric Blake  <ebb9@byu.net>
11937
11938         popen-safer: prevent popen from clobbering std descriptors
11939         * modules/popen-safer: New file.
11940         * lib/popen-safer.c: Likewise.
11941         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11942         * lib/stdio--.h (popen): Provide override.
11943         * lib/stdio-safer.h (popen_safer): Provide declaration.
11944         * tests/test-popen.c (includes): Partially test this.
11945         * modules/popen-safer-tests: New file, for more tests.
11946         * tests/test-popen-safer.c: Likewise.
11947         * MODULES.html.sh (file stream based Input/Output): Mention it.
11948
11949         tests: test some of the *-safer modules
11950         * modules/fopen-safer (Depends-on): Add fopen.
11951         * modules/fcntl-safer (Depends-on): Add fcntl.
11952         * modules/stdlib-safer (Depends-on): Add stdlib.
11953         (configure.ac): Set indicator.
11954         * modules/unistd-safer (configure.ac): Likewise.
11955         * modules/tmpfile-safer (configure.ac): Likewise.
11956         (Depends-on): Add tmpfile.
11957         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11958         active.
11959         * tests/test-fopen.c (includes): Test safer versions when they are
11960         in use.
11961         * tests/test-open.c (includes): Likewise.
11962
11963         popen: fix cygwin 1.5 bug when stdin closed
11964         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11965         * modules/popen: New file.
11966         * modules/popen-tests: Likewise.
11967         * tests/test-popen.c: Likewise.
11968         * m4/popen.m4: Likewise.
11969         * lib/popen.c: Likewise.
11970         * lib/stdio.in.h (popen): New declaration.
11971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11972         * modules/stdio (Makefile.am): Likewise.
11973         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11974
11975 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11976
11977         maint.mk: give full control over update-copyright exclusions
11978         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11979         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11980         (update-copyright): Don't force inclusion of top-level
11981         ChangeLog.  Don't force exclusion of all COPYING files, but make
11982         them the default exclusion instead.
11983
11984 2009-08-16  Bruno Haible  <bruno@clisp.org>
11985
11986         Fix test failures on Solaris 10.
11987         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11988         tests when Solaris iconv() is used.
11989         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11990         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11991         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11992         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11993         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11994
11995 2009-08-16  Bruno Haible  <bruno@clisp.org>
11996
11997         Fix test failures on Solaris 10.
11998         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11999         'tr' program and pass it as first argument.
12000         * tests/test-pipe-filter-gi1.sh: Likewise.
12001         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12002         program as first argument.
12003         * tests/test-pipe-filter-gi1.c (main): Likewise.
12004
12005 2009-08-16  Eric Blake  <ebb9@byu.net>
12006
12007         fpurge: fix previous commits
12008         * modules/fpurge (Makefile.am): Make replacement conditional,
12009         partially reverting 2007-04-29 change; missed in previous
12010         attempt.
12011         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12012         is missing.
12013
12014 2009-08-16  Bruno Haible  <bruno@clisp.org>
12015
12016         Clarify fpurge's effect on the file position.
12017         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12018         * tests/test-fpurge.c (main): Make a second pass for checking the file
12019         position.
12020
12021 2009-08-16  Bruno Haible  <bruno@clisp.org>
12022
12023         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12024         declaration of fpurge is missing.
12025         * tests/test-fpurge.c (main): Check that the file has not more contents
12026         than expected. Close the file before removing it.
12027
12028 2009-08-15  Eric Blake  <ebb9@byu.net>
12029
12030         fpurge: don't wrap working cygwin implementation
12031         * lib/fpurge.c (fpurge): Fix comment typo.
12032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12033         1.7 to avoid replacement.
12034         * tests/test-fpurge.c (main): Enhance test.
12035
12036 2009-08-15  Eric Blake  <ebb9@byu.net>
12037         and Jim Meyering  <meyering@redhat.com>
12038
12039         test-update-copyright: skip if perl is insufficient
12040         * tests/test-update-copyright.sh: Failure to run maintainer tool
12041         should not cause testsuite failure on cygwin 1.5.
12042
12043 2009-08-14  Eric Blake  <ebb9@byu.net>
12044
12045         doc: mention more functions added in cygwin 1.7.0
12046         * doc/posix-headers/limits.texi (limits.h): Update for recent
12047         cygwin additions.
12048         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12049         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12050         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12051         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12052         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12053
12054 2009-08-14  Eric Blake  <ebb9@byu.net>
12055
12056         maint.mk: simplify update-copyright rule
12057         * top/maint.mk (update-copyright-local): Delete, and document how
12058         to do it in cfg.mk instead.
12059         (update-copyright-exclude-regexp): Delete, and document how to do
12060         it in .x-update-copyright instead.
12061         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12062         exclude ChangeLog.
12063
12064 2009-08-14  Bruno Haible  <bruno@clisp.org>
12065
12066         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12067
12068 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12069
12070         maint.mk: support update-copyright-env
12071         * top/maint.mk (update-copyright-env): Define place-holder.
12072         (update-copyright): Expand $(update-copyright-env) before
12073         invoking update-copyright.
12074
12075 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12076
12077         update-copyright: implement forced reformatting
12078         * build-aux/update-copyright: Implement and document
12079         UPDATE_COPYRIGHT_FORCE.
12080         * tests/test-update-copyright.sh: Test it.
12081
12082 2009-08-14  Eric Blake  <ebb9@byu.net>
12083         and Bruno Haible  <bruno@clisp.org>
12084
12085         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12086         * tests/test-locale.c: Revert previous patch related to NULL.
12087         * tests/test-stdio.c: Likewise.
12088         * tests/test-stdlib.c: Likewise.
12089         * tests/test-string.c: Likewise.
12090         * tests/test-unistd.c: Likewise.
12091         * modules/time-tests (Depends-on): Add verify.
12092         * modules/wchar-tests (Depends-on): Likewise.
12093         * tests/test-time.c: Test for NULL compliance.
12094         * tests/test-wchar.c: Likewise.
12095         * modules/locale (Depends-on): Add stddef.
12096         * modules/stdio (Depends-on): Likewise.
12097         * modules/stdlib (Depends-on): Likewise.
12098         * modules/string (Depends-on): Likewise.
12099         * modules/time (Depends-on): Likewise.
12100         * modules/unistd (Depends-on): Likewise.
12101         * modules/wchar (Depends-on): Likewise.
12102         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12103         * lib/stdlib.in.h (includes): Likewise.
12104         * lib/string.in.h (includes): Likewise.
12105         * lib/time.in.h (includes): Likewise.
12106         * lib/unistd.in.h (includes): Likewise.
12107         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12108         replaced.
12109         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12110         * m4/stddef_h.m4: New file.
12111         * modules/stddef: Likewise.
12112         * lib/stddef.in.h: Likewise.
12113         * modules/stddef-tests: Likewise.
12114         * tests/test-stddef.c: Likewise.
12115         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12116         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12117         * doc/posix-headers/locale.texi (locale.h): Likewise.
12118         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12119         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12120         * doc/posix-headers/string.texi (string.h): Likewise.
12121         * doc/posix-headers/time.texi (time.h): Likewise.
12122         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12123         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12124
12125 2009-08-14  Eric Blake  <ebb9@byu.net>
12126
12127         doc: improve git diff of texinfo files
12128         * .gitattributes: Add rule for *.texi files, with hint on how to
12129         use it.
12130         Copied from m4, and based on a report by Bruno Haible.
12131
12132 2009-08-14  Bruno Haible  <bruno@clisp.org>
12133
12134         Disable multithread support by default on Cygwin 1.5.x for real.
12135         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12136
12137 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12138
12139         update-copyright: much ado about intervals
12140         * build-aux/update-copyright: Implement and document
12141         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12142         of copyright year intervals.
12143         Also, document UPDATE_COPYRIGHT_YEAR.
12144         * tests/test-update-copyright.sh: Test it.
12145
12146         update-copyright: convert 2-digit to 4-digit years
12147         * build-aux/update-copyright: Implement and document.
12148         * tests/test-update-copyright.sh: Update.
12149
12150 2009-08-14  Jim Meyering  <meyering@redhat.com>
12151
12152         test-exclude: avoid coreutils "make check" failure
12153         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12154         just as in test-argmatch.c.
12155
12156 2009-08-13  Eric Blake  <ebb9@byu.net>
12157
12158         test-dup2: fix bad assumption
12159         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12160         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12161
12162         test-version-etc: fix CRLF portability issue
12163         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12164         recognize \r.
12165         * tests/test-argp-version-etc-1.sh: Likewise.
12166
12167         getopt: update client modules
12168         * modules/argp (Depends-on): Use getopt-gnu.
12169         * modules/git-merge-changelog (Depends-on): Likewise.
12170         * modules/long-options (Depends-on): Likewise.
12171         * modules/xstrtol (Depends-on): Likewise.
12172
12173 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12174
12175         * tests/test-version-etc.sh: Don't fail on different
12176         project/version.  Don't fail on CRLF differences.  Rewrite to use
12177         multiple -e instead of multiple sed forks, suggested by Eric Blake
12178         <ebb9@byu.net>.
12179         * tests/test-argp-version-etc-1.sh: Likewise.
12180
12181 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12182
12183         * tests/test-version-etc.sh: Don't fail on different
12184         project/version.
12185
12186 2009-08-12  Bruno Haible  <bruno@clisp.org>
12187
12188         Tests for modules 'getopt-posix', 'getopt-gnu'.
12189         * modules/getopt-posix-tests: New file.
12190         * tests/test-getopt.c: New file.
12191         * tests/test-getopt.h: New file.
12192         * tests/test-getopt_long.h: New file.
12193
12194         New modules 'getopt-posix', 'getopt-gnu'.
12195         * modules/getopt-gnu: New file, renamed from modules/getopt.
12196         * modules/getopt-posix: New file.
12197         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12198         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12199         (gl_GETOPT): Remove macro.
12200         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12201         Disable the test against BSD systems that declare optreset. Test
12202         against mingw bug. Test against lack of support of optional arguments
12203         on many platforms.
12204         * doc/glibc-headers/getopt.texi: Update module name and list of
12205         relevant platforms.
12206         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12207         'getopt-gnu' and more portability problems.
12208         * NEWS: Mention the changes.
12209
12210 2009-08-12  Bruno Haible  <bruno@clisp.org>
12211
12212         Ensure that optarg etc. get declared by <unistd.h>.
12213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12214         AC_USE_SYSTEM_EXTENSIONS.
12215         * modules/getopt (Depends-on): Add 'extensions'.
12216
12217 2009-08-12  Bruno Haible  <bruno@clisp.org>
12218
12219         Avoid test link errors.
12220         * modules/pipe-filter-ii-tests (Makefile.am): Define
12221         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12222         * modules/pipe-filter-gi-tests (Makefile.am): Define
12223         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12225
12226 2009-08-12  Bruno Haible  <bruno@clisp.org>
12227
12228         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12229         gl_GETOPT_SUBSTITUTE before.
12230         (gl_GETOPT): Use it.
12231         * m4/argp.m4 (gl_ARGP): Update.
12232         Reported by Sergey Poznyakoff.
12233
12234         * m4/getopt.m4: Reorder macros.
12235         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12236         (gl_GETOPT_SUBSTITUTE): Remove macro.
12237
12238 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12239
12240         Minor improvement in gitlog-to-changelog
12241
12242         * build-aux/gitlog-to-changelog: New option `--format' makes
12243         output format string configurable.
12244
12245 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12246
12247         Optimize exclude: use hash tables for non-wildcard patterns.
12248
12249         * lib/exclude.c: Include hash.h and mbuiter.h
12250         (struct exclude_pattern, exclude_segment): New data types.
12251         (struct exclude): Rewrite.
12252         (fnmatch_pattern_has_wildcards): New function.
12253         (new_exclude_segment, free_exclude_segment): New functions.
12254         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12255         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12256         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12257         * modules/exclude: Depend on hash and mbuiter.
12258
12259         * modules/exclude-tests: New file.
12260         * tests/test-exclude.c: New file.
12261         * tests/test-exclude1.sh: New file.
12262         * tests/test-exclude2.sh: New file.
12263         * tests/test-exclude3.sh: New file.
12264         * tests/test-exclude4.sh: New file.
12265         * tests/test-exclude5.sh: New file.
12266         * tests/test-exclude6.sh: New file.
12267         * tests/test-exclude7.sh: New file.
12268
12269 2009-08-12  Bruno Haible  <bruno@clisp.org>
12270
12271         Ensure that getopt() gets declared by <unistd.h>.
12272         * lib/unistd.in.h: Conditionally include getopt.h.
12273         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12274         Set GNULIB_UNISTD_H_GETOPT.
12275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12276         GNULIB_UNISTD_H_GETOPT.
12277         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12278
12279 2009-08-12  Bruno Haible  <bruno@clisp.org>
12280
12281         Clarify logic.
12282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12283         gl_replace_getopt instead of GETOPT_H.
12284
12285 2009-08-12  Bruno Haible  <bruno@clisp.org>
12286
12287         * m4/getopt.m4: Add comments.
12288
12289 2009-08-12  Bruno Haible  <bruno@clisp.org>
12290
12291         Disable multithread support by default on Cygwin 1.5.x.
12292         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12293         set gl_use_threads=no if not specified otherwise.
12294
12295 2009-08-11  Bruno Haible  <bruno@clisp.org>
12296
12297         Avoid compilation error on NetBSD 5.0.
12298         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12299         * tests/test-stdio.c: Likewise.
12300         * tests/test-stdlib.c: Likewise.
12301         * tests/test-string.c: Likewise.
12302         * tests/test-unistd.c: Likewise.
12303         Reported by Greg Troxel <gdt@ir.bbn.com>
12304         at <https://savannah.gnu.org/support/?106973>.
12305
12306 2009-08-11  Bruno Haible  <bruno@clisp.org>
12307
12308         * modules/dup2-tests (Depends-on): Remove close.
12309
12310         Undo 2009-07-19 commit.
12311         * modules/acl-tests (Depends-on): Remove close.
12312         * modules/binary-io-tests (Depends-on): Likewise.
12313         * modules/closein-tests (Depends-on): Likewise.
12314         * modules/flock-tests (Depends-on): Likewise.
12315         * modules/fsync-tests (Depends-on): Likewise.
12316         * modules/lseek-tests (Depends-on): Likewise.
12317         * modules/pipe-tests (Depends-on): Likewise.
12318         * modules/posix_spawn-tests (Depends-on): Likewise.
12319         * modules/posix_spawnp-tests (Depends-on): Likewise.
12320         * modules/stat-time-tests (Depends-on): Likewise.
12321         * modules/yesno-tests (Depends-on): Likewise.
12322
12323 2009-08-10  Bruno Haible  <bruno@clisp.org>
12324
12325         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12326
12327 2009-08-10  Bruno Haible  <bruno@clisp.org>
12328
12329         Fix a gcc warning.
12330         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12331
12332 2009-08-10  Bruno Haible  <bruno@clisp.org>
12333
12334         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12335         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12336         not only the first time.
12337         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12338         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12339         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12340         is 1, not only the the first time.
12341
12342 2009-08-10  Bruno Haible  <bruno@clisp.org>
12343
12344         Make it possible to use module 'gethostname' without module 'close'.
12345         * lib/unistd.in.h (close): Evoke a link error only if
12346         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12348         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12349         * modules/unistd (Makefile.am): Substitute
12350         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12351         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12352         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12354         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12355         * modules/sys_ioctl (Makefile.am): Substitute
12356         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12357         * modules/socket (configure.ac): On native Windows, set
12358         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12359         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12360         Reported by Sam Steingold <sds@gnu.org>.
12361
12362 2009-08-10  Bruno Haible  <bruno@clisp.org>
12363
12364         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12365         * modules/ioctl (configure.ac): Likewise.
12366
12367 2009-08-10  Bruno Haible  <bruno@clisp.org>
12368
12369         Avoid collision between gnulib wrapper and libintl wrapper.
12370         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12371         already defined in intl/printf.c.
12372         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12373         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12374
12375 2009-08-09  Bruno Haible  <bruno@clisp.org>
12376
12377         Make <sys/select.h> really self-contained, also on Solaris 10.
12378         * lib/sys_select.in.h: Include <string.h>.
12379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12380         Solaris 10 problem.
12381         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12382         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12383         Reported by Jim Meyering.
12384
12385 2009-08-09  Bruno Haible  <bruno@clisp.org>
12386
12387         Avoid warnings from 'aclocal' that are due to a use of macro name
12388         AM_XGETTEXT_OPTION that is not defined in automake.
12389         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12390         automake.
12391         * modules/error (configure.ac): Likewise.
12392         * modules/propername (configure.ac): Likewise.
12393         * modules/vasprintf (configure.ac): Likewise.
12394         * modules/verror (configure.ac): Likewise.
12395         * modules/xprintf (configure.ac): Likewise.
12396         * modules/xvasprintf (configure.ac): Likewise.
12397
12398 2009-08-08  Bruno Haible  <bruno@clisp.org>
12399
12400         Avoid compilation error in C++ mode.
12401         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12402         Reported by Sam Steingold <sds@gnu.org>.
12403
12404 2009-08-08  Bruno Haible  <bruno@clisp.org>
12405
12406         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12407         for the various Unix platforms.
12408         * doc/posix-headers/limits.texi: Update platforms list regarding
12409         HOST_NAME_MAX.
12410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12411
12412 2009-08-07  Jim Meyering  <meyering@redhat.com>
12413
12414         selinux-at: fix typo in a comment
12415         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12416         Spotted by Paolo Bonzini.
12417
12418         selinux-at: remove redundant m4 code, add documentation
12419         * modules/selinux-at (configure.ac): Remove redundant code.
12420         LIB_SELINUX is already set via the dependent module, selinux-h.
12421         (Include): Add quotes around selinux-at.h.
12422         * lib/selinux-at.h: Add documentation.
12423         Reported by Bruno Haible in
12424         http://marc.info/?l=gnulib-bug&m=124958988300749
12425
12426 2009-08-07  Bruno Haible  <bruno@clisp.org>
12427
12428         Avoid link error on MacOS X 10.3 and 10.4.
12429         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12430         on non-ELF systems.
12431         * lib/argp-pv.c (argp_program_version): Likewise.
12432         Reported by Simon Josefsson.
12433
12434 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12435
12436         * tests/test-version-etc.sh: Use $EXEEXT.
12437
12438 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12439
12440         update-copyright: update documentation to point to maint.mk
12441         * build-aux/update-copyright: Here.
12442
12443 2009-08-06  Jim Meyering  <meyering@redhat.com>
12444
12445         maint.mk: support update-copyright-local
12446         * top/maint.mk (update-copyright-local): Define place-holder.
12447         (update-copyright): Depend on $(update-copyright-local).
12448
12449 2009-08-06  Jim Meyering  <meyering@redhat.com>
12450
12451         selinux-at: new module
12452         Initially written for coreutils, this module will soon be
12453         used by findutils, too.
12454         * MODULES.html.sh [Misc]: Add selinux-at.
12455         * lib/selinux-at.h: New file, from coreutils.
12456         * lib/selinux-at.c: Likewise.
12457         * modules/selinux-at: Likewise.
12458         (License): Change from LGPL to GPL, since it depends
12459         on the GPL'd openat module.
12460
12461         doc: update README
12462         * README: Remove references to cogito.
12463         Remove cvs-repo-updating instructions from 2007.
12464         Don't imply that CVS is better if you have limited disk space.
12465
12466 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12467
12468         update-copyright: support C-style comments
12469         * build-aux/update-copyright: Implement and document.
12470         * tests/test-update-copyright.sh: Test.
12471
12472 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12473
12474         update-copyright: support omitted "(C)"
12475         * build-aux/update-copyright: Implement and document.  Also,
12476         allow variable whitespace before "(C)".
12477         * tests/test-update-copyright.sh: Test.
12478
12479 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12480
12481         update-copyright: don't trip on non-FSF copyright statements
12482         * build-aux/update-copyright: Fix so that the first correctly
12483         formatted FSF copyright statement is recognized no matter what
12484         appears before it.  Update documentation.
12485         * tests/test-update-copyright.sh: Test that.
12486
12487 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12488
12489         update-copyright: clean up code a little
12490         * build-aux/update-copyright: Append "_re" to the name of any
12491         variable holding a regular expression.
12492         Replace "old" and "new" with "stmt" in variable names.
12493         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12494         handled correctly.
12495         Format code more consistently.
12496
12497 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12498
12499         update-copyright-tests: improve portability
12500         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12501         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12502
12503 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12504
12505         update-copyright: support @copyright{} and &copy;
12506         * build-aux/update-copyright: Implement and document.
12507         * tests/test-update-copyright.sh: Test.
12508
12509 2009-08-04  Jim Meyering  <meyering@redhat.com>
12510
12511         update-copyright-tests: correctly test EOL=\r\n handling
12512         * tests/test-update-copyright.sh: Put \r at the end of some lines
12513         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12514
12515         maint.mk: make update-copyright exclusion list more configurable
12516         * top/maint.mk (update-copyright): Default to excluding COPYING,
12517         but allow an override, in case someone does want to update that file.
12518
12519         maint.mk: don't update copyright date in COPYING
12520         * top/maint.mk (update-copyright): Exclude COPYING.
12521
12522         maint.mk: add a copyright-updating rule
12523         * top/maint.mk (update-copyright): New rule.
12524         Derived from coreutils/Makefile.am.
12525
12526         update-copyright: rename some variables
12527         * build-aux/update-copyright: Rename a few variables for clarity.
12528         Tweak syntax.  List Joel E. Denny as coauthor.
12529
12530 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12531
12532         update-copyright: fix bug for 2-digit last year and add tests
12533         * build-aux/update-copyright: Fix bug.
12534         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12535         specified.
12536         * modules/update-copyright-tests: New
12537         * tests/test-update-copyright.sh: New.
12538
12539 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12540
12541         update-copyright: handle leading tabs in line prefix
12542         * build-aux/update-copyright: Count leading tabs as 8 spaces
12543         when computing margin.  This helps with the formatting of
12544         ChangeLogs, for example.
12545         Fix documentation a little.
12546
12547 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12548
12549         update-copyright: support EOL=\r\n
12550         * build-aux/update-copyright: Implement that.
12551
12552 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12553
12554         update-copyright: automatically format copyright statements
12555         * build-aux/update-copyright: Implement that.
12556         Also, be a little more predictable and safer by always failing
12557         when the full copyright format is not perfectly recognized as an
12558         unbroken whole.  Discussed at
12559         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12560         Rewrite documentation.
12561
12562 2009-08-03  Bruno Haible  <bruno@clisp.org>
12563
12564         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12565
12566 2009-08-02  Bruno Haible  <bruno@clisp.org>
12567
12568         Tests for module 'uname'.
12569         * modules/uname-tests: New file.
12570         * tests/test-uname.c: New file.
12571
12572         New module 'uname'.
12573         * lib/uname.c: New file.
12574         * m4/uname.m4: New file.
12575         * modules/uname: New file.
12576         * doc/posix-functions/uname.texi: Mention the new module.
12577
12578 2009-08-02  Bruno Haible  <bruno@clisp.org>
12579
12580         Tests for module 'sys_utsname'.
12581         * modules/sys_utsname-tests: New file.
12582         * tests/test-sys_utsname.c: New file.
12583
12584         New module 'sys_utsname'.
12585         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12586         * m4/sys_utsname_h.m4: New file.
12587         * modules/sys_utsname: New file.
12588         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12589
12590 2009-08-02  Bruno Haible  <bruno@clisp.org>
12591
12592         Implicitly initialize the sockets library.
12593         * lib/gethostname.c: Include sockets.h.
12594         (rpl_gethostname): Invoke gl_sockets_startup.
12595         * lib/socket.c: Include sockets.h.
12596         (rpl_socket): Invoke gl_sockets_startup.
12597         * modules/gethostname (Depends-on): Add sockets.
12598         * modules/socket (Depends-on): Likewise.
12599         * tests/test-poll.c: Don't include sockets.h.
12600         (main): Don't invoke gl_sockets_startup.
12601         * tests/test-select.c: Don't include sockets.h.
12602         (main): Don't invoke gl_sockets_startup.
12603
12604 2009-08-02  Bruno Haible  <bruno@clisp.org>
12605
12606         Allow multiple calls to gl_sockets_startup.
12607         * lib/sockets.c (initialized_sockets_version): New variable.
12608         (gl_sockets_startup): Do nothing if already called for this or a higher
12609         version.
12610         (gl_sockets_cleanup): Reset initialized_sockets_version.
12611
12612 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12613
12614         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12615         different project/version.
12616
12617 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12618             Bruno Haible  <bruno@clisp.org>
12619
12620         Tests for module 'pipe-filter-gi'.
12621         * modules/pipe-filter-gi-tests: New file.
12622         * tests/test-pipe-filter-gi1.sh: New file.
12623         * tests/test-pipe-filter-gi1.c: New file.
12624         * tests/test-pipe-filter-gi2.sh: New file.
12625         * tests/test-pipe-filter-gi2-main.c: New file.
12626         * tests/test-pipe-filter-gi2-child.c: New file.
12627
12628         New module 'pipe-filter-gi'.
12629         * lib/pipe-filter-gi.c: New file.
12630         * modules/pipe-filter-gi: New file.
12631
12632 2009-08-02  Bruno Haible  <bruno@clisp.org>
12633             Paolo Bonzini  <bonzini@gnu.org>
12634
12635         Tests for module 'pipe-filter-ii'.
12636         * modules/pipe-filter-ii-tests: New file.
12637         * tests/test-pipe-filter-ii1.sh: New file.
12638         * tests/test-pipe-filter-ii1.c: New file.
12639         * tests/test-pipe-filter-ii2.sh: New file.
12640         * tests/test-pipe-filter-ii2-main.c: New file.
12641         * tests/test-pipe-filter-ii2-child.c: New file.
12642
12643         New module 'pipe-filter-ii'.
12644         * lib/pipe-filter.h: New file.
12645         * lib/pipe-filter-ii.c: New file.
12646         * lib/pipe-filter-aux.h: New file.
12647         * modules/pipe-filter-ii: New file.
12648
12649 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12650
12651         * lib/gc-libgcrypt.c: Change copyright to FSF.
12652         * lib/gc-gnulib.c: Likewise.
12653
12654 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12655
12656         * lib/gethostname.c: Include limits.h.
12657
12658 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12659             Bruno Haible  <bruno@clisp.org>
12660
12661         Ensure HOST_NAME_MAX as part of the gethostname module.
12662         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12663         define also HOST_NAME_MAX.
12664         * tests/test-gethostname.c: Include <limits.h>.
12665         (main): Check also HOST_NAME_MAX.
12666         * doc/posix-headers/limits.texi: Document the mingw problem.
12667
12668 2009-08-02  Bruno Haible  <bruno@clisp.org>
12669
12670         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12671         Add comments.
12672
12673 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12674
12675         * lib/gethostname.c: Add Windows wrapper.
12676         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12677         * modules/gethostname: Depend on sys_socket & errno, for also
12678         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12679         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12680
12681 2009-07-31  Jim Meyering  <meyering@redhat.com>
12682
12683         getloadavg: fix symbol name in comment
12684         * lib/getloadavg.c: Correct a typo I introduced when adding
12685         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12686         Matt Kraai spotted the problem.
12687
12688 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12689
12690         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12691         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12692         code also if ! defined N_NAME_POINTER.
12693         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12694         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12695         but the n_name member is a 12-byte array.
12696
12697 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12698
12699         update-copyright: generalize comment handling
12700         * build-aux/update-copyright: Handle copyright statements
12701         within more comment styles.
12702         Document usage.
12703         Report any file with an external copyright holder or parse failure.
12704
12705 2009-07-29  Jim Meyering  <meyering@redhat.com>
12706
12707         mktime: correct setting of REPLACE_MKTIME
12708         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12709
12710         update-copyright: new module
12711         * modules/update-copyright: New file.
12712         * build-aux/update-copyright: New file.
12713         * MODULES.html.sh (maint+release support): Add update-copyright.
12714
12715 2009-07-27  Bruno Haible  <bruno@clisp.org>
12716
12717         Fix compilation error when <ctime> is used and mktime is replaced.
12718         * lib/time.in.h (mktime): New declaration.
12719         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12720         REPLACE_MKTIME instead of defining mktime in config.h.
12721         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12722         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12723         Reported by Ross McFarland <rwmcfa1@neces.com>.
12724
12725 2009-07-27  Bruno Haible  <bruno@clisp.org>
12726
12727         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12728         Reported by Matt Kraai <mkraai@beckman.com>.
12729
12730 2009-07-25  Jim Meyering  <meyering@redhat.com>
12731
12732         maint.mk: avoid warnings about missing files
12733         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12734         diagnostic when .prev-version does not exist.
12735         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12736         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12737         nonexistent cfg.mk.
12738         Suggestions from Simon Josefsson.
12739
12740 2009-07-25  Bruno Haible  <bruno@clisp.org>
12741
12742         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12743         defined as macros. Needed on QNX 6.4.1.
12744         Reported by Matt Kraai <mkraai@beckman.com>.
12745
12746 2009-07-23  Jim Meyering  <meyering@redhat.com>
12747
12748         maint.mk: invoke "make dist" with a working value of XZ_OPT
12749         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12750
12751 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12752
12753         Make fseeko.c compile on QNX.
12754         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12755
12756 2009-07-22  Peter Simons  <simons@cryp.to>
12757
12758         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12759         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12760         * lib/md4.h: Likewise.
12761         * lib/md5.h: Likewise.
12762         * lib/sha1.h: Likewise.
12763         * lib/sha256.h: Likewise.
12764         * lib/sha512.h: Likewise.
12765
12766         tests-sha1: don't assign literal string to 'char *' variable
12767         * tests/test-sha1.c (main): Declare locals with "const" to match
12768         attributes of the right hand side.
12769
12770 2009-07-21  Eric Blake  <ebb9@byu.net>
12771
12772         dup2: fix more mingw problems
12773         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12774         fd to itself.
12775         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12776         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12777         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12778         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12779         care of mingw bugs.
12780
12781 2009-07-21  Jim Meyering  <meyering@redhat.com>
12782
12783         vc-list-files: avoid failure when /bin/sh is dash
12784         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12785         On some Debian based systems, /bin/sh is a symlink to dash, and running
12786         this command would omit the "/" following each 'tests' prefix:
12787           dash -x build-aux/vc-list-files -C . tests
12788         That is because bash and dash work differently:
12789           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12790           bash ok
12791           dash odd
12792
12793 2009-07-21  Eric Blake  <ebb9@byu.net>
12794
12795         dup2-tests: test previous patch
12796         * modules/dup2-tests: New file.
12797         * tests/test-dup2.c: Likewise.
12798         * tests/test-open.c (main): Avoid unspecified behavior.
12799         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12800         test.
12801
12802         dup2: work around mingw and cygwin 1.5 bug
12803         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12805         * modules/unistd (Makefile.am): Substitute it.
12806         * lib/unistd.in.h (dup2): Declare the replacement.
12807         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12808         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12809         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12810         * modules/execute (Depends-on): Add dup2.
12811         * modules/fseterr (Depends-on): Likewise.
12812         * modules/pipe (Depends-on): Likewise.
12813         * modules/posix_spawn-internal (Depends-on): Likewise.
12814
12815 2009-07-21  Bruno Haible  <bruno@clisp.org>
12816
12817         * modules/.gitattributes: New file.
12818
12819 2009-07-20  Bruno Haible  <bruno@clisp.org>
12820
12821         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12822         (main): Use it.
12823
12824 2009-07-20  Eric Blake  <ebb9@byu.net>
12825
12826         test-pipe: make a bit more robust.
12827         * tests/test-pipe.c (myerr): Allow error messages regardless of
12828         what we do to stderr.
12829         (test_pipe): Rearrange to avoid deadlock.
12830         (child_main): Try a larger read, to ensure we avoided deadlock.
12831         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12832         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12833         if misused.
12834
12835 2009-07-19  Jim Meyering  <meyering@redhat.com>
12836
12837         fts: avoid false-positive cycle-detection
12838         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12839         for each new command line argument.
12840
12841 2009-07-19  Bruno Haible  <bruno@clisp.org>
12842
12843         Fix build error on mingw with the modules sys_select and unistd.
12844         * modules/acl-tests (Depends-on): Add close.
12845         * modules/binary-io-tests (Depends-on): Likewise.
12846         * modules/closein-tests (Depends-on): Likewise.
12847         * modules/flock-tests (Depends-on): Likewise.
12848         * modules/fsync-tests (Depends-on): Likewise.
12849         * modules/lseek-tests (Depends-on): Likewise.
12850         * modules/pipe-tests (Depends-on): Likewise.
12851         * modules/posix_spawn-tests (Depends-on): Likewise.
12852         * modules/posix_spawnp-tests (Depends-on): Likewise.
12853         * modules/stat-time-tests (Depends-on): Likewise.
12854         * modules/yesno-tests (Depends-on): Likewise.
12855
12856 2009-07-19  Bruno Haible  <bruno@clisp.org>
12857
12858         Unify conditionals.
12859         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12860         macros, not at the compiler macros.
12861         * lib/pipe.c: Likewise.
12862         * lib/execute.c: Likewise.
12863         * lib/spawni.c: Likewise.
12864
12865 2009-07-19  Bruno Haible  <bruno@clisp.org>
12866
12867         Fix handling of closed stdin/stdout/stderr on mingw.
12868         * lib/w32spawn.h: Include unistd.h.
12869         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12870         file descriptor with O_NOINHERIT flag.
12871         (fd_safer_noinherit): New function, based on fd-safer.c.
12872         (dup_safer_noinherit): New function, based on dup-safer.c.
12873         (undup_safer_noinherit): New function.
12874         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12875         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12876         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12877         instead of fd_safer.
12878         * tests/test-pipe.c: Include <windows.h>.
12879         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12880
12881         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12882         from main.
12883         (test_pipe): Pass an extra argument for disambiguation.
12884         (main): Invoke parent_main or child_main.
12885
12886         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12887         consistently.
12888
12889 2009-07-18  Eric Blake  <ebb9@byu.net>
12890
12891         test-pipe: fix mingw build
12892         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12893
12894 2009-07-18  Bruno Haible  <bruno@clisp.org>
12895
12896         * modules/pipe-tests (Makefile.am): Fix typo.
12897
12898 2009-07-18  Eric Blake  <ebb9@byu.net>
12899
12900         error: fix mingw build
12901         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12902         Reported by Bruno Haible.
12903
12904         error: avoid undefined use of stdout
12905         * lib/error.c (error, error_at_line): Check that fd 1 is open
12906         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12907         is handling faults and the close_stdout module wants to report the
12908         detection of closed stdout as an error.
12909
12910 2009-07-17  Eric Blake  <ebb9@byu.net>
12911
12912         pipe: be robust in face of closed fds
12913         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12914         should cause child to misbehave.
12915         * modules/pipe-tests: New module.
12916         * tests/test-pipe.c: New file.
12917         * tests/test-pipe.sh: New file.
12918         Reported by Akim Demaille.
12919
12920 2009-07-14  Bruno Haible  <bruno@clisp.org>
12921
12922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12923         Reported by anonymous kc.
12924
12925 2009-07-07  Jim Meyering  <meyering@redhat.com>
12926
12927         maint.mk: don't look for translatable strings in *.m4 or *.mk
12928         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12929         when searching for translatable strings.
12930
12931 2009-07-05  Jim Meyering  <meyering@redhat.com>
12932
12933         remove superfluous parentheses in STREQ definition
12934         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12935         * lib/getugroups.c (STREQ): Likewise.
12936         * lib/fnmatch.c (STREQ): Likewise.
12937         Spotted by Bruno Haible.
12938
12939 2009-07-04  Jim Meyering  <meyering@redhat.com>
12940
12941         argv-iter: new module
12942         * MODULES.html.sh: Add argv-iter.
12943         * lib/argv-iter.c, lib/argv-iter.h: New files.
12944         * modules/argv-iter: New file.
12945         * modules/argv-iter-tests: New file.
12946         * tests/test-argv-iter.c: Test it.
12947
12948 2009-07-04  Bruno Haible  <bruno@clisp.org>
12949
12950         Fix assertion.
12951         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12952         contains more exact copies of a given entry than file2, leave the extra
12953         copies unpaired rather than aborting.
12954         Reported by Eric Blake.
12955
12956 2009-07-02  Bruno Haible  <bruno@clisp.org>
12957
12958         Speedup git-merge-changelog for git cherry-pick.
12959         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12960         (entries_mapping_get): New function, extracted from compute_mapping.
12961         (entries_mapping_reverse_get): New function.
12962         (compute_mapping): Add a 'full' argument. Return the result in a
12963         'struct entries_mapping'.
12964         (main): Update. Access the mappings through entries_mapping_get.
12965         Reported by Eric Blake.
12966
12967 2009-07-02  Bruno Haible  <bruno@clisp.org>
12968
12969         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12970         best_i.
12971
12972 2009-07-02  Bruno Haible  <bruno@clisp.org>
12973
12974         Speed up approximate search for matching ChangeLog entries.
12975         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12976         argument. Call fstrcmp_bounded instead of fstrcmp.
12977         (compute_mapping, try_split_merged_entry, main): Update callers.
12978
12979 2009-07-02  Bruno Haible  <bruno@clisp.org>
12980
12981         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12982
12983 2009-06-30  Bruno Haible  <bruno@clisp.org>
12984
12985         Reduce the number of uc_is_cased calls.
12986         * lib/unicase.h (casing_suffix_context_t): Add
12987         'first_char_except_ignorable' field.
12988         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12989         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12990         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12991         Update initializer.
12992         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12993         case-ignorable characters.
12994         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12995         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12996         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12997         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12998         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12999
13000 2009-06-30  Bruno Haible  <bruno@clisp.org>
13001
13002         Tests for module 'unicase/ignorable'.
13003         * modules/unicase/ignorable-tests: New file.
13004         * tests/unicase/test-ignorable.c: New file, generated by
13005         gen-uni-tables.
13006
13007         Tests for module 'unicase/cased'.
13008         * modules/unicase/cased-tests: New file.
13009         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13010         * tests/unicase/test-predicate-part1.h: New file, derived from
13011         tests/unictype/test-predicate-part1.h.
13012         * tests/unicase/test-predicate-part2.h: New file, same as
13013         tests/unictype/test-predicate-part2.h.
13014
13015         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13016         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13017         (output_casing_properties): New function.
13018         (main): Call it.
13019         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13020         * lib/unicase/cased.c: Include unictype/bitmap.h.
13021         (uc_is_cased): Define through a bitmap lookup.
13022         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13023         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13024         (uc_is_case_ignorable): Define through a bitmap lookup.
13025         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13026         lib/unictype/bitmap.h.
13027         (Depends-on): Add inline. Clean up.
13028         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13029         lib/unictype/bitmap.h.
13030         (Depends-on): Add inline. Clean up.
13031         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13032         recognition.
13033         * tests/unicase/test-u16-tolower.c (main): Likewise.
13034         * tests/unicase/test-u32-tolower.c (main): Likewise.
13035
13036 2009-06-30  Bruno Haible  <bruno@clisp.org>
13037
13038         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13039         * lib/unicase/u16-casemap.c: Likewise.
13040         * lib/unicase/u32-casemap.c: Likewise.
13041
13042 2009-06-29  Bruno Haible  <bruno@clisp.org>
13043
13044         Define u32_casefold as a wrapper around u32_ct_casefold.
13045         * lib/unicase/u32-casefold.c: Update.
13046         * modules/unicase/u32-casefold (Depends-on): Add
13047         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13048         unicase/empty-suffix-context. Clean up.
13049
13050         Define u16_casefold as a wrapper around u16_ct_casefold.
13051         * lib/unicase/u16-casefold.c: Update.
13052         * modules/unicase/u16-casefold (Depends-on): Add
13053         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13054         unicase/empty-suffix-context. Clean up.
13055
13056         Define u8_casefold as a wrapper around u8_ct_casefold.
13057         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13058         * lib/unicase/u8-casefold.c: Update.
13059         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13060         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13061
13062         Define u32_totitle as a wrapper around u32_ct_totitle.
13063         * lib/unicase/u32-totitle.c: Update.
13064         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13065         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13066
13067         Define u16_totitle as a wrapper around u16_ct_totitle.
13068         * lib/unicase/u16-totitle.c: Update.
13069         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13070         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13071
13072         Define u8_totitle as a wrapper around u8_ct_totitle.
13073         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13074         functions.
13075         (FUNC): Delegate to U_CT_TOTITLE.
13076         * lib/unicase/u8-totitle.c: Update.
13077         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13078         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13079
13080         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13081         invocation.
13082         * modules/unicase/u32-tolower (Depends-on): Add
13083         unicase/empty-prefix-context, unicase/empty-suffix-context.
13084
13085         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13086         invocation.
13087         * modules/unicase/u16-tolower (Depends-on): Add
13088         unicase/empty-prefix-context, unicase/empty-suffix-context.
13089
13090         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13091         * modules/unicase/u8-tolower (Depends-on): Add
13092         unicase/empty-prefix-context, unicase/empty-suffix-context.
13093
13094         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13095         invocation.
13096         * modules/unicase/u32-toupper (Depends-on): Add
13097         unicase/empty-prefix-context, unicase/empty-suffix-context.
13098
13099         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13100         invocation.
13101         * modules/unicase/u16-toupper (Depends-on): Add
13102         unicase/empty-prefix-context, unicase/empty-suffix-context.
13103
13104         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13105         * modules/unicase/u8-toupper (Depends-on): Add
13106         unicase/empty-prefix-context, unicase/empty-suffix-context.
13107
13108         New module 'unicase/u32-ct-casefold'.
13109         * lib/unicase/u32-ct-casefold.c: New file.
13110         * modules/unicase/u32-ct-casefold: New file.
13111
13112         New module 'unicase/u16-ct-casefold'.
13113         * lib/unicase/u16-ct-casefold.c: New file.
13114         * modules/unicase/u16-ct-casefold: New file.
13115
13116         New module 'unicase/u8-ct-casefold'.
13117         * lib/unicase/u8-ct-casefold.c: New file.
13118         * lib/unicase/u-ct-casefold.h: New file, derived from
13119         lib/unicase/u-casefold.h.
13120         * modules/unicase/u8-ct-casefold: New file.
13121
13122         New module 'unicase/u32-ct-totitle'.
13123         * lib/unicase/u32-ct-totitle.c: New file.
13124         * modules/unicase/u32-ct-totitle: New file.
13125
13126         New module 'unicase/u16-ct-totitle'.
13127         * lib/unicase/u16-ct-totitle.c: New file.
13128         * modules/unicase/u16-ct-totitle: New file.
13129
13130         New module 'unicase/u8-ct-totitle'.
13131         * lib/unicase/u8-ct-totitle.c: New file.
13132         * lib/unicase/u-ct-totitle.h: New file, derived from
13133         lib/unicase/u-totitle.h.
13134         * modules/unicase/u8-ct-totitle: New file.
13135
13136         New module 'unicase/u32-ct-tolower'.
13137         * lib/unicase/u32-ct-tolower.c: New file.
13138         * modules/unicase/u32-ct-tolower: New file.
13139
13140         New module 'unicase/u16-ct-tolower'.
13141         * lib/unicase/u16-ct-tolower.c: New file.
13142         * modules/unicase/u16-ct-tolower: New file.
13143
13144         New module 'unicase/u8-ct-tolower'.
13145         * lib/unicase/u8-ct-tolower.c: New file.
13146         * modules/unicase/u8-ct-tolower: New file.
13147
13148         New module 'unicase/u32-ct-toupper'.
13149         * lib/unicase/u32-ct-toupper.c: New file.
13150         * modules/unicase/u32-ct-toupper: New file.
13151
13152         New module 'unicase/u16-ct-toupper'.
13153         * lib/unicase/u16-ct-toupper.c: New file.
13154         * modules/unicase/u16-ct-toupper: New file.
13155
13156         New module 'unicase/u8-ct-toupper'.
13157         * lib/unicase/u8-ct-toupper.c: New file.
13158         * modules/unicase/u8-ct-toupper: New file.
13159
13160         Add context arguments to u*_casemap functions.
13161         * lib/unicase/unicasemap.h: Include unicase.h.
13162         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13163         suffix_context arguments.
13164         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13165         functions.
13166         (FUNC): Add prefix_context and suffix_context arguments. Use
13167         uc_is_cased and uc_is_case_ignorable.
13168         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13169         * lib/unicase/u16-casemap.c: Likewise.
13170         * lib/unicase/u32-casemap.c: Likewise.
13171         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13172         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13173         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13174         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13175         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13176         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13177
13178         New module 'unicase/u32-suffix-context'.
13179         * lib/unicase/u32-suffix-context.c: New file.
13180         * modules/unicase/u32-suffix-context: New file.
13181
13182         New module 'unicase/u16-suffix-context'.
13183         * lib/unicase/u16-suffix-context.c: New file.
13184         * modules/unicase/u16-suffix-context: New file.
13185
13186         New module 'unicase/u8-suffix-context'.
13187         * lib/unicase/u8-suffix-context.c: New file.
13188         * lib/unicase/u-suffix-context.h: New file.
13189         * modules/unicase/u8-suffix-context: New file.
13190
13191         New module 'unicase/empty-suffix-context'.
13192         * lib/unicase/empty-suffix-context.c: New file.
13193         * modules/unicase/empty-suffix-context: New file.
13194
13195         New module 'unicase/u32-prefix-context'.
13196         * lib/unicase/u32-prefix-context.c: New file.
13197         * modules/unicase/u32-prefix-context: New file.
13198
13199         New module 'unicase/u16-prefix-context'.
13200         * lib/unicase/u16-prefix-context.c: New file.
13201         * modules/unicase/u16-prefix-context: New file.
13202
13203         New module 'unicase/u8-prefix-context'.
13204         * lib/unicase/u8-prefix-context.c: New file.
13205         * lib/unicase/u-prefix-context.h: New file.
13206         * lib/unicase/context.h: New file.
13207         * modules/unicase/u8-prefix-context: New file.
13208
13209         New module 'unicase/empty-prefix-context'.
13210         * lib/unicase/empty-prefix-context.c: New file.
13211         * modules/unicase/empty-prefix-context: New file.
13212
13213         New module 'unicase/ignorable'.
13214         * lib/unicase/ignorable.c: New file.
13215         * modules/unicase/ignorable: New file.
13216
13217         New module 'unicase/cased'.
13218         * lib/unicase/caseprop.h: New file.
13219         * lib/unicase/cased.c: New file.
13220         * modules/unicase/cased: New file.
13221
13222         New functions for case mapping of substrings.
13223         * lib/unicase.h (casing_prefix_context_t): New type.
13224         (unicase_empty_prefix_context): New variable.
13225         (u8_casing_prefix_context, u16_casing_prefix_context,
13226         u32_casing_prefix_context, u8_casing_prefixes_context,
13227         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13228         declarations.
13229         (casing_suffix_context_t): New type.
13230         (unicase_empty_suffix_context): New variable.
13231         (u8_casing_suffix_context, u16_casing_suffix_context,
13232         u32_casing_suffix_context, u8_casing_suffixes_context,
13233         u16_casing_suffixes_context, u32_casing_suffixes_context,
13234         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13235         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13236         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13237         declarations.
13238
13239 2009-06-28  Jim Meyering  <meyering@redhat.com>
13240
13241         boostrap: indent only with spaces
13242         * build-aux/bootstrap: Indent only with spaces, never TABs.
13243
13244         bootstrap: split long lines
13245         * build-aux/bootstrap: Keep line length < 80.
13246
13247         bootstrap: sync from coreutils
13248         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13249         just as autoreconf does.  Verify a list of prerequisite
13250         package-name,version-number pairs if defined in bootstrap.conf.
13251         Refer to README-prereq, if prerequisites are not satisfied.
13252
13253 2009-06-27  Eric Blake  <ebb9@byu.net>
13254
13255         tests: add test for bogus NULL definition
13256         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13257         * tests/test-stdlib.c: Likewise.
13258         * tests/test-string.c: Likewise.
13259         * tests/test-locale.c: Likewise.
13260         * tests/test-unistd.c: Likewise.
13261         * modules/stdio-tests (Depends-on): Add verify.
13262         * modules/stdlib-tests (Depends-on): Likewise.
13263         * modules/string-tests (Depends-on): Likewise.
13264         * modules/locale-tests (Depends-on): Likewise.
13265         * modules/unistd-tests (Depends-on): Likewise.
13266
13267 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13268
13269         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13270         self-explaining comment.
13271         * m4/selinux-selinux-h: Update serial.
13272         (gl_LIBSELINUX): New macro, adding a warning for missing development
13273         packages to code extracted from...
13274         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13275         Add warning for missing development packages here, too.
13276
13277 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13278
13279         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13280
13281 2009-06-25  Eric Blake  <ebb9@byu.net>
13282
13283         version-etc: fix regression
13284         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13285         gcc.
13286         (version_etc): Use it, to catch bugs with trailing NULL.
13287         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13288         (version_etc_va): Fix logic bug.
13289         * modules/version-etc-tests: Add test.
13290         * tests/test-version-etc.c: New file.
13291         * tests/test-version-etc.sh: Likewise.
13292
13293 2009-06-25  Sam Steingold  <sds@gnu.org>
13294
13295         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13296         mbtowc declaration.
13297
13298 2009-06-25  Eric Blake  <ebb9@byu.net>
13299
13300         fpurge: migrate into <stdio.h>
13301         * lib/fpurge.h: Delete...
13302         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13303         * lib/fpurge.c (fpurge): Change declaring header.
13304         * modules/fpurge (Files): Drop deleted file.
13305         (Depends-on): Add stdio.
13306         (configure.ac): Set witness.
13307         * modules/stdio (Makefile.am): Support fpurge macros.
13308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13309         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13310         * lib/fflush.c: Update client.
13311         * tests/test-fpurge.c: Likewise.
13312         * NEWS: Mention the change.
13313
13314 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13315
13316         * lib/argp-version-etc.c (program_authors): Add const
13317         qualifier.
13318         * lib/version-etc.c: Fix typos in the comments.
13319         * modules/argp-version-etc: Depends on version-etc.
13320
13321 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13322
13323         argp-version-etc: new module.
13324
13325         * lib/argp-version-etc.c: New file.
13326         * lib/argp-version-etc.h: New file.
13327         * modules/argp-version-etc: New file.
13328         * modules/argp-version-etc-tests: New file.
13329         * tests/test-argp-version-etc.c: New test.
13330         * tests/test-argp-version-etc-1.sh: New test.
13331
13332 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13333
13334         Provide additional interfaces and documentation for version-etc
13335         module.
13336
13337         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13338         interfaces.
13339         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13340         prototypes.
13341
13342 2009-06-24  Bruno Haible  <bruno@clisp.org>
13343
13344         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13345         HAVE_LIB${NAME} macro.
13346         Reported by Sam Steingold <sds@gnu.org>.
13347
13348 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13349
13350         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13351         needed.
13352
13353 2009-06-21  Bruno Haible  <bruno@clisp.org>
13354
13355         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13356         work.
13357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13358         together with LIB${NAME}, LTLIB${NAME}.
13359         Reported by Sam Steingold <sds@gnu.org>.
13360
13361 2009-06-20  Jim Meyering  <meyering@redhat.com>
13362
13363         tests: make sc_require_test_exit_idiom more generic
13364         * top/maint.mk (Exit_witness_file): New overridable variable.
13365         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13366         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13367
13368 2009-06-19  Jim Meyering  <meyering@redhat.com>
13369
13370         hash: reverse order of src/dst parameters in an internal interface
13371         * lib/hash.c (transfer_entries): Reverse order of parameters to
13372         put DST before SRC.  Adjust callers.
13373
13374         tests: test-hash: avoid wholesale duplication
13375         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13376         Instead, use a loop and add a single conditional.
13377
13378         tests: test-hash: allow seed selection via a command line argument
13379         * tests/test-hash.c (get_seed): New function.
13380         (main): Use it.
13381
13382 2009-06-19  Eric Blake  <ebb9@byu.net>
13383
13384         hash: avoid memory leak on allocation failure
13385         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13386         failure.  Factor repeated algorithm...
13387         (transfer_entries): ...into new helper routine.
13388         (hash_delete): React to hash_rehash return value.
13389
13390         hash: reduce memory pressure in hash_rehash no-op case
13391         * lib/hash.c (next_prime): Avoid overflow.
13392         (hash_initialize): Factor bucket size computation...
13393         (compute_bucket_size): ...into new helper function.
13394         (hash_rehash): Use new function and open coding to reduce memory
13395         pressure, and avoid a memory leak in USE_OBSTACK code.
13396         Reported by Jim Meyering.
13397
13398 2009-06-18  Eric Blake  <ebb9@byu.net>
13399
13400         hash: make rotation more obvious
13401         * modules/hash (Depends-on): Add bitrotate and stdint.
13402         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13403         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13404         (SIZE_MAX): Rely on headers for definition.
13405         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13406         (raw_hasher): Use rotr_sz.
13407         Suggested by Jim Meyering.
13408
13409         hash: fix memory leak in last patch
13410         * lib/hash.c (hash_rehash): Avoid memory leak.
13411
13412         hash: avoid no-op rehashing
13413         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13414
13415         hash: provide default callback functions
13416         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13417         (hash_initialize): Use them as defaults.
13418         * tests/test-hash.c (main): Test this.
13419
13420         hash: minor optimization
13421         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13422         when possible.
13423         (hash_initialize): Document this promise.
13424         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13425         * tests/test-hash.c (hash_compare_strings): Test this.
13426
13427 2009-06-18  Bruno Haible  <bruno@clisp.org>
13428
13429         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13430         going to be replaced anyway.
13431
13432 2009-06-18  Bruno Haible  <bruno@clisp.org>
13433
13434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13435         in one place.
13436         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13437         be replaced anyway.
13438
13439 2009-06-18  Eric Blake  <ebb9@byu.net>
13440
13441         hash: check for resize before insertion
13442         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13443         threshold before insertion, so that a pathological hash_rehash
13444         that fills every bucket can still trigger another rehash.
13445
13446 2009-06-18  Jim Meyering  <meyering@redhat.com>
13447
13448         hash-tests: add a loop around the small tests
13449         * tests/test-hash.c (main): Repeat small tests with selected
13450         small initial table sizes.
13451
13452 2009-06-17  Eric Blake  <ebb9@byu.net>
13453
13454         hash: minor cleanups
13455         * lib/hash.h (hash_entry): Make opaque, by moving...
13456         * lib/hash.c (hash_entry): ...here.
13457         (hash_insert): Clarify restrictions on what can be inserted.
13458         (hash_get_next): Clarify when it is safe to remove an element
13459         during traversal.
13460         (check_tuning): Skip verification when tuning is known safe.
13461         (hash_initialize): Clarify restrictions on tuning.
13462
13463 2009-06-17  Jim Meyering  <jim@meyering.net>
13464         and Eric Blake  <ebb9@byu.net>
13465
13466         hash-tests: new module
13467         * modules/hash-tests: New file.
13468         * tests/test-hash.c: New file.
13469
13470 2009-06-17  Eric Blake  <ebb9@byu.net>
13471
13472         strstr-simple: document new module
13473         * MODULES.html.sh: Document new module.
13474
13475         strstr, strcasestr: replace on platforms with broken memchr
13476         * modules/strstr: Split into...
13477         * modules/strstr-simple: ...new module that does not care about
13478         performance, but does care about glibc bug.
13479         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13480         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13481         if platform memchr is broken, per Debian bug 521737.
13482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13483         memchr.
13484         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13485         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13486         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13487         * modules/mountlist (Depends-on): Add strstr-simple.
13488         * modules/gen-uni-tables (Depends-on): Likewise.
13489         * modules/argz (Depends-on): Add strstr.
13490
13491 2009-06-17  Bruno Haible  <bruno@clisp.org>
13492
13493         * modules/posix_spawn-internal (Depends-on): Add errno.
13494
13495 2009-06-17  Bruno Haible  <bruno@clisp.org>
13496
13497         Define missing ESTALE on Interix 3.5.
13498         * lib/errno.in.h (ESTALE): Assign a value if missing.
13499         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13500         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13501         missing.
13502         * doc/posix-headers/errno.texi: Mention the Interix bug.
13503         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13504
13505 2009-06-15  Eric Blake  <ebb9@byu.net>
13506
13507         memchr, memchr2: add valgrind exception
13508         * lib/memchr.valgrind: New file.
13509         * lib/memchr2.valgrind: New file.
13510         * modules/memchr (Files): Distribute valgrind file.
13511         * modules/memchr2 (Files): Likewise.
13512
13513         docs: memchr is no longer obsolete
13514         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13515         * lib/string.in.h (memchr): Simplify logic.
13516
13517 2009-06-14  Jim Meyering  <meyering@redhat.com>
13518
13519         link-follow: fix the "checking..." message to not mention trailing slash
13520         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13521         never considered trailing slashes.
13522
13523 2009-06-14  Bruno Haible  <bruno@clisp.org>
13524
13525         * m4/memchr.m4: Mention also the bug on IA-64.
13526         * doc/posix-functions/memchr.texi: Likewise.
13527
13528 2009-06-12  Eric Blake  <ebb9@byu.net>
13529
13530         memchr: detect broken x86_64 and alpha implementations
13531         * modules/memchr-tests (Depends-on): Move mmap detection...
13532         * modules/memchr (Depends-on): ...here.
13533         (configure.ac): Set indicator.
13534         * lib/string.in.h (memchr): Declare replacement.
13535         * modules/string (Makefile.am): Trigger replacement.
13536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13537         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13538         bugs.
13539         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13540         * modules/getpagesize (License): Relax license.
13541
13542 2009-06-11  Bruno Haible  <bruno@clisp.org>
13543
13544         * lib/idpriv.h: Add more references.
13545
13546 2009-06-08  Bruno Haible  <bruno@clisp.org>
13547
13548         Tests for module 'idpriv-droptemp'.
13549         * modules/idpriv-droptemp-tests: New file.
13550         * tests/test-idpriv-droptemp.sh: New file.
13551         * tests/test-idpriv-droptemp.su.sh: New file.
13552         * tests/test-idpriv-droptemp.c: New file.
13553
13554         New module 'idpriv-droptemp'.
13555         * lib/idpriv-droptemp.c: New file.
13556         * modules/idpriv-droptemp: New file.
13557
13558 2009-06-08  Bruno Haible  <bruno@clisp.org>
13559
13560         Tests for module 'idpriv-drop'.
13561         * modules/idpriv-drop-tests: New file.
13562         * tests/test-idpriv-drop.sh: New file.
13563         * tests/test-idpriv-drop.su.sh: New file.
13564         * tests/test-idpriv-drop.c: New file.
13565
13566         New module 'idpriv-drop'.
13567         * lib/idpriv.h: New file.
13568         * lib-idpriv-drop.c: New file.
13569         * m4/idpriv.m4: New file.
13570         * modules/idpriv-drop: New file.
13571
13572 2009-06-08  Bruno Haible  <bruno@clisp.org>
13573
13574         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13575         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13576         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13577         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13578         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13579         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13580         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13581
13582 2009-06-08  Eric Blake  <ebb9@byu.net>
13583
13584         test-strstr: use memory fence, when possible
13585         * tests/test-strstr.c (main): Use memory fence, in order to be
13586         more likely to trigger Debian bug 521737.
13587         * modules/strstr-tests (Files): Pull in additional files.
13588
13589         memchr: no longer obsolete, for wider field testing
13590         * modules/memchr (Status, Notice): Delete, this module is no
13591         longer obsolete.
13592         * modules/vasnprintf (Depends-on): Add memchr.
13593
13594 2009-06-07  Jim Meyering  <meyering@redhat.com>
13595
13596         hash: declare some functions with the warn_unused_result attribute
13597         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13598
13599 2009-06-07  Bruno Haible  <bruno@clisp.org>
13600
13601         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13602         Reported by Eric Blake.
13603
13604 2009-06-06  Eric Blake  <ebb9@byu.net>
13605
13606         test-alignof: fix typo with long double
13607         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13608         compiler error.
13609
13610 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13611
13612         Escape non-texinfo { and }s.
13613         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13614         markup error.
13615
13616 2009-06-04  Jim Meyering  <meyering@redhat.com>
13617
13618         gitlog-to-changelog: don't infloop on an empty commit log
13619         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13620         Reported by Boris Petersen <transacid@centerim.org>.
13621
13622 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13623
13624         version-etc: extend for packagers
13625         Add three new configure options, intended for packagers:
13626           --with-packager="packager name"
13627           --with-packager-version="packager-specific version"
13628           --with-packager-bug-reports="packager bug reporting"
13629         An example with coreutils:
13630           $ ./configure \
13631             --with-packager=Gentoo \
13632             --with-packager-bug-report=http://bugs.gentoo.org/ \
13633             --with-packager-version="patchset 1.6"
13634           $ ./src/ls --version | head -n2
13635           ls (GNU coreutils) 7.1-dirty
13636           Packaged by Gentoo (patchset 1.6)
13637         Note that the bug reporting info via --help doesn't show up because
13638         coreutils uses its own custom emit_bug_reporting_address() implementation
13639         in src/system.h.  If it didn't, it'd look like:
13640           $ ./src/ls --help | tail -n4
13641           Report bugs to <bug-coreutils@gnu.org>.
13642           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13643           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13644           General help using GNU software: <http://www.gnu.org/gethelp/>.
13645         * lib/version-etc.c: Print new information, if provided.
13646         * m4/version-etc.m4: New file.
13647         * modules/version-etc (Files): Add m4/version-etc.m4.
13648         (configure.ac): Add gl_VERSION_ETC.
13649
13650 2009-05-31  Bruno Haible  <bruno@clisp.org>
13651
13652         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13653         and 'int64_t'.
13654         * modules/alignof-tests (Dependencies): Add stdint.
13655         Reported by Eric Blake.
13656
13657 2009-05-31  Bruno Haible  <bruno@clisp.org>
13658
13659         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13660         restriction due to compiler bugs.
13661         Reported by Eric Blake.
13662
13663 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13664             Bruno Haible  <bruno@clisp.org>
13665
13666         Fix test-alignof failure.
13667         * lib/alignof.h (alignof_slot): New macro.
13668         (alignof_type): New macro, with the same semantics as the previous
13669         'alignof'.
13670         (alignof): Alias to alignof_slot.
13671         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13672         check that the results are usable as constant expressions.
13673
13674 2009-05-31  Bruno Haible  <bruno@clisp.org>
13675
13676         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13677         * tests/test-memchr.c (main): Check that memchr does not read past the
13678         first occurrence of the byte.
13679         * tests/test-strstr.c (main): Update comment.
13680         Suggested by Eric Blake.
13681
13682 2009-05-30  Bruno Haible  <bruno@clisp.org>
13683
13684         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13685         detail how to use dumpbin.
13686         Reported by David Byron <dbyron@dbyron.com>.
13687
13688 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13689
13690         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13691
13692 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13693
13694         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13695
13696 2009-05-28  Bruno Haible  <bruno@clisp.org>
13697
13698         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13699         build-aux/ files.
13700
13701 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13702
13703         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13704
13705 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13706
13707         * gnulib-tool (sed_transform_main_lib_file)
13708         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13709         regexps.
13710
13711 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13712
13713         * tests/test-strstr.c: Add another self-test.
13714         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13715         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13716
13717 2009-05-23  Bruno Haible  <bruno@clisp.org>
13718
13719         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13720         change.
13721
13722 2009-05-21  Bruno Haible  <bruno@clisp.org>
13723
13724         Simplify use of mode_t varargs.
13725         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13726         uses 'mode_t' or 'int'.
13727         * lib/openat.c (openat): Likewise.
13728         * lib/open-safer.c (open_safer): Likewise.
13729         * m4/mode_t.m4: New file.
13730         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13731         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13732         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13733         * modules/open (Files): Add m4/mode_t.m4.
13734         * modules/openat (Files): Likewise.
13735         * modules/fcntl-safer (Files): Likewise.
13736         Suggested by Eric Blake.
13737
13738 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13739
13740         * doc/glibc-functions/fallocate.texi: New file.
13741         * doc/gnulib.texi: Include it.
13742
13743 2009-05-21  Eric Blake  <ebb9@byu.net>
13744             Bruno Haible  <bruno@clisp.org>
13745
13746         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13747         invocations.
13748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13749
13750 2009-05-21  Eric Blake  <ebb9@byu.net>
13751             Bruno Haible  <bruno@clisp.org>
13752
13753         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13754         include_next. Fix of 2008-11-20 commit.
13755         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13756         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13757         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13758         NEXT_MATH_H.
13759         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13760         instead of NEXT_MATH_H.
13761
13762 2009-05-21  Bruno Haible  <bruno@clisp.org>
13763
13764         Avoid redefinition warnings for SIZE_MAX.
13765         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13766         Reported by Simon Josefsson.
13767
13768 2009-05-21  Bruno Haible  <bruno@clisp.org>
13769
13770         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13771         AC_CACHE_VAL.
13772
13773 2009-05-20  Bruno Haible  <bruno@clisp.org>
13774
13775         Make zeroptr.h work on mingw.
13776         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13777         mprotect.
13778         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13779         * modules/memchr2-tests (configure.ac): Likewise.
13780         * modules/memcmp-tests (configure.ac): Likewise.
13781         * modules/memmem-tests (configure.ac): Likewise.
13782         * modules/memrchr-tests (configure.ac): Likewise.
13783         Reported by Simon Josefsson.
13784
13785 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13786
13787         * tests/test-glob.c: Include string.h for strcmp prototype.
13788
13789 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13790
13791         * modules/getdelim (Depends-on): Add explicit stdint, although it
13792         was implicitly already pulled in via realloc-posix.
13793         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13794
13795 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13796
13797         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13798         G. Christensen" <tgc@jupiterrise.com>.
13799         * m4/sys_socket_h.m4: Check for sa_family_t.
13800         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13801         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13802         * tests/test-sys_socket.c: Check that sa_family_t works.
13803
13804 2009-05-18  Eric Blake  <ebb9@byu.net>
13805
13806         maint.mk: allow gnulib_dir in VPATH build
13807         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13808
13809 2009-05-15  Jim Meyering  <meyering@redhat.com>
13810
13811         maint.mk: Give gnulib_dir a default definition.
13812         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13813         Thus, most packages no longer need to specify this variable in cfg.mk
13814
13815 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13816
13817         rename.m4: fix typos that would make non-mingw cross-configure fail
13818         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13819
13820 2009-05-13  Eric Blake  <ebb9@byu.net>
13821
13822         mmap-anon: avoid out-of-order autoconf expansion
13823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13824         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13825         * modules/memchr-tests (Depends-on): Add extensions.
13826         * modules/memchr2-tests (Depends-on): Add extensions.
13827         * modules/memcmp-tests (Depends-on): Add extensions.
13828         * modules/memmem-tests (Depends-on): Add extensions.
13829         * modules/memrchr-tests (Depends-on): Add extensions.
13830
13831 2009-05-13  Bruno Haible  <bruno@clisp.org>
13832
13833         Make some tests ISO C 99 compliant.
13834         * tests/zerosize-ptr.h: New file.
13835         * tests/test-memchr.c: Include zerosize-ptr.h.
13836         (main): Use a zero-size object pointer instead of NULL.
13837         * tests/test-memchr2.c: Include zerosize-ptr.h.
13838         (main): Use a zero-size object pointer instead of NULL.
13839         * tests/test-memcmp.c: Include zerosize-ptr.h.
13840         (main): Use a zero-size object pointer instead of NULL.
13841         * tests/test-memmem.c: Include zerosize-ptr.h.
13842         (main): Use a zero-size object pointer instead of NULL.
13843         * tests/test-memrchr.c: Include zerosize-ptr.h.
13844         (main): Use a zero-size object pointer instead of NULL.
13845         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13846         m4/mmap-anon.m4.
13847         (Depends-on): Add getpagesize.
13848         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13849         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13850         m4/mmap-anon.m4.
13851         (Depends-on): Add getpagesize.
13852         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13853         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13854         m4/mmap-anon.m4.
13855         (Depends-on): Add getpagesize.
13856         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13857         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13858         m4/mmap-anon.m4.
13859         (Depends-on): Add getpagesize.
13860         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13861         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13862         m4/mmap-anon.m4.
13863         (Depends-on): Add getpagesize.
13864         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13865
13866 2009-05-12  Bruno Haible  <bruno@clisp.org>
13867
13868         Tests for module 'alignof'.
13869         * modules/alignof-tests: New file.
13870         * tests/test-alignof.c: New file.
13871
13872 2009-05-12  Bruno Haible  <bruno@clisp.org>
13873
13874         Fix alignof macro.
13875         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13876         vendor compilers that are always correct.
13877
13878 2009-05-12  Bruno Haible  <bruno@clisp.org>
13879
13880         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13881         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13882         not whether its fully works.
13883
13884 2009-05-12  Bruno Haible  <bruno@clisp.org>
13885
13886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13887
13888 2009-05-12  Jim Meyering  <meyering@redhat.com>
13889
13890         * top/maint.mk: Adjust backslash alignment.
13891
13892 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13893
13894         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13895
13896 2009-05-11  Eric Blake  <ebb9@byu.net>
13897
13898         argp: avoid undefined behavior
13899         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13900         macros.
13901
13902 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13903
13904         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13905         user.name to prevent git commit from complaining.
13906
13907 2009-05-10  Bruno Haible  <bruno@clisp.org>
13908
13909         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13910         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13911         it rewrites every file name only once.
13912         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13913
13914 2009-05-08  Bruno Haible  <bruno@clisp.org>
13915
13916         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13917         instead of 'max'.
13918
13919 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13920
13921         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13922         sockaddr_storage test.
13923
13924 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13925
13926         * modules/sys_socket (Makefile.am): Substitute
13927         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13928         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13929         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13930         * tests/test-sys_socket.c: Check sockaddr_storage.
13931
13932 2009-05-08  Bruno Haible  <bruno@clisp.org>
13933
13934         New module 'alignof'.
13935         * lib/alignof.h: New file.
13936         * modules/alignof: New file.
13937
13938 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13939             Bruno Haible  <bruno@clisp.org>
13940
13941         Fix test-file-has-acl on FreeBSD.
13942         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13943         mask is implicitly added.
13944         * tests/test-file-has-acl.c: Include <signal.h>.
13945         (main): Terminate the test after 5 seconds.
13946         * modules/acl-tests (configure.ac): Check for alarm function.
13947
13948 2009-05-04  Bruno Haible  <bruno@clisp.org>
13949
13950         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13952         * modules/errno (configure.ac): Drop AC_REQUIRE.
13953         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13954         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13955
13956 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13957
13958         * modules/glob-tests: New module.
13959         * tests/test-glob.c: Add.
13960
13961 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13962
13963         * modules/fnmatch-tests: New module.
13964         * tests/test-fnmatch.c: Add.
13965
13966 2009-05-04  Eric Blake  <ebb9@byu.net>
13967
13968         maint: make the new no-submodule-changes rule VPATH-safe
13969         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13970
13971 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13972             Bruno Haible  <bruno@clisp.org>
13973
13974         acl: Fix infinite loop on FreeBSD.
13975         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13976         of return value from acl_get_entry.
13977         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13978         Likewise.
13979
13980 2009-05-03  Bruno Haible  <bruno@clisp.org>
13981
13982         * lib/acl-internal.h (acl_entries): Clarify return value.
13983         * lib/acl_entries.c (acl_entries): Likewise.
13984
13985 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13986
13987         Bug fix in acl module.
13988         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13989
13990 2009-05-03  Bruno Haible  <bruno@clisp.org>
13991
13992         Create gperf-generated file in the source dir, not in the build dir.
13993         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13994         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13995         * modules/unicase/locale-language (unicase/locale-languages.h):
13996         Likewise.
13997         * modules/unicase/special-casing (unicase/special-casing-table.h):
13998         Likewise.
13999         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14000         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14001         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14002         Reported by Ralf Wildenhues.
14003
14004 2009-05-03  Bruno Haible  <bruno@clisp.org>
14005
14006         * modules/fnmatch (Description, configure.ac): Taken from
14007         fnmatch-posix.
14008         * modules/fnmatch-posix: Turn into a symbolic reference to the
14009         'fnmatch' module, and deprecate.
14010         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14011
14012 2009-05-03  Bruno Haible  <bruno@clisp.org>
14013
14014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14015         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14016         Reported by Ralf Wildenhues.
14017
14018 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14019
14020         * m4/fnmatch.m4: Fix fnmatch re-define.
14021
14022 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14023
14024         priv-set: new module and tests; adapt write-any-file
14025         * lib/priv-set.c: New file.
14026         * lib/priv-set.h: New file.
14027         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14028         * lib/write-any-file.c: Simplify by using priv-set module.
14029         * m4/priv-set.m4: New file.
14030         * modules/priv-set: New file.
14031         * modules/unlinkdir: Add dependency on priv-set module.
14032         * modules/write-any-file: Likewise.
14033
14034         Tests for module 'priv-set'.
14035         * modules/priv-set-tests: New file.
14036         * tests/test-priv-set.c: New file.
14037
14038 2009-05-03  Jim Meyering  <meyering@redhat.com>
14039             Bruno Haible  <bruno@clisp.org>
14040
14041         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14042         use the converted UTF-8 variant of the name instead.
14043
14044 2009-05-03  Jim Meyering  <meyering@redhat.com>
14045
14046         tests: tighten some getdate tests
14047         * tests/test-getdate.c (main): Tighten tests: require equality,
14048         not just greater than.  Set TZ envvar to UTC0.
14049
14050 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14051
14052         getdate: correctly interpret "next monday" when run on a Monday
14053         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14054         that e.g., "next tues" (when run on a tuesday) results in a date
14055         that is one week in the future, and not today's date.
14056         I.e., add a week when the wday is the same as the current one.
14057         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14058         and earlier by Martin Bernreuther and Jan Minář.
14059         * tests/test-getdate.c (main): Check that "next DAY" is always in
14060         the future and that "last DAY" is always in the past.
14061
14062 2009-05-02  Jim Meyering  <meyering@redhat.com>
14063
14064         build: ensure that a release build fails when a submodule is unclean
14065         * top/maint.mk (no-submodule-changes): New rule.
14066         (alpha beta major): Depend on it.
14067
14068 2009-05-02  Bruno Haible  <bruno@clisp.org>
14069
14070         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14071         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14072         shell variable gl_fnmatch_required to detect which variant is
14073         requested.
14074         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14075         gl_FUNC_FNMATCH_POSIX.
14076         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14077         exclude fnmatch-posix.
14078
14079 2009-05-02  Bruno Haible  <bruno@clisp.org>
14080
14081         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14082         * modules/mbsrtowcs (License): Change to LGPLv2+.
14083         * modules/strnlen1 (License): Likewise.
14084         Reported by Simon Josefsson.
14085
14086 2009-05-02  Bruno Haible  <bruno@clisp.org>
14087
14088         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14089         "cross".
14090         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14091         gnulib-tool was called with option --source-base=lib.
14092
14093 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14094
14095         Use automake *-local hooks without commands, for extensibility.
14096         * modules/localcharset (Makefile.am): Rename install-exec-local
14097         rule to install-exec-localcharset, and make it a prerequisite of
14098         install-exec-local.  Likewise, rename the uninstall-local rule to
14099         uninstall-localcharset, and make it a prerequisite of the former.
14100
14101 2009-05-01  Bruno Haible  <bruno@clisp.org>
14102
14103         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14104         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14105         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14107         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14108         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14109         m4/locale-zh.m4, m4/codeset.m4.
14110
14111         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14112         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14113         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14114         m4/locale-zh.m4.
14115
14116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14117         REPLACE_WCRTOMB if mbstate_t must be replaced.
14118         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14119         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14120
14121 2009-05-01  Bruno Haible  <bruno@clisp.org>
14122
14123         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14124         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14125         dngettext, dcngettext, textdomain, bindtextdomain,
14126         bind_textdomain_codeset): Undefine before redefining.
14127
14128 2009-04-30  Bruno Haible  <bruno@clisp.org>
14129
14130         Fix bug introduced on 2009-04-25.
14131         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14132         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14133         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14134         is defined.
14135         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14136         is defined.
14137         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14138         is defined.
14139         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14140
14141 2009-04-28  Bruno Haible  <bruno@clisp.org>
14142
14143         Comment tweaks.
14144         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14145         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14146         * lib/unicase.h (u*_casexfrm): Likewise.
14147         Reported by Paolo Bonzini.
14148
14149 2009-04-28  Bruno Haible  <bruno@clisp.org>
14150
14151         Fix a compilation error.
14152         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14153         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14154         Reported by Jim Meyering.
14155
14156 2009-04-27  Bruno Haible  <bruno@clisp.org>
14157
14158         New module 'libunistring'.
14159         * modules/libunistring: New file.
14160         * m4/libunistring.m4: New file.
14161         * MODULES.html.sh (Unicode string functions): Add it.
14162
14163 2009-04-27  Eric Blake  <ebb9@byu.net>
14164
14165         maint.mk: allow package-specific header to provide <config.h>
14166         * top/maint.mk (sc_require_config_h): New variable.
14167         (sc_require_config_h, sc_require_config_h_first): Use it.
14168
14169 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14170
14171         * top/maint.mk (sc_avoid_if_before_free): Except
14172         useless-if-before-free script.
14173
14174 2009-04-27  Eric Blake  <ebb9@byu.net>
14175
14176         maintainer-makefile: depend on all required helper scripts
14177         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14178         useless-if-before-free.
14179         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14180         version, rather than assuming gnulib checkout is available.
14181         Reported by Simen Josefsson.
14182
14183 2009-04-26  Bruno Haible  <bruno@clisp.org>
14184
14185         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14186         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14187         "../" or "..".
14188
14189 2009-04-26  Bruno Haible  <bruno@clisp.org>
14190
14191         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14192         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14193         AC_LIB_HAVE_LINKFLAGS.
14194
14195 2009-04-26  Bruno Haible  <bruno@clisp.org>
14196
14197         Simplify calling convention of u*_conv_from_encoding.
14198         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14199         u32_conv_from_encoding): Expect a resultbuf argument and return the
14200         result directly as a pointer.
14201         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14202         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14203         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14204         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14205         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14206         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14207         Update.
14208         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14209         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14210         * lib/vasnprintf.c (VASNPRINTF): Update.
14211         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14212         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14213         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14214         * NEWS: Mention the change.
14215
14216 2009-04-26  Bruno Haible  <bruno@clisp.org>
14217
14218         Simplify calling convention of u*_conv_to_encoding.
14219         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14220         u32_conv_to_encoding): Expect a resultbuf argument and return the
14221         result directly as a pointer.
14222         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14223         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14224         freeing scaled_offsets if mem_iconveha failed.
14225         * lib/unicase/u-casexfrm.h (FUNC): Update.
14226         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14227         * lib/vasnprintf.c (VASNPRINTF): Update.
14228         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14229         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14230         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14231         * NEWS: Mention the change.
14232
14233 2009-04-26  Bruno Haible  <bruno@clisp.org>
14234
14235         Avoid test failures on AIX and OSF/1.
14236         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14237         malloc(0).
14238         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14239         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14240         Likewise.
14241         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14242         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14243         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14244         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14245         * doc/posix-functions/malloc.texi: Document the portability problem
14246         related to malloc(0).
14247
14248 2009-04-26  Bruno Haible  <bruno@clisp.org>
14249
14250         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14251         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14252         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14253
14254 2009-04-25  Bruno Haible  <bruno@clisp.org>
14255
14256         Avoid link error when creating a namespace clean library.
14257         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14258         as macro with arguments if already defined as an alias.
14259         * lib/signbitf.c (gl_signbitf): Don't undefine.
14260         * lib/signbitd.c (gl_signbitd): Don't undefine.
14261         * lib/signbitl.c (gl_signbitl): Don't undefine.
14262
14263 2009-04-25  Jim Meyering  <meyering@redhat.com>
14264
14265         vc-list-files: fix another quoting bug
14266         * build-aux/vc-list-files: Avoid sed backslash expansion
14267         of pathological directory names.
14268
14269 2009-04-25  Eric Blake  <ebb9@byu.net>
14270
14271         vc-list-files: fix shell quoting error
14272         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14273         timestamp.
14274
14275 2009-04-25  Jim Meyering  <meyering@redhat.com>
14276
14277         vc-list-files: restore lost functionality with subdir argument
14278         * build-aux/vc-list-files: When given a non-"." sub-directory
14279         argument, substitute the $dir/ prefix back onto each resulting name.
14280         Otherwise, coreutils' root_tests check would fail.
14281
14282 2009-04-24  Eric Blake  <ebb9@byu.net>
14283
14284         vc-list-files: ignore git symlinks
14285         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14286         than ls-files, to ignore git symlinks.
14287
14288         maint.mk: import improvements from m4
14289         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14290         (move_if_change): Delete unused macro.
14291         (news-date-check, vc-diff-check): Support VPATH builds.
14292         (announcement): Likewise.  Split --bootstrap-tools list...
14293         (boostrap-tools): ...into separate list, which can be overridden
14294         in cfg.mk.
14295         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14296         requiring dependency on useless-if-before-free module.
14297         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14298         Support VPATH builds.
14299
14300 2009-04-24  Jim Meyering  <meyering@redhat.com>
14301
14302         maint.mk: remove coreutils-specific rules and variables
14303         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14304         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14305         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14306
14307         maint.mk: remove obsolete rule
14308         * top/maint.mk (rel-check): Remove rule.
14309         (WGET, WGETFLAGS): Remove now-unused variables.
14310
14311 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14312
14313         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14314         consistency.
14315
14316         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14317         '$(PATH_SEPARATOR)' instead of ':'.
14318
14319 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14320
14321         * lib/getopt1.c (main): Use 'const' for static array.
14322
14323 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14324
14325         * top/maint.mk: Sync with coreutils.
14326         * NEWS: Explain incompatibilities.
14327
14328 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14329             Bruno Haible  <bruno@clisp.org>
14330
14331         Fix cross-compilation results.
14332         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14333         statement, as third argument of AC_TRY_RUN.
14334         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14335         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14336         Likewise.
14337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14338         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14339         Likewise.
14340         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14341         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14342         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14343
14344 2009-04-20  Bruno Haible  <bruno@clisp.org>
14345
14346         Avoid test failure on mingw.
14347         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14348
14349 2009-04-20  Bruno Haible  <bruno@clisp.org>
14350
14351         Avoid compilation error on mingw.
14352         * modules/localename-tests (Depends-on): Add locale.
14353
14354 2009-04-19  Bruno Haible  <bruno@clisp.org>
14355
14356         Support for building a shared library on Windows platforms.
14357         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14358         (main): Test the presence of UNINORM_NFC here.
14359         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14360         (main): Test the presence of UNINORM_NFD here.
14361         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14362         (main): Test the presence of UNINORM_NFKC here.
14363         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14364         (main): Test the presence of UNINORM_NFKD here.
14365
14366 2009-04-19  Bruno Haible  <bruno@clisp.org>
14367
14368         Avoid a compiler warning.
14369         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14370         Change type of variable 'sequence'.
14371
14372 2009-04-19  Bruno Haible  <bruno@clisp.org>
14373
14374         * modules/configmake (Makefile.am): When the contents of configmake.h
14375         does not change, arrange to preserve its modification time.
14376
14377 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14378
14379         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14380         gettext domain.
14381
14382 2009-04-16  Jim Meyering  <meyering@redhat.com>
14383
14384         useless-if-before-free: improve conversion code
14385         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14386         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14387
14388 2009-04-14  Bruno Haible  <bruno@clisp.org>
14389
14390         * modules/fcntl (Depends-on): Add extensions.
14391         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14392
14393 2009-04-12  Ben Pfaff  <blp@gnu.org>
14394
14395         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14396         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14397
14398 2009-03-20  Ben Pfaff  <blp@gnu.org>
14399
14400         Make rename replace existing destinations on Windows.
14401         * m4/rename.m4: Add test for Mingw.
14402         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14403         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14404         * doc/posix-functions/rename.texi: Document.
14405
14406 2009-04-10  Bruno Haible  <bruno@clisp.org>
14407
14408         New include file "iconveh.h".
14409         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14410         * lib/striconveh.h: Include it.
14411         (enum iconv_ilseq_handler): Remove definition.
14412         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14413         striconveh.h.
14414         * lib/striconveha.c: Include striconveh.h.
14415         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14416         * modules/striconveh (Files): Add lib/iconveh.h.
14417         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14418         lib/striconveh.h.
14419
14420 2009-04-10  Bruno Haible  <bruno@clisp.org>
14421
14422         * lib/uniconv.h: Update comment.
14423
14424 2009-04-10  Bruno Haible  <bruno@clisp.org>
14425
14426         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14427         always.
14428         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14429         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14430         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14431         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14432         "unistring-notinline.h", so that the function gets defined always.
14433         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14434         * lib/unistr/u8-uctomb.c: Likewise.
14435         * lib/unistr/u16-mbtouc.c: Likewise.
14436         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14437         * lib/unistr/u16-uctomb.c: Likewise.
14438         * lib/unistr/u32-mbtouc.c: Likewise.
14439         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14440         * lib/unistr/u32-uctomb.c: Likewise.
14441
14442 2009-04-10  Bruno Haible  <bruno@clisp.org>
14443
14444         Mark 'utime' obsolete.
14445         * modules/utime (Status, Notice): New sections.
14446         Suggested by Jim Meyering.
14447
14448         Fix cross-compile guess for utime test.
14449         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14450         autoconf.
14451         * doc/posix-functions/utime.texi: Give more precisions.
14452         Reported by Jan <ipif@ymail.com>.
14453
14454 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14455
14456         filevercmp: correct today's change
14457         * lib/filevercmp.c: Also handle coreutils' test inputs.
14458         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14459
14460         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14461         for reporting it.
14462         * lib/filevercmp.c: Special handle for "", "." and "..".
14463         * tests/test-filevercmp.c: Enlarge the set suite.
14464
14465 2009-04-07  Jim Meyering  <meyering@redhat.com>
14466
14467         useless-if-before-free: show how to remove braced useless free, too
14468         * build-aux/useless-if-before-free: still only in a comment, though.
14469
14470 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14471
14472         maint.mk: import changes to syntax-check macros from coreutils
14473         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14474         Use them in the relevant macros.
14475
14476 2009-04-06  Bruno Haible  <bruno@clisp.org>
14477
14478         Fix unportable use of bit-fields.
14479         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14480         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14481         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14482
14483 2009-04-06  Bruno Haible  <bruno@clisp.org>
14484
14485         Avoid test failures on AIX and OSF/1.
14486         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14487         that malloc(0) = NULL.
14488         * tests/unicase/test-u8-tolower.c (check): Likewise.
14489         * tests/unicase/test-u8-totitle.c (check): Likewise.
14490         * tests/unicase/test-u8-toupper.c (check): Likewise.
14491         * tests/unicase/test-u16-casefold.c (check): Likewise.
14492         * tests/unicase/test-u16-tolower.c (check): Likewise.
14493         * tests/unicase/test-u16-totitle.c (check): Likewise.
14494         * tests/unicase/test-u16-toupper.c (check): Likewise.
14495         * tests/unicase/test-u32-casefold.c (check): Likewise.
14496         * tests/unicase/test-u32-tolower.c (check): Likewise.
14497         * tests/unicase/test-u32-totitle.c (check): Likewise.
14498         * tests/unicase/test-u32-toupper.c (check): Likewise.
14499         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14500         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14501         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14502         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14503         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14504         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14505         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14506         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14507         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14508         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14509         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14510         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14511
14512 2009-04-05  Bruno Haible  <bruno@clisp.org>
14513
14514         Work around an autoconf limitation.
14515         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14516         comment line if it would be longer than 3 KB.
14517
14518 2009-04-05  Bruno Haible  <bruno@clisp.org>
14519
14520         Avoid test failure with libiconv-1.13.
14521         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14522         of the expected test results.
14523
14524 2009-04-05  Bruno Haible  <bruno@clisp.org>
14525
14526         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14527         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14528         that it should be installed.
14529
14530 2009-04-05  Bruno Haible  <bruno@clisp.org>
14531
14532         * gnulib-tool: New option --copy-file.
14533         (func_usage): Document it.
14534         (func_dest_tmpfilename): Moved out of func_import.
14535         (func_add_file, func_update_file): New functions, extracted from
14536         func_import.
14537         (func_import): Update.
14538
14539 2009-04-05  Karl Berry  <karl@gnu.org>
14540
14541         * README: prominently mention gnulib-tool.
14542         Rearrange sections so getting the code is near the top.
14543
14544 2009-04-05  Bruno Haible  <bruno@clisp.org>
14545
14546         * lib/unicase.h: Mention u*_cmp2.
14547         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14548         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14549         * lib/unicase/ulc-casecmp.c: Likewise.
14550         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14551         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14552         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14553         unistr/u8-cmp.
14554         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14555         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14556         unistr/u16-cmp.
14557         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14558         unistr/u32-cmp.
14559
14560         * lib/uninorm.h: Mention u*_cmp2.
14561         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14562         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14563         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14564         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14565         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14566         unistr/u8-cmp.
14567         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14568         unistr/u16-cmp.
14569         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14570         unistr/u32-cmp.
14571
14572         New module 'unistr/u32-cmp2'.
14573         * lib/unistr/u32-cmp2.c: New file.
14574         * modules/unistr/u32-cmp2: New file.
14575
14576         New module 'unistr/u16-cmp2'.
14577         * lib/unistr/u16-cmp2.c: New file.
14578         * modules/unistr/u16-cmp2: New file.
14579
14580         New module 'unistr/u8-cmp2'.
14581         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14582         * lib/unistr/u8-cmp2.c: New file.
14583         * lib/unistr/u-cmp2.h: New file.
14584         * modules/unistr/u8-cmp2: New file.
14585
14586 2009-04-05  Bruno Haible  <bruno@clisp.org>
14587
14588         * lib/unictype.h (uc_property_is_valid): New macro.
14589         * tests/unictype/test-pr_byname.c (main): Use it.
14590
14591         * lib/unistr.h: Doc fixes.
14592         * lib/uniconv.h: Doc fixes.
14593         * lib/unictype.h: Doc fixes.
14594
14595 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14596
14597         Port coreutils 7.2 to Solaris 8.
14598
14599         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14600         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14601         for Solaris 8.  This is a bit of a hack, as it means it's the
14602         caller's responsibility to add -lnsl if needed, but most likely it
14603         won't be needed since only getaddrinfo uses this and getaddrinfo
14604         isn't needed on Solaris 8.
14605
14606         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14607         problem to Solaris 8 encountered with coreutils 7.2, which
14608         resulted in a message "fnmatch.c:292: warning: passing argument 4
14609         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14610         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14611
14612 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14613
14614         * m4/ld-version-script.m4: Add FIXME comment.
14615
14616 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14617
14618         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14619         SOVERSION variable.
14620
14621 2009-04-02  Bruno Haible  <bruno@clisp.org>
14622
14623         * Makefile (info, html, dvi, pdf): Combine the rules.
14624         Suggested by Jim Meyering.
14625
14626 2009-04-01  Bruno Haible  <bruno@clisp.org>
14627
14628         * Makefile (info, html, dvi, pdf): New targets.
14629         Reported by Reuben Thomas <rrt@sc3d.org>.
14630
14631 2009-04-01  Bruno Haible  <bruno@clisp.org>
14632
14633         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14634         can be put into PATH.
14635         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14636
14637 2009-04-01  Bruno Haible  <bruno@clisp.org>
14638
14639         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14640
14641 2009-04-01  Bruno Haible  <bruno@clisp.org>
14642
14643         Rename module 'visibility'.
14644         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14645         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14646         * doc/gnulib.texi: Update.
14647         * MODULES.html.sh (Misc): Update.
14648         * NEWS: Mention the change.
14649
14650 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14651
14652         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14653         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14654         Eric Blake <ebb9@byu.net> for review.
14655         * MODULES.html.sh: Add lib-msvc-compat.
14656         * doc/gnulib.texi: Link to new section.
14657         * m4/ld-output-def.m4: New file.
14658         * doc/ld-output-def.texi: New file.
14659
14660 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14661
14662         Rename ld-version-script to lib-symbol-versions.  Suggested by
14663         Bruno Haible <bruno@clisp.org>.
14664         * modules/ld-version-script: Renamed to lib-symbol-versions.
14665         * doc/ld-version-script.texi: Fix module name.
14666         * MODULES.html.sh: Add lib-symbol-versions.
14667
14668 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14669
14670         * modules/u64-tests: New file.
14671         * tests/test-u64.c: New file.
14672
14673 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14674
14675         * MODULES.html.sh: Mention u64.
14676         * modules/u64: New module.
14677         * modules/crypto/sha512: Depend on u64 module instead of providing
14678         u64.h.
14679
14680 2009-03-27  Eric Blake  <ebb9@byu.net>
14681
14682         test-strerror: make debugging EAI_SYSTEM easier
14683         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14684         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14685         failure was EAI_SYSTEM.
14686
14687 2009-03-25  Bruno Haible  <bruno@clisp.org>
14688
14689         Fix a problem with --enable-relocatable on Solaris 7.
14690         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14691         since 2008-02-24.
14692
14693 2009-03-25  Eric Blake  <ebb9@byu.net>
14694
14695         test-sockets: avoid gcc warning
14696         * tests/test-sockets.c (main): Silence compiler warning.
14697
14698 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14699
14700         New modules nproc, pthread, contributed by Glen Lenker.
14701
14702         * MODULES.html.sh: Add pthread, nproc.
14703         * lib/nproc.c: New file.
14704         * lib/nproc.h: New file.
14705         * lib/pthread.in.h: New file.
14706         * m4/pthread.m4: New file.
14707         * modules/nproc: New file.
14708         * modules/pthread: New file.
14709
14710 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14711
14712         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14713         New variable.
14714
14715 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14716
14717         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14718         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14719         * tests/test-filevercmp.c: Add tests for backup suffixes.
14720
14721 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14722
14723         * modules/stdlib (Depends-on): Add stdint, needed when defining
14724         struct random_data on, for example, HP-UX 10.20.  Reported by
14725         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14726
14727 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14728
14729         * lib/readline.c (readline): Call fflush on stdout after printing
14730         prompt.
14731
14732 2009-03-20  Bruno Haible  <bruno@clisp.org>
14733
14734         Remove dependency from 'close' module to -lws2_32 on native Windows.
14735         * lib/close-hook.h: New file.
14736         * lib/close-hook.c: New file.
14737         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14738         w32sock.h.
14739         (_gl_close_fd_maybe_socket): Remove function.
14740         (rpl_close): Invoke execute_all_close_hooks instead of
14741         _gl_close_fd_maybe_socket.
14742         * lib/sockets.c: Include close-hook.h, w32sock.h.
14743         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14744         (close_sockets_hook): New variable.
14745         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14746         (gl_sockets_cleanup): Unregister it.
14747         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14748         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14749         * modules/close-hook: New file.
14750         * modules/close (Files): Remove lib/w32sock.h.
14751         (Depends-on): Add close-hook.
14752         (Link): Remove section.
14753         * modules/sockets (Files): Add lib/w32sock.h.
14754         (Depends-on): Add close-hook.
14755         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14756         invocation.
14757         * NEWS: Mention that LIB_CLOSE is gone.
14758
14759 2009-03-23  Eric Blake  <ebb9@byu.net>
14760
14761         signal-tests: test previous patch
14762         * tests/test-signal.c: New file.
14763         * modules/signal-tests: Likewise.
14764
14765         signal.h: always support 'volatile sig_atomic_t'
14766         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14767         (gl_SIGNAL_H_DEFAULTS): Add a default.
14768         * modules/signal (Makefile.am): Substitute if needed.
14769         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14770         users can blindly add volatile.
14771         * doc/posix-headers/signal.texi (signal.h): Document it.
14772         Reported by Matthew Woehlke.
14773
14774 2009-03-23  Jim Meyering  <meyering@redhat.com>
14775
14776         pathmax: PATH_MAX: use pathconf only when available
14777         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14778         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14779         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14780         This avoids a link failure in a PSP cross-compilation environment
14781         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14782
14783         * lib/vasnprintf.c (divide): Fix typo in comment.
14784
14785 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14786
14787         * gnulib-tool (func_filter_filelist): Fix comment.
14788
14789 2009-03-20  Bruno Haible  <bruno@clisp.org>
14790
14791         Make sockets.h self-contained.
14792         * lib/sockets.c: Include sockets.h first.
14793         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14794
14795 2009-03-19  Eric Blake  <ebb9@byu.net>
14796
14797         doc: mention more functions added in cygwin 1.7.0
14798         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14799         addition.
14800         * doc/posix-functions/log2f.texi: Likewise.
14801
14802 2009-03-19  Jim Meyering  <meyering@redhat.com>
14803
14804         fsusage: avoid syntax error due to statement-before-declaration
14805         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14806         after all declarations.  Reported by Matthew Woehlke in
14807         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14808
14809 2009-03-18  Eric Blake  <ebb9@byu.net>
14810
14811         build-aux/compile: sync from automake
14812         * build-aux/compile: New file, from automake.
14813         * config/srclist.txt: Mention build-aux/compile.
14814
14815 2009-03-17  Bruno Haible  <bruno@clisp.org>
14816
14817         * lib/git-merge-changelog.c: Fix typo in comment.
14818         Reported by Reuben Thomas <rrt@sc3d.org>.
14819
14820 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14821
14822         * m4/regex.m4: update and improve help for
14823         --without-included-regex.
14824
14825 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14826
14827         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14828         failure on missing include files.
14829
14830 2009-03-17  Eric Blake  <ebb9@byu.net>
14831
14832         doc: mention more functions added in cygwin 1.7.0
14833         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14834         addition.
14835         * doc/posix-functions/fwscanf.texi: Likewise.
14836         * doc/posix-functions/swprintf.texi: Likewise.
14837         * doc/posix-functions/swscanf.texi: Likewise.
14838         * doc/posix-functions/vfwprintf.texi: Likewise.
14839         * doc/posix-functions/vfwscanf.texi: Likewise.
14840         * doc/posix-functions/vswprintf.texi: Likewise.
14841         * doc/posix-functions/vswscanf.texi: Likewise.
14842         * doc/posix-functions/vwprintf.texi: Likewise.
14843         * doc/posix-functions/vwscanf.texi: Likewise.
14844         * doc/posix-functions/wcscasecmp.texi: Likewise.
14845         * doc/posix-functions/wcsdup.texi: Likewise.
14846         * doc/posix-functions/wcsftime.texi: Likewise.
14847         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14848         * doc/posix-functions/wprintf.texi: Likewise.
14849         * doc/posix-functions/wscanf.texi: Likewise.
14850         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14851
14852 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14853
14854         maint.mk: really add $(AM_MAKEFLAGS)
14855         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14856         was inadvertently omitted in the last commit.
14857         Spotted by Bruno Haible.
14858
14859         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14860         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14861         $(AM_MAKEFLAGS)' rather than plain `make'.
14862
14863         gnulib-tool: execute $MAKE not make
14864         * gnulib-tool: Default $MAKE to 'make'.
14865         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14866         than make.  Initialize $MAKE in the do-autobuild script.
14867
14868         gnulib-tool: use $MAKE not make in generated files
14869         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14870         make, in generated files.  Initialize $MAKE in the do-autobuild
14871         script.
14872
14873         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14874
14875         GNUmakefile: disable parallelism only for multiple, recursive targets
14876         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14877         additions in the Makefile.
14878         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14879         by Automake.
14880         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14881         are listed on the command line and at least one of them is
14882         listed in $(ALL_RECURSIVE_TARGETS).
14883
14884 2009-03-14  Bruno Haible  <bruno@clisp.org>
14885
14886         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14887         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14888         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14889         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14890         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14891         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14892         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14893         unistr/u8-uctomb.
14894         * modules/unistr/u8-strchr (Depends-on): Likewise.
14895         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14896         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14897         unistr/u16-uctomb.
14898         * modules/unistr/u16-strchr (Depends-on): Likewise.
14899         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14900
14901 2009-03-12  Bruno Haible  <bruno@clisp.org>
14902
14903         Work around select() bug on Interix 3.5.
14904         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14905         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14906         * m4/select.m4: New file.
14907         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14908         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14909         * modules/select (Files): Add m4/select.m4.
14910         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14911         * modules/nanosleep (Depends-on): Add select.
14912         * modules/poll (Depends-on): Likewise.
14913         * doc/posix-functions/select.texi: Mention the Interix bug.
14914         Reported by Markus Duft <mduft@gentoo.org>.
14915
14916         * lib/select.c: Renamed from lib/winsock-select.c.
14917         * modules/select (Files): Add lib/select.c, remove
14918         lib/winsock-select.c.
14919         (configure.ac): Update.
14920
14921 2009-03-12  Jim Meyering  <meyering@redhat.com>
14922
14923         avoid gcc warnings about unused macro definitions
14924         * lib/readtokens.c (STREQ): Remove unused definition.
14925         * lib/xmalloc.c (SIZE_MAX): Likewise.
14926         * lib/openat-die.c (N_): Likewise.
14927         * lib/mountlist.c (SIZE_MAX): Remove definition.
14928         Instead, include <stdint.h>.
14929         * lib/readutmp.c: Likewise.
14930         * modules/readutmp (Depends-on): Add stdint.
14931         * modules/mountlist (Depends-on): Add stdint.
14932         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14933
14934 2009-03-10  Bruno Haible  <bruno@clisp.org>
14935
14936         Tests for module 'mbmemcasecoll'.
14937         * modules/mbmemcasecoll-tests: New file.
14938         * tests/test-mbmemcasecoll1.sh: New file.
14939         * tests/test-mbmemcasecoll2.sh: New file.
14940         * tests/test-mbmemcasecoll3.sh: New file.
14941         * tests/test-mbmemcasecoll.c: New file.
14942
14943         New module 'mbmemcasecoll'.
14944         * lib/mbmemcasecoll.h: New file.
14945         * lib/mbmemcasecoll.c: New file.
14946         * modules/mbmemcasecoll: New file.
14947
14948         * tests/test-mbmemcasecmp.h: New file, extracted from
14949         tests/test-mbmemcasecmp.c.
14950         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14951         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14952         (main): Update.
14953         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14954
14955 2009-03-09  Bruno Haible  <bruno@clisp.org>
14956
14957         Tests for module 'mbmemcasecmp'.
14958         * modules/mbmemcasecmp-tests: New file.
14959         * tests/test-mbmemcasecmp1.sh: New file.
14960         * tests/test-mbmemcasecmp2.sh: New file.
14961         * tests/test-mbmemcasecmp3.sh: New file.
14962         * tests/test-mbmemcasecmp.c: New file.
14963
14964         New module 'mbmemcasecmp'.
14965         * lib/mbmemcasecmp.h: New file.
14966         * lib/mbmemcasecmp.c: New file.
14967         * modules/mbmemcasecmp: New file.
14968
14969 2009-03-09  Bruno Haible  <bruno@clisp.org>
14970
14971         Tests for module 'unicase/ulc-casecoll'.
14972         * modules/unicase/ulc-casecoll-tests: New file.
14973         * tests/unicase/test-ulc-casecoll1.sh: New file.
14974         * tests/unicase/test-ulc-casecoll2.sh: New file.
14975         * tests/unicase/test-ulc-casecoll.c: New file.
14976
14977         New module 'unicase/ulc-casecoll'.
14978         * lib/unicase.h (ulc_casecoll): New declaration.
14979         * lib/unicase/ulc-casecoll.c: New file.
14980         * modules/unicase/ulc-casecoll: New file.
14981
14982         New module 'unicase/ulc-casexfrm'.
14983         * lib/unicase.h (ulc_casexfrm): New declaration.
14984         * lib/unicase/ulc-casexfrm.c: New file.
14985         * modules/unicase/ulc-casexfrm: New file.
14986
14987 2009-03-09  Bruno Haible  <bruno@clisp.org>
14988
14989         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14990         invocations.
14991
14992         * m4/mbscasecmp.m4: Remove file.
14993         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14994         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14995
14996         * m4/mbscasestr.m4: Remove file.
14997         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14998         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14999
15000         * m4/mbschr.m4: Remove file.
15001         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15002         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15003
15004         * m4/mbscspn.m4: Remove file.
15005         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15006         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15007
15008         * m4/mbslen.m4: Remove file.
15009         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15010         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15011
15012         * m4/mbsncasecmp.m4: Remove file.
15013         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15014         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15015
15016         * m4/mbsnlen.m4: Remove file.
15017         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15018         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15019
15020         * m4/mbspbrk.m4: Remove file.
15021         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15022         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15023
15024         * m4/mbspcasecmp.m4: Remove file.
15025         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15026         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15027
15028         * m4/mbsrchr.m4: Remove file.
15029         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15030         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15031
15032         * m4/mbssep.m4: Remove file.
15033         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15034         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15035
15036         * m4/mbsspn.m4: Remove file.
15037         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15038         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15039
15040         * m4/mbsstr.m4: Remove file.
15041         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15042         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15043
15044         * m4/mbstok_r.m4: Remove file.
15045         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15046         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15047
15048         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15049
15050         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15051         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15052
15053         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15054
15055 2009-03-08  Bruno Haible  <bruno@clisp.org>
15056
15057         Tests for module 'unicase/ulc-casecmp'.
15058         * modules/unicase/ulc-casecmp-tests: New file.
15059         * tests/unicase/test-ulc-casecmp1.sh: New file.
15060         * tests/unicase/test-ulc-casecmp2.sh: New file.
15061         * tests/unicase/test-ulc-casecmp.c: New file.
15062
15063         New module 'unicase/ulc-casecmp'.
15064         * lib/unicase.h (ulc_casecmp): New declaration.
15065         * lib/unicase/ulc-casecmp.c: New file.
15066         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15067         'const SRC_UNIT *'.
15068         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15069         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15070         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15071         * modules/unicase/ulc-casecmp: New file.
15072
15073         Tests for module 'unicase/u32-is-cased'.
15074         * modules/unicase/u32-is-cased-tests: New file.
15075         * tests/unicase/test-u32-is-cased.c: New file.
15076
15077         Tests for module 'unicase/u16-is-cased'.
15078         * modules/unicase/u16-is-cased-tests: New file.
15079         * tests/unicase/test-u16-is-cased.c: New file.
15080
15081         Tests for module 'unicase/u8-is-cased'.
15082         * modules/unicase/u8-is-cased-tests: New file.
15083         * tests/unicase/test-u8-is-cased.c: New file.
15084         * tests/unicase/test-is-cased.h: New file.
15085
15086         New module 'unicase/u32-is-cased'.
15087         * lib/unicase/u32-is-cased.c: New file.
15088         * modules/unicase/u32-is-cased: New file.
15089
15090         New module 'unicase/u16-is-cased'.
15091         * lib/unicase/u16-is-cased.c: New file.
15092         * modules/unicase/u16-is-cased: New file.
15093
15094         New module 'unicase/u8-is-cased'.
15095         * lib/unicase/u8-is-cased.c: New file.
15096         * lib/unicase/u-is-cased.h: New file.
15097         * modules/unicase/u8-is-cased: New file.
15098
15099         Tests for module 'unicase/u32-is-casefolded'.
15100         * modules/unicase/u32-is-casefolded-tests: New file.
15101         * tests/unicase/test-u32-is-casefolded.c: New file.
15102
15103         Tests for module 'unicase/u16-is-casefolded'.
15104         * modules/unicase/u16-is-casefolded-tests: New file.
15105         * tests/unicase/test-u16-is-casefolded.c: New file.
15106
15107         Tests for module 'unicase/u8-is-casefolded'.
15108         * modules/unicase/u8-is-casefolded-tests: New file.
15109         * tests/unicase/test-u8-is-casefolded.c: New file.
15110         * tests/unicase/test-is-casefolded.h: New file.
15111
15112         New module 'unicase/u32-is-casefolded'.
15113         * lib/unicase/u32-is-casefolded.c: New file.
15114         * modules/unicase/u32-is-casefolded: New file.
15115
15116         New module 'unicase/u16-is-casefolded'.
15117         * lib/unicase/u16-is-casefolded.c: New file.
15118         * modules/unicase/u16-is-casefolded: New file.
15119
15120         New module 'unicase/u8-is-casefolded'.
15121         * lib/unicase/u8-is-casefolded.c: New file.
15122         * modules/unicase/u8-is-casefolded: New file.
15123
15124         Tests for module 'unicase/u32-is-titlecase'.
15125         * modules/unicase/u32-is-titlecase-tests: New file.
15126         * tests/unicase/test-u32-is-titlecase.c: New file.
15127
15128         Tests for module 'unicase/u16-is-titlecase'.
15129         * modules/unicase/u16-is-titlecase-tests: New file.
15130         * tests/unicase/test-u16-is-titlecase.c: New file.
15131
15132         Tests for module 'unicase/u8-is-titlecase'.
15133         * modules/unicase/u8-is-titlecase-tests: New file.
15134         * tests/unicase/test-u8-is-titlecase.c: New file.
15135         * tests/unicase/test-is-titlecase.h: New file.
15136
15137         New module 'unicase/u32-is-titlecase'.
15138         * lib/unicase/u32-is-titlecase.c: New file.
15139         * modules/unicase/u32-is-titlecase: New file.
15140
15141         New module 'unicase/u16-is-titlecase'.
15142         * lib/unicase/u16-is-titlecase.c: New file.
15143         * modules/unicase/u16-is-titlecase: New file.
15144
15145         New module 'unicase/u8-is-titlecase'.
15146         * lib/unicase/u8-is-titlecase.c: New file.
15147         * modules/unicase/u8-is-titlecase: New file.
15148
15149         Tests for module 'unicase/u32-is-lowercase'.
15150         * modules/unicase/u32-is-lowercase-tests: New file.
15151         * tests/unicase/test-u32-is-lowercase.c: New file.
15152
15153         Tests for module 'unicase/u16-is-lowercase'.
15154         * modules/unicase/u16-is-lowercase-tests: New file.
15155         * tests/unicase/test-u16-is-lowercase.c: New file.
15156
15157         Tests for module 'unicase/u8-is-lowercase'.
15158         * modules/unicase/u8-is-lowercase-tests: New file.
15159         * tests/unicase/test-u8-is-lowercase.c: New file.
15160         * tests/unicase/test-is-lowercase.h: New file.
15161
15162         New module 'unicase/u32-is-lowercase'.
15163         * lib/unicase/u32-is-lowercase.c: New file.
15164         * modules/unicase/u32-is-lowercase: New file.
15165
15166         New module 'unicase/u16-is-lowercase'.
15167         * lib/unicase/u16-is-lowercase.c: New file.
15168         * modules/unicase/u16-is-lowercase: New file.
15169
15170         New module 'unicase/u8-is-lowercase'.
15171         * lib/unicase/u8-is-lowercase.c: New file.
15172         * modules/unicase/u8-is-lowercase: New file.
15173
15174         Tests for module 'unicase/u32-is-uppercase'.
15175         * modules/unicase/u32-is-uppercase-tests: New file.
15176         * tests/unicase/test-u32-is-uppercase.c: New file.
15177
15178         Tests for module 'unicase/u16-is-uppercase'.
15179         * modules/unicase/u16-is-uppercase-tests: New file.
15180         * tests/unicase/test-u16-is-uppercase.c: New file.
15181
15182         Tests for module 'unicase/u8-is-uppercase'.
15183         * modules/unicase/u8-is-uppercase-tests: New file.
15184         * tests/unicase/test-u8-is-uppercase.c: New file.
15185         * tests/unicase/test-is-uppercase.h: New file.
15186
15187         New module 'unicase/u32-is-uppercase'.
15188         * lib/unicase/u32-is-uppercase.c: New file.
15189         * modules/unicase/u32-is-uppercase: New file.
15190
15191         New module 'unicase/u16-is-uppercase'.
15192         * lib/unicase/u16-is-uppercase.c: New file.
15193         * modules/unicase/u16-is-uppercase: New file.
15194
15195         New module 'unicase/u8-is-uppercase'.
15196         * lib/unicase/u8-is-uppercase.c: New file.
15197         * modules/unicase/u8-is-uppercase: New file.
15198
15199         New module 'unicase/u32-is-invariant'.
15200         * lib/unicase/u32-is-invariant.c: New file.
15201         * modules/unicase/u32-is-invariant: New file.
15202
15203         New module 'unicase/u16-is-invariant'.
15204         * lib/unicase/u16-is-invariant.c: New file.
15205         * modules/unicase/u16-is-invariant: New file.
15206
15207         New module 'unicase/u8-is-invariant'.
15208         * lib/unicase/u8-is-invariant.c: New file.
15209         * lib/unicase/invariant.h: New file.
15210         * lib/unicase/u-is-invariant.h: New file.
15211         * modules/unicase/u8-is-invariant: New file.
15212
15213         Tests for module 'unicase/u32-casecoll'.
15214         * modules/unicase/u32-casecoll-tests: New file.
15215         * tests/unicase/test-u32-casecoll.c: New file.
15216
15217         Tests for module 'unicase/u16-casecoll'.
15218         * modules/unicase/u16-casecoll-tests: New file.
15219         * tests/unicase/test-u16-casecoll.c: New file.
15220
15221         Tests for module 'unicase/u8-casecoll'.
15222         * modules/unicase/u8-casecoll-tests: New file.
15223         * tests/unicase/test-u8-casecoll.c: New file.
15224
15225         New module 'unicase/u32-casecoll'.
15226         * lib/unicase/u32-casecoll.c: New file.
15227         * modules/unicase/u32-casecoll: New file.
15228
15229         New module 'unicase/u16-casecoll'.
15230         * lib/unicase/u16-casecoll.c: New file.
15231         * modules/unicase/u16-casecoll: New file.
15232
15233         New module 'unicase/u8-casecoll'.
15234         * lib/unicase/u8-casecoll.c: New file.
15235         * lib/unicase/u-casecoll.h: New file.
15236         * modules/unicase/u8-casecoll: New file.
15237
15238         New module 'unicase/u32-casexfrm'.
15239         * lib/unicase/u32-casexfrm.c: New file.
15240         * modules/unicase/u32-casexfrm: New file.
15241
15242         New module 'unicase/u16-casexfrm'.
15243         * lib/unicase/u16-casexfrm.c: New file.
15244         * modules/unicase/u16-casexfrm: New file.
15245
15246         New module 'unicase/u8-casexfrm'.
15247         * lib/unicase/u8-casexfrm.c: New file.
15248         * lib/unicase/u-casexfrm.h: New file.
15249         * modules/unicase/u8-casexfrm: New file.
15250
15251         Tests for module 'unicase/u32-casecmp'.
15252         * modules/unicase/u32-casecmp-tests: New file.
15253         * tests/unicase/test-u32-casecmp.c: New file.
15254
15255         Tests for module 'unicase/u16-casecmp'.
15256         * modules/unicase/u16-casecmp-tests: New file.
15257         * tests/unicase/test-u16-casecmp.c: New file.
15258
15259         Tests for module 'unicase/u8-casecmp'.
15260         * modules/unicase/u8-casecmp-tests: New file.
15261         * tests/unicase/test-u8-casecmp.c: New file.
15262         * tests/unicase/test-casecmp.h: New file.
15263
15264         New module 'unicase/u32-casecmp'.
15265         * lib/unicase/u32-casecmp.c: New file.
15266         * modules/unicase/u32-casecmp: New file.
15267
15268         New module 'unicase/u16-casecmp'.
15269         * lib/unicase/u16-casecmp.c: New file.
15270         * modules/unicase/u16-casecmp: New file.
15271
15272         New module 'unicase/u8-casecmp'.
15273         * lib/unicase/u8-casecmp.c: New file.
15274         * lib/unicase/u-casecmp.h: New file.
15275         * modules/unicase/u8-casecmp: New file.
15276
15277         Tests for module 'unicase/u32-casefold'.
15278         * modules/unicase/u32-casefold-tests: New file.
15279         * tests/unicase/test-u32-casefold.c: New file.
15280
15281         Tests for module 'unicase/u16-casefold'.
15282         * modules/unicase/u16-casefold-tests: New file.
15283         * tests/unicase/test-u16-casefold.c: New file.
15284
15285         Tests for module 'unicase/u8-casefold'.
15286         * modules/unicase/u8-casefold-tests: New file.
15287         * tests/unicase/test-u8-casefold.c: New file.
15288
15289         New module 'unicase/u32-casefold'.
15290         * lib/unicase/u32-casefold.c: New file.
15291         * modules/unicase/u32-casefold: New file.
15292
15293         New module 'unicase/u16-casefold'.
15294         * lib/unicase/u16-casefold.c: New file.
15295         * modules/unicase/u16-casefold: New file.
15296
15297         New module 'unicase/u8-casefold'.
15298         * lib/unicase/u8-casefold.c: New file.
15299         * lib/unicase/u-casefold.h: New file.
15300         * modules/unicase/u8-casefold: New file.
15301
15302         New module 'unicase/tocasefold'.
15303         * lib/unicase/casefold.h: New file.
15304         * lib/unicase/tocasefold.c: New file.
15305         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15306         * modules/unicase/tocasefold: New file.
15307
15308         Tests for module 'unicase/u32-totitle'.
15309         * modules/unicase/u32-totitle-tests: New file.
15310         * tests/unicase/test-u32-totitle.c: New file.
15311
15312         Tests for module 'unicase/u16-totitle'.
15313         * modules/unicase/u16-totitle-tests: New file.
15314         * tests/unicase/test-u16-totitle.c: New file.
15315
15316         Tests for module 'unicase/u8-totitle'.
15317         * modules/unicase/u8-totitle-tests: New file.
15318         * tests/unicase/test-u8-totitle.c: New file.
15319
15320         New module 'unicase/u32-totitle'.
15321         * lib/unicase/u32-totitle.c: New file.
15322         * modules/unicase/u32-totitle: New file.
15323
15324         New module 'unicase/u16-totitle'.
15325         * lib/unicase/u16-totitle.c: New file.
15326         * modules/unicase/u16-totitle: New file.
15327
15328         New module 'unicase/u8-totitle'.
15329         * lib/unicase/u8-totitle.c: New file.
15330         * lib/unicase/u-totitle.h: New file.
15331         * modules/unicase/u8-totitle: New file.
15332
15333         Tests for module 'unicase/u32-tolower'.
15334         * modules/unicase/u32-tolower-tests: New file.
15335         * tests/unicase/test-u32-tolower.c: New file.
15336
15337         Tests for module 'unicase/u16-tolower'.
15338         * modules/unicase/u16-tolower-tests: New file.
15339         * tests/unicase/test-u16-tolower.c: New file.
15340
15341         Tests for module 'unicase/u8-tolower'.
15342         * modules/unicase/u8-tolower-tests: New file.
15343         * tests/unicase/test-u8-tolower.c: New file.
15344
15345         New module 'unicase/u32-tolower'.
15346         * lib/unicase/u32-tolower.c: New file.
15347         * modules/unicase/u32-tolower: New file.
15348
15349         New module 'unicase/u16-tolower'.
15350         * lib/unicase/u16-tolower.c: New file.
15351         * modules/unicase/u16-tolower: New file.
15352
15353         New module 'unicase/u8-tolower'.
15354         * lib/unicase/u8-tolower.c: New file.
15355         * modules/unicase/u8-tolower: New file.
15356
15357         Tests for module 'unicase/u32-toupper'.
15358         * modules/unicase/u32-toupper-tests: New file.
15359         * tests/unicase/test-u32-toupper.c: New file.
15360
15361         Tests for module 'unicase/u16-toupper'.
15362         * modules/unicase/u16-toupper-tests: New file.
15363         * tests/unicase/test-u16-toupper.c: New file.
15364
15365         Tests for module 'unicase/u8-toupper'.
15366         * modules/unicase/u8-toupper-tests: New file.
15367         * tests/unicase/test-u8-toupper.c: New file.
15368
15369         New module 'unicase/u32-toupper'.
15370         * lib/unicase/u32-toupper.c: New file.
15371         * modules/unicase/u32-toupper: New file.
15372
15373         New module 'unicase/u16-toupper'.
15374         * lib/unicase/u16-toupper.c: New file.
15375         * modules/unicase/u16-toupper: New file.
15376
15377         New module 'unicase/u8-toupper'.
15378         * lib/unicase/u8-toupper.c: New file.
15379         * modules/unicase/u8-toupper: New file.
15380
15381         New module 'unicase/u32-casemap'.
15382         * lib/unicase/u32-casemap.c: New file.
15383         * modules/unicase/u32-casemap: New file.
15384
15385         New module 'unicase/u16-casemap'.
15386         * lib/unicase/u16-casemap.c: New file.
15387         * modules/unicase/u16-casemap: New file.
15388
15389         New module 'unicase/u8-casemap'.
15390         * lib/unicase/unicasemap.h: New file.
15391         * lib/unicase/u8-casemap.c: New file.
15392         * lib/unicase/u-casemap.h: New file.
15393         * modules/unicase/u8-casemap: New file.
15394
15395         New module 'unicase/special-casing'.
15396         * lib/unicase/special-casing.h: New file.
15397         * lib/unicase/special-casing.c: New file.
15398         * lib/unicase/special-casing-table.gperf: New file, generated by
15399         gen-uni-tables.c.
15400         * modules/unicase/special-casing: New file.
15401
15402         Tests for module 'unicase/locale-language'.
15403         * modules/unicase/locale-language-tests: New file.
15404         * tests/unicase/test-locale-language.sh: New file.
15405         * tests/unicase/test-locale-language.c: New file.
15406
15407         New module 'unicase/locale-language'.
15408         * lib/unicase/locale-language.c: New file.
15409         * lib/unicase/locale-languages.gperf: New file.
15410         * modules/unicase/locale-language: New file.
15411
15412         Generate more tables for case conversion and case folding.
15413         * lib/gen-uni-tables.c (SCC_*): New enum items.
15414         (struct special_casing_rule): New type.
15415         (casing_rules, num_casing_rules, allocated_casing_rules): New
15416         variables.
15417         (add_casing_rule, fill_casing_rules): New functions.
15418         (struct casefold_rule): New type.
15419         (casefolding_rules, num_casefolding_rules,
15420         allocated_casefolding_rules): New variables.
15421         (fill_casefolding_rules): New function.
15422         (unicode_casefold): New variable.
15423         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15424         sort_casing_rules, output_casing_rules): New functions.
15425         (main): Accept to more arguments: SpecialCasing.txt and
15426         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15427         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15428         Output mapping for casefolding.
15429
15430         * lib/unicase.h: Include stdbool.h, uninorm.h.
15431         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15432         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15433         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15434         arguments.
15435         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15436         resultp arguments.
15437         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15438         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15439         resultp arguments.
15440         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15441         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15442         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15443         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15444         declarations.
15445         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15446
15447 2009-03-08  Bruno Haible  <bruno@clisp.org>
15448
15449         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15450         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15451         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15452         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15453
15454 2009-03-07  Bruno Haible  <bruno@clisp.org>
15455
15456         Adjust u*_normcmp, u*_normcoll API.
15457         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15458         u16_normcoll, u32_normcoll): Change failure conventions.
15459         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15460         errno and return -1.
15461         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15462
15463 2009-03-07  Bruno Haible  <bruno@clisp.org>
15464
15465         Tests for module 'uninorm/u32-normcoll'.
15466         * modules/uninorm/u32-normcoll-tests: New file.
15467         * tests/uninorm/test-u32-normcoll.c: New file.
15468
15469         Tests for module 'uninorm/u16-normcoll'.
15470         * modules/uninorm/u16-normcoll-tests: New file.
15471         * tests/uninorm/test-u16-normcoll.c: New file.
15472
15473         Tests for module 'uninorm/u8-normcoll'.
15474         * modules/uninorm/u8-normcoll-tests: New file.
15475         * tests/uninorm/test-u8-normcoll.c: New file.
15476
15477 2009-03-07  Bruno Haible  <bruno@clisp.org>
15478
15479         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15480         tests/uninorm/test-u32-normcmp.c.
15481         * tests/uninorm/test-u32-normcmp.c: Include it.
15482         (test_nonascii): New function, extracted from main. Add some more
15483         tests.
15484         (main): Invoke test_ascii and test_nonascii.
15485         * modules/uninorm/u32-normcmp-tests (Files): Add
15486         tests/uninorm/test-u32-normcmp.h.
15487         (Depends-on): Remove uninorm/u32-normcmp.
15488
15489         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15490         tests/uninorm/test-u16-normcmp.c.
15491         * tests/uninorm/test-u16-normcmp.c: Include it.
15492         (test_nonascii): New function, extracted from main. Add some more
15493         tests.
15494         (main): Invoke test_ascii and test_nonascii.
15495         * modules/uninorm/u16-normcmp-tests (Files): Add
15496         tests/uninorm/test-u16-normcmp.h.
15497         (Depends-on): Remove uninorm/u16-normcmp.
15498
15499         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15500         tests/uninorm/test-u8-normcmp.c.
15501         * tests/uninorm/test-u8-normcmp.c: Include it.
15502         (test_nonascii): New function, extracted from main. Add some more
15503         tests.
15504         (main): Invoke test_ascii and test_nonascii.
15505         * modules/uninorm/u8-normcmp-tests (Files): Add
15506         tests/uninorm/test-u8-normcmp.h.
15507         (Depends-on): Remove uninorm/u8-normcmp.
15508
15509 2009-03-07  Bruno Haible  <bruno@clisp.org>
15510
15511         New module 'uninorm/u32-normcoll'.
15512         * lib/uninorm/u32-normcoll.c: New file.
15513         * modules/uninorm/u32-normcoll: New file.
15514
15515         New module 'uninorm/u16-normcoll'.
15516         * lib/uninorm/u16-normcoll.c: New file.
15517         * modules/uninorm/u16-normcoll: New file.
15518
15519         New module 'uninorm/u8-normcoll'.
15520         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15521         declarations.
15522         * lib/uninorm/u8-normcoll.c: New file.
15523         * lib/uninorm/u-normcoll.h: New file.
15524         * modules/uninorm/u8-normcoll: New file.
15525
15526         New module 'uninorm/u32-normxfrm'.
15527         * lib/uninorm/u32-normxfrm.c: New file.
15528         * modules/uninorm/u32-normxfrm: New file.
15529
15530         New module 'uninorm/u16-normxfrm'.
15531         * lib/uninorm/u16-normxfrm.c: New file.
15532         * modules/uninorm/u16-normxfrm: New file.
15533
15534         New module 'uninorm/u8-normxfrm'.
15535         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15536         declarations.
15537         * lib/uninorm/u8-normxfrm.c: New file.
15538         * lib/uninorm/u-normxfrm.h: New file.
15539         * modules/uninorm/u8-normxfrm: New file.
15540
15541 2009-03-07  Bruno Haible  <bruno@clisp.org>
15542
15543         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15544         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15545         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15546
15547 2009-03-07  Bruno Haible  <bruno@clisp.org>
15548
15549         New module 'memxfrm'.
15550         * lib/memxfrm.h: New file.
15551         * lib/memxfrm.c: New file.
15552         * modules/memxfrm: New file.
15553
15554 2009-03-07  Bruno Haible  <bruno@clisp.org>
15555
15556         New module 'memcmp2'.
15557         * lib/memcmp2.h: New file.
15558         * lib/memcmp2.c: New file.
15559         * modules/memcmp2: New file.
15560
15561 2009-03-07  Bruno Haible  <bruno@clisp.org>
15562
15563         Tests for module 'uninorm/decomposing-form'.
15564         * modules/uninorm/decomposing-form-tests: New file.
15565         * tests/uninorm/test-decomposing-form.c: New file.
15566
15567         New module 'uninorm/decomposing-form'.
15568         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15569         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15570         Add 'decomposing_variant' field.
15571         * lib/uninorm/decomposing-form.c: New file.
15572         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15573         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15574         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15575         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15576         * modules/uninorm/decomposing-form: New file.
15577         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15578         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15579
15580 2009-03-07  Bruno Haible  <bruno@clisp.org>
15581
15582         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15583         strings.
15584
15585 2009-03-06  Bruno Haible  <bruno@clisp.org>
15586
15587         Tests for module 'uninorm/u32-normcmp'.
15588         * tests/uninorm/test-u32-normcmp.c: New file.
15589         * modules/uninorm/u32-normcmp-tests: New file.
15590
15591         Tests for module 'uninorm/u16-normcmp'.
15592         * tests/uninorm/test-u16-normcmp.c: New file.
15593         * modules/uninorm/u16-normcmp-tests: New file.
15594
15595         Tests for module 'uninorm/u8-normcmp'.
15596         * tests/uninorm/test-u8-normcmp.c: New file.
15597         * modules/uninorm/u8-normcmp-tests: New file.
15598
15599         New module 'uninorm/u32-normcmp'.
15600         * lib/uninorm/u32-normcmp.c: New file.
15601         * modules/uninorm/u32-normcmp: New file.
15602
15603         New module 'uninorm/u16-normcmp'.
15604         * lib/uninorm/u16-normcmp.c: New file.
15605         * modules/uninorm/u16-normcmp: New file.
15606
15607         New module 'uninorm/u8-normcmp'.
15608         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15609         declarations.
15610         * lib/uninorm/u8-normcmp.c: New file.
15611         * lib/uninorm/u-normcmp.h: New file.
15612         * modules/uninorm/u8-normcmp: New file.
15613
15614 2009-03-06  Bruno Haible  <bruno@clisp.org>
15615
15616         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15617         Reported by Eric Blake.
15618
15619 2009-03-06  Eric Blake  <ebb9@byu.net>
15620             Bruno Haible  <bruno@clisp.org>
15621
15622         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15623         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15624         condition.
15625         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15626         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15627         condition.
15628         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15629
15630 2009-03-06  Eric Blake  <ebb9@byu.net>
15631
15632         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15633         to avoid compiler warnings.
15634         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15635
15636 2009-03-05  Bruno Haible  <bruno@clisp.org>
15637
15638         * tests/test-ftell.c (main): Disable test beyond end of file on
15639         FreeMiNT.
15640         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15641
15642 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15643
15644         * lib/filevercmp.c: Move hidden files up in ordering.
15645         * tests/test-filevercmp.c: Add tests for hidden files.
15646
15647 2009-03-04  Bruno Haible  <bruno@clisp.org>
15648
15649         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15650         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15651         AM_CFLAGS.
15652         Reported by Simon Josefsson.
15653
15654 2009-03-03  Bruno Haible  <bruno@clisp.org>
15655
15656         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15657         Reported by Simon Josefsson.
15658
15659         * doc/ld-version-script.texi: Update node reference.
15660
15661 2009-03-03  Bruno Haible  <bruno@clisp.org>
15662
15663         * modules/visibility (License): Change to 'unlimited'.
15664         Suggested by Simon Josefsson.
15665
15666 2009-03-03  Jim Meyering  <meyering@redhat.com>
15667
15668         unlinkdir: cannot_unlink_dir may modify process state
15669         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15670         it's neither thread-safe nor appropriate for use in a library.
15671
15672 2009-03-03  Eric Blake  <ebb9@byu.net>
15673
15674         test-closein: silence test under Darwin
15675         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15676         care if it dies from EPIPE or EBADF.
15677
15678 2009-03-03  Bruno Haible  <bruno@clisp.org>
15679
15680         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15681         earlier.
15682         * doc/visibility.texi: Fix @node and @section.
15683
15684 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15685
15686         * doc/gnulib.texi: Link to sections for ld version script and
15687         visibility.
15688         * doc/visibility.texi: Add @node and @section.
15689         * modules/ld-version-script: New module.
15690         * m4/ld-version-script.m4: New file.
15691         * doc/ld-version-script.texi: New file.
15692
15693 2009-03-02  David Lutterkort  <lutter@redhat.com>
15694
15695         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15697
15698 2009-03-02  Bruno Haible  <bruno@clisp.org>
15699
15700         * doc/visibility.texi: Mention libtool's -export-symbols option.
15701
15702 2009-03-02  Jim Meyering  <meyering@redhat.com>
15703
15704         announce-gen: new option: --no-print-checksums
15705         * build-aux/announce-gen (usage): Describe it.
15706         (print_checksums): Print a newline here, not in the [*] footnote.
15707         (main): Honor it.
15708
15709 2009-03-01  Bruno Haible  <bruno@clisp.org>
15710
15711         Use socklen_t in the native Windows replacements prototypes.
15712         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15713         instead of 'int'.
15714         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15715         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15716         * modules/getsockopt (Depends-on): Add socklen.
15717         * modules/setsockopt (Depends-on): Add socklen.
15718
15719 2009-03-01  Bruno Haible  <bruno@clisp.org>
15720
15721         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15722         least 4.2.
15723
15724 2009-03-01  Eric Blake  <ebb9@byu.net>
15725             Bruno Haible  <bruno@clisp.org>
15726
15727         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15728         error messages.
15729         * lib/wait-process.c (wait_subprocess): Omit error message about
15730         deadly signal sent to the child of termsigp != NULL.
15731
15732 2009-03-01  Eric Blake  <ebb9@byu.net>
15733
15734         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15735
15736 2009-03-01  Bruno Haible  <bruno@clisp.org>
15737
15738         Avoid a gcc warning.
15739         * tests/test-sched.c (b): Make global.
15740         Reported by Eric Blake.
15741
15742 2009-01-19  Martin Lambers  <marlam@marlam.de>
15743
15744         Provide POSIX semantics for socket timeout options on W32.
15745         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15746         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15747         * modules/setsockopt: Depend on sys_time module for struct timeval.
15748         * modules/getsockopt: Depend on sys_time module for struct timeval.
15749
15750 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15751
15752         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15753         __USE_GNU, for consistency with netdb.in.h.
15754         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15755
15756 2009-03-01  Bruno Haible  <bruno@clisp.org>
15757
15758         More support for FreeMiNT.
15759         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15760         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15761
15762 2009-03-01  Bruno Haible  <bruno@clisp.org>
15763
15764         More support for FreeMiNT.
15765         * lib/fpurge.c (fpurge): Correct last commit.
15766         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15767
15768 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15769
15770         Fix unportable awk script in vc-list-files.
15771         * build-aux/vc-list-files: In the replacement awk script, use
15772         substr with a second argument of 1, not zero.
15773         Report by Simon Josefsson.
15774
15775 2009-02-28  Bruno Haible  <bruno@clisp.org>
15776
15777         More support for FreeMiNT.
15778         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15779         to FreeMiNT today.
15780         * lib/fwriting.c (fwriting): Likewise.
15781         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15782
15783 2009-02-28  Bruno Haible  <bruno@clisp.org>
15784
15785         * tests/test-freadseek.c (main): Disable test beyond end of file on
15786         FreeMiNT.
15787         * tests/test-ftello.c (main): Likewise.
15788         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15789
15790 2009-02-28  Bruno Haible  <bruno@clisp.org>
15791
15792         Add tentative support for FreeMiNT.
15793         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15794         * lib/fpurge.c (fpurge): Likewise.
15795         * lib/freadable.c (freadable): Likewise.
15796         * lib/freading.c (freading): Likewise.
15797         * lib/freadptr.c (freadptr): Likewise.
15798         * lib/freadseek.c (freadptrinc): Likewise.
15799         * lib/fseeko.c (rpl_fseeko): Likewise.
15800         * lib/fseterr.c (fseterr): Likewise.
15801         * lib/fwritable.c (fwritable): Likewise.
15802         * lib/fwriting.c (fwriting): Likewise.
15803         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15804         Hourihane.
15805         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15806
15807 2009-02-28  Bruno Haible  <bruno@clisp.org>
15808
15809         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15810         SIGCHLD.
15811         Reported by Jim Meyering.
15812
15813 2009-02-28  Bruno Haible  <bruno@clisp.org>
15814
15815         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15816         Mention the results of these tests on various platforms.
15817         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15818         order.
15819         * doc/posix-functions/printf.texi: Likewise.
15820         * doc/posix-functions/snprintf.texi: Likewise.
15821         * doc/posix-functions/sprintf.texi: Likewise.
15822         * doc/posix-functions/vfprintf.texi: Likewise.
15823         * doc/posix-functions/vprintf.texi: Likewise.
15824         * doc/posix-functions/vsnprintf.texi: Likewise.
15825         * doc/posix-functions/vsprintf.texi: Likewise.
15826         * doc/glibc-functions/obstack_printf.texi: Likewise.
15827         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15828
15829 2009-02-28  Bruno Haible  <bruno@clisp.org>
15830
15831         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15832         Reported by Loïc Minier <lool@dooz.org>.
15833
15834 2009-02-27  Bruno Haible  <bruno@clisp.org>
15835
15836         * gnulib-tool (func_import): Make the sed expression used to create the
15837         sed script for updating the .gitignore file POSIX compliant.
15838         Reported by Eric Blake.
15839
15840 2009-02-27  Bruno Haible  <bruno@clisp.org>
15841
15842         * gnulib-tool (sed): Don't alias as "sed --posix".
15843         Reported by Eric Blake.
15844
15845 2009-02-27  Bruno Haible  <bruno@clisp.org>
15846
15847         Avoid test link errors.
15848         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15849         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15850         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15851         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15853
15854 2009-02-27  Bruno Haible  <bruno@clisp.org>
15855
15856         Avoid spurious "(cached)" in configure output.
15857         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15858         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15859         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15860         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15861         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15862         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15863         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15864         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15865         Reported by Eric Blake.
15866
15867 2009-02-27  Eric Blake  <ebb9@byu.net>
15868
15869         printf: fix regression in previous patch
15870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15871
15872 2009-02-27  Bruno Haible  <bruno@clisp.org>
15873
15874         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15875         value.
15876         * lib/stdint.in.h: Likewise.
15877         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15878
15879 2009-02-27  Eric Blake  <ebb9@byu.net>
15880
15881         doc: mention more functions added in cygwin 1.7.0
15882         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15883         addition.
15884         * doc/posix-functions/open_wmemstream.texi: Likewise.
15885         * doc/posix-functions/wcsnlen.texi: Likewise.
15886         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15887         * doc/posix-functions/wcstod.texi: Likewise.
15888         * doc/posix-functions/wcstof.texi: Likewise.
15889         * doc/posix-functions/wcstoimax.texi: Likewise.
15890         * doc/posix-functions/wcstok.texi: Likewise.
15891         * doc/posix-functions/wcstoumax.texi: Likewise.
15892
15893         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15895         * doc/posix-functions/fprintf.texi: Update.
15896         * doc/posix-functions/printf.texi: Update.
15897         * doc/posix-functions/snprintf.texi: Update.
15898         * doc/posix-functions/sprintf.texi: Update.
15899         * doc/posix-functions/vfprintf.texi: Update.
15900         * doc/posix-functions/vprintf.texi: Update.
15901         * doc/posix-functions/vsnprintf.texi: Update.
15902         * doc/posix-functions/vsprintf.texi: Update.
15903         * doc/glibc-functions/obstack_printf.texi: Update.
15904         * doc/glibc-functions/obstack_vprintf.texi: Update.
15905
15906 2009-02-26  Eric Blake  <ebb9@byu.net>
15907
15908         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15909         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15910         compilation bug by using runtime conversion.
15911         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15912         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15913         * modules/ceill-tests (Files): Use nan.h.
15914         * modules/floorl-tests (Files): Likewise.
15915         * modules/frexpl-tests (Files): Likewise.
15916         * modules/isnanl-tests (Files): Likewise.
15917         * modules/ldexpl-tests (Files): Likewise.
15918         * modules/roundl-tests (Files): Likewise.
15919         * modules/truncl-tests (Files): Likewise.
15920         * tests/test-ceill.c (main): Use a working NaN.
15921         * tests/test-floorl.c (main): Likewise.
15922         * tests/test-frexpl.c (main): Likewise.
15923         * tests/test-isnan.c (test_long_double): Likewise.
15924         * tests/test-isnanl.h (main): Likewise.
15925         * tests/test-ldexpl.h (main): Likewise.
15926         * tests/test-roundl.h (main): Likewise.
15927         * tests/test-truncl.h (main): Likewise.
15928         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15929
15930 2009-02-26  Eric Blake  <ebb9@byu.net>
15931             Bruno Haible  <bruno@clisp.org>
15932
15933         Work around a *printf bug with %ls on Solaris.
15934         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15935         precision is specified, sprintf stops converting the wide string
15936         argument when the number of bytes that have been produced by this
15937         conversion equals or exceeds the precision.
15938         * doc/posix-functions/fprintf.texi: Update.
15939         * doc/posix-functions/printf.texi: Update.
15940         * doc/posix-functions/snprintf.texi: Update.
15941         * doc/posix-functions/sprintf.texi: Update.
15942         * doc/posix-functions/vfprintf.texi: Update.
15943         * doc/posix-functions/vprintf.texi: Update.
15944         * doc/posix-functions/vsnprintf.texi: Update.
15945         * doc/posix-functions/vsprintf.texi: Update.
15946         * doc/glibc-functions/obstack_printf.texi: Update.
15947         * doc/glibc-functions/obstack_vprintf.texi: Update.
15948
15949 2009-02-26  Eric Blake  <ebb9@byu.net>
15950
15951         stdlib: favor compiler check of random.h
15952         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15953         to avoid an ObjC random.h installed by Swarm.
15954
15955 2009-02-26  Bruno Haible  <bruno@clisp.org>
15956
15957         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15958         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15959         Reported by Gary V. Vaughan <gary@gnu.org>.
15960
15961 2009-02-26  Bruno Haible  <bruno@clisp.org>
15962
15963         Fix *printf behaviour regarding the %ls directive.
15964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15965         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15966         NEED_PRINTF_DIRECTIVE_LS.
15967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15968         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15970         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15971         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15972         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15973         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15975         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15978         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15979         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15982         * doc/posix-functions/fprintf.texi: Update.
15983         * doc/posix-functions/printf.texi: Update.
15984         * doc/posix-functions/snprintf.texi: Update.
15985         * doc/posix-functions/sprintf.texi: Update.
15986         * doc/posix-functions/vfprintf.texi: Update.
15987         * doc/posix-functions/vprintf.texi: Update.
15988         * doc/posix-functions/vsnprintf.texi: Update.
15989         * doc/posix-functions/vsprintf.texi: Update.
15990         * doc/glibc-functions/obstack_printf.texi: Update.
15991         * doc/glibc-functions/obstack_vprintf.texi: Update.
15992         Reported by Eric Blake.
15993
15994 2009-02-25  Bruno Haible  <bruno@clisp.org>
15995
15996         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15997         with known value.
15998         Reported by Gary V. Vaughan <gary@gnu.org>.
15999
16000 2009-02-25  Bruno Haible  <bruno@clisp.org>
16001
16002         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16003         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16004         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16005         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16006         Reported by Gary V. Vaughan <gary@gnu.org>.
16007
16008 2009-02-25  Bruno Haible  <bruno@clisp.org>
16009
16010         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16011         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16012         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16013         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16014         Reported by Gary V. Vaughan <gary@gnu.org>.
16015
16016 2009-02-25  Eric Blake  <ebb9@byu.net>
16017
16018         tests: skip fseek/ftell tests if ungetc is broken
16019         * m4/ungetc.m4: New file.
16020         * modules/fseek-tests: Split test, so ungetc dependency is
16021         separate from rest of test.
16022         * modules/fseeko-tests: Likewise.
16023         * modules/ftell-tests: Likewise.
16024         * modules/ftello-tests: Likewise.
16025         * tests/test-fseek.c (main): Isolate ungetc dependency.
16026         * tests/test-fseeko.c (main): Likewise.
16027         * tests/test-ftell.c (main): Likewise.
16028         * tests/test-ftello.c (main): Likewise.
16029         * tests/test-fseek2.sh: New file.
16030         * tests/test-fseeko2.sh: Likewise.
16031         * tests/test-ftell2.sh: Likewise.
16032         * tests/test-ftello2.sh: Likewise.
16033
16034 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
16035
16036         test-getaddrinfo: fix usage of skip return code 77
16037         * tests/test-gettaddrinfo.c: Return skip code 77 only
16038         for first occurance of skip (4x77 is not 77)
16039
16040 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16041
16042         strtod: avoid C99 decl-after-statement
16043         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16044
16045 2009-02-24  Eric Blake  <ebb9@byu.net>
16046
16047         strtod: detect HP-UX 11.31 bug
16048         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16049         Reported by Gary V. Vaughan.
16050
16051 2009-02-23  Bruno Haible  <bruno@clisp.org>
16052
16053         Fix invalid read past end of memory block.
16054         * lib/vasnprintf.c (DCHAR_SET): Define.
16055         (local_wcslen): Define only when needed.
16056         (local_strnlen, local_wcsnlen): New functions.
16057         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16058         directives that involve a conversion ourselves.
16059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16060         wcsnlen, mbrtowc, wcrtomb.
16061         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16062         * tests/test-vasprintf-posix.c (test_function): Likewise.
16063         * tests/test-snprintf-posix.h (test_function): Likewise.
16064         * tests/test-sprintf-posix.h (test_function): Likewise.
16065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16066
16067 2009-02-22  Bruno Haible  <bruno@clisp.org>
16068
16069         Implement new clarified decomposition of Hangul syllables.
16070         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16071         of type LTV, return only a pairwise decomposition.
16072         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16073         Likewise.
16074         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16075         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16076         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16077
16078 2009-02-22  Bruno Haible  <bruno@clisp.org>
16079
16080         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16081         zero-length results and shrink excess allocated memory.
16082         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16083         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16084         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16085         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16086         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16087         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16088         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16089         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16090         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16091         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16092         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16093         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16094
16095 2009-02-21  Bruno Haible  <bruno@clisp.org>
16096
16097         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16098         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16099         spaces after a period. Put a space between a macro name and its
16100         argument list. Trivial rewordings.
16101         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16102         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16103         (main): Return 0 explicitly.
16104
16105 2009-02-21  Bruno Haible  <bruno@clisp.org>
16106
16107         Tests for module 'uninorm/filter'.
16108         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16109         * modules/uninorm/filter-tests: New file.
16110
16111         New module 'uninorm/filter'.
16112         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16113         uninorm_filter_flush, uninorm_filter_free): New declarations.
16114         * lib/uninorm/uninorm-filter.c: New file.
16115         * modules/uninorm/filter: New file.
16116
16117 2009-02-21  Bruno Haible  <bruno@clisp.org>
16118
16119         Tests for module 'uninorm/nfkc'.
16120         * tests/uninorm/test-nfkc.c: New file.
16121         * tests/uninorm/test-u8-nfkc.c: New file.
16122         * tests/uninorm/test-u16-nfkc.c: New file.
16123         * tests/uninorm/test-u32-nfkc.c: New file.
16124         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16125         * tests/uninorm/test-u32-nfkc-big.c: New file.
16126         * modules/uninorm/nfkc-tests: New file.
16127
16128         New module 'uninorm/nfkc'.
16129         * lib/uninorm/nfkc.c: New file.
16130         * modules/uninorm/nfkc: New file.
16131
16132         Tests for module 'uninorm/nfkd'.
16133         * tests/uninorm/test-nfkd.c: New file.
16134         * tests/uninorm/test-u8-nfkd.c: New file.
16135         * tests/uninorm/test-u16-nfkd.c: New file.
16136         * tests/uninorm/test-u32-nfkd.c: New file.
16137         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16138         * tests/uninorm/test-u32-nfkd-big.c: New file.
16139         * modules/uninorm/nfkd-tests: New file.
16140
16141         New module 'uninorm/nfkd'.
16142         * lib/uninorm/nfkd.c: New file.
16143         * modules/uninorm/nfkd: New file.
16144
16145         Tests for module 'uninorm/nfc'.
16146         * tests/uninorm/test-nfc.c: New file.
16147         * tests/uninorm/test-u8-nfc.c: New file.
16148         * tests/uninorm/test-u16-nfc.c: New file.
16149         * tests/uninorm/test-u32-nfc.c: New file.
16150         * tests/uninorm/test-u32-nfc-big.sh: New file.
16151         * tests/uninorm/test-u32-nfc-big.c: New file.
16152         * modules/uninorm/nfc-tests: New file.
16153
16154         New module 'uninorm/nfc'.
16155         * lib/uninorm/nfc.c: New file.
16156         * modules/uninorm/nfc: New file.
16157
16158         Tests for module 'uninorm/nfd'.
16159         * tests/uninorm/test-nfd.c: New file.
16160         * tests/uninorm/test-u8-nfd.c: New file.
16161         * tests/uninorm/test-u16-nfd.c: New file.
16162         * tests/uninorm/test-u32-nfd.c: New file.
16163         * tests/uninorm/test-u32-nfd-big.sh: New file.
16164         * tests/uninorm/test-u32-nfd-big.c: New file.
16165         * tests/uninorm/test-u32-normalize-big.h: New file.
16166         * tests/uninorm/test-u32-normalize-big.c: New file.
16167         * tests/uninorm/NormalizationTest.txt: New file, created from
16168         Unicode 5.1.0 NormalizationTest.txt.
16169         * modules/uninorm/nfd-tests: New file.
16170
16171         New module 'uninorm/nfd'.
16172         * lib/uninorm/nfd.c: New file.
16173         * modules/uninorm/nfd: New file.
16174
16175         New module 'uninorm/u32-normalize'.
16176         * lib/uninorm/u32-normalize.c: New file.
16177         * modules/uninorm/u32-normalize: New file.
16178
16179         New module 'uninorm/u16-normalize'.
16180         * lib/uninorm/u16-normalize.c: New file.
16181         * modules/uninorm/u16-normalize: New file.
16182
16183         New module 'uninorm/u8-normalize'.
16184         * lib/uninorm/u8-normalize.c: New file.
16185         * lib/uninorm/normalize-internal.h: New file.
16186         * lib/uninorm/u-normalize-internal.h: New file.
16187         * modules/uninorm/u8-normalize: New file.
16188
16189         New module 'uninorm/decompose-internal'.
16190         * lib/uninorm/decompose-internal.c: New file.
16191         * modules/uninorm/decompose-internal: New file.
16192
16193         Tests for module 'uninorm/composition'.
16194         * tests/uninorm/test-composition.c: New file.
16195         * modules/uninorm/composition-tests: New file.
16196
16197         New module 'uninorm/composition'.
16198         * lib/uninorm/composition.c: New file.
16199         * lib/uninorm/composition-table.gperf: New file, generated by
16200         gen-uni-tables.
16201         * modules/uninorm/composition: New file.
16202
16203         Tests for module 'uninorm/compat-decomposition'.
16204         * tests/uninorm/test-compat-decomposition.c: New file.
16205         * modules/uninorm/compat-decomposition-tests: New file.
16206
16207         New module 'uninorm/compat-decomposition'.
16208         * lib/uninorm/decompose-internal.h: New file.
16209         * lib/uninorm/compat-decomposition.c: New file.
16210         * modules/uninorm/compat-decomposition: New file.
16211
16212         Tests for module 'uninorm/canonical-decomposition'.
16213         * tests/uninorm/test-canonical-decomposition.c: New file.
16214         * modules/uninorm/canonical-decomposition-tests: New file.
16215
16216         New module 'uninorm/canonical-decomposition'.
16217         * lib/uninorm/canonical-decomposition.c: New file.
16218         * modules/uninorm/canonical-decomposition: New file.
16219
16220         Tests for module 'uninorm/decomposition'.
16221         * tests/uninorm/test-decomposition.c: New file.
16222         * modules/uninorm/decomposition-tests: New file.
16223
16224         New module 'uninorm/decomposition'.
16225         * lib/uninorm/decomposition.c: New file.
16226         * modules/uninorm/decomposition: New file.
16227
16228         New module 'uninorm/decomposition-table'.
16229         * lib/uninorm/decomposition-table.h: New file.
16230         * lib/uninorm/decomposition-table.c: New file.
16231         * lib/uninorm/decomposition-table1.h: New file, generated by
16232         gen-uni-tables.
16233         * lib/uninorm/decomposition-table2.h: New file, generated by
16234         gen-uni-tables.
16235         * modules/uninorm/decomposition-table: New file.
16236
16237         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16238         (UC_DECOMP_*): New enumeration items.
16239         (get_decomposition): New function.
16240         (struct decomp_table): New type.
16241         (output_decomposition, output_decomposition_tables): New functions.
16242         (unicode_composition_exclusions): New variable.
16243         (fill_composition_exclusions, debug_output_composition_tables): New
16244         functions.
16245         (main): Accept one more argument. Invoke fill_composition_exclusions.
16246         Output decomposition and composition tables.
16247
16248         New module 'uninorm/base'.
16249         * lib/uninorm.h: New file.
16250         * lib/unictype.h: Update comment.
16251         * modules/uninorm/base: New file.
16252
16253 2009-02-21  David Lutterkort  <lutter@redhat.com>
16254
16255         Tests for module 'safe-alloc'.
16256         * tests/test-safe-alloc.c: New file.
16257         * modules/safe-alloc-tests: New file.
16258
16259         New module 'safe-alloc'.
16260         * lib/safe-alloc.h: New file.
16261         * lib/safe-alloc.c: New file.
16262         * m4/safe-alloc.m4: New file.
16263         * modules/safe-alloc: New file.
16264         * doc/safe-alloc.texi: New file.
16265         * doc/gnulib.texi: Include it.
16266         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16267         safe-alloc.
16268
16269 2009-02-18  Bruno Haible  <bruno@clisp.org>
16270
16271         Fix link error on non-glibc systems.
16272         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16273         variable.
16274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16275
16276 2009-02-18  Jim Meyering  <meyering@redhat.com>
16277
16278         fts: avoid used-uninitialized error due to recent change
16279         * lib/fts.c (fts_read): Guard uses of the new member,
16280         parent->fts_n_dirs_remaining, since it's not relevant for
16281         the parent of a directory specified on the command-line.
16282
16283 2009-02-17  James Youngman  <jay@gnu.org>
16284             Bruno Haible  <bruno@clisp.org>
16285
16286         * m4/include_next.m4: Reformulate comment.
16287
16288 2009-02-16  Jim Meyering  <meyering@redhat.com>
16289
16290         fts: add #if guards so that the fts_lgpl module still builds
16291         * lib/fts.c: Guard just-added hash-table-using parts with
16292         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16293         Reported by Simon Josefsson.
16294
16295 2009-02-15  Bruno Haible  <bruno@clisp.org>
16296
16297         * modules/array-mergesort-tests: New file.
16298         * tests/test-array-mergesort.c: New file.
16299
16300         New module 'array-mergesort'.
16301         * modules/array-mergesort: New file.
16302         * lib/array-mergesort.h: New file.
16303
16304 2009-02-15  Bruno Haible  <bruno@clisp.org>
16305
16306         Fix 2009-02-07 commit.
16307         * lib/gen-uni-tables.c (output_predicate, output_category,
16308         output_combclass, output_bidi_category, output_decimal_digit,
16309         output_digit, output_numeric, output_mirror, output_scripts,
16310         output_ident_category, output_simple_mapping): Fix format directives.
16311         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16312
16313 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16314
16315         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16316         fixes are available from IBM.
16317
16318 2009-02-13  Jim Meyering  <meyering@redhat.com>
16319
16320         fts: arrange not to stat non-directories in more cases
16321         This makes GNU find (when it doesn't need to stat each file)
16322         *much* more efficient at traversing reiserfs file systems.
16323         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16324         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16325         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16326         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16327         (leaf_optimization_applies): New function.
16328         (LCO_hash, LCO_compare): New helper functions.
16329         (link_count_optimize_ok): New function.
16330         (fts_stat): Initialize new member (if dir).
16331         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16332         we've just stat'ed a directory.  Skip the stat call when possible.
16333         ---
16334         Note this AFS-related exchange:
16335         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16336         and note find's pioctl call in find/fstype.c.
16337         But that is necessary only if you want to enable the
16338         optimization for AFS, and for now, I don't.
16339
16340         fts: move a function definition "up" (no semantic change)
16341         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16342         "up" to precede upcoming use of a related function.
16343
16344 2009-02-11  Jim Meyering  <meyering@redhat.com>
16345
16346         fts: correct internal computation of nlinks (optimization-related)
16347         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16348         whether the current entry is a directory, so don't test it.
16349
16350 2009-02-10  Bruno Haible  <bruno@clisp.org>
16351
16352         Tests for module 'uniwbrk/ulc-wordbreaks'.
16353         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16354         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16355         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16356
16357         Tests for module 'uniwbrk/u32-wordbreaks'.
16358         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16359         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16360
16361         Tests for module 'uniwbrk/u16-wordbreaks'.
16362         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16363         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16364
16365         Tests for module 'uniwbrk/u8-wordbreaks'.
16366         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16367         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16368
16369 2009-02-10  Bruno Haible  <bruno@clisp.org>
16370
16371         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16372         property.
16373         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16374         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16375         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16376
16377 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16378
16379         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16380         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16381
16382 2009-02-10  Bruno Haible  <bruno@clisp.org>
16383
16384         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16385         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16386         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16387         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16388         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16389         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16390
16391 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16392
16393         * lib/sockets.h (gl_fd_to_handle): New function.
16394
16395         * tests/test-sockets.c: Call gl_fd_to_handle.
16396
16397 2009-02-09  Bruno Haible  <bruno@clisp.org>
16398
16399         * doc/havelib.texi: Document the conventions on bi-arch systems.
16400
16401 2009-02-08  Bruno Haible  <bruno@clisp.org>
16402
16403         Document the AC_LIB_LINKFLAGS macro.
16404         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16405         * doc/gnulib.texi: Include it.
16406
16407 2009-02-08  Bruno Haible  <bruno@clisp.org>
16408
16409         Fix wrong order of sections, compared to TOC.
16410         * doc/gnulib.texi: Include relocatable-maint.texi after the
16411         "Regular expressions" node, not before.
16412
16413 2009-02-08  Bruno Haible  <bruno@clisp.org>
16414
16415         Tests for module 'unicase/totitle'.
16416         * modules/unicase/totitle-tests: New file.
16417
16418         Tests for module 'unicase/tolower'.
16419         * modules/unicase/tolower-tests: New file.
16420
16421         Tests for module 'unicase/toupper'.
16422         * modules/unicase/toupper-tests: New file.
16423         * tests/unicase/test-mapping-part1.h: New file.
16424         * tests/unicase/test-mapping-part2.h: New file.
16425
16426         New module 'unicase/totitle'.
16427         * modules/unicase/totitle: New file.
16428         * lib/unicase/totitle.c: New file.
16429
16430         New module 'unicase/tolower'.
16431         * modules/unicase/tolower: New file.
16432         * lib/unicase/tolower.c: New file.
16433
16434         New module 'unicase/toupper'.
16435         * modules/unicase/toupper: New file.
16436         * lib/unicase/toupper.c: New file.
16437         * lib/unicase/simple-mapping.h: New file.
16438
16439         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16440         (mapping_table): New structure.
16441         (output_simple_mapping): New function.
16442         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16443         * modules/gen-uni-tables (Description): Update.
16444         * lib/unicase/toupper.h: New file, automatically generated by
16445         gen-uni-tables.
16446         * lib/unicase/tolower.h: New file, automatically generated by
16447         gen-uni-tables.
16448         * lib/unicase/totitle.h: New file, automatically generated by
16449         gen-uni-tables.
16450         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16451         gen-uni-tables.
16452         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16453         gen-uni-tables.
16454         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16455         gen-uni-tables.
16456
16457         New module 'unicase/base'.
16458         * modules/unicase/base: New file.
16459         * lib/unicase.h: New file.
16460
16461 2009-02-08  Bruno Haible  <bruno@clisp.org>
16462
16463         New module 'uniwbrk/ulc-wordbreaks'.
16464         * modules/uniwbrk/ulc-wordbreaks: New file.
16465         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16466
16467         New module 'uniwbrk/u32-wordbreaks'.
16468         * modules/uniwbrk/u32-wordbreaks: New file.
16469         * lib/uniwbrk/u32-wordbreaks.c: New file.
16470
16471         New module 'uniwbrk/u16-wordbreaks'.
16472         * modules/uniwbrk/u16-wordbreaks: New file.
16473         * lib/uniwbrk/u16-wordbreaks.c: New file.
16474
16475         New module 'uniwbrk/u8-wordbreaks'.
16476         * modules/uniwbrk/u8-wordbreaks: New file.
16477         * lib/uniwbrk/u8-wordbreaks.c: New file.
16478         * lib/uniwbrk/u-wordbreaks.h: New file.
16479
16480         New module 'uniwbrk/table'.
16481         * modules/uniwbrk/table: New file.
16482         * lib/uniwbrk/wbrktable.h: New file.
16483         * lib/uniwbrk/wbrktable.c: New file.
16484
16485         New module 'uniwbrk/wordbreak-property'.
16486         * modules/uniwbrk/wordbreak-property: New file.
16487         * lib/uniwbrk/wordbreak-property.c: New file.
16488
16489         * lib/gen-uni-tables.c (WBP_*): New enum items.
16490         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16491         (unicode_org_wbp): New variable.
16492         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16493         New functions.
16494         (wbp_table): New structure.
16495         (output_wbp, output_wbrk_tables): New functions.
16496         (main): Accept additional argument. Invoke fill_org_wbp,
16497         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16498         output_wbrk_tables.
16499         * modules/gen-uni-tables (Description): Update.
16500         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16501         gen-uni-tables.
16502
16503         New module 'uniwbrk/base'.
16504         * modules/uniwbrk/base: New file.
16505         * lib/uniwbrk.h: New file.
16506
16507 2009-02-08  Bruno Haible  <bruno@clisp.org>
16508
16509         Update to Unicode 5.1.0.
16510         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16511         U+2185..U+2188.
16512         (is_property_default_ignorable_code_point): Don't include characters
16513         of category Cc or Cs and not-a-characters.
16514         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16515         U+0D79, U+109E, U+109F, U+A60C.
16516         * lib/unictype/bidi_of.h: Regenerated.
16517         * lib/unictype/blocks.h: Regenerated.
16518         * lib/unictype/categ_C.h: Regenerated.
16519         * lib/unictype/categ_Cf.h: Regenerated.
16520         * lib/unictype/categ_Cn.h: Regenerated.
16521         * lib/unictype/categ_L.h: Regenerated.
16522         * lib/unictype/categ_Ll.h: Regenerated.
16523         * lib/unictype/categ_Lm.h: Regenerated.
16524         * lib/unictype/categ_Lo.h: Regenerated.
16525         * lib/unictype/categ_Lu.h: Regenerated.
16526         * lib/unictype/categ_M.h: Regenerated.
16527         * lib/unictype/categ_Mc.h: Regenerated.
16528         * lib/unictype/categ_Me.h: Regenerated.
16529         * lib/unictype/categ_Mn.h: Regenerated.
16530         * lib/unictype/categ_N.h: Regenerated.
16531         * lib/unictype/categ_Nd.h: Regenerated.
16532         * lib/unictype/categ_Nl.h: Regenerated.
16533         * lib/unictype/categ_No.h: Regenerated.
16534         * lib/unictype/categ_P.h: Regenerated.
16535         * lib/unictype/categ_Pd.h: Regenerated.
16536         * lib/unictype/categ_Pe.h: Regenerated.
16537         * lib/unictype/categ_Pf.h: Regenerated.
16538         * lib/unictype/categ_Pi.h: Regenerated.
16539         * lib/unictype/categ_Po.h: Regenerated.
16540         * lib/unictype/categ_Ps.h: Regenerated.
16541         * lib/unictype/categ_S.h: Regenerated.
16542         * lib/unictype/categ_Sk.h: Regenerated.
16543         * lib/unictype/categ_Sm.h: Regenerated.
16544         * lib/unictype/categ_So.h: Regenerated.
16545         * lib/unictype/categ_of.h: Regenerated.
16546         * lib/unictype/combining.h: Regenerated.
16547         * lib/unictype/ctype_alnum.h: Regenerated.
16548         * lib/unictype/ctype_alpha.h: Regenerated.
16549         * lib/unictype/ctype_graph.h: Regenerated.
16550         * lib/unictype/ctype_lower.h: Regenerated.
16551         * lib/unictype/ctype_print.h: Regenerated.
16552         * lib/unictype/ctype_punct.h: Regenerated.
16553         * lib/unictype/ctype_upper.h: Regenerated.
16554         * lib/unictype/decdigit.h: Regenerated.
16555         * lib/unictype/digit.h: Regenerated.
16556         * lib/unictype/mirror.h: Regenerated.
16557         * lib/unictype/numeric.h: Regenerated.
16558         * lib/unictype/pr_alphabetic.h: Regenerated.
16559         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16560         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16561         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16562         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16563         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16564         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16565         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16566         * lib/unictype/pr_combining.h: Regenerated.
16567         * lib/unictype/pr_dash.h: Regenerated.
16568         * lib/unictype/pr_decimal_digit.h: Regenerated.
16569         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16570         * lib/unictype/pr_deprecated.h: Regenerated.
16571         * lib/unictype/pr_diacritic.h: Regenerated.
16572         * lib/unictype/pr_extender.h: Regenerated.
16573         * lib/unictype/pr_format_control.h: Regenerated.
16574         * lib/unictype/pr_grapheme_base.h: Regenerated.
16575         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16576         * lib/unictype/pr_grapheme_link.h: Regenerated.
16577         * lib/unictype/pr_id_continue.h: Regenerated.
16578         * lib/unictype/pr_id_start.h: Regenerated.
16579         * lib/unictype/pr_ideographic.h: Regenerated.
16580         * lib/unictype/pr_ignorable_control.h: Regenerated.
16581         * lib/unictype/pr_lowercase.h: Regenerated.
16582         * lib/unictype/pr_math.h: Regenerated.
16583         * lib/unictype/pr_numeric.h: Regenerated.
16584         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16585         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16586         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16587         * lib/unictype/pr_other_id_continue.h: Regenerated.
16588         * lib/unictype/pr_other_lowercase.h: Regenerated.
16589         * lib/unictype/pr_other_math.h: Regenerated.
16590         * lib/unictype/pr_punctuation.h: Regenerated.
16591         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16592         * lib/unictype/pr_soft_dotted.h: Regenerated.
16593         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16594         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16595         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16596         * lib/unictype/pr_uppercase.h: Regenerated.
16597         * lib/unictype/pr_xid_continue.h: Regenerated.
16598         * lib/unictype/pr_xid_start.h: Regenerated.
16599         * lib/unictype/pr_zero_width.h: Regenerated.
16600         * lib/unictype/scripts.h: Regenerated.
16601         * lib/unictype/scripts_byname.gperf: Regenerated.
16602         * lib/unictype/sy_java_ident.h: Regenerated.
16603         * lib/unilbrk/lbrkprop1.h: Regenerated.
16604         * lib/unilbrk/lbrkprop2.h: Regenerated.
16605         * tests/unictype/test-categ_C.c: Regenerated.
16606         * tests/unictype/test-categ_Cf.c: Regenerated.
16607         * tests/unictype/test-categ_Cn.c: Regenerated.
16608         * tests/unictype/test-categ_L.c: Regenerated.
16609         * tests/unictype/test-categ_Ll.c: Regenerated.
16610         * tests/unictype/test-categ_Lm.c: Regenerated.
16611         * tests/unictype/test-categ_Lo.c: Regenerated.
16612         * tests/unictype/test-categ_Lu.c: Regenerated.
16613         * tests/unictype/test-categ_M.c: Regenerated.
16614         * tests/unictype/test-categ_Mc.c: Regenerated.
16615         * tests/unictype/test-categ_Me.c: Regenerated.
16616         * tests/unictype/test-categ_Mn.c: Regenerated.
16617         * tests/unictype/test-categ_N.c: Regenerated.
16618         * tests/unictype/test-categ_Nd.c: Regenerated.
16619         * tests/unictype/test-categ_Nl.c: Regenerated.
16620         * tests/unictype/test-categ_No.c: Regenerated.
16621         * tests/unictype/test-categ_P.c: Regenerated.
16622         * tests/unictype/test-categ_Pd.c: Regenerated.
16623         * tests/unictype/test-categ_Pe.c: Regenerated.
16624         * tests/unictype/test-categ_Pf.c: Regenerated.
16625         * tests/unictype/test-categ_Pi.c: Regenerated.
16626         * tests/unictype/test-categ_Po.c: Regenerated.
16627         * tests/unictype/test-categ_Ps.c: Regenerated.
16628         * tests/unictype/test-categ_S.c: Regenerated.
16629         * tests/unictype/test-categ_Sk.c: Regenerated.
16630         * tests/unictype/test-categ_Sm.c: Regenerated.
16631         * tests/unictype/test-categ_So.c: Regenerated.
16632         * tests/unictype/test-ctype_alnum.c: Regenerated.
16633         * tests/unictype/test-ctype_alpha.c: Regenerated.
16634         * tests/unictype/test-ctype_graph.c: Regenerated.
16635         * tests/unictype/test-ctype_lower.c: Regenerated.
16636         * tests/unictype/test-ctype_print.c: Regenerated.
16637         * tests/unictype/test-ctype_punct.c: Regenerated.
16638         * tests/unictype/test-ctype_upper.c: Regenerated.
16639         * tests/unictype/test-decdigit.h: Regenerated.
16640         * tests/unictype/test-digit.h: Regenerated.
16641         * tests/unictype/test-numeric.h: Regenerated.
16642         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16643         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16644         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16645         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16646         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16647         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16648         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16649         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16650         * tests/unictype/test-pr_combining.c: Regenerated.
16651         * tests/unictype/test-pr_dash.c: Regenerated.
16652         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16653         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16654         * tests/unictype/test-pr_deprecated.c: Regenerated.
16655         * tests/unictype/test-pr_diacritic.c: Regenerated.
16656         * tests/unictype/test-pr_extender.c: Regenerated.
16657         * tests/unictype/test-pr_format_control.c: Regenerated.
16658         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16659         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16660         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16661         * tests/unictype/test-pr_id_continue.c: Regenerated.
16662         * tests/unictype/test-pr_id_start.c: Regenerated.
16663         * tests/unictype/test-pr_ideographic.c: Regenerated.
16664         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16665         * tests/unictype/test-pr_lowercase.c: Regenerated.
16666         * tests/unictype/test-pr_math.c: Regenerated.
16667         * tests/unictype/test-pr_numeric.c: Regenerated.
16668         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16669         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16670         Regenerated.
16671         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16672         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16673         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16674         * tests/unictype/test-pr_other_math.c: Regenerated.
16675         * tests/unictype/test-pr_punctuation.c: Regenerated.
16676         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16677         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16678         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16679         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16680         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16681         * tests/unictype/test-pr_uppercase.c: Regenerated.
16682         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16683         * tests/unictype/test-pr_xid_start.c: Regenerated.
16684         * tests/unictype/test-pr_zero_width.c: Regenerated.
16685
16686         Update to Unicode 5.1.0.
16687         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16688         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16689         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16690         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16691         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16692         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16693         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16694         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16695         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16696         (nonspacing_table_ind): Update.
16697         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16698
16699         Update to Unicode 5.1.0.
16700         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16701         code transform.
16702         * lib/uniname/uniname.c (unicode_character_name,
16703         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16704         * lib/uniname/uninames.h: Regenerated.
16705         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16706
16707 2009-02-07  Bruno Haible  <bruno@clisp.org>
16708
16709         Merge gen-ctype and gen-lbrk into a single program.
16710         * lib/gen-uni-tables.c: New file, incorporating
16711         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16712         Add directory prefixes to the names of the generated files.
16713         * lib/unictype/gen-ctype.c: Remove file.
16714         * lib/unilbrk/gen-lbrk.c: Remove file.
16715         * modules/gen-uni-tables: New file.
16716         * modules/unictype/gen-ctype: Remove file.
16717         * modules/unilbrk/gen-lbrk: Remove file.
16718
16719 2009-02-07  Bruno Haible  <bruno@clisp.org>
16720
16721         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16722
16723         New module 'unistr/u32-strcoll'.
16724         * modules/unistr/u32-strcoll: New file.
16725         * lib/unistr/u32-strcoll.c: New file.
16726
16727         New module 'unistr/u16-strcoll'.
16728         * modules/unistr/u16-strcoll: New file.
16729         * lib/unistr/u16-strcoll.c: New file.
16730
16731         New module 'unistr/u8-strcoll'.
16732         * modules/unistr/u8-strcoll: New file.
16733         * lib/unistr/u8-strcoll.c: New file.
16734         * lib/unistr/u-strcoll.h: New file.
16735
16736 2009-02-07  Bruno Haible  <bruno@clisp.org>
16737
16738         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16739         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16740         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16741         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16742         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16743         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16744
16745 2009-02-07  Bruno Haible  <bruno@clisp.org>
16746
16747         Make 64-bit clean.
16748         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16749         output_combclass, output_bidi_category, output_decimal_digit,
16750         output_digit, output_numeric, output_mirror, output_scripts,
16751         output_ident_category): Use proper width specifier in format strings.
16752
16753 2009-02-07  Bruno Haible  <bruno@clisp.org>
16754
16755         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16756         failure behaviour.
16757
16758 2009-02-07  Jim Meyering  <meyering@redhat.com>
16759
16760         regex: avoid compilation failure with upcoming gcc-4.4
16761         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16762         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16763         "... error: integer overflow in preprocessor expression".
16764
16765 2009-02-05  Ben Pfaff  <blp@gnu.org>
16766
16767         Fix link errors on Windows when close module is used.
16768         * modules/close: Add $(LIB_CLOSE) to Link section.
16769         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16770         $(LIB_CLOSE) on Windows.
16771
16772 2009-02-05  Jim Meyering  <meyering@redhat.com>
16773
16774         still avoid unused-parameter warnings, but do it cleanly
16775         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16776         (get_fs_usage): Cast to void instead.
16777         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16778         (dev_from_mount_options, read_file_system_list): Cast to void.
16779         Prompted by Bruno Haible.
16780
16781 2009-02-04  Jim Meyering  <meyering@redhat.com>
16782
16783         fsusage.c: correct copyright year
16784         * lib/fsusage.c: Reflect year in which the change is pushed into
16785
16786         avoid misc. warnings
16787         * lib/fsusage.c (UNUSED_PARAM): Define.
16788         (get_fs_usage): Mark parameter "disk" as unused.
16789         * lib/getugroups.c (getgrent): Use "void" in prototype.
16790         * lib/mountlist.c: Mark unused parameters.
16791         (read_file_system_list): Declare a local with "const".
16792         * lib/nanosleep.c (getnow): Declare static.
16793         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16794
16795         dirfd: set errno upon failure
16796         * lib/dirfd.c: Include <errno.h>.
16797         Set errno to ENOTSUP when returning -1.
16798         * modules/dirfd (Depends-on): Add errno.
16799         Suggested by John Kodis <kodis@comcast.net>.
16800
16801 2009-02-01  Bruno Haible  <bruno@clisp.org>
16802
16803         Don't assume sizeof (long) >= sizeof (void *).
16804         * lib/memcmp.c: Include stdint.h.
16805         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16806         srcp2 to 'const byte *'.
16807         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16808         types to uintptr_t.
16809         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16810         * modules/memcmp (Depends-on): Add stdint.
16811         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16812
16813 2009-01-30  Eric Blake  <ebb9@byu.net>
16814
16815         fix more require-before-expand issues
16816         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16817         expand, AC_PROG_AWK.
16818         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16819
16820 2009-01-28  Eric Blake  <ebb9@byu.net>
16821
16822         version-etc: use consistent URL formatting
16823         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16824         Improve formatting.  Use fputs for string without %.
16825
16826 2009-01-28  Jim Meyering  <meyering@redhat.com>
16827
16828         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16829         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16830         "underquoted definition of NAME" from autoconf-2.59.
16831
16832 2009-01-28  Bruno Haible  <bruno@clisp.org>
16833
16834         * doc/gnulib.texi: Add "Obsolete modules" to index.
16835
16836 2009-01-28  Jim Meyering  <meyering@redhat.com>
16837
16838         useless-if-before-free: recognize more variants
16839         * build-aux/useless-if-before-free: Also recognize e.g.,
16840         if (NULL != p) free (p);
16841
16842 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16843
16844         test-getaddrinfo: skip (don't fail) this test when there's no network
16845         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16846         on the presumption that it means you lack network access.
16847
16848 2009-01-26  Jim Meyering  <meyering@redhat.com>
16849
16850         fflush: avoid warnings on modern systems
16851         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16852         pos and result, into scopes where they're used.
16853
16854 2009-01-26  Eric Blake  <ebb9@byu.net>
16855
16856         Silence warning reintroduced by recent extensions patch.
16857         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16858         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16859         autoconf.
16860
16861         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16862         * m4/00gnulib.m4: New file.
16863         * gnulib-tool (func_get_filelist): Always use it.
16864         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16865         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16866
16867 2009-01-25  Bruno Haible  <bruno@clisp.org>
16868
16869         Make test-quotearg work on MacOS X and AIX.
16870         * tests/test-quotearg.sh: New file.
16871         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16872         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16873         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16874         include <libintl.h>.
16875         (fake_locale): Remove variable.
16876         (gettext, dgettext, dcgettext): Remove functions.
16877         (main): Instead of setting a fake locale, set a real locale. Call
16878         textdomain and bindtextdomain.
16879         * modules/quotearg-tests (Files): Add the new files.
16880         (Depends-on): Add gettext, setenv, unsetenv.
16881         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16882         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16883         Augment TESTS_ENVIRONMENT.
16884
16885 2009-01-25  Bruno Haible  <bruno@clisp.org>
16886
16887         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16888         fr_FR.ISO8859-1 locale on MacOS X.
16889         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16890         ja_JP.eucJP locale on MacOS X.
16891         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16892         zh_CN.GB18030 locale on MacOS X.
16893
16894 2009-01-25  Bruno Haible  <bruno@clisp.org>
16895
16896         Avoid link errors on MacOS X 10.3.
16897         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16898         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16899
16900 2009-01-25  Bruno Haible  <bruno@clisp.org>
16901
16902         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16903         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16904         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16905         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16906         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16907         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16908         posix_spawnattr_init, posix_spawnattr_setsigmask,
16909         posix_spawnattr_setflags, posix_spawnattr_destroy.
16910
16911         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16912         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16913         * modules/execute (Files): Remove m4/posix_spawn.m4.
16914         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16915         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16916         posix_spawnattr_init, posix_spawnattr_setsigmask,
16917         posix_spawnattr_setflags, posix_spawnattr_destroy.
16918
16919 2009-01-25  Bruno Haible  <bruno@clisp.org>
16920
16921         * lib/glthread/threadlib.c: Include <stdlib.h>.
16922
16923 2009-01-25  Bruno Haible  <bruno@clisp.org>
16924
16925         * lib/glthread/threadlib.c (dummy): New declaration.
16926
16927 2009-01-25  Bruno Haible  <bruno@clisp.org>
16928
16929         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16930         multibyte characters also for the GB18030 encoding. Don't crash when
16931         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16932
16933 2009-01-25  Bruno Haible  <bruno@clisp.org>
16934
16935         Avoid redefining 'struct random_data' on OSF/1 5.1.
16936         * lib/stdlib.in.h: Include <random.h> if it exists.
16937         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16938         HAVE_RANDOM_H. Include <random.h> when testing whether
16939         'struct random_data' exists.
16940         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16941
16942 2009-01-25  Bruno Haible  <bruno@clisp.org>
16943
16944         Don't install charset.alias on MacOS X >= 10.3.
16945         * lib/localcharset.c (DARWIN7): New macro.
16946         (get_charset_aliases): Hardcode the result for Darwin7.
16947         * modules/localcharset (install-exec-local): Don't install
16948         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16949
16950 2009-01-25  Bruno Haible  <bruno@clisp.org>
16951
16952         Don't install charset.alias on mingw and Cygwin.
16953         * modules/localcharset (install-exec-local): Don't install
16954         charset.alias on mingw and Cygwin, if the file does not yet exist.
16955         The result for these platforms is hardcoded in localcharset.c.
16956
16957 2009-01-25  Bruno Haible  <bruno@clisp.org>
16958
16959         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16960         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16961         before requiring AC_USE_SYSTEM_EXTENSIONS.
16962
16963 2009-01-25  Jim Meyering  <meyering@redhat.com>
16964
16965         c-strtod: avoid warnings
16966         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16967         "assignment discards qualifiers from pointer target type" warnings.
16968
16969 2009-01-24  Bruno Haible  <bruno@clisp.org>
16970
16971         Add support for non-UTF-8 locales on MacOS X.
16972         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16973         canonical encodings. For Darwin 7 and newer, don't map traditional
16974         encodings to UTF-8.
16975         Reported by Vincent Lefevre <vincent@vinc17.org>
16976         at <http://savannah.gnu.org/bugs/?25235>.
16977
16978 2009-01-24  Bruno Haible  <bruno@clisp.org>
16979
16980         * doc/gnulib.texi (Obsolete modules): New section.
16981         Reported by Mike Frysinger <vapier@gentoo.org>.
16982
16983 2009-01-24  Bruno Haible  <bruno@clisp.org>
16984
16985         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16986         (%.dvi): New rule.
16987
16988 2009-01-24  Bruno Haible  <bruno@clisp.org>
16989
16990         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16991         Reported by Eric Blake.
16992
16993 2009-01-24  Bruno Haible  <bruno@clisp.org>
16994
16995         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16996         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16997         Reported by Gary V. Vaughan <gary@gnu.org>.
16998
16999 2009-01-24  Bruno Haible  <bruno@clisp.org>
17000
17001         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17002
17003 2009-01-23  Bruno Haible  <bruno@clisp.org>
17004
17005         Make c-strtod, c-strtold usable in libraries.
17006         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17007         (C_STRTOD): Call strdup instead of xstrdup.
17008         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17009         * modules/c-strtold (Depends-on): Likewise.
17010         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17011         * NEWS: Mention the change.
17012         Reported by Michael Gold <mgold@ncf.ca>.
17013
17014 2009-01-23  Jim Meyering  <meyering@redhat.com>
17015
17016         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17017         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17018         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17019
17020 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17021
17022         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17023         GNU CoreUtils.
17024         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17025         * modules/version-etc (Description): Update.
17026
17027 2009-01-22  Bruno Haible  <bruno@clisp.org>
17028
17029         Cache the C locale object.
17030         * lib/c-strtod.c (c_locale_cache): New variable.
17031         (c_locale): New function.
17032         (C_STRTOD): Use it, and don't call freelocale.
17033         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17034         Suggested by Paolo Bonzini.
17035
17036 2009-01-21  Bruno Haible  <bruno@clisp.org>
17037
17038         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17039         conditions other than overflow.
17040
17041 2009-01-21  Bruno Haible  <bruno@clisp.org>
17042
17043         * lib/c-strtod.c: Include errno.h.
17044         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17045         value from STRTOD_L and STRTOD.
17046
17047 2009-01-21  Bruno Haible  <bruno@clisp.org>
17048         and Jim Meyering  <meyering@redhat.com>
17049
17050         nanosleep: skip configure test (fail it) for apple universal builds
17051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17052         universal builds, assume that nanosleep does not work.
17053         * modules/nanosleep (Depends-on): Add multiarch.
17054
17055         mktime: skip configure test (fail it) for apple universal builds
17056         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17057         universal builds, assume that mktime does not work.
17058         * modules/mktime (Depends-on): Add multiarch.
17059
17060 2009-01-21  Eric Blake  <ebb9@byu.net>
17061
17062         multiarch: avoid expand-before-require warning
17063         * modules/multiarch (configure.ac): Require, rather than expand,
17064         gl_MULTIARCH.
17065         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17066         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17067         enforce that all clients require it.  Partial reversion of
17068         2008-12-29 patch.
17069
17070         error: avoid expand-before-require warning
17071         * modules/errno (configure.ac): Require, rather than expand,
17072         gl_HEADER_ERRNO_H.
17073         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17074         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17075         enforce that all clients require it.
17076
17077         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17078         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17079         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17080         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17081
17082 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17083
17084         Revert:
17085         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17086
17087         regex: do not depend on obsolete modules.
17088         * modules/regex: Remove memcmp and memmove.
17089
17090 2009-01-20  Bruno Haible  <bruno@clisp.org>
17091
17092         Make the 'link' module link on Windows NT 4.
17093         * lib/link.c (_WIN32_WINNT): Don't define.
17094         (CreateHardLinkFuncType): New type.
17095         (CreateHardLinkFunc, initialized): New variables.
17096         (initialize): New function.
17097         (link): Invoke CreateHardLink indirectly through the function pointer.
17098
17099 2009-01-20  Bruno Haible  <bruno@clisp.org>
17100
17101         Fix compilation failure on mingw.
17102         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17103
17104 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17105
17106         * doc/c-strtod.texi: Mention a couple of restrictions.
17107
17108 2009-01-20  Jim Meyering  <meyering@redhat.com>
17109
17110         gettimeofday: move more declarations out of functions
17111         * lib/gettimeofday.c: Move extern declarations of tzset and
17112         gmtime out of containing functions.  Prompted by Bruno Haible.
17113
17114 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17115
17116         regex: do not depend on obsolete modules.
17117         * modules/regex: Remove memcmp and memmove.
17118
17119 2009-01-19  Bruno Haible  <bruno@clisp.org>
17120
17121         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17122         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17123         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17124         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17125         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17126
17127 2009-01-19  Bruno Haible  <bruno@clisp.org>
17128
17129         * tests/test-link.c: Include <errno.h>.
17130         (main): Exit with code 77 when a hard link cannot be created due to
17131         the file system.
17132         * tests/test-link.sh: Skip test when a hard link cannot be created due
17133         to the file system.
17134         Suggested by Eric Blake.
17135
17136 2009-01-19  Martin Lambers  <marlam@marlam.de>
17137
17138         * modules/link-tests: New file.
17139         * tests/test-link.sh: New file.
17140         * tests/test-link.c: New file.
17141
17142 2009-01-19  Eric Blake  <ebb9@byu.net>
17143
17144         doc: mention another function added in cygwin 1.7.0
17145         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17146         Another new function in cygwin 1.7.
17147
17148 2009-01-19  Bruno Haible  <bruno@clisp.org>
17149
17150         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17151         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17152         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17153         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17154         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17155         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17156         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17157         * m4/md4.m4 (gl_MD4): Likewise.
17158         * m4/md5.m4 (gl_MD5): Likewise.
17159         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17160         * m4/sha1.m4 (gl_SHA1): Likewise.
17161         * m4/sha256.m4 (gl_SHA256): Likewise.
17162         * m4/sha512.m4 (gl_SHA512): Likewise.
17163
17164 2009-01-19  Bruno Haible  <bruno@clisp.org>
17165
17166         * modules/uniname/uniname-tests (Depends-on): Add progname.
17167         * tests/uniname/test-uninames.c: Include progname.h.
17168         (main): Call set_program_name.
17169
17170         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17171         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17172         (main): Call set_program_name.
17173
17174         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17175         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17176         (main): Call set_program_name.
17177
17178         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17179         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17180         (main): Call set_program_name.
17181
17182         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17183         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17184         (main): Call set_program_name.
17185
17186         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17187         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17188         (main): Call set_program_name.
17189
17190         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17191         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17192         (main): Call set_program_name.
17193
17194         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17195         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17196         (main): Call set_program_name.
17197
17198         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17199         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17200         (main): Call set_program_name.
17201
17202 2009-01-19  Eric Blake  <ebb9@byu.net>
17203
17204         test-unistd: test previous patch
17205         * tests/test-unistd.c: Test *_FILENO macros.
17206
17207         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17208         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17209         Guarantee a definition.
17210         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17211         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17212         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17213         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17214         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17215         Likewise.
17216         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17217         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17218         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17219         Likewise.
17220         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17221         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17222         (STDERR_FILENO): Likewise.
17223         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17224         (STDERR_FILENO): Likewise.
17225         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17226         (STDERR_FILENO): Likewise.
17227         Reported by Elbert Pol.
17228
17229 2009-01-19  Eric Blake  <ebb9@byu.net>
17230
17231         doc: mention more functions added in cygwin 1.7.0
17232         * doc/posix-functions/abort.texi (abort): Update wording related
17233         to cygwin.
17234         * doc/posix-functions/daylight.texi (daylight): Likewise.
17235         * doc/posix-functions/optarg.texi (optarg): Likewise.
17236         * doc/posix-functions/optarg.texi (opterr): Likewise.
17237         * doc/posix-functions/optarg.texi (optind): Likewise.
17238         * doc/posix-functions/optarg.texi (optopt): Likewise.
17239         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17240         worked in 1.5.x, and was withdrawn in 1.7.
17241         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17242         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17243         cygwin versions.
17244         * doc/posix-functions/perror.texi (perror): Likewise.
17245         * doc/posix-functions/printf.texi (printf): Likewise.
17246         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17247         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17248         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17249         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17250         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17251         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17252         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17253         Likewise.
17254         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17255         Likewise.
17256         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17257         this function.
17258         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17259         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17260         Likewise.
17261         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17262         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17263         * doc/posix-functions/confstr.texi (confstr): Likewise.
17264         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17265         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17266         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17267         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17268         * doc/posix-functions/fputws.texi (fputws): Likewise.
17269         * doc/posix-functions/fwide.texi (fwide): Likewise.
17270         * doc/posix-functions/getwc.texi (getwc): Likewise.
17271         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17272         * doc/posix-functions/putwc.texi (putwc): Likewise.
17273         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17274         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17275         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17276         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17277         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17278         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17279         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17280         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17281         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17282         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17283         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17284
17285 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17286
17287         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17288         * lib/ioctl.c: Include <sys/ioctl.h>.
17289
17290 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17291
17292         * modules/getdate-tests (Depends-on): Add progname.
17293         * tests/test-getdate.c: Use progname module, to avoid link errors
17294         on non-glibc systems.
17295
17296 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17297
17298         * modules/filenamecat-tests (Depends-on): Add progname.
17299         * modules/fstrcmp-tests (Depends-on): Likewise.
17300
17301         * tests/test-filenamecat.c: Use progname module, to avoid link
17302         errors on non-glibc systems.
17303         * tests/test-fstrcmp.c: Likewise.
17304
17305 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17306
17307         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17308         * lib/gettimeofday.c: Move extern declaration out of function.
17309
17310 2009-01-18  Bruno Haible  <bruno@clisp.org>
17311
17312         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17313         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17314         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17315
17316 2009-01-18  Bruno Haible  <bruno@clisp.org>
17317
17318         * lib/strftime.c (MEMPCPY): Remove unused macro.
17319         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17320
17321 2009-01-18  Martin Lambers  <marlam@marlam.de>
17322
17323         New module 'link'.
17324         * lib/unistd.in.h (link): New declaration.
17325         * lib/link.c: New file.
17326         * m4/link.m4: New file.
17327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17328         HAVE_LINK.
17329         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17330         * modules/link: New file.
17331         * doc/posix-functions/link.texi: Mention the new module.
17332
17333 2009-01-18  Bruno Haible  <bruno@clisp.org>
17334
17335         * tests/test-avltree_list.c (main): Call set_program_name.
17336         * tests/test-avltree_oset.c (main): Likewise.
17337         * tests/test-obstack-printf.c: Include progname.h.
17338         (main): Call set_program_name.
17339         * tests/test-quotearg.c: Include progname.h.
17340         (main): Call set_program_name.
17341         * tests/test-xmemdup0.c: Include progname.h.
17342         (main): Call set_program_name.
17343
17344 2009-01-18  Bruno Haible  <bruno@clisp.org>
17345
17346         New module 'alphasort'.
17347         * lib/dirent.in.h (alphasort): New declaration.
17348         * lib/alphasort.c: New file, from glibc with modifications.
17349         * m4/alphasort.m4: New file.
17350         * modules/alphasort: New file.
17351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17352         HAVE_ALPHASORT.
17353         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17354         HAVE_ALPHASORT.
17355         * doc/posix-functions/alphasort.texi: Mention the new module and the
17356         portability problems.
17357
17358 2009-01-18  Bruno Haible  <bruno@clisp.org>
17359
17360         New module 'scandir'.
17361         * lib/dirent.in.h (scandir): New declaration.
17362         * lib/scandir.c: New file, from glibc with modifications.
17363         * m4/scandir.m4: New file.
17364         * modules/scandir: New file.
17365         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17366         HAVE_SCANDIR.
17367         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17368         HAVE_SCANDIR.
17369         * doc/posix-functions/scandir.texi: Mention the new module and the
17370         portability problems.
17371
17372 2009-01-17  Bruno Haible  <bruno@clisp.org>
17373
17374         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17375         Update documentation.
17376         (func_remove_suffix): Escape all dots in the suffix. Update
17377         documentation.
17378         (func_filter_filelist): Update documentation.
17379         Reported by Ralf Wildenhues.
17380
17381 2009-01-17  Bruno Haible  <bruno@clisp.org>
17382
17383         * modules/dprintf-posix-tests: New file.
17384         * tests/test-dprintf-posix.sh: New file.
17385         * tests/test-dprintf-posix.c: New file.
17386
17387         New modules 'dprintf', 'dprintf-posix'.
17388         * lib/stdio.in.h (dprintf): New declaration.
17389         * lib/dprintf.c: New file.
17390         * m4/dprintf.m4: New file.
17391         * m4/dprintf-posix.m4: New file.
17392         * modules/dprintf: New file.
17393         * modules/dprintf-posix: New file.
17394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17395         HAVE_DPRINTF, REPLACE_DPRINTF.
17396         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17397         HAVE_DPRINTF, REPLACE_DPRINTF.
17398         * doc/posix-functions/dprintf.texi: Mention the new modules.
17399
17400 2009-01-17  Bruno Haible  <bruno@clisp.org>
17401
17402         * modules/vdprintf-posix-tests: New file.
17403         * tests/test-vdprintf-posix.sh: New file.
17404         * tests/test-vdprintf-posix.c: New file.
17405
17406         New modules 'vdprintf', 'vdprintf-posix'.
17407         * lib/stdio.in.h (vdprintf): New declaration.
17408         * lib/vdprintf.c: New file.
17409         * m4/vdprintf.m4: New file.
17410         * m4/vdprintf-posix.m4: New file.
17411         * modules/vdprintf: New file.
17412         * modules/vdprintf-posix: New file.
17413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17414         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17415         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17416         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17417         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17418
17419 2009-01-17  Bruno Haible  <bruno@clisp.org>
17420
17421         Fix replacement of fopen on mingw.
17422         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17423         mingw.
17424
17425 2009-01-17  Bruno Haible  <bruno@clisp.org>
17426
17427         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17428         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17429
17430 2009-01-17  Bruno Haible  <bruno@clisp.org>
17431
17432         Avoid test-fflush2.sh failure on mingw.
17433         * tests/test-fflush2.c: Include binary-io.h.
17434         (main): Put standard input into binary mode.
17435         * modules/fflush-tests (Depends-on): Add binary-io.
17436
17437 2009-01-17  Bruno Haible  <bruno@clisp.org>
17438
17439         * lib/wchar.in.h: In another particular situation, include only the
17440         system's <wchar.h> file.
17441         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17442         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17443         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17444
17445 2009-01-17  Bruno Haible  <bruno@clisp.org>
17446
17447         Support for stripping executables in --enable-relocatable.
17448         * build-aux/install-reloc: Expect one more argument, or an environment
17449         variable RELOC_STRIP_PROG. If set, strip the destination program and
17450         its wrapper.
17451         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17452         RELOC_STRIP_PROG.
17453         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17454         to set RELOCATABLE_STRIP.
17455         * NEWS: Mention the new Makefile requirement.
17456
17457 2009-01-17  Bruno Haible  <bruno@clisp.org>
17458
17459         * build-aux/install-reloc: Remove debugging information left over by
17460         C compiler on MacOS X.
17461
17462 2009-01-17  Bruno Haible  <bruno@clisp.org>
17463
17464         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17465         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17466         _NSGetExecutablePath.
17467
17468 2009-01-16  Jim Meyering  <meyering@redhat.com>
17469
17470         strerror: avoid warnings about discarding "const"
17471         * lib/strerror.c (rpl_strerror): Instead of returning a const
17472         string from each and every "case", use a variable, and add a single
17473         cast after the switch.
17474
17475 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17476
17477         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17478
17479 2009-01-16  Bruno Haible  <bruno@clisp.org>
17480
17481         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17482         array initializer syntax that also works in C++ mode.
17483         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17484
17485 2009-01-16  Jim Meyering  <meyering@redhat.com>
17486
17487         poll: suppress a warning
17488         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17489         to ignore "...unsigned expression < 0 is always false" warnings.
17490
17491 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17492
17493         poll: remove declarations of unused variables
17494         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17495         sockbuf and optlen.
17496
17497 2009-01-15  Bruno Haible  <bruno@clisp.org>
17498
17499         Make fflush-after-ungetc POSIX compliant on BSD systems.
17500         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17501         (clear_ungetc_buffer): Implement also for other systems.
17502         (rpl_fflush): On glibc systems, invoke
17503         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17504         clear_ungetc_buffer after fetching the stream's position, not before.
17505
17506 2009-01-15  Bruno Haible  <bruno@clisp.org>
17507
17508         Make fflush-after-ungetc POSIX compliant on glibc systems.
17509         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17510         after ungetc.
17511         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17512         (rpl_fflush): On glibc systems, simply call the system's fflush
17513         function after clearing the ungetc buffer.
17514         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17515         Instead, lseek only to the end of file, then use the system's fseeko
17516         for the rest. On glibc systems, reset the EOF indicator bit.
17517
17518 2009-01-15  Jim Meyering  <meyering@redhat.com>
17519
17520         openmp.m4: revert quote-adding change, for portability to older autoconf
17521         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17522         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17523         Simon Josefsson noticed the problem when using autoconf-2.61.
17524
17525 2009-01-15  Bruno Haible  <bruno@clisp.org>
17526
17527         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17528         * tests/test-fflush2.c (ASSERT): Always fail.
17529         (main): Add two tests for fflush() after ungetc(), taking into account
17530         the Austin Group's clarification.
17531         Suggested by Eric Blake.
17532
17533 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17534
17535         mktime.m4: remove K&R-style function prototypes
17536         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17537         for the Sun C++ compiler.
17538
17539 2009-01-14  Bruno Haible  <bruno@clisp.org>
17540
17541         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17542         while including <wchar.h>.
17543         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17544         the system's <wchar.h> file.
17545         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17546
17547 2009-01-14  Bruno Haible  <bruno@clisp.org>
17548
17549         * m4/csharp.m4: Don't mention gettext on the serial number line.
17550         * m4/csharpexec.m4: Likewise.
17551         * m4/eaccess.m4: Likewise.
17552         * m4/javaexec.m4: Likewise.
17553         * m4/sig_atomic_t.m4: Likewise.
17554         * m4/tmpdir.m4: Likewise.
17555         * m4/intldir.m4: Bump gettext version.
17556         * m4/lib-ld.m4: Likewise.
17557
17558 2009-01-14  Bruno Haible  <bruno@clisp.org>
17559
17560         * lib/progname.c (set_program_name): Add more comments.
17561         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17562
17563 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17564
17565         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17566         were sys/stat.h does not define it.
17567
17568 2009-01-14  Jim Meyering  <meyering@redhat.com>
17569
17570         many *.m4 files: improve m4 quoting
17571         99% of this change was performed by running the following commands:
17572         git ls-files | grep '\.m4$' | xargs perl -pi \
17573           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17574           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17575           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17576           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17577         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17578         The remainder were to add Copyright dates, increment serial numbers,
17579         undo some changes in comments, exclude m4/intl.m4, and add quotes
17580         around the "1" in ",1" where the unusual spacing prohibited the
17581         above regexps from doing the job.  For more details, see
17582         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17583         * m4/acl.m4: Modified.
17584         * m4/afs.m4: Likewise.
17585         * m4/alloca.m4: Likewise.
17586         * m4/argp.m4: Likewise.
17587         * m4/argz.m4: Likewise.
17588         * m4/atexit.m4: Likewise.
17589         * m4/bison-i18n.m4: Likewise.
17590         * m4/bison.m4: Likewise.
17591         * m4/byteswap.m4: Likewise.
17592         * m4/c-stack.m4: Likewise.
17593         * m4/c-strtod.m4: Likewise.
17594         * m4/calloc.m4: Likewise.
17595         * m4/canonicalize-lgpl.m4: Likewise.
17596         * m4/chown.m4: Likewise.
17597         * m4/clock_time.m4: Likewise.
17598         * m4/codeset.m4: Likewise.
17599         * m4/copy-file.m4: Likewise.
17600         * m4/csharp.m4: Likewise.
17601         * m4/csharpcomp.m4: Likewise.
17602         * m4/csharpexec.m4: Likewise.
17603         * m4/d-ino.m4: Likewise.
17604         * m4/d-type.m4: Likewise.
17605         * m4/dirfd.m4: Likewise.
17606         * m4/double-slash-root.m4: Likewise.
17607         * m4/eaccess.m4: Likewise.
17608         * m4/eealloc.m4: Likewise.
17609         * m4/environ.m4: Likewise.
17610         * m4/errno_h.m4: Likewise.
17611         * m4/euidaccess.m4: Likewise.
17612         * m4/execute.m4: Likewise.
17613         * m4/fatal-signal.m4: Likewise.
17614         * m4/fchdir.m4: Likewise.
17615         * m4/fcntl_h.m4: Likewise.
17616         * m4/fileblocks.m4: Likewise.
17617         * m4/filenamecat.m4: Likewise.
17618         * m4/findprog.m4: Likewise.
17619         * m4/flexmember.m4: Likewise.
17620         * m4/fnmatch.m4: Likewise.
17621         * m4/fopen.m4: Likewise.
17622         * m4/fpending.m4: Likewise.
17623         * m4/fprintf-posix.m4: Likewise.
17624         * m4/free.m4: Likewise.
17625         * m4/frexp.m4: Likewise.
17626         * m4/frexpl.m4: Likewise.
17627         * m4/fsusage.m4: Likewise.
17628         * m4/ftruncate.m4: Likewise.
17629         * m4/gc-camellia.m4: Likewise.
17630         * m4/gc-random.m4: Likewise.
17631         * m4/gc.m4: Likewise.
17632         * m4/getaddrinfo.m4: Likewise.
17633         * m4/getcwd-abort-bug.m4: Likewise.
17634         * m4/getcwd-path-max.m4: Likewise.
17635         * m4/getdate.m4: Likewise.
17636         * m4/getdomainname.m4: Likewise.
17637         * m4/getgroups.m4: Likewise.
17638         * m4/gethostname.m4: Likewise.
17639         * m4/gethrxtime.m4: Likewise.
17640         * m4/getline.m4: Likewise.
17641         * m4/getloadavg.m4: Likewise.
17642         * m4/getndelim2.m4: Likewise.
17643         * m4/getpass.m4: Likewise.
17644         * m4/gettext.m4: Likewise.
17645         * m4/gettime.m4: Likewise.
17646         * m4/gettimeofday.m4: Likewise.
17647         * m4/gnulib-common.m4: Likewise.
17648         * m4/group-member.m4: Likewise.
17649         * m4/host-os.m4: Likewise.
17650         * m4/iconv.m4: Likewise.
17651         * m4/iconv_open.m4: Likewise.
17652         * m4/inet_ntop.m4: Likewise.
17653         * m4/inet_pton.m4: Likewise.
17654         * m4/inline.m4: Likewise.
17655         * m4/intldir.m4: Likewise.
17656         * m4/intlmacosx.m4: Likewise.
17657         * m4/intmax.m4: Likewise.
17658         * m4/intmax_t.m4: Likewise.
17659         * m4/inttypes.m4: Likewise.
17660         * m4/inttypes_h.m4: Likewise.
17661         * m4/inttypes-pri.m4: Likewise.
17662         * m4/isapipe.m4: Likewise.
17663         * m4/isnand.m4: Likewise.
17664         * m4/isnanf.m4: Likewise.
17665         * m4/isnanl.m4: Likewise.
17666         * m4/javacomp.m4: Likewise.
17667         * m4/javaexec.m4: Likewise.
17668         * m4/jm-winsz1.m4: Likewise.
17669         * m4/jm-winsz2.m4: Likewise.
17670         * m4/lchown.m4: Likewise.
17671         * m4/lcmessage.m4: Likewise.
17672         * m4/ldexpl.m4: Likewise.
17673         * m4/lib-ld.m4: Likewise.
17674         * m4/lib-link.m4: Likewise.
17675         * m4/libsigsegv.m4: Likewise.
17676         * m4/link-follow.m4: Likewise.
17677         * m4/localcharset.m4: Likewise.
17678         * m4/locale-fr.m4: Likewise.
17679         * m4/locale-ja.m4: Likewise.
17680         * m4/locale-tr.m4: Likewise.
17681         * m4/locale-zh.m4: Likewise.
17682         * m4/lock.m4: Likewise.
17683         * m4/longlong.m4: Likewise.
17684         * m4/ls-mntd-fs.m4: Likewise.
17685         * m4/lstat.m4: Likewise.
17686         * m4/malloc.m4: Likewise.
17687         * m4/mathl.m4: Likewise.
17688         * m4/mbrtowc.m4: Likewise.
17689         * m4/mbstate_t.m4: Likewise.
17690         * m4/mbswidth.m4: Likewise.
17691         * m4/memchr.m4: Likewise.
17692         * m4/memcmp.m4: Likewise.
17693         * m4/memcpy.m4: Likewise.
17694         * m4/memmem.m4: Likewise.
17695         * m4/memmove.m4: Likewise.
17696         * m4/mempcpy.m4: Likewise.
17697         * m4/memrchr.m4: Likewise.
17698         * m4/memset.m4: Likewise.
17699         * m4/minmax.m4: Likewise.
17700         * m4/mkdir-slash.m4: Likewise.
17701         * m4/mkdtemp.m4: Likewise.
17702         * m4/mktime.m4: Likewise.
17703         * m4/mmap-anon.m4: Likewise.
17704         * m4/mountlist.m4: Likewise.
17705         * m4/nanosleep.m4: Likewise.
17706         * m4/nls.m4: Likewise.
17707         * m4/nocrash.m4: Likewise.
17708         * m4/open.m4: Likewise.
17709         * m4/openat.m4: Likewise.
17710         * m4/openmp.m4: Likewise.
17711         * m4/pathmax.m4: Likewise.
17712         * m4/perl.m4: Likewise.
17713         * m4/physmem.m4: Likewise.
17714         * m4/pipe.m4: Likewise.
17715         * m4/po.m4: Likewise.
17716         * m4/poll.m4: Likewise.
17717         * m4/posixtm.m4: Likewise.
17718         * m4/posixver.m4: Likewise.
17719         * m4/printf-frexp.m4: Likewise.
17720         * m4/printf-frexpl.m4: Likewise.
17721         * m4/printf-posix.m4: Likewise.
17722         * m4/printf-posix-rpl.m4: Likewise.
17723         * m4/printf.m4: Likewise.
17724         * m4/progtest.m4: Likewise.
17725         * m4/putenv.m4: Likewise.
17726         * m4/readline.m4: Likewise.
17727         * m4/readlink.m4: Likewise.
17728         * m4/readutmp.m4: Likewise.
17729         * m4/realloc.m4: Likewise.
17730         * m4/regex.m4: Likewise.
17731         * m4/relocatable.m4: Likewise.
17732         * m4/relocatable-lib.m4: Likewise.
17733         * m4/rename-dest-slash.m4: Likewise.
17734         * m4/rename.m4: Likewise.
17735         * m4/rmdir-errno.m4: Likewise.
17736         * m4/rmdir.m4: Likewise.
17737         * m4/roundf.m4: Likewise.
17738         * m4/roundl.m4: Likewise.
17739         * m4/rpmatch.m4: Likewise.
17740         * m4/save-cwd.m4: Likewise.
17741         * m4/selinux-selinux-h.m4: Likewise.
17742         * m4/setenv.m4: Likewise.
17743         * m4/settime.m4: Likewise.
17744         * m4/sig2str.m4: Likewise.
17745         * m4/sig_atomic_t.m4: Likewise.
17746         * m4/signalblocking.m4: Likewise.
17747         * m4/signbit.m4: Likewise.
17748         * m4/sigpipe.m4: Likewise.
17749         * m4/sockets.m4: Likewise.
17750         * m4/sockpfaf.m4: Likewise.
17751         * m4/st_dm_mode.m4: Likewise.
17752         * m4/stat-time.m4: Likewise.
17753         * m4/stdbool.m4: Likewise.
17754         * m4/stdint.m4: Likewise.
17755         * m4/stdint_h.m4: Likewise.
17756         * m4/stpcpy.m4: Likewise.
17757         * m4/stpncpy.m4: Likewise.
17758         * m4/strcase.m4: Likewise.
17759         * m4/strchrnul.m4: Likewise.
17760         * m4/strcspn.m4: Likewise.
17761         * m4/strdup.m4: Likewise.
17762         * m4/strftime.m4: Likewise.
17763         * m4/strndup.m4: Likewise.
17764         * m4/strnlen.m4: Likewise.
17765         * m4/strpbrk.m4: Likewise.
17766         * m4/strptime.m4: Likewise.
17767         * m4/strsep.m4: Likewise.
17768         * m4/strtod.m4: Likewise.
17769         * m4/strtoimax.m4: Likewise.
17770         * m4/strtok_r.m4: Likewise.
17771         * m4/strtol.m4: Likewise.
17772         * m4/strtoll.m4: Likewise.
17773         * m4/strtoul.m4: Likewise.
17774         * m4/strtoull.m4: Likewise.
17775         * m4/strtoumax.m4: Likewise.
17776         * m4/strverscmp.m4: Likewise.
17777         * m4/threadlib.m4: Likewise.
17778         * m4/timegm.m4: Likewise.
17779         * m4/tm_gmtoff.m4: Likewise.
17780         * m4/tmpdir.m4: Likewise.
17781         * m4/tmpfile.m4: Likewise.
17782         * m4/tzset.m4: Likewise.
17783         * m4/uintmax_t.m4: Likewise.
17784         * m4/unlinkdir.m4: Likewise.
17785         * m4/unlocked-io.m4: Likewise.
17786         * m4/uptime.m4: Likewise.
17787         * m4/userspec.m4: Likewise.
17788         * m4/utimbuf.m4: Likewise.
17789         * m4/utime.m4: Likewise.
17790         * m4/utimes-null.m4: Likewise.
17791         * m4/utimes.m4: Likewise.
17792         * m4/vararrays.m4: Likewise.
17793         * m4/vasnprintf.m4: Likewise.
17794         * m4/vfprintf-posix.m4: Likewise.
17795         * m4/vprintf-posix.m4: Likewise.
17796         * m4/wait-process.m4: Likewise.
17797         * m4/wchar_t.m4: Likewise.
17798         * m4/wint_t.m4: Likewise.
17799         * m4/write-any-file.m4: Likewise.
17800         * m4/yield.m4: Likewise.
17801
17802 2009-01-13  Bruno Haible  <bruno@clisp.org>
17803
17804         Avoid test-copy-file.sh failures when ACL support insufficient.
17805         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17806         TESTS_ENVIRONMENT.
17807         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17808         Reported by Jim Meyering.
17809
17810 2009-01-13  Bruno Haible  <bruno@clisp.org>
17811
17812         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17813         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17814         * modules/unistdio/u8-printf-parse (Files): Likewise.
17815         * modules/unistdio/u32-printf-parse (Files): Likewise.
17816         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17817
17818 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17819
17820         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17821         and m4/inttypes_h.m4 too.
17822
17823 2009-01-12  Eric Blake  <ebb9@byu.net>
17824
17825         tests: IRIX 6.2 cc can't compile -0.0 into .data
17826         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17827         rather than at compile-time.
17828         * tests/test-floorl.c (minus_zero): Likewise.
17829         * tests/test-frexpl.c (minus_zero): Likewise.
17830         * tests/test-isnan.c (minus_zerol): Likewise.
17831         * tests/test-isnanl.h (minus_zero): Likewise.
17832         * tests/test-ldexpl.c (minus_zero): Likewise.
17833         * tests/test-roundl.c (minus_zero): Likewise.
17834         * tests/test-signbit.c (minus_zerol): Likewise.
17835         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17836         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17837         * tests/test-truncl.c (minus_zero): Likewise.
17838         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17839         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17840         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17841
17842 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17843
17844         regex: fix glibc bug 9697
17845         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17846         handling.
17847
17848 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17849
17850         regex: fix glibc bug 697
17851         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17852         being NULL also if there are no backreferences.
17853
17854 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17855
17856         regex: merge glibc changes
17857         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17858         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17859         re_string_skip_chars, re_string_reconstruct): Likewise.
17860         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17861
17862 2009-01-07  Jim Meyering  <meyering@redhat.com>
17863
17864         poll: filter through cppi
17865         * lib/poll.c: Indent cpp directives to reflect nesting.
17866
17867 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17868
17869         poll: don't return uninitialized
17870         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17871
17872 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17873
17874         avoid compile failure on AIX 6.1
17875         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17876         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17877
17878 2009-01-04  Jim Meyering  <meyering@redhat.com>
17879
17880         remove duplicate inclusion of <stdio.h>
17881         * tests/test-fprintf-posix.c: Likewise.
17882         * tests/test-printf-posix.c: Likewise.
17883         * tests/test-snprintf-posix.c: Likewise.
17884         * tests/test-sprintf-posix.c: Likewise.
17885         * tests/test-vasprintf-posix.c: Likewise.
17886         * tests/test-vfprintf-posix.c: Likewise.
17887         * tests/test-vprintf-posix.c: Likewise.
17888         * tests/test-vsnprintf-posix.c: Likewise.
17889         * tests/test-vsprintf-posix.c: Likewise.
17890
17891 2009-01-03  Jim Meyering  <meyering@redhat.com>
17892
17893         gnulib-tool: fix sed-based filtering
17894         * gnulib-tool (func_filter_filelist): Remove extra backslash
17895         in sed_fff_filter definition.
17896
17897 2009-01-02  Jim Meyering  <meyering@redhat.com>
17898
17899         strftime: avoid compilation failure on Solaris 2.6
17900         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17901         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17902         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17903         be available.  Reported by Tom G. Christensen.  Details in
17904         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17905
17906 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17907             Bruno Haible  <bruno@clisp.org>
17908
17909         Speed up gnulib-tool by doing more string processing through shell
17910         built-ins.
17911         * gnulib-tool (fast_func_append): New variable.
17912         (func_remove_prefix, func_remove_suffix): New functions.
17913         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17914         (func_filter_filelist): New function.
17915         (func_get_dependencies): Use func_remove_suffix instead of sed.
17916         (func_get_automake_snippet): Use func_filter_filelist instead of a
17917         subshell and sed invocation.
17918
17919 2009-01-01  Bruno Haible  <bruno@clisp.org>
17920
17921         Fix a security bug.
17922         * gnulib-tool (func_import, import, update): Don't allow the characters
17923         '"', '$', '`', '\' in macro arguments that become part of commands that
17924         are evaluated.
17925
17926 2009-01-01  Bruno Haible  <bruno@clisp.org>
17927
17928         * gnulib-tool (func_reset_sigpipe): Add more comments.
17929
17930 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17931
17932         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17933         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17934         already know the answer.
17935
17936 2009-01-01  Jim Meyering  <meyering@redhat.com>
17937
17938         * lib/version-etc.c (version_etc_va): Update copyright year.
17939
17940 2008-12-30  Bruno Haible  <bruno@clisp.org>
17941
17942         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17943         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17944         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17945
17946 2008-12-29  Eric Blake  <ebb9@byu.net>
17947
17948         multiarch: avoid autoconf AC_REQUIRE bug
17949         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17950         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17951         2.63 and older.
17952         Reported by Bruno Haible, and analyzed in
17953         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17954
17955 2008-12-29  Bruno Haible  <bruno@clisp.org>
17956
17957         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17958         files in subdirectories correctly.
17959         Reported by Ralf Wildenhues.
17960
17961 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17962
17963         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17964         rather than 'join FILE -', for Solaris join.
17965
17966 2008-12-29  Bruno Haible  <bruno@clisp.org>
17967
17968         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17969         quoting.
17970         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17971         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17972         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17973         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17974         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17975         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17976         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17977         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17978         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17979         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17980         * m4/nls.m4 (AM_NLS): Likewise.
17981         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17982         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17983         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17984         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17985         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17986         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17987         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17988         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17989         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17990         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17991         * m4/xsize.m4 (gl_XSIZE): Likewise.
17992         Suggested by Jim Meyering.
17993
17994 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17995
17996         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17997         * lib/parse-duration.c: use a switch instead of cascading if's.
17998
17999 2008-12-29  Eric Blake  <ebb9@byu.net>
18000
18001         wchar.h: supply WEOF on Irix 5.3
18002         * lib/wchar.in.h (wint_t): Also supply WEOF.
18003         * lib/wctype.in.h (wint_t): Likewise.
18004         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18005         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18006         Reported by Tom G. Christensen.
18007
18008 2008-12-26  Bruno Haible  <bruno@clisp.org>
18009
18010         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18011         i486, i586, i686.
18012
18013 2008-12-26  Bruno Haible  <bruno@clisp.org>
18014
18015         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18016
18017 2008-12-26  Bruno Haible  <bruno@clisp.org>
18018
18019         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18020         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18021         not __STDC_CONSTANT_MACROS.
18022         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18023
18024 2008-12-25  Bruno Haible  <bruno@clisp.org>
18025
18026         Add support for universal builds to vasnprintf.
18027         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18028         universal builds, guess no.
18029         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18030         * modules/vasprintf-posix (Depends-on): Likewise.
18031         * modules/fprintf-posix (Depends-on): Likewise.
18032         * modules/vfprintf-posix (Depends-on): Likewise.
18033         * modules/snprintf-posix (Depends-on): Likewise.
18034         * modules/vsnprintf-posix (Depends-on): Likewise.
18035         * modules/sprintf-posix (Depends-on): Likewise.
18036         * modules/vsprintf-posix (Depends-on): Likewise.
18037         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18038         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18039         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18040         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18041         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18042         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18043         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18044
18045         Add support for universal builds to <inttypes.h>.
18046         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18047         _SCNu64_PREFIX): In Apple
18048         universal builds, define directly, using _LP64.
18049         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18050         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18051         * modules/inttypes (Depends-on): Add multiarch.
18052         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18053
18054         Add support for universal builds to <stdint.h>.
18055         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18056         universal builds, define directly, using _LP64.
18057         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18058         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18059         and size_t.
18060         * modules/stdint (Depends-on): Add multiarch.
18061         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18062
18063         New module 'multiarch'.
18064         * modules/multiarch: New file.
18065         * m4/multiarch.m4: New file.
18066
18067 2008-12-25  Bruno Haible  <bruno@clisp.org>
18068
18069         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18070
18071 2008-12-25  Bruno Haible  <bruno@clisp.org>
18072
18073         * modules/btowc (License): Relicense under LGPLv2+.
18074         * modules/mbsinit (License): Likewise.
18075         * modules/mbrtowc (License): Likewise.
18076         * modules/wcrtomb (License): Likewise.
18077         * modules/streq (License): Likewise.
18078         Reported by David Lutterkort <lutter@redhat.com>.
18079
18080 2008-12-23  Bruno Haible  <bruno@clisp.org>
18081
18082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18083
18084 2008-12-23  Bruno Haible  <bruno@clisp.org>
18085
18086         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18087         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18088         GETADDRINFO_LIB, not in LIBS.
18089         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18090         * modules/canon-host (Link): Likewise.
18091         * NEWS: Mention the change.
18092         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18093         GETADDRINFO_LIB.
18094
18095 2008-12-22  Bruno Haible  <bruno@clisp.org>
18096
18097         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18098         * doc/posix-functions/iswalpha_l.texi: Likewise.
18099         * doc/posix-functions/iswblank_l.texi: Likewise.
18100         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18101         * doc/posix-functions/iswctype_l.texi: Likewise.
18102         * doc/posix-functions/iswdigit_l.texi: Likewise.
18103         * doc/posix-functions/iswgraph_l.texi: Likewise.
18104         * doc/posix-functions/iswlower_l.texi: Likewise.
18105         * doc/posix-functions/iswprint_l.texi: Likewise.
18106         * doc/posix-functions/iswpunct_l.texi: Likewise.
18107         * doc/posix-functions/iswspace_l.texi: Likewise.
18108         * doc/posix-functions/iswupper_l.texi: Likewise.
18109         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18110         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18111         * doc/posix-functions/open_wmemstream.texi: Likewise.
18112         * doc/posix-functions/swscanf.texi: Likewise.
18113         * doc/posix-functions/towctrans_l.texi: Likewise.
18114         * doc/posix-functions/towlower.texi: Likewise.
18115         * doc/posix-functions/towlower_l.texi: Likewise.
18116         * doc/posix-functions/towupper.texi: Likewise.
18117         * doc/posix-functions/towupper_l.texi: Likewise.
18118         * doc/posix-functions/vfwprintf.texi: Likewise.
18119         * doc/posix-functions/vfwscanf.texi: Likewise.
18120         * doc/posix-functions/vswscanf.texi: Likewise.
18121         * doc/posix-functions/vwprintf.texi: Likewise.
18122         * doc/posix-functions/vwscanf.texi: Likewise.
18123         * doc/posix-functions/wcpcpy.texi: Likewise.
18124         * doc/posix-functions/wcpncpy.texi: Likewise.
18125         * doc/posix-functions/wcscasecmp.texi: Likewise.
18126         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18127         * doc/posix-functions/wcscoll_l.texi: Likewise.
18128         * doc/posix-functions/wcsdup.texi: Likewise.
18129         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18130         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18131         * doc/posix-functions/wcsnlen.texi: Likewise.
18132         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18133         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18134         * doc/posix-functions/wctrans_l.texi: Likewise.
18135         * doc/posix-functions/wctype_l.texi: Likewise.
18136         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18137         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18138         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18139         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18140         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18141         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18142         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18143         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18144         * doc/glibc-functions/wcschrnul.texi: Likewise.
18145         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18146         * doc/glibc-functions/wcstod_l.texi: Likewise.
18147         * doc/glibc-functions/wcstof_l.texi: Likewise.
18148         * doc/glibc-functions/wcstol_l.texi: Likewise.
18149         * doc/glibc-functions/wcstold_l.texi: Likewise.
18150         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18151         * doc/glibc-functions/wcstoq.texi: Likewise.
18152         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18153         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18154         * doc/glibc-functions/wcstouq.texi: Likewise.
18155         * doc/glibc-functions/wmempcpy.texi: Likewise.
18156
18157 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18158             Eric Blake  <ebb9@byu.net>
18159             Paolo Bonzini  <bonzini@gnu.org>
18160             Bruno Haible  <bruno@clisp.org>
18161
18162         Make c-stack work on Haiku.
18163         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18164         (c_stack_action): Use SA_ONSTACK flag.
18165
18166 2008-12-22  Bruno Haible  <bruno@clisp.org>
18167
18168         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18169
18170 2008-12-22  Bruno Haible  <bruno@clisp.org>
18171
18172         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18173         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18174         being overridden.
18175         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18176         New macros.
18177         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18179         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18180         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18181
18182 2008-12-22  Bruno Haible  <bruno@clisp.org>
18183
18184         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18185         from test code.
18186
18187 2008-12-22  Eric Blake  <ebb9@byu.net>
18188
18189         Avoid gcc warnings on cygwin.
18190         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18191         Avoid unused variable.
18192         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18193         Likewise.
18194
18195 2008-12-22  Bruno Haible  <bruno@clisp.org>
18196
18197         Remove HAVE_MBRTOWC conditionals.
18198         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18199         (mbscasecmp): Assume mbrtowc function.
18200         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18201         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18202         * lib/mbschr.c: Include mbuiter.h unconditionally.
18203         (mbschr): Assume mbrtowc function.
18204         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18205         (mbscspn): Assume mbrtowc function.
18206         * lib/mbslen.c: Include mbuiter.h unconditionally.
18207         (mbslen): Assume mbrtowc function.
18208         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18209         (mbsncasecmp): Assume mbrtowc function.
18210         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18211         (mbsnlen): Assume mbrtowc function.
18212         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18213         (mbspbrk): Assume mbrtowc function.
18214         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18215         (mbspcasecmp): Assume mbrtowc function.
18216         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18217         (mbsrchr): Assume mbrtowc function.
18218         * lib/mbssep.c: Include mbuiter.h unconditionally.
18219         (mbssep): Assume mbrtowc function.
18220         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18221         (mbsspn): Assume mbrtowc function.
18222         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18223         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18224         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18225         (mbstok_r): Assume mbrtowc function.
18226         * lib/propername.c: Include mbuiter.h unconditionally.
18227         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18228         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18229         (trim2): Assume mbrtowc function.
18230         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18231         (mbsnwidth): Assume mbrtowc function.
18232         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18233         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18234         fallback definitions.
18235         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18236
18237 2008-12-22  Bruno Haible  <bruno@clisp.org>
18238
18239         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18240
18241 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18242
18243         * modules/regex: Request emulations for the mb*/wc* functions we need.
18244         * m4/regex.m4: Don't look for those functions here.
18245         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18246
18247 2008-12-22  Bruno Haible  <bruno@clisp.org>
18248
18249         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18250
18251 2008-12-21  Bruno Haible  <bruno@clisp.org>
18252
18253         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18254         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18255         (Include): Remove conditionalization.
18256         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18257         (Include): Remove conditionalization.
18258         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18259         (Include): Remove conditionalization.
18260         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18261         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18262         * NEWS: Mention the change.
18263         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18264         via Sergey Poznyakoff <gray@gnu.org.ua>.
18265
18266 2008-12-21  Bruno Haible  <bruno@clisp.org>
18267
18268         * MODULES.html.sh (Extended multibyte and wide character utilities
18269         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18270         wcrtomb, wcsrtombs.
18271         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18272         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18273         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18274         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18275
18276 2008-12-21  Bruno Haible  <bruno@clisp.org>
18277
18278         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18279
18280 2008-12-21  Bruno Haible  <bruno@clisp.org>
18281
18282         * modules/wcsnrtombs-tests: New file.
18283         * tests/test-wcsnrtombs1.sh: New file.
18284         * tests/test-wcsnrtombs2.sh: New file.
18285         * tests/test-wcsnrtombs3.sh: New file.
18286         * tests/test-wcsnrtombs4.sh: New file.
18287         * tests/test-wcsnrtombs.c: New file.
18288
18289         New module 'wcsnrtombs'.
18290         * lib/wchar.in.h (wcsnrtombs): New declaration.
18291         * lib/wcsnrtombs.c: New file.
18292         * lib/wcsrtombs-state.c: New file.
18293         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18294         (internal_state): Remove variable.
18295         * m4/wcsnrtombs.m4: New file.
18296         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18297         compilation units.
18298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18299         HAVE_WCSNRTOMBS.
18300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18301         HAVE_WCSNRTOMBS.
18302         * modules/wcsnrtombs: New file.
18303         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18304         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18305
18306 2008-12-21  Bruno Haible  <bruno@clisp.org>
18307
18308         * modules/wcsrtombs-tests: New file.
18309         * tests/test-wcsrtombs1.sh: New file.
18310         * tests/test-wcsrtombs2.sh: New file.
18311         * tests/test-wcsrtombs3.sh: New file.
18312         * tests/test-wcsrtombs4.sh: New file.
18313         * tests/test-wcsrtombs.c: New file.
18314
18315         New module 'wcsrtombs'.
18316         * lib/wchar.in.h (wcsrtombs): New declaration.
18317         * lib/wcsrtombs.c: New file.
18318         * m4/wcsrtombs.m4: New file.
18319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18320         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18322         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18323         * modules/wcsrtombs: New file.
18324         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18325         bugs.
18326
18327 2008-12-21  Bruno Haible  <bruno@clisp.org>
18328
18329         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18330         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18331         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18332         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18333         if not correct.
18334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18335         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18336         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18337         m4/locale-zh.m4, m4/codeset.m4.
18338         * doc/posix-functions/wcrtomb.texi: Document the bug.
18339
18340 2008-12-21  Bruno Haible  <bruno@clisp.org>
18341
18342         Work around a btowc() bug on IRIX 6.5.
18343         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18344         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18345         REPLACE_WTOBC if not.
18346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18347         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18348         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18349
18350 2008-12-21  Bruno Haible  <bruno@clisp.org>
18351
18352         * modules/wcrtomb-tests: New file.
18353         * tests/test-wcrtomb.sh: New file.
18354         * tests/test-wcrtomb.c: New file.
18355
18356         New module 'wcrtomb'.
18357         * lib/wchar.in.h (wcrtomb): New declaration.
18358         * lib/wcrtomb.c: New file.
18359         * m4/wcrtomb.m4: New file.
18360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18361         HAVE_WCRTOMB.
18362         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18363         HAVE_WCRTOMB.
18364         * modules/wcrtomb: New file.
18365         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18366
18367 2008-12-21  Bruno Haible  <bruno@clisp.org>
18368
18369         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18370         * modules/mbsrtowcs (Files): Likewise.
18371         * modules/wctob (Files): Likewise.
18372         * modules/c-strcase-tests (Files): Likewise.
18373         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18374         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18375         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18376         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18377         * modules/vasnprintf-posix-tests (Files): Likewise.
18378
18379 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18380
18381         gitlog-to-changelog: pass all command-line arguments to git-log
18382         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18383         it is sometimes convenient to filter the commits in various ways.
18384         gitlog-to-changelog only allows --since to specify a start date,
18385         but git-log itself supports many other filtering mechanisms.
18386         At the moment, I want to filter by branch name.  Rather than
18387         adding a --branch option to gitlog-to-changelog, it seems more
18388         flexible to simply pass all options directly to git-log and let
18389         git do the work.  Notice that this effectively makes --since a
18390         redundant option for gitlog-to-changelog, but removing it would
18391         require current usage to change since calls would then require
18392         an additional '--'.
18393
18394 2008-12-21  Bruno Haible  <bruno@clisp.org>
18395
18396         * modules/mbsnrtowcs-tests: New file.
18397         * tests/test-mbsnrtowcs1.sh: New file.
18398         * tests/test-mbsnrtowcs2.sh: New file.
18399         * tests/test-mbsnrtowcs3.sh: New file.
18400         * tests/test-mbsnrtowcs4.sh: New file.
18401         * tests/test-mbsnrtowcs.c: New file.
18402
18403         New module 'mbsnrtowcs'.
18404         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18405         * lib/mbsnrtowcs.c: New file.
18406         * lib/mbsrtowcs-state.c: New file.
18407         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18408         (internal_state): Remove variable.
18409         * m4/mbsnrtowcs.m4: New file.
18410         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18411         compilation units.
18412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18413         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18414         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18415         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18416         * modules/mbsnrtowcs: New file.
18417         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18418         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18419         portability problem.
18420
18421 2008-12-21  Bruno Haible  <bruno@clisp.org>
18422
18423         Work around mbsrtowcs bug.
18424         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18425         (gl_FUNC_MBSRTOWCS): Invoke it.
18426         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18427         m4/locale-zh.m4.
18428         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18429
18430 2008-12-21  Bruno Haible  <bruno@clisp.org>
18431
18432         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18433
18434 2008-12-21  Bruno Haible  <bruno@clisp.org>
18435
18436         Update doc for AIX.
18437         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18438         16-bit wchar_t type.
18439         * doc/posix-functions/btowc.texi: Likewise.
18440         * doc/posix-functions/fgetwc.texi: Likewise.
18441         * doc/posix-functions/fgetws.texi: Likewise.
18442         * doc/posix-functions/fputwc.texi: Likewise.
18443         * doc/posix-functions/fputws.texi: Likewise.
18444         * doc/posix-functions/fwide.texi: Likewise.
18445         * doc/posix-functions/fwprintf.texi: Likewise.
18446         * doc/posix-functions/fwscanf.texi: Likewise.
18447         * doc/posix-functions/getwchar.texi: Likewise.
18448         * doc/posix-functions/getwc.texi: Likewise.
18449         * doc/posix-functions/iswalnum.texi: Likewise.
18450         * doc/posix-functions/iswalpha.texi: Likewise.
18451         * doc/posix-functions/iswblank.texi: Likewise.
18452         * doc/posix-functions/iswcntrl.texi: Likewise.
18453         * doc/posix-functions/iswctype.texi: Likewise.
18454         * doc/posix-functions/iswdigit.texi: Likewise.
18455         * doc/posix-functions/iswgraph.texi: Likewise.
18456         * doc/posix-functions/iswlower.texi: Likewise.
18457         * doc/posix-functions/iswprint.texi: Likewise.
18458         * doc/posix-functions/iswpunct.texi: Likewise.
18459         * doc/posix-functions/iswspace.texi: Likewise.
18460         * doc/posix-functions/iswupper.texi: Likewise.
18461         * doc/posix-functions/iswxdigit.texi: Likewise.
18462         * doc/posix-functions/mbrtowc.texi: Likewise.
18463         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18464         * doc/posix-functions/mbstowcs.texi: Likewise.
18465         * doc/posix-functions/mbtowc.texi: Likewise.
18466         * doc/posix-functions/putwchar.texi: Likewise.
18467         * doc/posix-functions/putwc.texi: Likewise.
18468         * doc/posix-functions/swprintf.texi: Likewise.
18469         * doc/posix-functions/tolower.texi: Likewise.
18470         * doc/posix-functions/toupper.texi: Likewise.
18471         * doc/posix-functions/towctrans.texi: Likewise.
18472         * doc/posix-functions/ungetwc.texi: Likewise.
18473         * doc/posix-functions/vswprintf.texi: Likewise.
18474         * doc/posix-functions/wcrtomb.texi: Likewise.
18475         * doc/posix-functions/wcscat.texi: Likewise.
18476         * doc/posix-functions/wcschr.texi: Likewise.
18477         * doc/posix-functions/wcscmp.texi: Likewise.
18478         * doc/posix-functions/wcscoll.texi: Likewise.
18479         * doc/posix-functions/wcscpy.texi: Likewise.
18480         * doc/posix-functions/wcscspn.texi: Likewise.
18481         * doc/posix-functions/wcsftime.texi: Likewise.
18482         * doc/posix-functions/wcslen.texi: Likewise.
18483         * doc/posix-functions/wcsncat.texi: Likewise.
18484         * doc/posix-functions/wcsncmp.texi: Likewise.
18485         * doc/posix-functions/wcsncpy.texi: Likewise.
18486         * doc/posix-functions/wcspbrk.texi: Likewise.
18487         * doc/posix-functions/wcsrchr.texi: Likewise.
18488         * doc/posix-functions/wcsrtombs.texi: Likewise.
18489         * doc/posix-functions/wcsspn.texi: Likewise.
18490         * doc/posix-functions/wcsstr.texi: Likewise.
18491         * doc/posix-functions/wcstod.texi: Likewise.
18492         * doc/posix-functions/wcstof.texi: Likewise.
18493         * doc/posix-functions/wcstoimax.texi: Likewise.
18494         * doc/posix-functions/wcstok.texi: Likewise.
18495         * doc/posix-functions/wcstold.texi: Likewise.
18496         * doc/posix-functions/wcstoll.texi: Likewise.
18497         * doc/posix-functions/wcstol.texi: Likewise.
18498         * doc/posix-functions/wcstombs.texi: Likewise.
18499         * doc/posix-functions/wcstoull.texi: Likewise.
18500         * doc/posix-functions/wcstoul.texi: Likewise.
18501         * doc/posix-functions/wcstoumax.texi: Likewise.
18502         * doc/posix-functions/wcswidth.texi: Likewise.
18503         * doc/posix-functions/wcsxfrm.texi: Likewise.
18504         * doc/posix-functions/wctob.texi: Likewise.
18505         * doc/posix-functions/wctomb.texi: Likewise.
18506         * doc/posix-functions/wctrans.texi: Likewise.
18507         * doc/posix-functions/wctype.texi: Likewise.
18508         * doc/posix-functions/wcwidth.texi: Likewise.
18509         * doc/posix-functions/wmemchr.texi: Likewise.
18510         * doc/posix-functions/wmemcmp.texi: Likewise.
18511         * doc/posix-functions/wmemcpy.texi: Likewise.
18512         * doc/posix-functions/wmemmove.texi: Likewise.
18513         * doc/posix-functions/wmemset.texi: Likewise.
18514         * doc/posix-functions/wprintf.texi: Likewise.
18515         * doc/posix-functions/wscanf.texi: Likewise.
18516
18517 2008-12-21  Bruno Haible  <bruno@clisp.org>
18518
18519         Update doc for HP-UX 11.11.
18520         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18521         in HP-UX version 11.00, not in all versions of HP-UX 11.
18522         * doc/posix-functions/fwide.texi: Likewise.
18523         * doc/posix-functions/fwprintf.texi: Likewise.
18524         * doc/posix-functions/fwscanf.texi: Likewise.
18525         * doc/posix-functions/inet_ntop.texi: Likewise.
18526         * doc/posix-functions/inet_pton.texi: Likewise.
18527         * doc/posix-functions/mbrlen.texi: Likewise.
18528         * doc/posix-functions/mbrtowc.texi: Likewise.
18529         * doc/posix-functions/mbsinit.texi: Likewise.
18530         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18531         * doc/posix-functions/swprintf.texi: Likewise.
18532         * doc/posix-functions/swscanf.texi: Likewise.
18533         * doc/posix-functions/towctrans.texi: Likewise.
18534         * doc/posix-functions/vfwprintf.texi: Likewise.
18535         * doc/posix-functions/vswprintf.texi: Likewise.
18536         * doc/posix-functions/vwprintf.texi: Likewise.
18537         * doc/posix-functions/wcrtomb.texi: Likewise.
18538         * doc/posix-functions/wcsrtombs.texi: Likewise.
18539         * doc/posix-functions/wcsstr.texi: Likewise.
18540         * doc/posix-functions/wctob.texi: Likewise.
18541         * doc/posix-functions/wctrans.texi: Likewise.
18542         * doc/posix-functions/wmemchr.texi: Likewise.
18543         * doc/posix-functions/wmemcmp.texi: Likewise.
18544         * doc/posix-functions/wmemcpy.texi: Likewise.
18545         * doc/posix-functions/wmemmove.texi: Likewise.
18546         * doc/posix-functions/wmemset.texi: Likewise.
18547         * doc/posix-functions/wprintf.texi: Likewise.
18548         * doc/posix-functions/wscanf.texi: Likewise.
18549
18550 2008-12-21  Bruno Haible  <bruno@clisp.org>
18551
18552         Work around a portability problem.
18553         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18554         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18555
18556 2008-12-20  Bruno Haible  <bruno@clisp.org>
18557
18558         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18559         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18560         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18562         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18563
18564         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18565         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18566         set.
18567         (GNULIB_defined_mbstate_t): New macro.
18568         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18569         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18570         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18571         reuses the system's mbrtowc function but works around the bugs.
18572         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18573         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18574         macros.
18575         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18576         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18577         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18578         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18579         REPLACE_MBSINIT if mbsinit needs to be overridden.
18580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18581         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18582         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18583         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18584         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18585         m4/locale-zh.m4.
18586         (Depends): Add mbsinit.
18587         * modules/mbsinit (Depends): Add mbrtowc.
18588         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18589
18590 2008-12-20  Bruno Haible  <bruno@clisp.org>
18591
18592         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18593         so that there are no conversion errors on AIX.
18594         * tests/test-mbsrtowcs.c (main): LIkewise.
18595
18596 2008-12-20  Bruno Haible  <bruno@clisp.org>
18597
18598         Work around wctob bug on Solaris <= 9.
18599         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18600         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18602         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18603         * modules/wctob (Files): Add m4/locale-fr.m4.
18604         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18605
18606 2008-12-20  Bruno Haible  <bruno@clisp.org>
18607
18608         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18609         /dev/null.
18610         * tests/test-select-in.sh: Likewise.
18611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18612
18613 2008-12-20  Bruno Haible  <bruno@clisp.org>
18614
18615         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18616         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18617         Cygwin 1.5.x.
18618
18619 2008-12-20  Bruno Haible  <bruno@clisp.org>
18620
18621         Ensure mbstate_t is defined on HP-UX 11.11.
18622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18623         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18624         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18625         AC_USE_SYSTEM_EXTENSIONS.
18626         * modules/fnmatch (Depends-on): Add extensions.
18627         * modules/mbrlen (Depends-on): Likewise.
18628         * modules/mbrtowc (Depends-on): Likewise.
18629         * modules/mbsinit (Depends-on): Likewise.
18630         * modules/mbsrtowcs (Depends-on): Likewise.
18631         * modules/mbswidth (Depends-on): Likewise.
18632         * modules/quotearg (Depends-on): Likewise.
18633         * modules/strftime (Depends-on): Likewise.
18634
18635 2008-12-20  Bruno Haible  <bruno@clisp.org>
18636
18637         Ensure wctob is declared on IRIX 6.5.
18638         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18639         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18640         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18642         of HAVE_WCTOB.
18643         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18644         HAVE_WCTOB.
18645         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18646
18647 2008-12-19  Bruno Haible  <bruno@clisp.org>
18648
18649         * modules/mbsrtowcs-tests: New file.
18650         * tests/test-mbsrtowcs1.sh: New file.
18651         * tests/test-mbsrtowcs2.sh: New file.
18652         * tests/test-mbsrtowcs3.sh: New file.
18653         * tests/test-mbsrtowcs4.sh: New file.
18654         * tests/test-mbsrtowcs.c: New file.
18655
18656         New module 'mbsrtowcs'.
18657         * lib/wchar.in.h (mbsrtowcs): New declaration.
18658         * lib/mbsrtowcs.c: New file.
18659         * m4/mbsrtowcs.m4: New file.
18660         * modules/mbsrtowcs: New file.
18661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18662         HAVE_MBSRTOWCS.
18663         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18664         HAVE_MBSRTOWCS.
18665         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18666
18667 2008-12-19  Bruno Haible  <bruno@clisp.org>
18668
18669         New module 'mbrlen'.
18670         * lib/wchar.in.h (mbrlen): New declaration.
18671         * lib/mbrlen.c: New file.
18672         * m4/mbrlen.m4: New file.
18673         * modules/mbrlen: New file.
18674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18675         HAVE_MBRLEN.
18676         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18677         HAVE_MBRLEN.
18678         * doc/posix-functions/mbrlen.texi: Document the new module.
18679
18680 2008-12-19  Bruno Haible  <bruno@clisp.org>
18681
18682         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18683         * modules/mbrtowc (Depends-on): Add verify.
18684         Suggested by Paul Eggert.
18685
18686 2008-12-18  Bruno Haible  <bruno@clisp.org>
18687
18688         * modules/mbsinit-tests: New file.
18689         * tests/test-mbsinit.sh: New file.
18690         * tests/test-mbsinit.c: New file.
18691
18692 2008-12-18  Bruno Haible  <bruno@clisp.org>
18693
18694         * modules/mbrtowc-tests: New file.
18695         * tests/test-mbrtowc1.sh: New file.
18696         * tests/test-mbrtowc2.sh: New file.
18697         * tests/test-mbrtowc3.sh: New file.
18698         * tests/test-mbrtowc4.sh: New file.
18699         * tests/test-mbrtowc.c: New file.
18700
18701         New module 'mbrtowc'.
18702         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18703         mbsinit and mbrtowc.
18704         (mbrtowc): New declaration.
18705         * lib/mbrtowc.c: New file.
18706         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18707         * modules/mbrtowc: New file.
18708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18709         HAVE_MBRTOWC.
18710         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18711         HAVE_MBRTOWC.
18712         * doc/posix-functions/mbrtowc.texi: Document the new module.
18713
18714 2008-12-18  Bruno Haible  <bruno@clisp.org>
18715
18716         New module 'wctob'.
18717         * lib/wchar.in.h (wctob): New declaration.
18718         * lib/wctob.c: New file.
18719         * m4/wctob.m4: New file.
18720         * modules/wctob: New file.
18721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18722         HAVE_WCTOB.
18723         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18724         * doc/posix-functions/wctob.texi: Document the new module.
18725
18726 2008-12-18  Bruno Haible  <bruno@clisp.org>
18727
18728         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18729         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18730
18731 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18732
18733         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18734         G. Christensen" <tgc@jupiterrise.com>.
18735
18736         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18737         G. Christensen" <tgc@jupiterrise.com>.
18738
18739         * lib/flock.c: Need to include string.h.  Reported by "Tom
18740         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18741         <ebb9@byu.net>.
18742
18743 2008-12-18  Bruno Haible  <bruno@clisp.org>
18744
18745         * m4/locale-ja.m4: New file, from GNU gettext.
18746
18747 2008-12-17  Bruno Haible  <bruno@clisp.org>
18748
18749         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18750         Suggested by Eric Blake.
18751
18752 2008-12-17  Bruno Haible  <bruno@clisp.org>
18753
18754         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18755
18756 2008-12-17  Bruno Haible  <bruno@clisp.org>
18757
18758         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18759         * modules/mbsinit (Depends-on): Add verify.
18760         Suggested by Paul Eggert.
18761
18762 2008-12-17  Bruno Haible  <bruno@clisp.org>
18763
18764         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18765         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18766         gl_FUNC_MBRTOWC.
18767         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18768         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18769         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18770         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18771         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18772         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18773         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18774         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18775         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18776         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18777         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18778         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18779         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18780         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18781         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18782         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18783         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18784         * modules/trim (configure.ac): Likewise.
18785
18786 2008-12-17  Bruno Haible  <bruno@clisp.org>
18787
18788         * modules/btowc-tests: New file.
18789         * tests/test-btowc1.sh: New file.
18790         * tests/test-btowc2.sh: New file.
18791         * tests/test-btowc.c: New file.
18792
18793         New module 'btowc'.
18794         * lib/wchar.in.h (btowc): New declaration.
18795         * lib/btowc.c: New file.
18796         * m4/btowc.m4: New file.
18797         * modules/btowc: New file.
18798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18799         HAVE_BTOWC.
18800         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18801         * doc/posix-functions/btowc.texi: Document the new module.
18802
18803 2008-12-17  Bruno Haible  <bruno@clisp.org>
18804
18805         New module 'mbsinit'.
18806         * lib/wchar.in.h (mbsinit): New declaration.
18807         * lib/mbsinit.c: New file.
18808         * m4/mbsinit.m4: New file.
18809         * modules/mbsinit: New file.
18810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18811         HAVE_MBSINIT.
18812         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18813         HAVE_MBSINIT.
18814         * doc/posix-functions/mbsinit.texi: Document the new module.
18815
18816 2008-12-16  Bruno Haible  <bruno@clisp.org>
18817
18818         * lib/unistd.in.h: Add comment.
18819         * tests/test-environ.c: Don't include <stdlib.h>.
18820
18821 2008-12-16  Bruno Haible  <bruno@clisp.org>
18822
18823         * lib/parse-duration.h (parse_duration): Document return value
18824         convention.
18825         * lib/parse-duration.c: Include specification header first. Add
18826         comments.
18827         (_): Remove macro.
18828         (parse_year_month_day, parse_hour_minute_second): Move side effects
18829         outside of strchr call.
18830         (parse_non_iso8601): Move side effects outside of isspace call.
18831         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18832         call.
18833
18834 2008-12-16  Bruno Haible  <bruno@clisp.org>
18835
18836         * tests/test-parse-duration.sh: Produce no output when the test
18837         succeeds.
18838
18839 2008-12-16  Bruno Haible  <bruno@clisp.org>
18840
18841         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18842         expressions.
18843
18844 2008-12-15  Bruno Haible  <bruno@clisp.org>
18845
18846         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18847         * doc/glibc-functions/flistxattr.texi: Likewise.
18848         * doc/glibc-functions/fopencookie.texi: Likewise.
18849         * doc/glibc-functions/fremovexattr.texi: Likewise.
18850         * doc/glibc-functions/fsetxattr.texi: Likewise.
18851         * doc/glibc-functions/getxattr.texi: Likewise.
18852         * doc/glibc-functions/lgetxattr.texi: Likewise.
18853         * doc/glibc-functions/listxattr.texi: Likewise.
18854         * doc/glibc-functions/llistxattr.texi: Likewise.
18855         * doc/glibc-functions/lremovexattr.texi: Likewise.
18856         * doc/glibc-functions/lsetxattr.texi: Likewise.
18857         * doc/glibc-functions/removexattr.texi: Likewise.
18858         * doc/glibc-functions/setxattr.texi: Likewise.
18859         * doc/posix-functions/open_memstream.texi: Likewise.
18860
18861 2008-12-15  Eric Blake  <ebb9@byu.net>
18862
18863         Update doc for cygwin 1.7.
18864         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18865         functions.
18866         * doc/posix-functions/fchmodat.texi: Likewise.
18867         * doc/posix-functions/fchownat.texi: Likewise.
18868         * doc/posix-functions/fdopendir.texi: Likewise.
18869         * doc/posix-functions/fmemopen.texi: Likewise.
18870         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18871         * doc/posix-functions/fstatat.texi: Likewise.
18872         * doc/posix-functions/futimens.texi: Likewise.
18873         * doc/posix-functions/gai_strerror.texi: Likewise.
18874         * doc/posix-functions/getaddrinfo.texi: Likewise.
18875         * doc/posix-functions/getnameinfo.texi: Likewise.
18876         * doc/posix-functions/if_freenameindex.texi: Likewise.
18877         * doc/posix-functions/if_indextoname.texi: Likewise.
18878         * doc/posix-functions/if_nameindex.texi: Likewise.
18879         * doc/posix-functions/if_nametoindex.texi: Likewise.
18880         * doc/posix-functions/insque.texi: Likewise.
18881         * doc/posix-functions/linkat.texi: Likewise.
18882         * doc/posix-functions/llrint.texi: Likewise.
18883         * doc/posix-functions/llrintf.texi: Likewise.
18884         * doc/posix-functions/llrintl.texi: Likewise.
18885         * doc/posix-functions/lockf.texi: Likewise.
18886         * doc/posix-functions/lrintl.texi: Likewise.
18887         * doc/posix-functions/mkdirat.texi: Likewise.
18888         * doc/posix-functions/mkfifoat.texi: Likewise.
18889         * doc/posix-functions/mknodat.texi: Likewise.
18890         * doc/posix-functions/mq_close.texi: Likewise.
18891         * doc/posix-functions/mq_getattr.texi: Likewise.
18892         * doc/posix-functions/mq_notify.texi: Likewise.
18893         * doc/posix-functions/mq_open.texi: Likewise.
18894         * doc/posix-functions/mq_receive.texi: Likewise.
18895         * doc/posix-functions/mq_send.texi: Likewise.
18896         * doc/posix-functions/mq_setattr.texi: Likewise.
18897         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18898         * doc/posix-functions/mq_timedsend.texi: Likewise.
18899         * doc/posix-functions/mq_unlink.texi: Likewise.
18900         * doc/posix-functions/open_memstream.texi: Likewise.
18901         * doc/posix-functions/openat.texi: Likewise.
18902         * doc/posix-functions/posix_fadvise.texi: Likewise.
18903         * doc/posix-functions/posix_fallocate.texi: Likewise.
18904         * doc/posix-functions/posix_madvise.texi: Likewise.
18905         * doc/posix-functions/posix_memalign.texi: Likewise.
18906         * doc/posix-functions/posix_openpt.texi: Likewise.
18907         * doc/posix-functions/readlinkat.texi: Likewise.
18908         * doc/posix-functions/remque.texi: Likewise.
18909         * doc/posix-functions/renameat.texi: Likewise.
18910         * doc/posix-functions/rintl.texi: Likewise.
18911         * doc/posix-functions/sem_unlink.texi: Likewise.
18912         * doc/posix-functions/shm_open.texi: Likewise.
18913         * doc/posix-functions/shm_unlink.texi: Likewise.
18914         * doc/posix-functions/signgam.texi: Likewise.
18915         * doc/posix-functions/sigset.texi: Likewise.
18916         * doc/posix-functions/stpcpy.texi: Likewise.
18917         * doc/posix-functions/stpncpy.texi: Likewise.
18918         * doc/posix-functions/strerror.texi: Likewise.
18919         * doc/posix-functions/strtod.texi: Likewise.
18920         * doc/posix-functions/symlinkat.texi: Likewise.
18921         * doc/posix-functions/unlinkat.texi: Likewise.
18922         * doc/posix-functions/utimensat.texi: Likewise.
18923         * doc/glibc-functions/bindresvport.texi: Likewise.
18924         * doc/glibc-functions/dn_expand.texi: Likewise.
18925         * doc/glibc-functions/exp10.texi: Likewise.
18926         * doc/glibc-functions/exp10f.texi: Likewise.
18927         * doc/glibc-functions/fgetxattr.texi: Likewise.
18928         * doc/glibc-functions/flistxattr.texi: Likewise.
18929         * doc/glibc-functions/fopencookie.texi: Likewise.
18930         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18931         * doc/glibc-functions/fremovexattr.texi: Likewise.
18932         * doc/glibc-functions/fsetxattr.texi: Likewise.
18933         * doc/glibc-functions/getifaddrs.texi: Likewise.
18934         * doc/glibc-functions/getxattr.texi: Likewise.
18935         * doc/glibc-functions/lgetxattr.texi: Likewise.
18936         * doc/glibc-functions/listxattr.texi: Likewise.
18937         * doc/glibc-functions/llistxattr.texi: Likewise.
18938         * doc/glibc-functions/lremovexattr.texi: Likewise.
18939         * doc/glibc-functions/lsetxattr.texi: Likewise.
18940         * doc/glibc-functions/pow10.texi: Likewise.
18941         * doc/glibc-functions/pow10f.texi: Likewise.
18942         * doc/glibc-functions/rcmd_af.texi: Likewise.
18943         * doc/glibc-functions/removexattr.texi: Likewise.
18944         * doc/glibc-functions/res_init.texi: Likewise.
18945         * doc/glibc-functions/res_mkquery.texi: Likewise.
18946         * doc/glibc-functions/res_query.texi: Likewise.
18947         * doc/glibc-functions/res_querydomain.texi: Likewise.
18948         * doc/glibc-functions/res_send.texi: Likewise.
18949         * doc/glibc-functions/rresvport_af.texi: Likewise.
18950         * doc/glibc-functions/setxattr.texi: Likewise.
18951         * doc/glibc-functions/strcasestr.texi: Likewise.
18952
18953 2008-12-15  Bruno Haible  <bruno@clisp.org>
18954
18955         Fix compilation error on OSF/1 4.0.
18956         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18957         <sys/time.h>, simply delegate to the system header.
18958         Reported by Daniel Richard G. <oss@teragram.com>.
18959
18960 2008-12-15  Bruno Haible  <bruno@clisp.org>
18961
18962         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18963         * doc/posix-functions/fchmodat.texi: Likewise.
18964         * doc/posix-functions/fchownat.texi: Likewise.
18965         * doc/posix-functions/fdopendir.texi: Likewise.
18966         * doc/posix-functions/fstatat.texi: Likewise.
18967         * doc/posix-functions/mkdirat.texi: Likewise.
18968         * doc/posix-functions/unlinkat.texi: Likewise.
18969
18970 2008-12-14  Bruno Haible  <bruno@clisp.org>
18971
18972         Update doc for POSIX:2008.
18973         * doc/posix-functions/faccessat.texi: New file.
18974         * doc/posix-functions/fchmodat.texi: New file.
18975         * doc/posix-functions/fchownat.texi: New file.
18976         * doc/posix-functions/fdopendir.texi: New file.
18977         * doc/posix-functions/fstatat.texi: New file.
18978         * doc/posix-functions/futimens.texi: New file.
18979         * doc/posix-functions/linkat.texi: New file.
18980         * doc/posix-functions/mkdirat.texi: New file.
18981         * doc/posix-functions/mkfifoat.texi: New file.
18982         * doc/posix-functions/mknodat.texi: New file.
18983         * doc/posix-functions/open_wmemstream.texi: New file.
18984         * doc/posix-functions/openat.texi: New file.
18985         * doc/posix-functions/psiginfo.texi: New file.
18986         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18987         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18988         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18989         * doc/posix-functions/readlinkat.texi: New file.
18990         * doc/posix-functions/renameat.texi: New file.
18991         * doc/posix-functions/strerror_l.texi: New file.
18992         * doc/posix-functions/symlinkat.texi: New file.
18993         * doc/posix-functions/unlinkat.texi: New file.
18994         * doc/posix-functions/utimensat.texi: New file.
18995         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18996
18997 2008-12-14  Bruno Haible  <bruno@clisp.org>
18998
18999         Update doc for POSIX:2008.
19000         * doc/posix-functions/alphasort.texi: Renamed from
19001         doc/glibc-functions/alphasort.texi.
19002         * doc/posix-functions/dirfd.texi: Renamed from
19003         doc/glibc-functions/dirfd.texi.
19004         * doc/posix-functions/dprintf.texi: Renamed from
19005         doc/glibc-functions/dprintf.texi.
19006         * doc/posix-functions/duplocale.texi: Renamed from
19007         doc/glibc-functions/duplocale.texi.
19008         * doc/posix-functions/fexecve.texi: Renamed from
19009         doc/glibc-functions/fexecve.texi.
19010         * doc/posix-functions/fmemopen.texi: Renamed from
19011         doc/glibc-functions/fmemopen.texi.
19012         * doc/posix-functions/freelocale.texi: Renamed from
19013         doc/glibc-functions/freelocale.texi.
19014         * doc/posix-functions/getdate_err.texi: Renamed from
19015         doc/glibc-functions/getdate_err.texi.
19016         * doc/posix-functions/isalnum_l.texi: Renamed from
19017         doc/glibc-functions/isalnum_l.texi.
19018         * doc/posix-functions/isalpha_l.texi: Renamed from
19019         doc/glibc-functions/isalpha_l.texi.
19020         * doc/posix-functions/isblank_l.texi: Renamed from
19021         doc/glibc-functions/isblank_l.texi.
19022         * doc/posix-functions/iscntrl_l.texi: Renamed from
19023         doc/glibc-functions/iscntrl_l.texi.
19024         * doc/posix-functions/isdigit_l.texi: Renamed from
19025         doc/glibc-functions/isdigit_l.texi.
19026         * doc/posix-functions/isgraph_l.texi: Renamed from
19027         doc/glibc-functions/isgraph_l.texi.
19028         * doc/posix-functions/islower_l.texi: Renamed from
19029         doc/glibc-functions/islower_l.texi.
19030         * doc/posix-functions/isprint_l.texi: Renamed from
19031         doc/glibc-functions/isprint_l.texi.
19032         * doc/posix-functions/ispunct_l.texi: Renamed from
19033         doc/glibc-functions/ispunct_l.texi.
19034         * doc/posix-functions/isspace_l.texi: Renamed from
19035         doc/glibc-functions/isspace_l.texi.
19036         * doc/posix-functions/isupper_l.texi: Renamed from
19037         doc/glibc-functions/isupper_l.texi.
19038         * doc/posix-functions/iswalnum_l.texi: Renamed from
19039         doc/glibc-functions/iswalnum_l.texi.
19040         * doc/posix-functions/iswalpha_l.texi: Renamed from
19041         doc/glibc-functions/iswalpha_l.texi.
19042         * doc/posix-functions/iswblank_l.texi: Renamed from
19043         doc/glibc-functions/iswblank_l.texi.
19044         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19045         doc/glibc-functions/iswcntrl_l.texi.
19046         * doc/posix-functions/iswctype_l.texi: Renamed from
19047         doc/glibc-functions/iswctype_l.texi.
19048         * doc/posix-functions/iswdigit_l.texi: Renamed from
19049         doc/glibc-functions/iswdigit_l.texi.
19050         * doc/posix-functions/iswgraph_l.texi: Renamed from
19051         doc/glibc-functions/iswgraph_l.texi.
19052         * doc/posix-functions/iswlower_l.texi: Renamed from
19053         doc/glibc-functions/iswlower_l.texi.
19054         * doc/posix-functions/iswprint_l.texi: Renamed from
19055         doc/glibc-functions/iswprint_l.texi.
19056         * doc/posix-functions/iswpunct_l.texi: Renamed from
19057         doc/glibc-functions/iswpunct_l.texi.
19058         * doc/posix-functions/iswspace_l.texi: Renamed from
19059         doc/glibc-functions/iswspace_l.texi.
19060         * doc/posix-functions/iswupper_l.texi: Renamed from
19061         doc/glibc-functions/iswupper_l.texi.
19062         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19063         doc/glibc-functions/iswxdigit_l.texi.
19064         * doc/posix-functions/isxdigit_l.texi: Renamed from
19065         doc/glibc-functions/isxdigit_l.texi.
19066         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19067         doc/glibc-functions/mbsnrtowcs.texi.
19068         * doc/posix-functions/mkdtemp.texi: Renamed from
19069         doc/glibc-functions/mkdtemp.texi.
19070         * doc/posix-functions/newlocale.texi: Renamed from
19071         doc/glibc-functions/newlocale.texi.
19072         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19073         doc/glibc-functions/nl_langinfo_l.texi.
19074         * doc/posix-functions/open_memstream.texi: Renamed from
19075         doc/glibc-functions/open_memstream.texi.
19076         * doc/posix-functions/opterr.texi: Renamed from
19077         doc/glibc-functions/opterr.texi.
19078         * doc/posix-functions/optind.texi: Renamed from
19079         doc/glibc-functions/optind.texi.
19080         * doc/posix-functions/optopt.texi: Renamed from
19081         doc/glibc-functions/optopt.texi.
19082         * doc/posix-functions/psignal.texi: Renamed from
19083         doc/glibc-functions/psignal.texi.
19084         * doc/posix-functions/scandir.texi: Renamed from
19085         doc/glibc-functions/scandir.texi.
19086         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19087         doc/glibc-functions/sched_get_priority_min.texi.
19088         * doc/posix-functions/signgam.texi: Renamed from
19089         doc/glibc-functions/signgam.texi.
19090         * doc/posix-functions/stpcpy.texi: Renamed from
19091         doc/glibc-functions/stpcpy.texi.
19092         * doc/posix-functions/stpncpy.texi: Renamed from
19093         doc/glibc-functions/stpncpy.texi.
19094         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19095         doc/glibc-functions/strcasecmp_l.texi.
19096         * doc/posix-functions/strcoll_l.texi: Renamed from
19097         doc/glibc-functions/strcoll_l.texi.
19098         * doc/posix-functions/strfmon_l.texi: Renamed from
19099         doc/glibc-functions/strfmon_l.texi.
19100         * doc/posix-functions/strftime_l.texi: Renamed from
19101         doc/glibc-functions/strftime_l.texi.
19102         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19103         doc/glibc-functions/strncasecmp_l.texi.
19104         * doc/posix-functions/strndup.texi: Renamed from
19105         doc/glibc-functions/strndup.texi.
19106         * doc/posix-functions/strnlen.texi: Renamed from
19107         doc/glibc-functions/strnlen.texi.
19108         * doc/posix-functions/strsignal.texi: Renamed from
19109         doc/glibc-functions/strsignal.texi.
19110         * doc/posix-functions/strxfrm_l.texi: Renamed from
19111         doc/glibc-functions/strxfrm_l.texi.
19112         * doc/posix-functions/timer_gettime.texi: Renamed from
19113         doc/glibc-functions/timer_gettime.texi.
19114         * doc/posix-functions/tolower_l.texi: Renamed from
19115         doc/glibc-functions/tolower_l.texi.
19116         * doc/posix-functions/toupper_l.texi: Renamed from
19117         doc/glibc-functions/toupper_l.texi.
19118         * doc/posix-functions/towctrans_l.texi: Renamed from
19119         doc/glibc-functions/towctrans_l.texi.
19120         * doc/posix-functions/towlower_l.texi: Renamed from
19121         doc/glibc-functions/towlower_l.texi.
19122         * doc/posix-functions/towupper_l.texi: Renamed from
19123         doc/glibc-functions/towupper_l.texi.
19124         * doc/posix-functions/uselocale.texi: Renamed from
19125         doc/glibc-functions/uselocale.texi.
19126         * doc/posix-functions/vdprintf.texi: Renamed from
19127         doc/glibc-functions/vdprintf.texi.
19128         * doc/posix-functions/wcpcpy.texi:
19129         Renamed from doc/glibc-functions/wcpcpy.texi.
19130         * doc/posix-functions/wcpncpy.texi: Renamed from
19131         doc/glibc-functions/wcpncpy.texi.
19132         * doc/posix-functions/wcscasecmp.texi: Renamed from
19133         doc/glibc-functions/wcscasecmp.texi.
19134         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19135         doc/glibc-functions/wcscasecmp_l.texi.
19136         * doc/posix-functions/wcscoll_l.texi: Renamed from
19137         doc/glibc-functions/wcscoll_l.texi.
19138         * doc/posix-functions/wcsdup.texi: Renamed from
19139         doc/glibc-functions/wcsdup.texi.
19140         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19141         doc/glibc-functions/wcsncasecmp.texi.
19142         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19143         doc/glibc-functions/wcsncasecmp_l.texi.
19144         * doc/posix-functions/wcsnlen.texi: Renamed from
19145         doc/glibc-functions/wcsnlen.texi.
19146         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19147         doc/glibc-functions/wcsnrtombs.texi.
19148         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19149         doc/glibc-functions/wcsxfrm_l.texi.
19150         * doc/posix-functions/wctrans_l.texi: Renamed from
19151         doc/glibc-functions/wctrans_l.texi.
19152         * doc/posix-functions/wctype_l.texi: Renamed from
19153         doc/glibc-functions/wctype_l.texi.
19154         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19155         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19156         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19157         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19158         these subsections.
19159         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19160         Remove sections.
19161
19162 2008-12-14  Bruno Haible  <bruno@clisp.org>
19163
19164         Update doc for POSIX:2008.
19165         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19166
19167 2008-12-14  Bruno Haible  <bruno@clisp.org>
19168
19169         Update doc for POSIX:2008.
19170         * doc/pastposix-functions/bcmp.texi: Renamed from
19171         doc/posix-functions/bcmp.texi.
19172         * doc/pastposix-functions/bcopy.texi: Renamed from
19173         doc/posix-functions/bcopy.texi.
19174         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19175         doc/posix-functions/bsd_signal.texi.
19176         * doc/pastposix-functions/bzero.texi: Renamed from
19177         doc/posix-functions/bzero.texi.
19178         * doc/pastposix-functions/ecvt.texi: Renamed from
19179         doc/posix-functions/ecvt.texi.
19180         * doc/pastposix-functions/fcvt.texi: Renamed from
19181         doc/posix-functions/fcvt.texi.
19182         * doc/pastposix-functions/ftime.texi: Renamed from
19183         doc/posix-functions/ftime.texi.
19184         * doc/pastposix-functions/gcvt.texi: Renamed from
19185         doc/posix-functions/gcvt.texi.
19186         * doc/pastposix-functions/getcontext.texi: Renamed from
19187         doc/posix-functions/getcontext.texi.
19188         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19189         doc/posix-functions/gethostbyaddr.texi.
19190         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19191         doc/posix-functions/gethostbyname.texi.
19192         * doc/pastposix-functions/getwd.texi: Renamed from
19193         doc/posix-functions/getwd.texi.
19194         * doc/pastposix-functions/h_errno.texi: Renamed from
19195         doc/posix-functions/h_errno.texi.
19196         * doc/pastposix-functions/index.texi: Renamed from
19197         doc/posix-functions/index.texi.
19198         * doc/pastposix-functions/makecontext.texi: Renamed from
19199         doc/posix-functions/makecontext.texi.
19200         * doc/pastposix-functions/mktemp.texi: Renamed from
19201         doc/posix-functions/mktemp.texi.
19202         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19203         doc/posix-functions/pthread_attr_getstackaddr.texi.
19204         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19205         doc/posix-functions/pthread_attr_setstackaddr.texi.
19206         * doc/pastposix-functions/rindex.texi: Renamed from
19207         doc/posix-functions/rindex.texi.
19208         * doc/pastposix-functions/scalb.texi: Renamed from
19209         doc/posix-functions/scalb.texi.
19210         * doc/pastposix-functions/setcontext.texi: Renamed from
19211         doc/posix-functions/setcontext.texi.
19212         * doc/pastposix-functions/swapcontext.texi: Renamed from
19213         doc/posix-functions/swapcontext.texi.
19214         * doc/pastposix-functions/ualarm.texi: Renamed from
19215         doc/posix-functions/ualarm.texi.
19216         * doc/pastposix-functions/usleep.texi: Renamed from
19217         doc/posix-functions/usleep.texi.
19218         * doc/pastposix-functions/vfork.texi: Renamed from
19219         doc/posix-functions/vfork.texi.
19220         * doc/pastposix-functions/wcswcs.texi: Renamed from
19221         doc/posix-functions/wcswcs.texi.
19222         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19223         (Function Substitutes): Update.
19224
19225 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19226
19227         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19228         m4/strerror.m4.
19229
19230 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19231             Bruno Haible  <bruno@clisp.org>
19232
19233         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19234
19235 2008-12-13  Bruno Haible  <bruno@clisp.org>
19236
19237         * modules/strtoull (Depends-on): Remove unistd.
19238
19239 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19240
19241         * modules/strtoull (Depends-on): Add stdlib.
19242
19243 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19244
19245         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19246
19247 2008-12-10  Jim Meyering  <meyering@redhat.com>
19248
19249         gl_ASSERT: don't say assertions are disabled when they're not
19250         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19251         "checking whether to enable assertions... no", when they are in
19252         fact enabled.  This is solely a bug in the output of configure.
19253         In spite of saying "no", NDEBUG was not defined in that case.
19254         Also, as noted by Eric Blake, leave assertions enabled upon
19255         --enable-assert=INVALID.
19256
19257 2008-12-10  Bruno Haible  <bruno@clisp.org>
19258
19259         Change MODULES.html to refer to POSIX:2008 where possible.
19260         * MODULES.html.sh (POSIX2008_URL): New variable.
19261         (posix_headers): Remove sys/timeb, ucontext.
19262         (posix2001_headers): New variable.
19263         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19264         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19265         index, makecontext, mktemp, pthread_attr_getstackaddr,
19266         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19267         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19268         (posix2001_functions): New variable.
19269         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19270         otherwise.
19271
19272 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19273
19274         add missing include to parse-duration.c
19275         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19276         * modules/parse-duration (Depends-on): Add xalloc.
19277
19278         fix sed script reading maint.mk
19279         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19280         (syntax-check-rules): Use it.
19281
19282 2008-12-09  Bruno Haible  <bruno@clisp.org>
19283
19284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19285         MacOS X 10.4/PowerPC.
19286         Reported by Simon Josefsson.
19287
19288 2008-12-08  Jim Meyering  <meyering@redhat.com>
19289
19290         work around mingw's lack of some S_IF definitions
19291         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19292         Reported by Simon Josefsson.
19293
19294 2008-12-08  Bruno Haible  <bruno@clisp.org>
19295
19296         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19297         applied to variables. Needed on MacOS X 10.4/PowerPC.
19298         Reported by Simon Josefsson.
19299
19300 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19301         and Eric Blake  <ebb9@byu.net>
19302
19303         assert: honor --enable-assert
19304         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19305         order to honor --enable-assert, rather than treating it as a
19306         synonym for --disable-assert.
19307
19308 2008-12-08  Jim Meyering  <meyering@redhat.com>
19309
19310         * lib/posixtm.c: Remove now-useless declaration of mktime.
19311
19312         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19313
19314 2008-12-07  Bruno Haible  <bruno@clisp.org>
19315
19316         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19317         test_once): Mark functions as static.
19318         * tests/test-tls.c (test_tls): Likewise.
19319
19320 2008-12-07  Bruno Haible  <bruno@clisp.org>
19321
19322         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19323         iconv_register_autodetect.
19324
19325 2008-12-07  Jim Meyering  <meyering@redhat.com>
19326
19327         posixtm.c: avoid a warning
19328         * lib/posixtm.c (posixtime): Don't initialize tm0.
19329         It's no longer needed to placate gcc4's -Wuninitialized,
19330         and the attempt to placate would elicit a new warning.
19331
19332         unicodeio.c: mark unused parameters
19333         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19334         (fallback_failure_callback): Likewise.
19335
19336 2008-12-07  Bruno Haible  <bruno@clisp.org>
19337
19338         * gnulib-tool (func_create_testdir): When building the tests
19339         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19340         Reported by Simon Josefsson.
19341
19342 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19343
19344         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19345
19346 2008-12-06  Bruno Haible  <bruno@clisp.org>
19347
19348         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19349         Suggested by Eric Blake.
19350
19351 2008-12-06  Bruno Haible  <bruno@clisp.org>
19352
19353         Fix a c-stack test failure on MacOS X.
19354         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19355         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19356         handler for SIGBUS as well.
19357         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19358         install a signal handler for SIGBUS as well.
19359         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19360
19361 2008-12-06  Bruno Haible  <bruno@clisp.org>
19362
19363         Advocacy documentation.
19364         * doc/gnulib-intro.texi (Benefits): New section.
19365         * doc/gnulib.texi: Update.
19366
19367 2008-12-06  Bruno Haible  <bruno@clisp.org>
19368
19369         Document the 'manywarnings' module.
19370         * doc/manywarnings.texi: New file.
19371         * doc/gnulib.texi: Include it.
19372
19373 2008-12-05  Eric Blake  <ebb9@byu.net>
19374
19375         tests: silence some gcc warnings
19376         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19377         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19378         type mismatches.
19379
19380 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19381             Bruno Haible  <bruno@clisp.org>
19382
19383         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19384
19385 2008-11-29  Jim Meyering  <meyering@redhat.com>
19386
19387         unicodeio.c: mark unused parameters
19388         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19389         (fallback_failure_callback): Likewise.
19390
19391         fts: fix a thinko
19392         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19393         (set_stat_type): Return S_IF*-valued "type" directly.
19394         Prompted by James Youngman's spotting a related bug.
19395         Confirmed by further testing through find.
19396
19397         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19398         * lib/fts.c (D_TYPE): Define.
19399         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19400         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19401         (s_ifmt_shift_bits): New function.
19402         (set_stat_type): New function.
19403         (fts_build): When not calling fts_stat, call set_stat_type
19404         to propagate dirent.d_type info to fts_read caller.
19405         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19406         fts_statp->st_mode type information may be valid.
19407
19408 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19409
19410         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19411         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19412         <sds@gnu.org>.
19413
19414 2008-11-20  Bruno Haible  <bruno@clisp.org>
19415
19416         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19417         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19418         INCLUDE_NEXT.
19419         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19420         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19421         * modules/math (Makefile.am): Substitute
19422         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19423         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19424
19425 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19426             Bruno Haible  <bruno@clisp.org>
19427
19428         * lib/stdint.in.h: Define all type macros so that their expansion is
19429         a single typedef'ed token. Fixes a compilation failure in Boost which
19430         does "using ::int8_t;".
19431
19432 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19433
19434         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19435         gl_MANYWARN_ALL_GCC.
19436         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19437         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19438         * modules/manywarnings: New file.
19439         * MODULES.html.sh: Mention manywarnings module.
19440
19441 2008-11-18  Bruno Haible  <bruno@clisp.org>
19442
19443         * doc/gnulib-tool.texi (Unit tests): New section.
19444
19445 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19446
19447         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19448         paths like 'lib/po/foo.po'.
19449
19450 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19451
19452         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19453         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19454
19455 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19456
19457         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19458         parameter works.
19459
19460 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19461
19462         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19463
19464 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19465
19466         * modules/parse-duration-tests: New file.
19467         * tests/test-parse-duration.sh: New file.
19468         * tests/test-parse-duration.c: New file.
19469
19470         New module 'parse-duration'.
19471         * lib/parse-duration.h: New file.
19472         * lib/parse-duration.c: New file.
19473         * modules/parse-duration: New file.
19474
19475 2008-11-17  Bruno Haible  <bruno@clisp.org>
19476
19477         * tests/test-select-out.sh: Comment out the first pipe test.
19478         Reported by Simon Josefsson.
19479
19480 2008-11-17  Bruno Haible  <bruno@clisp.org>
19481
19482         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19484         gl_HOSTENT.
19485
19486 2008-11-17  Bruno Haible  <bruno@clisp.org>
19487
19488         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19489         -lnetwork and -lnet. Needed for Haiku and BeOS.
19490
19491 2008-11-16  Bruno Haible  <bruno@clisp.org>
19492
19493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19494
19495 2008-11-16  Bruno Haible  <bruno@clisp.org>
19496
19497         Avoid test failure on Haiku.
19498         * tests/test-fsync.c: Include <errno.h>.
19499         (main): Don't require that fsync (0) fails.
19500
19501 2008-11-15  Bruno Haible  <bruno@clisp.org>
19502
19503         New module 'hostent'.
19504         * modules/hostent: New file.
19505         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19506
19507 2008-11-15  Bruno Haible  <bruno@clisp.org>
19508
19509         New module 'servent'.
19510         * modules/servent: New file.
19511         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19512
19513 2008-11-15  Bruno Haible  <bruno@clisp.org>
19514
19515         Avoid generating same test program with two different rules.
19516         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19517         test-frexp to test-frexp-nolibm.
19518         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19519         test-frexpl to test-frexpl-nolibm.
19520
19521 2008-11-15  Bruno Haible  <bruno@clisp.org>
19522
19523         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19524         $(FREXPL_LIBM).
19525
19526 2008-11-15  Bruno Haible  <bruno@clisp.org>
19527
19528         * lib/netdb.in.h: Activate the definitions also when the system's
19529         <netdb.h> has 'struct addrinfo'.
19530         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19531         EAI_OVERFLOW or AI_NUMERICSERV.
19532         * doc/posix-headers/netdb.texi: Document the problem.
19533
19534 2008-11-15  Bruno Haible  <bruno@clisp.org>
19535
19536         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19537
19538         Make the 'sched' module work on platforms where <sched.h> exists but
19539         is incomplete (such as Haiku).
19540         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19541         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19542         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19543         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19544         HAVE_STRUCT_SCHED_PARAM.
19545         * modules/sched (Depends-on): Add include_next.
19546         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19547         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19548         * doc/posix-headers/sched.texi: Document the issue.
19549
19550 2008-11-13  Jim Meyering  <meyering@redhat.com>
19551
19552         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19553         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19554         test would fail due to the difference in the Report bugs to ...
19555         line.  The expected address is empty, "<>", while the actual
19556         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19557
19558 2008-11-12  Bruno Haible  <bruno@clisp.org>
19559
19560         lstat: don't compile lstat.c on systems lacking lstat
19561         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19562         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19563         Reported by Daniel P. Berrange via Jim Meyering.
19564
19565 2008-11-12  Jim Meyering  <meyering@redhat.com>
19566
19567         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19568
19569 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19570
19571         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19572         instead.
19573
19574 2008-11-12  Bruno Haible  <bruno@clisp.org>
19575
19576         * lib/unicodeio.c: Include unistr.h.
19577         (utf8_wctomb): Remove function.
19578         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19579
19580 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19581
19582         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19583         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19584         <bruno@clisp.org>.
19585         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19586
19587 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19588
19589         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19590         * doc/gnulib.texi: Add section for warnings.
19591
19592 2008-11-11  Bruno Haible  <bruno@clisp.org>
19593
19594         * lib/sockets.h: Add a comment.
19595
19596 2008-11-11  Karl Berry  <karl@gnu.org>
19597
19598         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19599
19600 2008-11-11  Eric Blake  <ebb9@byu.net>
19601
19602         fdl.texi: avoid git symlinks
19603         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19604
19605 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19606
19607         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19608
19609 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19610
19611         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19612         (gl_WARN_ADD): Substitute $2 if literal.
19613
19614 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19615
19616         * m4/warning.m4: Remove.
19617
19618 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19619
19620         * m4/warnings.m4: Almost complete rewrite. :-)
19621
19622 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19623
19624         * modules/warnings: New module.
19625         * m4/warnings.m4: New file.
19626         * MODULES.html.sh: Mention warnings module.
19627         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19628         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19629
19630 2008-11-10  Eric Blake  <ebb9@byu.net>
19631
19632         fdl.texi: make a symlink to the latest version
19633         * doc/standards.texi: Revert today's earlier change.
19634         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19635         * doc/fdl.texi: ...and replace this with a symlink to the newer
19636         fdl-1.3.texi.
19637
19638 2008-11-10  Bruno Haible  <bruno@clisp.org>
19639
19640         * tests/test-select-fd.c (main): Accept the result file name as fourth
19641         argument.
19642         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19643         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19644
19645 2008-11-10  Bruno Haible  <bruno@clisp.org>
19646
19647         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19648         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19649         as autoconf-substituted macros.
19650         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19652         gl_NETDB_H_DEFAULTS. Set these variables.
19653         * modules/netdb (Makefile.am): Substitute these variables.
19654
19655 2008-11-10  Eric Blake  <ebb9@byu.net>
19656
19657         standards.texi: include correct file for FDL 1.3
19658         * doc/standards.texi (GNU Free Documentation License): Change
19659         include file to pull in FDL 1.3, not 1.2.
19660
19661         fdl.texi: revert accidental change to license
19662         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19663
19664 2008-11-10  Bruno Haible  <bruno@clisp.org>
19665
19666         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19667         cross-compiling guesses also when the native compile gives no result.
19668
19669 2008-11-10  Bruno Haible  <bruno@clisp.org>
19670
19671         * lib/spawni.c (__spawni): Force variable into the stack.
19672
19673 2008-11-10  Bruno Haible  <bruno@clisp.org>
19674
19675         Add support for Haiku.
19676         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19677         glibc and BeOS, but also on Haiku.
19678         * lib/fpurge.c (fpurge): Likewise.
19679         * lib/freadable.c (freadable): Likewise.
19680         * lib/freadahead.c (freadahead): Likewise.
19681         * lib/freading.c (freading): Likewise.
19682         * lib/freadptr.c (freadptr): Likewise.
19683         * lib/freadseek.c (freadptrinc): Likewise.
19684         * lib/fseeko.c (rpl_fseeko): Likewise.
19685         * lib/fseterr.c (fseterr): Likewise.
19686         * lib/fwritable.c (fwritable): Likewise.
19687         * lib/fwriting.c (fwriting): Likewise.
19688         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19689
19690 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19691
19692         * lib/config.charset: Treat Haiku like BeOS.
19693
19694 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19695
19696         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19697         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19698
19699 2008-11-08  Bruno Haible  <bruno@clisp.org>
19700
19701         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19702         AC_CACHE_CHECK.
19703
19704 2008-11-08  Bruno Haible  <bruno@clisp.org>
19705
19706         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19707
19708 2008-11-08  Bruno Haible  <bruno@clisp.org>
19709
19710         * tests/test-select-fd.c: New file.
19711         * tests/test-select-in.sh: New file.
19712         * tests/test-select-out.sh: New file.
19713         * tests/test-select-stdin.c: New file.
19714         * modules/select-tests (Files): Add the new files.
19715         (Depends-on): Add gettimeofday.
19716         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19717         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19718         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19719
19720 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19721             Bruno Haible  <bruno@clisp.org>
19722
19723         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19724
19725 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19726
19727         * build-aux/pmccabe2html: Added support for C++ source files.
19728
19729 2008-11-05  Ben Pfaff  <blp@gnu.org>
19730
19731         Fix lib/close.c build on Windows.
19732         * modules/close (Files): Add lib/w32sock.h.
19733
19734 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19735
19736         Accept Bison's NEWS format.
19737         * build-aux/announce-gen (print_news_deltas): Tweak
19738         $re_prefix.
19739
19740 2008-11-04  Bruno Haible  <bruno@clisp.org>
19741
19742         * modules/random_r (Maintainer): Add glibc.
19743
19744 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19745
19746         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19747         by karl@freefriends.org (Karl Berry).
19748         * doc/alloca.texi: Likewise.
19749         * doc/c-ctype.texi: Likewise.
19750         * doc/c-strcase.texi: Likewise.
19751         * doc/c-strcaseeq.texi: Likewise.
19752         * doc/c-strcasestr.texi: Likewise.
19753         * doc/c-strstr.texi: Likewise.
19754         * doc/c-strtod.texi: Likewise.
19755         * doc/c-strtold.texi: Likewise.
19756         * doc/ctime.texi: Likewise.
19757         * doc/error.texi: Likewise.
19758         * doc/fdl.texi: Likewise.
19759         * doc/gcd.texi: Likewise.
19760         * doc/getdate.texi: Likewise.
19761         * doc/gnulib-intro.texi: Likewise.
19762         * doc/gnulib-tool.texi: Likewise.
19763         * doc/gnulib.texi: Likewise.
19764         * doc/inet_ntoa.texi: Likewise.
19765         * doc/maintain.texi: Likewise.
19766         * doc/make-stds.texi: Likewise.
19767         * doc/quote.texi: Likewise.
19768         * doc/regexprops-generic.texi: Likewise.
19769         * doc/standards.texi: Likewise.
19770         * doc/verify.texi: Likewise.
19771         * doc/visibility.texi: Likewise.
19772         * doc/gnulib.texi (GNU Free Documentation License): Include
19773         fdl-1.3.texi instead of fdl.texi.
19774
19775 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19776
19777         * doc/fdl-1.3.texi: New file, from
19778         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19779         * modules/fdl-1.3: Add.
19780         * MODULES.html.sh: Add fdl-1.3.
19781
19782 2008-11-03  Bruno Haible  <bruno@clisp.org>
19783
19784         Make determination of absolute name of header file work with AIX xlc.
19785         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19786         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19787         preprocessing.
19788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19789         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19790
19791 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19792
19793         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19794         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19795         <ludo@gnu.org>.
19796
19797 2008-11-02  Bruno Haible  <bruno@clisp.org>
19798
19799         Mark 'strpbrk' obsolete.
19800         * modules/strpbrk (Status, Notice): New sections.
19801         * modules/strtok_r (Depends-on): Add strpbrk.
19802
19803 2008-11-02  Bruno Haible  <bruno@clisp.org>
19804
19805         Mark 'strdup' obsolete.
19806         * modules/strdup (Status, Notice): New sections.
19807         * modules/findprog (Depends-on): Add strdup.
19808         * modules/getaddrinfo (Depends-on): Likewise.
19809         * modules/localename (Depends-on): Likewise.
19810         * modules/relocatable-lib (Depends-on): Likewise.
19811         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19812         * modules/relocatable-prog (Depends-on): Likewise.
19813         * modules/trim (Depends-on): Likewise.
19814         * modules/unictype/gen-ctype (Depends-on): Likewise.
19815         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19816
19817 2008-11-02  Bruno Haible  <bruno@clisp.org>
19818
19819         Mark 'strcspn' obsolete.
19820         * modules/strcspn (Status, Notice): New sections.
19821
19822 2008-11-02  Bruno Haible  <bruno@clisp.org>
19823
19824         Mark 'rmdir' obsolete.
19825         * modules/rmdir (Status, Notice): New sections.
19826         * modules/clean-temp (Depends-on): Add rmdir.
19827         * modules/openat (Depends-on): Likewise.
19828
19829 2008-11-02  Bruno Haible  <bruno@clisp.org>
19830
19831         Mark 'raise' obsolete.
19832         * modules/raise (Status, Notice): New sections.
19833         (Include): Specify <signal.h>.
19834         * modules/stdio (Depends-on): Add raise.
19835         * modules/write (Depends-on): Likewise.
19836
19837 2008-11-02  Bruno Haible  <bruno@clisp.org>
19838
19839         Mark 'memset' obsolete.
19840         * modules/memset (Status, Notice): New sections.
19841
19842 2008-11-02  Bruno Haible  <bruno@clisp.org>
19843
19844         Mark 'memmove' obsolete.
19845         * modules/memmove (Status, Notice): New sections.
19846         * modules/argp (Depends-on): Add memmove.
19847         * modules/argz (Depends-on): Likewise.
19848         * modules/canonicalize (Depends-on): Likewise.
19849         * modules/canonicalize-lgpl (Depends-on): Likewise.
19850         * modules/fts (Depends-on): Likewise.
19851         * modules/getcwd (Depends-on): Likewise.
19852         * modules/human (Depends-on): Likewise.
19853         * modules/regex (Depends-on): Likewise.
19854         * modules/striconveh (Depends-on): Likewise.
19855         * modules/trim (Depends-on): Likewise.
19856         * modules/unistr/u8-move (Depends-on): Likewise.
19857         * modules/unistr/u16-move (Depends-on): Likewise.
19858         * modules/unistr/u32-move (Depends-on): Likewise.
19859
19860 2008-11-02  Bruno Haible  <bruno@clisp.org>
19861
19862         Mark 'memcpy' obsolete.
19863         * modules/memcpy (Status, Notice): New sections.
19864
19865 2008-11-02  Bruno Haible  <bruno@clisp.org>
19866
19867         Mark 'memcmp' obsolete.
19868         * modules/memcmp (Status, Notice): New sections.
19869         * modules/argmatch (Depends-on): Add memchr.
19870         * modules/backupfile (Depends-on): Likewise.
19871         * modules/c-strcasestr (Depends-on): Likewise.
19872         * modules/crypto/des (Depends-on): Likewise.
19873         * modules/csharpcomp (Depends-on): Likewise.
19874         * modules/fnmatch (Depends-on): Likewise.
19875         * modules/git-merge-changelog (Depends-on): Likewise.
19876         * modules/isnand (Depends-on): Likewise.
19877         * modules/isnand-nolibm (Depends-on): Likewise.
19878         * modules/isnanf (Depends-on): Likewise.
19879         * modules/isnanf-nolibm (Depends-on): Likewise.
19880         * modules/isnanl (Depends-on): Likewise.
19881         * modules/isnanl-nolibm (Depends-on): Likewise.
19882         * modules/mbchar (Depends-on): Likewise.
19883         * modules/memcoll (Depends-on): Likewise.
19884         * modules/quotearg (Depends-on): Likewise.
19885         * modules/regex (Depends-on): Likewise.
19886         * modules/relocatable-prog (Depends-on): Likewise.
19887         * modules/same (Depends-on): Likewise.
19888         * modules/signbit (Depends-on): Likewise.
19889         * modules/strcasestr-simple (Depends-on): Likewise.
19890         * modules/unictype/gen-ctype (Depends-on): Likewise.
19891         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19892         * modules/uniname/uniname (Depends-on): Likewise.
19893         * modules/unistr/u8-cmp (Depends-on): Likewise.
19894
19895 2008-11-02  Bruno Haible  <bruno@clisp.org>
19896
19897         Mark 'memchr' obsolete.
19898         * modules/memchr (Status, Notice): New sections.
19899         * modules/argp (Depends-on): Add memchr.
19900         * modules/base64 (Depends-on): Likewise.
19901         * modules/c-strcasestr (Depends-on): Likewise.
19902         * modules/chdir-long (Depends-on): Likewise.
19903         * modules/fnmatch (Depends-on): Likewise.
19904         * modules/getsubopt (Depends-on): Likewise.
19905         * modules/git-merge-changelog (Depends-on): Likewise.
19906         * modules/glob (Depends-on): Likewise.
19907         * modules/strcasestr-simple (Depends-on): Likewise.
19908         * modules/strnlen (Depends-on): Likewise.
19909
19910 2008-11-02  Bruno Haible  <bruno@clisp.org>
19911
19912         Mark 'atexit' obsolete.
19913         * modules/atexit (Status, Notice): New sections.
19914         * modules/chdir-long (Depends-on): Add atexit.
19915         * modules/wait-process (Depends-on): Likewise.
19916
19917 2008-11-02  Bruno Haible  <bruno@clisp.org>
19918
19919         * gnulib-tool: New option --with-obsolete.
19920         (func_usage): Document it.
19921         (func_modules_transitive_closure): Drop obsolete dependencies if
19922         incobsolete is not true.
19923         (func_import): Read and save the incobsolete variable to the cache.
19924
19925 2008-11-02  Bruno Haible  <bruno@clisp.org>
19926
19927         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19928         * gnulib-tool: New option --extract-status.
19929         (func_usage): Document it.
19930         (sed_extract_prog): Recognize it.
19931         (func_get_status): New function.
19932
19933 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19934
19935         * modules/sockets (License): Change from LGPL to LGPLv2+.
19936
19937 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19938
19939         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19940
19941 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19942
19943         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19944         Mention times and sys_times.
19945         * modules/sys_times, modules/sys_times-tests: New modules.
19946         * modules/times, modules/times-tests: Likewise
19947         * m4/sys_times_h.m4: New file.
19948         * lib/sys_times.in.h: Likewise
19949         * lib/times.c: Likewise.
19950         * tests/test-sys_times.c: Likewise.
19951         * tests/test-times.c: Likewise.
19952         * doc/posix-headers/sys_times.texi: Update.
19953         * doc/posix-functions/times.texi: Update.
19954
19955 2008-10-28  Jim Meyering  <meyering@redhat.com>
19956
19957         * modules/tempname (Depends-on): Add lstat.
19958
19959         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19960
19961 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19962
19963         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19964         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19965         using idiom used elsewhere in gnulib.
19966
19967 2008-10-27  Jim Meyering  <meyering@redhat.com>
19968
19969         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19970
19971 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19972
19973         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19974         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19975         programs.
19976         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19977
19978 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19979
19980         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19981
19982 2008-10-27  Bruno Haible  <bruno@clisp.org>
19983
19984         * tests/test-lstat.c: Include <stdio.h>.
19985
19986 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19987
19988         * modules/lstat-tests: New module.
19989         * tests/test-lstat.c: New file.
19990
19991 2008-10-26  Jim Meyering  <meyering@redhat.com>
19992
19993         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19994
19995 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19996             Bruno Haible  <bruno@clisp.org>
19997
19998         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19999         * modules/configmake (Include): Add a note that the include must come
20000         after all system headers.
20001         * lib/javaversion.c: Include configmake.h after all other includes.
20002
20003 2008-10-26  Bruno Haible  <bruno@clisp.org>
20004
20005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20006         HAVE_STRUCT_RANDOM_DATA to 1.
20007         (gl_STDLIB_H): Simplify.
20008
20009 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20010
20011         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20012         substitute HAVE_STRUCT_RANDOM_DATA.
20013         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20014         random_data.
20015         * modules/stdlib (Makefile.am): Substitute
20016         HAVE_STRUCT_RANDOM_DATA.
20017
20018 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20019
20020         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20021         * doc/gnulib-intro.texi (Copyright): Likewise.
20022
20023 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20024
20025         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20026         findings.
20027
20028 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20029             Bruno Haible  <bruno@clisp.org>
20030
20031         * lib/unistd.in.h: Include <winsock2.h>.
20032         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20033         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20034         Provide dummy declarations.
20035         (gethostname): Override.
20036         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20037         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20038         gl_PREREQ_SYS_H_WINSOCK2.
20039         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20040         * doc/posix-functions/gethostname.texi: More details.
20041
20042 2008-10-25  Bruno Haible  <bruno@clisp.org>
20043
20044         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20045         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20046         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20047
20048         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20049         here ...
20050         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20052         gl_UNISTD_H_DEFAULTS.
20053
20054 2008-10-25  Eric Blake  <ebb9@byu.net>
20055
20056         signbit: avoid spurious compiler failure
20057         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20058         declarations inside function.
20059
20060 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20061             Bruno Haible  <bruno@clisp.org>
20062
20063         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20064         * modules/random_r (Depends-on): Add stdint.
20065
20066 2008-10-24  Bruno Haible  <bruno@clisp.org>
20067
20068         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20069         Eggert.
20070         * modules/strerror (License): Likewise.
20071
20072 2008-10-24  Jim Meyering  <meyering@redhat.com>
20073
20074         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20075         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20076
20077 2008-10-24  Eric Blake  <ebb9@byu.net>
20078
20079         getgroups: fix compilation when getgroups is available
20080         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20081         but with <config.h> override of getgroups disabled.
20082
20083 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20084
20085         * doc/gnulib.texi (Header files): Add note about C++ problems.
20086         Explained by Bruno Haible <bruno@clisp.org>.
20087
20088 2008-10-23  Bruno Haible  <bruno@clisp.org>
20089
20090         Define a dummy SA_NODEFER macro on Interix.
20091         * lib/signal.in.h (SA_NODEFER): Define fallback.
20092         Reported by Aleksey Cheusov <cheusov@tut.by> via
20093         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20094
20095 2008-10-23  Bruno Haible  <bruno@clisp.org>
20096
20097         * modules/freadahead (License): Change to LGPLv2+.
20098         Suggested by Simon Josefsson.
20099
20100 2008-10-23  Jim Meyering  <meyering@redhat.com>
20101
20102         random_r: new module
20103         * modules/random_r: New file.
20104         * m4/random_r.m4: New file.
20105         * lib/random_r.c: New file, from glibc.
20106         * modules/random_r-tests: New file.
20107         * tests/test-random_r.c: New file.
20108         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20109          Declare.
20110         (RAND_MAX): Define.
20111         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20112         * modules/stdlib: Substitute them, too.
20113         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20114         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20115         * doc/glibc-functions/random_r.texi: Likewise.
20116         * doc/glibc-functions/setstate_r.texi: Likewise.
20117         * doc/glibc-functions/srandom_r.texi: Likewise.
20118         * config/srclist.txt: Mention it.
20119
20120 2008-10-23  David Lutterkort  <lutter@redhat.com>
20121
20122         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20123         link requirement
20124
20125 2008-10-23  Jim Meyering  <meyering@redhat.com>
20126
20127         selinux-h: mark parameters of stub functions as intentionally unused
20128         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20129         * lib/se-context.in.h: Likewise.
20130
20131 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20132
20133         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20134
20135 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20136
20137         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20138
20139 2008-10-22  Eric Blake  <ebb9@byu.net>
20140
20141         glthread/thread: avoid compiler warning
20142         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20143         Add unreachable abort to silence compiler.
20144
20145 2008-10-22  Eric Blake  <ebb9@byu.net>
20146
20147         netdb: also supply struct addrinfo for cygwin 1.5.x
20148         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20149         older cygwin.
20150         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20151         cygwin.
20152         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20153
20154 2008-10-22  Bruno Haible  <bruno@clisp.org>
20155
20156         * users.txt: Update entry about pspp.
20157
20158 2008-10-21  Bruno Haible  <bruno@clisp.org>
20159
20160         Simplification.
20161         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20162         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20163
20164         Simplification.
20165         * lib/ioctl.c (ioctl): Don't undefine.
20166         * lib/socket.c (socket): Don't undefine.
20167
20168         Remove unused module indicator macros.
20169         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20170         GNULIB_$1 as a C macro.
20171
20172         * doc/posix-functions/close.texi: Undo last change.
20173         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20174         Windows platforms.
20175
20176 2008-10-21  Bruno Haible  <bruno@clisp.org>
20177
20178         Add gethostname() declaration to <unistd.h>.
20179         * lib/unistd.in.h (gethostname): New declaration.
20180         * lib/gethostname.c: Include <unistd.h>.
20181         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20182         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20184         and HAVE_GETHOSTNAME.
20185         * modules/gethostname (Depends-on): Add unistd.
20186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20187         (Include): Specify <unistd.h>.
20188         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20189         HAVE_GETHOSTNAME.
20190         * tests/test-gethostname.c: Include <unistd.h> first.
20191
20192 2008-10-21  Bruno Haible  <bruno@clisp.org>
20193
20194         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20195         * modules/select-tests (Depends-on): Likewise.
20196         Reported by Simon Josefsson.
20197
20198 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20199
20200         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20201         * lib/accept.c: New file, based on winsock.c.
20202         * lib/bind.c: New file, based on winsock.c.
20203         * lib/connect.c: New file, based on winsock.c.
20204         * lib/getpeername.c: New file, based on winsock.c.
20205         * lib/getsockname.c: New file, based on winsock.c.
20206         * lib/getsockopt.c: New file, based on winsock.c.
20207         * lib/ioctl.c: New file, based on winsock.c.
20208         * lib/listen.c: New file, based on winsock.c.
20209         * lib/recv.c: New file, based on winsock.c.
20210         * lib/recvfrom.c: New file, based on winsock.c.
20211         * lib/send.c: New file, based on winsock.c.
20212         * lib/sendto.c: New file, based on winsock.c.
20213         * lib/setsockopt.c: New file, based on winsock.c.
20214         * lib/shutdown.c: New file, based on winsock.c.
20215         * lib/socket.c: New file, based on winsock.c.
20216         * lib/w32sock.h: New file, based on winsock.c.
20217         * lib/winsock.c: Remove file.
20218         * modules/accept: Likewise.
20219         * modules/bind: Likewise.
20220         * modules/connect: Likewise.
20221         * modules/getpeername: Likewise.
20222         * modules/getsockname: Likewise.
20223         * modules/getsockopt: Likewise.
20224         * modules/ioctl: Likewise.
20225         * modules/listen: Likewise.
20226         * modules/recv: Likewise.
20227         * modules/recvfrom: Likewise.
20228         * modules/send: Likewise.
20229         * modules/sendto: Likewise.
20230         * modules/setsockopt: Likewise.
20231         * modules/shutdown: Likewise.
20232         * modules/socket: Use socket.c instead of winsock.c.
20233         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20234         * doc/posix-functions/accept.texi: Doc fix.
20235         * doc/posix-functions/bind.texi: Doc fix.
20236         * doc/posix-functions/close.texi: Doc fix.
20237         * doc/posix-functions/connect.texi: Doc fix.
20238         * doc/posix-functions/getpeername.texi: Doc fix.
20239         * doc/posix-functions/getsockname.texi: Doc fix.
20240         * doc/posix-functions/getsockopt.texi: Doc fix.
20241         * doc/posix-functions/ioctl.texi: Doc fix.
20242         * doc/posix-functions/listen.texi: Doc fix.
20243         * doc/posix-functions/recv.texi: Doc fix.
20244         * doc/posix-functions/recvfrom.texi: Doc fix.
20245         * doc/posix-functions/send.texi: Doc fix.
20246         * doc/posix-functions/sendto.texi: Doc fix.
20247         * doc/posix-functions/setsockopt.texi: Doc fix.
20248         * doc/posix-functions/shutdown.texi: Doc fix.
20249         * doc/posix-functions/socket.texi: Doc fix.
20250
20251 2008-10-20  Bruno Haible  <bruno@clisp.org>
20252
20253         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20254         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20255         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20256         as an alias for SIGABRT.
20257         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20258         (sigaction): Map it to SIGABRT.
20259         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20260
20261 2008-10-20  Bruno Haible  <bruno@clisp.org>
20262
20263         * lib/fts.c: Don't include lstat.h.
20264         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20265
20266         Move the lstat() declaration to <sys/stat.h>.
20267         * lib/lstat.h: Remove file.
20268         * lib/sys_stat.in.h: Add special invocation convention.
20269         (lstat): New declaration.
20270         * lib/lstat.c (orig_lstat): New function.
20271         (rpl_lstat): Use orig_lstat instead of lstat.
20272         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20273         AC_C_INLINE. Set REPLACE_LSTAT.
20274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20275         and REPLACE_LSTAT.
20276         * modules/lstat (Files): Remove lib/lstat.h.
20277         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20278         (Include): Specify <sys/stat.h> instead of lstat.h.
20279         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20280         REPLACE_LSTAT.
20281         * NEWS: Mention the change.
20282
20283 2008-10-20  Bruno Haible  <bruno@clisp.org>
20284
20285         * modules/posix_spawn-tests: New file.
20286         * tests/test-posix_spawn3.c: New file.
20287
20288 2008-10-20  Bruno Haible  <bruno@clisp.org>
20289
20290         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20291         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20292         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20293         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20294         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20295
20296 2008-10-20  Bruno Haible  <bruno@clisp.org>
20297
20298         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20299         of posix_spawn on AIX 5.3.
20300
20301 2008-10-20  Bruno Haible  <bruno@clisp.org>
20302
20303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20304
20305 2008-10-20  Bruno Haible  <bruno@clisp.org>
20306
20307         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20308         of AC_LANG_PROGRAM.
20309
20310 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20311
20312         * lib/netdb.in.h: Don't define GNU specific constants until they
20313         are supported or needed.  Reported by Bruno Haible
20314         <bruno@clisp.org>.
20315
20316 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20317
20318         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20319
20320 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20321
20322         * lib/getaddrinfo.h: Remove file.
20323         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20324         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20325         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20326         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20327         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20328         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20329         * tests/test-getaddrinfo.c: Likewise.
20330         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20331         * NEWS: Mention change.
20332
20333 2008-10-19  Bruno Haible  <bruno@clisp.org>
20334
20335         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20336
20337 2008-10-19  Bruno Haible  <bruno@clisp.org>
20338
20339         * lib/wait-process.c: Include simply <sys/wait.h>.
20340         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20341         WIFSTOPPED): Remove fallback definitions.
20342         * modules/wait-process (Depends-on): Add sys_wait.
20343
20344         New module 'sys_wait'.
20345         * modules/sys_wait: New file.
20346         * lib/sys_wait.in.h: New file, partially copied from
20347         lib/wait-process.c.
20348         * m4/sys_wait_h.m4: New file.
20349         * doc/posix-headers/sys_wait.texi: Mention the new module.
20350
20351 2008-10-19  Bruno Haible  <bruno@clisp.org>
20352
20353         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20354
20355 2008-10-19  Bruno Haible  <bruno@clisp.org>
20356
20357         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20358         * lib/wait-process.c (WAIT_T): Remove type.
20359         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20360         (wait_subprocess): Update.
20361
20362 2008-10-19  Bruno Haible  <bruno@clisp.org>
20363
20364         New module 'atoll'.
20365         * modules/atoll: New file.
20366         * lib/stdlib.in.h (atoll): New declaration.
20367         * lib/atoll.c: New file, from glibc with modifications.
20368         * m4/atoll.m4: New file.
20369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20370         HAVE_ATOLL.
20371         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20372         * doc/posix-functions/atoll.texi: Mention the new module.
20373
20374 2008-10-19  Bruno Haible  <bruno@clisp.org>
20375
20376         Add strtoull() declaration to <stdlib.h>.
20377         * lib/stdlib.in.h (strtoull): New declaration.
20378         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20379         Set HAVE_STRTOULL.
20380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20381         HAVE_STRTOULL.
20382         * modules/strtoull (Depends-on): Add stdlib.
20383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20384         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20385         HAVE_STRTOULL.
20386
20387 2008-10-19  Bruno Haible  <bruno@clisp.org>
20388
20389         Add strtoll() declaration to <stdlib.h>.
20390         * lib/stdlib.in.h (strtoll): New declaration.
20391         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20392         Set HAVE_STRTOLL.
20393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20394         HAVE_STRTOLL.
20395         * modules/strtoll (Depends-on): Add stdlib.
20396         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20397         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20398
20399 2008-10-19  Bruno Haible  <bruno@clisp.org>
20400
20401         * modules/bcopy (Depends-on): Add strings.
20402         (Include): Specify <strings.h>.
20403
20404 2008-10-19  Bruno Haible  <bruno@clisp.org>
20405
20406         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20407
20408 2008-10-19  Bruno Haible  <bruno@clisp.org>
20409
20410         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20411         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20412         mingw.
20413
20414 2008-10-19  Bruno Haible  <bruno@clisp.org>
20415
20416         * lib/atanl.c: Don't include isnanl.h.
20417         * lib/cosl.c: Likewise.
20418         * lib/ldexpl.c: Likewise.
20419         * lib/logl.c: Likewise.
20420         * lib/sinl.c: Likewise.
20421         * lib/sqrtl.c: Likewise.
20422         * lib/tanl.c: Likewise.
20423
20424         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20425         * lib/isnanf.h: Remove file.
20426         * lib/isnand.h: Remove file.
20427         * lib/isnanl.h: Remove file.
20428         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20429         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20430         macros.
20431         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20432         HAVE_ISNANF, don't define it as a C macro.
20433         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20434         HAVE_ISNAND, don't define it as a C macro.
20435         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20436         HAVE_ISNANL, don't define it as a C macro.
20437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20438         HAVE_ISNAN[FDL].
20439         * modules/isnanf (Files): Remove lib/isnanf.h.
20440         (Depends-on): Add math.
20441         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20442         (Include): Specify <math.h> instead of isnanf.h.
20443         * modules/isnand (Files): Remove lib/isnand.h.
20444         (Depends-on): Add math.
20445         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20446         (Include): Specify <math.h> instead of isnand.h.
20447         * modules/isnanl (Files): Remove lib/isnanl.h.
20448         (Depends-on): Add math.
20449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20450         (Include): Specify <math.h> instead of isnanl.h.
20451         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20452         HAVE_ISNAN[FDL].
20453         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20454         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20455         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20456         * NEWS: Mention the change.
20457
20458 2008-10-18  Bruno Haible  <bruno@clisp.org>
20459
20460         Add getusershell(), setusershell(), endusershell() declarations to
20461         <unistd.h>.
20462         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20463         declarations.
20464         * lib/getusershell.c: Include unistd.h.
20465         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20466         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20467         HAVE_GETUSERSHELL.
20468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20469         and HAVE_GETUSERSHELL.
20470         * modules/getusershell (Depends-on): Add unistd, extensions.
20471         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20472         (Include): Specify <unistd.h>.
20473         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20474         HAVE_GETUSERSHELL.
20475
20476 2008-10-18  Bruno Haible  <bruno@clisp.org>
20477
20478         Add a getloadavg() declaration to <stdlib.h>.
20479         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20480         getloadavg declaration.
20481         (getloadavg): New declaration.
20482         * lib/getloadavg.c: Include <stdlib.h> first.
20483         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20484         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20485         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20487         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20488         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20490         (Include): Specify <stdlib.h>.
20491         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20492         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20493
20494 2008-10-18  Bruno Haible  <bruno@clisp.org>
20495
20496         * lib/dirchownmod.c: Don't include lchmod.h.
20497
20498         Move the lchmod() declaration to <sys/stat.h>.
20499         * lib/lchmod.h: Remove file.
20500         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20501         (lchmod): New declaration, moved here from lib/lchown.h.
20502         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20503         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20504         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20505         and HAVE_LCHMOD.
20506         * modules/lchmod (Files): Remove lib/lchmod.h.
20507         (Depends-on): Add sys_stat, extensions.
20508         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20509         (Include): Specify <sys/stat.h> instead of lchmod.h.
20510         * modules/sys_stat (Depends-on): Add link-warning.
20511         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20512         definition of GL_LINK_WARNING.
20513         * NEWS: Mention the change.
20514
20515 2008-10-18  Bruno Haible  <bruno@clisp.org>
20516
20517         * lib/fchdir.c: Don't include dirfd.h.
20518         * lib/fts.c: Likewise.
20519         * lib/getcwd.c: Likewise.
20520         * lib/glob.c: Likewise.
20521
20522         Move the dirfd() declaration to <dirent.h>.
20523         * lib/dirfd.h: Remove file.
20524         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20525         (dirfd): New declaration.
20526         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20527         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20528         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20529         HAVE_DECL_DIRFD.
20530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20531         HAVE_DECL_DIRFD.
20532         * modules/dirfd (Files): Remove lib/dirfd.h.
20533         (Depends-on): Add dirent, extensions.
20534         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20535         (Include): Specify <dirent.h> instead of dirfd.h.
20536         * modules/dirent (Depends-on): Add link-warning.
20537         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20538         definition of GL_LINK_WARNING.
20539         * NEWS: Mention the change.
20540
20541 2008-10-18  Bruno Haible  <bruno@clisp.org>
20542
20543         Move the euidaccess() declaration to <unistd.h>.
20544         * lib/euidaccess.h: Remove file.
20545         * lib/unistd.in.h (euidaccess): New declaration.
20546         * lib/euidaccess.c: Don't include euidaccess.h.
20547         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20548         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20550         and HAVE_EUIDACCESS.
20551         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20552         (Depends-on): Add unistd.
20553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20554         (Include): Specify <unistd.h> instead of euidaccess.h.
20555         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20556         HAVE_EUIDACCESS.
20557         * NEWS: Mention the change.
20558
20559 2008-10-18  Bruno Haible  <bruno@clisp.org>
20560
20561         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20562
20563         Move the getdomainname() declaration to <unistd.h>.
20564         * lib/getdomainname.h: Remove file.
20565         * lib/unistd.in.h (getdomainname): New declaration.
20566         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20567         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20568         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20569         HAVE_GETDOMAINNAME.
20570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20571         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20572         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20573         (Depends-on): Add unistd, extensions.
20574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20575         (Includes): Specify <unistd.h> instead of getdomainname.h.
20576         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20577         HAVE_GETDOMAINNAME.
20578         * NEWS: Mention the change.
20579
20580 2008-10-18  Bruno Haible  <bruno@clisp.org>
20581
20582         * modules/dirent: New file.
20583         * m4/dirent_h.m4: New file.
20584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20585         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20586         * modules/fchdir (Files): Remove lib/dirent.in.h.
20587         (Depends-on): Add dirent.
20588         (Makefile.am): Move rules to modules/dirent.
20589         * doc/posix-headers/dirent.texi: Mention the new module.
20590
20591 2008-10-18  Bruno Haible  <bruno@clisp.org>
20592
20593         Avoid -Wunused-parameter warnings in public gnulib header files.
20594         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20595         macro.
20596         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20597
20598 2008-10-18  Bruno Haible  <bruno@clisp.org>
20599
20600         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20601         * doc/glibc-functions/error.texi: Mention the module 'error'.
20602         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20603         * doc/glibc-functions/getdomainname.texi: Mention the module
20604         'getdomainname'.
20605         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20606         * doc/glibc-functions/getpagesize.texi: Mention the module
20607         'getpagesize'.
20608         * doc/glibc-functions/getusershell.texi: Mention the module
20609         'getusershell'.
20610         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20611         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20612         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20613         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20614         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20615         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20616         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20617         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20618         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20619         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20620         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20621         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20622         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20623         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20624
20625 2008-10-17  Bruno Haible  <bruno@clisp.org>
20626
20627         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20628         HP-UX and IRIX, use -0.0L.
20629         * tests/test-ceill.c (minus_zero): Likewise.
20630         * tests/test-floorl.c (minus_zero): Likewise.
20631         * tests/test-frexpl.c (minus_zero): Likewise.
20632         * tests/test-isnan.c (minus_zerol): Likewise.
20633         * tests/test-isnanl.h (minus_zero): Likewise.
20634         * tests/test-ldexpl.c (minus_zero): Likewise.
20635         * tests/test-roundl.c (minus_zero): Likewise.
20636         * tests/test-signbit.c (minus_zerol): Likewise.
20637         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20638         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20639         * tests/test-truncl.c (minus_zero): Likewise.
20640         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20641         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20642         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20643         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20644
20645 2008-10-17  Bruno Haible  <bruno@clisp.org>
20646
20647         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20648         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20649         that it gets activated only for gcc >= 3.0.
20650         * lib/dirent.in.h: Likewise.
20651         * lib/errno.in.h: Likewise.
20652         * lib/fcntl.in.h: Likewise.
20653         * lib/float.in.h: Likewise.
20654         * lib/iconv.in.h: Likewise.
20655         * lib/inttypes.in.h: Likewise.
20656         * lib/locale.in.h: Likewise.
20657         * lib/math.in.h: Likewise.
20658         * lib/netdb.in.h: Likewise.
20659         * lib/netinet_in.in.h: Likewise.
20660         * lib/search.in.h: Likewise.
20661         * lib/signal.in.h: Likewise.
20662         * lib/spawn.in.h: Likewise.
20663         * lib/stdarg.in.h: Likewise.
20664         * lib/stdint.in.h: Likewise.
20665         * lib/stdio.in.h: Likewise.
20666         * lib/stdlib.in.h: Likewise.
20667         * lib/string.in.h: Likewise.
20668         * lib/strings.in.h: Likewise.
20669         * lib/sys_file.in.h: Likewise.
20670         * lib/sys_ioctl.in.h: Likewise.
20671         * lib/sys_select.in.h: Likewise.
20672         * lib/sys_socket.in.h: Likewise.
20673         * lib/sys_stat.in.h: Likewise.
20674         * lib/sys_time.in.h: Likewise.
20675         * lib/sysexits.in.h: Likewise.
20676         * lib/time.in.h: Likewise.
20677         * lib/unistd.in.h: Likewise.
20678         * lib/wchar.in.h: Likewise.
20679         * lib/wctype.in.h: Likewise.
20680         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20681
20682 2008-10-17  Jim Meyering  <meyering@redhat.com>
20683
20684         ignore-value: don't depend on inline module
20685         * modules/ignore-value (Depends-on): Remove 'inline'.
20686         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20687         Suggestion from Bruno Haible.
20688
20689 2008-10-17  Bruno Haible  <bruno@clisp.org>
20690
20691         New implementation of condition variables for Win32.
20692         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20693         (gl_linked_waitqueue_t): New type.
20694         (gl_cond_t): Use it.
20695         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20696         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20697         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20698         (glthread_cond_init_func, glthread_cond_wait_func,
20699         glthread_cond_timedwait_func, glthread_cond_signal_func,
20700         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20701         Reimplemented on the basis of gl_linked_waitqueue_t.
20702         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20703         gl_waitqueue_t.
20704         (gl_rwlock_t): Update.
20705         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20706
20707 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20708
20709         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20710         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20711
20712 2008-10-17  Jim Meyering  <meyering@redhat.com>
20713
20714         ignore-value: new module
20715         * modules/ignore-value: New file.
20716         * lib/ignore-value.h: New file.
20717         * MODULES.html.sh (Compiler warning management): New section,
20718         just for this module.  More to come.
20719
20720 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20721
20722         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20723         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20724         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20725
20726 2008-10-16  Jim Meyering  <meyering@redhat.com>
20727
20728         openat-die.c: avoid 'no previous prototype' warning
20729         * lib/openat-die.c: Include "openat.h".
20730         Reported by Reuben Thomas <rrt@sc3d.org>.
20731
20732 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20733
20734         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20735         * lib/netdb.in.h: Fix typo.
20736         Reported by Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/netdb.in.h: Include sys/socket.h for platforms without
20739         netdb.h, to get structures like hostent on MinGW.
20740         * modules/netdb (Depends-on): Add sys_socket.
20741
20742 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20743
20744         * modules/netdb, modules/netdb-tests: New file.
20745         * m4/netdb_h.m4: New file.
20746         * lib/netdb.in.h: Add, currently just an empty file pending
20747         definitions.
20748         * tests/test-netdb.c: New file.
20749         * doc/posix-headers/netdb.texi: Mention that we replace it if
20750         needed.
20751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20752         netdb.
20753
20754 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20755
20756         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20757         with code.
20758
20759 2008-10-13  Bruno Haible  <bruno@clisp.org>
20760
20761         * lib/glthread/cond.c (glthread_cond_wait_func,
20762         glthread_cond_timedwait_func): Add a comment.
20763
20764 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20765
20766         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20767         * tests/test-select.c: Likewise,
20768
20769 2008-10-13  Bruno Haible  <bruno@clisp.org>
20770
20771         * lib/glthread/cond.c (glthread_cond_wait_func,
20772         glthread_cond_timedwait_func): Fix variable name.
20773         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20774
20775 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20776
20777         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20779         struct sockaddr.sa_len.
20780         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20781
20782 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20783
20784         * build-aux/pmccabe2html: Add css and css_url parameters.
20785
20786 2008-10-12  Bruno Haible  <bruno@clisp.org>
20787
20788         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20789         calling aclx_get.
20790         Reported by Rainer Tammer <tammer@tammer.net>.
20791
20792 2008-10-12  Bruno Haible  <bruno@clisp.org>
20793
20794         Use msvcrt aware primitives for creation/termination of Win32 threads.
20795         * lib/glthread/thread.c: Include <process.h>.
20796         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20797         (wrapper_func): Update signature.
20798         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20799
20800 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20801             Bruno Haible  <bruno@clisp.org>
20802
20803         Provide a Win32 implementation of the 'cond' module.
20804         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20805         * lib/glthread/cond.c (glthread_cond_init_func,
20806         glthread_cond_wait_func, glthread_cond_timedwait_func,
20807         glthread_cond_signal_func, glthread_cond_broadcast_func,
20808         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20809         * modules/cond (Dependencies): Add gettimeofday.
20810
20811 2008-10-11  Bruno Haible  <bruno@clisp.org>
20812
20813         Make sleep work on older versions of mingw.
20814         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20815         only whether it exists.
20816         * doc/posix-functions/sleep.texi: Mention the problem with older
20817         versions of mingw.
20818
20819 2008-10-11  Bruno Haible  <bruno@clisp.org>
20820
20821         New module 'shutdown'.
20822         * modules/shutdown: New file.
20823         * lib/sys_socket.in.h (shutdown): New declaration.
20824         * lib/winsock.c (shutdown): New function.
20825         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20826         GNULIB_SHUTDOWN.
20827         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20828         * doc/posix-functions/shutdown.texi: Document the new module.
20829
20830 2008-10-11  Jim Meyering  <meyering@redhat.com>
20831
20832         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20833
20834 2008-10-11  Bruno Haible  <bruno@clisp.org>
20835
20836         New module 'fclose'.
20837         * modules/fclose: New file.
20838         * lib/stdio.in.h (fclose): New declaration.
20839         * lib/fclose.c: New file.
20840         * m4/fclose.m4: New file.
20841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20842         REPLACE_FCLOSE.
20843         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20844         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20845         REPLACE_FCLOSE.
20846         * modules/close (Depends-on): fclose.
20847         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20848
20849 2008-10-11  Bruno Haible  <bruno@clisp.org>
20850
20851         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20852         set errno and don't call _close.
20853
20854 2008-10-10  Bruno Haible  <bruno@clisp.org>
20855
20856         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20857         ACL, not afterwards. Fixes test failure on Cygwin.
20858
20859 2008-10-09  Ben Pfaff  <blp@gnu.org>
20860
20861         * build-aux/announce-gen: Fix gnulib version related part of usage
20862         message.  Die with a useful error message if no tarballs are
20863         found.
20864
20865 2008-10-10  Jim Meyering  <meyering@redhat.com>
20866
20867         bootstrap: use git's --depth=N option only if it's supported
20868         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20869         recognize the --depth option.  Reported by Pádraig Brady.
20870
20871 2008-10-09  Bruno Haible  <bruno@clisp.org>
20872
20873         New module 'ioctl'.
20874         * modules/ioctl: New file.
20875         * lib/sys_socket.in.h (ioctl): Remove declaration.
20876         * lib/winsock.c: Include <sys/ioctl.h>.
20877         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20878         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20879         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20880         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20881         * doc/posix-functions/ioctl.texi: Mention the new module.
20882
20883 2008-10-09  Bruno Haible  <bruno@clisp.org>
20884
20885         New module 'sys_ioctl'.
20886         * lib/sys_ioctl.in.h: New file.
20887         * m4/sys_ioctl_h.m4: New file.
20888         * modules/sys_ioctl: New file.
20889         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20890
20891 2008-10-09  Bruno Haible  <bruno@clisp.org>
20892
20893         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20894         * lib/winsock.c: Include <stdarg.h>.
20895         (rpl_ioctl): Change to second argument 'int' and then varargs.
20896
20897 2008-10-09  Bruno Haible  <bruno@clisp.org>
20898
20899         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20900         when the sys_socket module is present and the system has <winsock2.h>.
20901
20902 2008-10-09  Bruno Haible  <bruno@clisp.org>
20903
20904         * doc/posix-functions/close.texi: Mention module 'close' instead of
20905         module 'sys_socket'.
20906
20907 2008-10-09  Bruno Haible  <bruno@clisp.org>
20908
20909         * doc/glibc-headers/sys_ioctl.texi: New file.
20910         * doc/gnulib.texi: Include it.
20911
20912 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20913             Bruno Haible  <bruno@clisp.org>
20914
20915         Combine the two replacements of 'close'.
20916         * lib/sys_socket.in.h (close): Define to a reminder to include
20917         <unistd.h>.
20918         (_gl_close_fd_maybe_socket): New declaration.
20919         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20920         * lib/winsock.c (close): Remove undefinition.
20921         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20922         needed for the gnulib module 'close'.
20923         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20924         define to an error symbol or to a warning, if suitable.
20925         * lib/close.c: Include <sys/socket.h>.
20926         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20927         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20928         UNISTD_H_HAVE_WINSOCK2_H.
20929         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20931         UNISTD_H_HAVE_WINSOCK2_H.
20932         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20933         (configure.ac): Set a module indicator.
20934         (Makefile.am): Substitute GNULIB_CLOSE.
20935         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20936         * modules/poll-tests (Depends-on): Add close.
20937         * modules/select-tests (Depends-on): Likewise.
20938
20939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20940             Bruno Haible  <bruno@clisp.org>
20941
20942         New module 'close'.
20943         * modules/close: New file.
20944         * lib/unistd.in.h (close): Move declaration out of the
20945         FCHDIR_REPLACEMENT scope.
20946         (_gl_unregister_fd): New declaration.
20947         * lib/close.c: New file.
20948         * lib/fchdir.c (rpl_close): Remove function.
20949         * m4/close.m4: New file.
20950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20951         close.
20952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20953         REPLACE_CLOSE.
20954         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20955         REPLACE_CLOSE.
20956         * modules/fchdir (Depends-on): Add close.
20957
20958 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20959             Bruno Haible  <bruno@clisp.org>
20960
20961         * lib/fcntl.in.h (open): Simplify conditionals.
20962         (_gl_register_fd): New declaration.
20963         * lib/fchdir.c (rpl_open): Remove function.
20964         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20965         also.
20966         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20968         open.
20969
20970 2008-10-09  Jim Meyering  <meyering@redhat.com>
20971
20972         GNUmakefile: use the more name-space-friendly "_version"
20973         * top/GNUmakefile (_dummy): Update.
20974         (_version): Rename from "version".
20975
20976 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20977             Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20980         rpl_close.
20981         (_gl_register_fd): New function, extracted from rpl_open.
20982         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20983         (rpl_open, rpl_opendir): Use _gl_register_fd.
20984
20985 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20986
20987         Fix organization of 'open' replacement.
20988         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20989         (gl_FUNC_OPEN): Use it.
20990         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20991
20992 2008-10-08  Bruno Haible  <bruno@clisp.org>
20993
20994         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20995
20996 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20997
20998         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20999         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21000         listen).
21001
21002 2008-10-08  Eric Blake  <ebb9@byu.net>
21003
21004         GNUmakefile: add 'make version' target
21005         * top/GNUmakefile (_curr-ver): Split version update rules...
21006         (version): ...into a target.
21007
21008 2008-10-07  Bruno Haible  <bruno@clisp.org>
21009
21010         Use a more portable replacement expression for -0.0L.
21011         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21012         instead of -0.0L. Fix m4 quotation.
21013
21014         * tests/test-signbit.c: Include <float.h>.
21015         (minus_zero): New variable.
21016         (test_signbitl): Use minus_zero instead of -zero.
21017         * modules/signbit-tests (Depends-on): Add float.
21018
21019         * tests/test-ceill.c: Include <float.h>.
21020         (zero): Remove variable.
21021         (minus_zero): New variable.
21022         (main): Use minus_zero instead of -zero.
21023         * modules/ceill-tests (Depends-on): Add float.
21024
21025         * tests/test-floorl.c: Include <float.h>.
21026         (zero): Remove variable.
21027         (minus_zero): New variable.
21028         (main): Use minus_zero instead of -zero.
21029         * modules/floorl-tests (Depends-on): Add float.
21030
21031         * tests/test-roundl.c: Include <float.h>.
21032         (zero): Remove variable.
21033         (minus_zero): New variable.
21034         (main): Use minus_zero instead of -zero.
21035         * modules/roundl-tests (Depends-on): Add float.
21036
21037         * tests/test-truncl.c: Include <float.h>.
21038         (zero): Remove variable.
21039         (minus_zero): New variable.
21040         (main): Use minus_zero instead of -zero.
21041         * modules/truncl-tests (Depends-on): Add float.
21042
21043         * tests/test-frexpl.c (zero): Remove variable.
21044         (minus_zero): New variable.
21045         (main): Use minus_zero instead of -zero.
21046         * modules/frexpl-tests (Depends-on): Add float.
21047
21048         * tests/test-isnan.c (zerol): Remove variable.
21049         (minus_zerol): New variable.
21050         (test_long_double): Use minus_zerol instead of -zerol.
21051         * modules/isnan-tests (Depends-on): Add float.
21052
21053         * tests/test-isnanl.h (zero): Remove variable.
21054         (minus_zero): New variable.
21055         (main): Use minus_zero instead of -zero.
21056         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21057         * modules/isnanl-tests (Depends-on): Add float.
21058
21059         * tests/test-ldexpl.c (zero): Remove variable.
21060         (minus_zero): New variable.
21061         (main): Use minus_zero instead of -zero.
21062         * modules/ldexpl-tests (Depends-on): Add float.
21063
21064         * tests/test-snprintf-posix.h (zerol): Remove variable.
21065         (minus_zerol): New variable.
21066         (test_function): Use minus_zerol instead of -zerol.
21067         * modules/snprintf-posix-tests (Depends-on): Add float.
21068         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21069
21070         * tests/test-sprintf-posix.h (zerol): Remove variable.
21071         (minus_zerol): New variable.
21072         (test_function): Use minus_zerol instead of -zerol.
21073         * modules/sprintf-posix-tests (Depends-on): Add float.
21074         * modules/vsprintf-posix-tests (Depends-on): Add float.
21075
21076         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21077         (minus_zerol): New variable.
21078         (test_function): Use minus_zerol instead of -zerol.
21079         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21080
21081         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21082         (minus_zerol): New variable.
21083         (test_function): Use minus_zerol instead of -zerol.
21084         * modules/vasprintf-posix-tests (Depends-on): Add float.
21085
21086 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21087
21088         * MODULES.html.sh (Support for building documentation): Mention
21089         pmccabe2html.  Sort entries.
21090
21091         Add pmccabe2html module, from gnupdf.
21092         * build-aux/pmccabe.css: New file.
21093         * build-aux/pmccabe2html: New file.
21094         * m4/pmccabe2html.m4: New file.
21095         * modules/pmccabe2html: New file.
21096
21097 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21098
21099         flock: new module
21100         * MODULES.html.sh: Add to list of modules.
21101         * lib/flock.c: flock implementation for Windows and Unix systems
21102         which have fcntl.
21103         * doc/glibc-functions/flock.texi: Update documentation.
21104         * lib/sys_file.in.h: <sys/file.h> header file.
21105         * m4/flock.m4: M4 macros.
21106         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21107         * modules/flock: flock module.
21108         * modules/flock-tests: flock tests module.
21109         * modules/sys_file: sys/file.h module.
21110         * tests/test-flock.c: test suite for flock.
21111
21112 2008-10-06  Jim Meyering  <meyering@redhat.com>
21113
21114         bootstrap: check for LT_INIT more portably still ;-)
21115         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21116         Spotted by Bruno Haible.
21117
21118 2008-10-06  Eric Blake  <ebb9@byu.net>
21119
21120         test-signbit: avoid tripping Irix cc bug on -0.0L
21121         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21122         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21123         entire testsuite consistent and avoids an Irix 6.2 bug.
21124
21125 2008-10-05  Bruno Haible  <bruno@clisp.org>
21126             Jim Meyering  <jim@meyering.net>
21127
21128         Add an option for ignoring EPIPE during close_stdout.
21129         * lib/closeout.h: Include <stdbool.h>.
21130         (close_stdout_set_ignore_EPIPE): New declaration.
21131         * lib/closeout.c: Include <stdbool.h>.
21132         (ignore_EPIPE): New variable.
21133         (close_stdout_set_ignore_EPIPE): New function.
21134         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21135         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21136         failure.
21137         * modules/closeout (Depends-on): Add stdbool.
21138
21139 2008-10-05  Bruno Haible  <bruno@clisp.org>
21140
21141         * modules/accept: New file.
21142         * modules/bind: New file.
21143         * modules/connect: New file.
21144         * modules/getpeername: New file.
21145         * modules/getsockname: New file.
21146         * modules/getsockopt: New file.
21147         * modules/listen: New file.
21148         * modules/recv: New file.
21149         * modules/recvfrom: New file.
21150         * modules/send: New file.
21151         * modules/sendto: New file.
21152         * modules/setsockopt: New file.
21153         * modules/socket: New file.
21154         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21155         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21156         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21157         the particular module is requested. Add a link warning when the
21158         particular module is not requested.
21159         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21160         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21161         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21162         the particular module is requested.
21163         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21164         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21165         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21166         * modules/sys_socket (Depends-on): Add link-warning.
21167         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21168         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21169         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21170         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21171         GL_LINK_WARNING.
21172         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21173         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21174         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21175         * doc/posix-functions/getpeername.texi: Mention the new module
21176         'getpeername'.
21177         * doc/posix-functions/getsockname.texi: Mention the new module
21178         'getsockname'.
21179         * doc/posix-functions/getsockopt.texi: Mention the new module
21180         'getsockopt'.
21181         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21182         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21183         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21184         * doc/posix-functions/send.texi: Mention the new module 'send'.
21185         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21186         * doc/posix-functions/setsockopt.texi: Mention the new module
21187         'setsockopt'.
21188         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21189         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21190         listen, connect, accept.
21191         * modules/select-tests (Depends-on): Likewise.
21192
21193 2008-10-05  Bruno Haible  <bruno@clisp.org>
21194
21195         * lib/winsock.c (strerror): Remove unused #undef.
21196         (rpl_close): Remove unused local variable.
21197
21198         * modules/sys_socket (Depends-on); Add errno.
21199
21200 2008-10-05  Bruno Haible  <bruno@clisp.org>
21201
21202         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21203         (select): Add a link warning when the 'select' module is not used.
21204         * modules/sys_select (Depends-on): Add link-warning.
21205         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21206         Suggested by Paolo Bonzini.
21207
21208 2008-10-05  Jim Meyering  <meyering@redhat.com>
21209
21210         bootstrap: check for LT_INIT more portably
21211         * build-aux/bootstrap: Avoid using grep -E, since it's not
21212         portable enough.  Suggestion from Bruno Haible.
21213
21214 2008-10-05  Bruno Haible  <bruno@clisp.org>
21215
21216         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21217         as being fixed by gnulib.
21218
21219 2008-10-05  Bruno Haible  <bruno@clisp.org>
21220
21221         * modules/select-tests: New file, mostly copied from
21222         modules/sys_select-tests.
21223         * tests/test-select.c: New file, mostly copied from
21224         tests/test-sys_select.c.
21225         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21226         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21227         (Makefile.am): Remove test_sys_select_LDADD.
21228
21229         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21230         to an undefined symbol, for an error message.
21231         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21232         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21233         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21234         winsock-select.c here.
21235         * modules/sys_select (Files): Remove lib/winsock-select.c.
21236         (Depends-on): Remove alloca.
21237         (Makefile.am): Substitute GNULIB_SELECT.
21238         * modules/select: New file.
21239         * doc/posix-functions/select.texi: Update.
21240
21241 2008-10-05  Bruno Haible  <bruno@clisp.org>
21242
21243         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21244         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21245         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21246         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21247         getdtablesize.
21248         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21249         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21250
21251 2008-10-05  Bruno Haible  <bruno@clisp.org>
21252
21253         * modules/getdtablesize-tests: New file.
21254         * tests/test-getdtablesize.c: New file.
21255
21256         New module 'getdtablesize'.
21257         * lib/unistd.in.h (getdtablesize): New declaration.
21258         * lib/getdtablesize.c: New file.
21259         * m4/getdtablesize.m4: New file.
21260         * modules/getdtablesize: New file.
21261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21262         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21263         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21264         HAVE_GETDTABLESIZE.
21265         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21266
21267 2008-10-05  Bruno Haible  <bruno@clisp.org>
21268
21269         * modules/sched (Makefile.am): Fix typo.
21270         Reported by Simon Josefsson.
21271
21272 2008-10-05  Jim Meyering  <meyering@redhat.com>
21273
21274         bootstrap: check for LT_INIT, too
21275         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21276         are deprecated.  Suggestion from Ralf Wildenhues.
21277
21278 2008-10-05  Bruno Haible  <bruno@clisp.org>
21279
21280         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21281         overriding them by ours.
21282         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21283
21284 2008-10-05  Jim Meyering  <meyering@redhat.com>
21285
21286         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21287         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21288         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21289
21290 2008-10-04  Bruno Haible  <bruno@clisp.org>
21291
21292         * modules/dup2 (License): Change to LGPLv2+.
21293         * modules/sleep (License): Likewise.
21294         * modules/perror (License): Likewise.
21295         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21296         Blake.
21297         * modules/signal (License): Likewise.
21298         * modules/sigprocmask (License): Likewise.
21299         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21300         Meyering.
21301
21302 2008-10-04  Bruno Haible  <bruno@clisp.org>
21303
21304         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21305         Reported by Rainer Tammer <tammer@tammer.net>.
21306
21307 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21308             Bruno Haible  <bruno@clisp.org>
21309
21310         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21311         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21312         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21313
21314 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21315
21316         filevercmp: new module
21317         * lib/filevercmp.h: New function filevercmp comparing version strings.
21318         * lib/filevercmp.c: Implementation of filevercmp function.
21319         * modules/filevercmp: Module metadata.
21320         * tests/test-filevercmp.c: Unit test for new module.
21321         * modules/filevercmp-tests: Unit test metadata.
21322         * MODULES.html.sh: Add filevercmp module.
21323
21324 2008-10-03  Bruno Haible  <bruno@clisp.org>
21325
21326         * lib/c-ctype.h: Add comment.
21327         Reported by Jim Meyering.
21328
21329 2008-10-02  Bruno Haible  <bruno@clisp.org>
21330
21331         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21332
21333 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21334
21335         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21336         name of bootstrap.conf accordingly.
21337
21338 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21339
21340         * build-aux/bootstrap: Install git-merge-changelog configuration
21341         items into .gitconfig if needed.
21342
21343 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21344
21345         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21346         git repository, and initialize/update it accordingly.
21347
21348 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21349
21350         * modules/fsync-tests: New file.
21351         * tests/test-fsync.c: New file.
21352
21353         New module 'fsync'.
21354         * lib/fsync.c: New file.
21355         * m4/fsync.m4: New file.
21356         * modules/fsync: New file.
21357         * lib/unistd.in.h (fsync): New declaration.
21358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21359         GNULIB_FSYNC and HAVE_FSYNC.
21360         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21361         * MODULES.html.sh (posix_functions): Add fsync.
21362         * doc/posix-functions/fsync.texi: Mention the new module.
21363
21364 2008-10-02  Jim Meyering  <meyering@redhat.com>
21365
21366         fts.c: sync with similar code from coreutils' remove.c
21367         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21368         Guard also with "#if defined __linux__", since for now at least,
21369         this code is Linux-kernel-specific.
21370
21371 2008-10-02  Jim Meyering  <meyering@redhat.com>
21372
21373         fts: bug fixes
21374         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21375         Include <sys/vfs.h>, not <sys/statfs.h>.
21376
21377         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21378         Include <sys/vfs.h>, not <sys/statfs.h>.
21379
21380 2008-10-01  Bruno Haible  <bruno@clisp.org>
21381
21382         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21384         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21385         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21386         * doc/posix-functions/posix_spawnp.texi: Likewise.
21387         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21388         whether posix_spawn actually works.
21389         * m4/pipe.m4 (gl_PIPE): Likewise.
21390         * modules/execute (Files): Add m4/posix_spawn.m4.
21391         * modules/pipe (Files): Add m4/posix_spawn.m4.
21392         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21393
21394 2008-10-01  Jim Meyering  <meyering@redhat.com>
21395
21396         remove trailing spaces
21397         * NEWS: Likewise.
21398         * lib/poll.c (poll): Likewise.
21399         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21400         * lib/winsock.c (rpl_close): Likewise.
21401         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21402         * modules/yield: Likewise.
21403         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21404         * tests/test-sys_select.c (connect_to_socket): Likewise.
21405
21406         fts.c: adjust a new interface to be more generally useful
21407         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21408         (fts_build): Adjust caller.
21409
21410 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21411
21412         * modules/cond-tests: New file.
21413         * tests/test-cond.c: New file.
21414
21415 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21416             Bruno Haible  <bruno@clisp.org>
21417
21418         * modules/cond (Dependencies): Add errno, time.
21419         * lib/glthread/cond.h: Include <time.h>.
21420         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21421         across platforms.
21422
21423 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21424             Bruno Haible  <bruno@clisp.org>
21425
21426         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21427
21428 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21429             Bruno Haible  <bruno@clisp.org>
21430
21431         * modules/tls-tests (Depends-on): Add thread, yield.
21432         (configure.ac): Remove all checks.
21433         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21434         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21435         gl_thread_self): Remove definitions. Include glthread/thread.h and
21436         glthread/yield.h instead.
21437         (test_tls): Pass an additional NULL argument to gl_thread_join.
21438
21439 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21440             Bruno Haible  <bruno@clisp.org>
21441
21442         * modules/lock-tests (Depends-on): Add thread, yield.
21443         (configure.ac): Remove all checks.
21444         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21445         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21446         gl_thread_self): Remove definitions. Include glthread/thread.h and
21447         glthread/yield.h instead.
21448         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21449         additional NULL argument to gl_thread_join.
21450
21451 2008-09-30  Bruno Haible  <bruno@clisp.org>
21452
21453         Fix the Win32 implementation of the 'thread' module.
21454         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21455         pointer type.
21456         (gl_thread_self): Invoke gl_thread_self_func.
21457         (gl_thread_self_func): New declaration.
21458         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21459         (do_init_self_key, init_self_key): New functions.
21460         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21461         Remove some fields.
21462         (running_threads, running_lock): Remove variables.
21463         (get_current_thread_handle): New function.
21464         (gl_thread_self_func, wrapper_func, glthread_create_func,
21465         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21466         simplified.
21467
21468 2008-09-30  Bruno Haible  <bruno@clisp.org>
21469
21470         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21471         files.
21472
21473 2008-09-30  Jim Meyering  <meyering@redhat.com>
21474
21475         fts.m4: correct the test for statfs.f_type
21476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21477         when checking for statfs.f_type.
21478
21479 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21480
21481         tests: avoid some compiler warnings
21482         * tests/test-memchr.c (main): Pass NULL indirectly.
21483         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21484
21485 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21486
21487         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21488         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21489         exactly specified dayshifts.
21490         (dayshift): New rule.
21491         (rel): Add dayshift.
21492         (relative_time_table) [tomorrow, yesterday, today, now]:
21493         Use tDAY_SHIFT in place of tDAY_UNIT.
21494         * tests/test-getdate.c: Add tests for now-disallowed countable
21495         dayshifts, e.g., "4 yesterday ago".
21496
21497 2008-09-29  Bruno Haible  <bruno@clisp.org>
21498
21499         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21500         * tests/test-posix_spawn1.in.sh: Renamed from
21501         tests/test-posix_spawn.in.sh.
21502         * tests/test-posix_spawn2.c: New file.
21503         * tests/test-posix_spawn2.in.sh: New file.
21504         * modules/posix_spawnp-tests (Files): Update.
21505         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21506
21507 2008-09-29  Bruno Haible  <bruno@clisp.org>
21508
21509         Propagate effects of putenv/setenv/unsetenv to child processes.
21510         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21511         * lib/pipe.c (create_pipe): Likewise.
21512
21513 2008-09-29  Bruno Haible  <bruno@clisp.org>
21514
21515         Enable use of shell scripts as executables in mingw.
21516         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21517         run the program as a shell script.
21518         * lib/pipe.c (create_pipe): Likewise.
21519         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21520         resulting array.
21521
21522 2008-09-29  Eric Blake  <ebb9@byu.net>
21523
21524         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21525
21526 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21527
21528         * doc/posix-functions/accept.texi: Update mingw problems.
21529         * doc/posix-functions/bind.texi: Update mingw problems.
21530         * doc/posix-functions/close.texi: Update mingw problems.
21531         * doc/posix-functions/connect.texi: Update mingw problems.
21532         * doc/posix-functions/getpeername.texi: Update mingw problems.
21533         * doc/posix-functions/getsockname.texi: Update mingw problems.
21534         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21535         * doc/posix-functions/ioctl.texi: Update mingw problems.
21536         * doc/posix-functions/listen.texi: Update mingw problems.
21537         * doc/posix-functions/recv.texi: Update mingw problems.
21538         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21539         * doc/posix-functions/select.texi: Update mingw problems.
21540         * doc/posix-functions/send.texi: Update mingw problems.
21541         * doc/posix-functions/sendto.texi: Update mingw problems.
21542         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21543         * doc/posix-functions/socket.texi: Update mingw problems.
21544
21545 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21546             Bruno Haible  <bruno@clisp.org>
21547
21548         * lib/sys_select.in.h: Include sys/time.h.
21549         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21550         * modules/sys_select: Depend on sys_time.
21551         * tests/test-sys_select.c: Test that sys/select.h defines struct
21552         timeval fully.
21553
21554 2008-09-29  Bruno Haible  <bruno@clisp.org>
21555
21556         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21557         * lib/sys_select.in.h: Likewise.
21558
21559 2008-09-29  Bruno Haible  <bruno@clisp.org>
21560
21561         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21562
21563 2008-09-29  Bruno Haible  <bruno@clisp.org>
21564
21565         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21566         Set LIBSOCKET instead of augmenting LIBS.
21567         * modules/sockets (Link): New section.
21568         * modules/sockets-tests (test_sockets_LDADD): New variable.
21569         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21570         * modules/poll-tests (test_poll_LDADD): New variable.
21571         * NEWS: Document the change.
21572
21573 2008-09-29  Bruno Haible  <bruno@clisp.org>
21574
21575         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21576         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21577         ARPA_INET_H directly.
21578         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21579
21580 2008-09-28  Bruno Haible  <bruno@clisp.org>
21581
21582         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21583         from gl_HEADER_SYS_SOCKET.
21584         (gl_HEADER_SYS_SOCKET): Invoke it.
21585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21586
21587 2008-09-28  Bruno Haible  <bruno@clisp.org>
21588
21589         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21590         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21591         Needed on OSF/1 4.0.
21592
21593 2008-09-28  Bruno Haible  <bruno@clisp.org>
21594
21595         Override open more carefully.
21596         * lib/open.c (orig_open): New function.
21597         (rpl_open): Use orig_open instead of open.
21598         * lib/fcntl.in.h: Add special invocation convention.
21599         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21600         (gl_FUNC_OPEN): Invoke it.
21601
21602         Override freopen more carefully.
21603         * lib/freopen.c (orig_freopen): New function.
21604         (rpl_freopen): Use orig_freopen instead of freopen.
21605         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21606         (gl_FUNC_FREOPEN): Invoke it.
21607
21608         Override fopen more carefully.
21609         * lib/fopen.c (orig_fopen): New function.
21610         (rpl_fopen): Use orig_fopen instead of fopen.
21611         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21612         (gl_FUNC_FOPEN): Invoke it.
21613         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21614
21615 2008-09-28  Bruno Haible  <bruno@clisp.org>
21616
21617         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21618         SIGPIPE.
21619
21620 2008-09-28  Bruno Haible  <bruno@clisp.org>
21621
21622         * tests/test-sigaction.c (handler, main): Disable the check whether
21623         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21624         glibc systems with LinuxThreads.
21625
21626 2008-09-28  Bruno Haible  <bruno@clisp.org>
21627
21628         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21629
21630         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21631         with AIX xlc.
21632         * lib/fcntl.in.h (open): Likewise.
21633         Reported by Rainer Tammer <tammer@tammer.net>.
21634
21635 2008-09-28  Bruno Haible  <bruno@clisp.org>
21636
21637         * modules/posix_spawnp-tests: New file.
21638         * tests/test-posix_spawn.c: New file.
21639         * tests/test-posix_spawn.in.sh: New file.
21640
21641         New module 'posix_spawnp'.
21642         * modules/posix_spawnp: New file.
21643         * lib/spawnp.c: New file, from GNU libc with modifications.
21644         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21645
21646         New module 'posix_spawn'.
21647         * modules/posix_spawn: New file.
21648         * lib/spawn.c: New file, from GNU libc with modifications.
21649         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21650
21651         New module 'posix_spawnattr_destroy'.
21652         * modules/posix_spawnattr_destroy: New file.
21653         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21654         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21655         module.
21656
21657         New module 'posix_spawnattr_setsigmask'.
21658         * modules/posix_spawnattr_setsigmask: New file.
21659         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21660         modifications.
21661         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21662         new module.
21663
21664         New module 'posix_spawnattr_getsigmask'.
21665         * modules/posix_spawnattr_getsigmask: New file.
21666         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21667         modifications.
21668         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21669         new module.
21670
21671         New module 'posix_spawnattr_setsigdefault'.
21672         * modules/posix_spawnattr_setsigdefault: New file.
21673         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21674         modifications.
21675         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21676         new module.
21677
21678         New module 'posix_spawnattr_getsigdefault'.
21679         * modules/posix_spawnattr_getsigdefault: New file.
21680         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21681         modifications.
21682         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21683         new module.
21684
21685         New module 'posix_spawnattr_setschedpolicy'.
21686         * modules/posix_spawnattr_setschedpolicy: New file.
21687         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21688         modifications.
21689         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21690         new module.
21691
21692         New module 'posix_spawnattr_getschedpolicy'.
21693         * modules/posix_spawnattr_getschedpolicy: New file.
21694         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21695         modifications.
21696         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21697         new module.
21698
21699         New module 'posix_spawnattr_setschedparam'.
21700         * modules/posix_spawnattr_setschedparam: New file.
21701         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21702         modifications.
21703         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21704         new module.
21705
21706         New module 'posix_spawnattr_getschedparam'.
21707         * modules/posix_spawnattr_getschedparam: New file.
21708         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21709         modifications.
21710         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21711         new module.
21712
21713         New module 'posix_spawnattr_setpgroup'.
21714         * modules/posix_spawnattr_setpgroup: New file.
21715         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21716         modifications.
21717         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21718         module.
21719
21720         New module 'posix_spawnattr_getpgroup'.
21721         * modules/posix_spawnattr_getpgroup: New file.
21722         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21723         modifications.
21724         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21725         module.
21726
21727         New module 'posix_spawnattr_setflags'.
21728         * modules/posix_spawnattr_setflags: New file.
21729         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21730         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21731         module.
21732
21733         New module 'posix_spawnattr_getflags'.
21734         * modules/posix_spawnattr_getflags: New file.
21735         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21736         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21737         module.
21738
21739         New module 'posix_spawnattr_init'.
21740         * modules/posix_spawnattr_init: New file.
21741         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21742         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21743         module.
21744
21745         New module 'posix_spawn_file_actions_destroy'.
21746         * modules/posix_spawn_file_actions_destroy: New file.
21747         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21748         modifications.
21749         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21750         the new module.
21751
21752         New module 'posix_spawn_file_actions_addopen'.
21753         * modules/posix_spawn_file_actions_addopen: New file.
21754         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21755         modifications.
21756         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21757         the new module.
21758
21759         New module 'posix_spawn_file_actions_adddup2'.
21760         * modules/posix_spawn_file_actions_adddup2: New file.
21761         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21762         modifications.
21763         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21764         the new module.
21765
21766         New module 'posix_spawn_file_actions_addclose'.
21767         * modules/posix_spawn_file_actions_addclose: New file.
21768         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21769         modifications.
21770         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21771         the new module.
21772
21773         New module 'posix_spawn_file_actions_init'.
21774         * modules/posix_spawn_file_actions_init: New file.
21775         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21776         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21777         new module.
21778
21779         New module 'posix_spawn-internal'.
21780         * modules/posix_spawn-internal: New file.
21781         * lib/spawn_int.h: New file, from GNU libc with modifications.
21782         * lib/spawni.c: New file, from GNU libc with modifications.
21783         * m4/posix_spawn.m4: New file.
21784
21785         New module 'spawn'.
21786         * modules/spawn: New file.
21787         * lib/spawn.in.h: New file, from GNU libc with modifications.
21788         * m4/spawn_h.m4: New file.
21789         * doc/posix-headers/spawn.texi: Mention the new module.
21790
21791 2008-09-28  Bruno Haible  <bruno@clisp.org>
21792
21793         * modules/sched-tests: New file.
21794         * tests/test-sched.c: New file.
21795
21796         New module 'sched'.
21797         * modules/sched: New file.
21798         * lib/sched.in.h: New file.
21799         * m4/sched_h.m4: New file.
21800         * doc/posix-headers/sched.texi: Mention the new module.
21801
21802 2008-09-27  Eric Blake  <ebb9@byu.net>
21803
21804         Fix previous patch, and tweak references to $0.
21805         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21806         (func_version, func_gnulib_dir): Don't call this program
21807         gnulib-tool.
21808         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21809         with using $0 in function.
21810         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21811         (func_fatal_error): Reuse the name the user invoked us with.
21812
21813 2008-09-27  Bruno Haible  <bruno@clisp.org>
21814
21815         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21816         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21817         (gl_ICONV_H): Not here.
21818         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21819         instead of assigning ICONV_H directly.
21820
21821         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21823         WCHAR_H directly.
21824
21825 2008-09-27  Bruno Haible  <bruno@clisp.org>
21826
21827         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21828         * modules/arpa_inet (Depends-on): Add link-warning.
21829         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21830         * modules/unistd (Makefile.am): Likewise.
21831
21832 2008-09-26  Bruno Haible  <bruno@clisp.org>
21833
21834         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21835         variables.
21836         (func_version): Essentially copied from gnulib-tool.
21837         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21838         func_readlink): Copied from gnulib-tool.
21839
21840 2008-09-26  Bruno Haible  <bruno@clisp.org>
21841
21842         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21843         invoking git-version-gen.
21844
21845 2008-09-26  Bruno Haible  <bruno@clisp.org>
21846
21847         * posix-modules: Update to directory names changed on 2008-01-19.
21848         Remove commas in output before splitting into words. No more need to
21849         avoid 'ftruncate' since 2007-02-19.
21850
21851 2008-09-26  Bruno Haible  <bruno@clisp.org>
21852
21853         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21854
21855 2008-09-26  Bruno Haible  <bruno@clisp.org>
21856
21857         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21858         * modules/fwriteerror (Depends-on): Add errno.
21859
21860 2008-09-26  Bruno Haible  <bruno@clisp.org>
21861
21862         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21863         * tests/test-vc-list-files-cvs.sh: Likewise.
21864
21865 2008-09-26  Bruno Haible  <bruno@clisp.org>
21866
21867         * doc/posix-headers/sys_resource.texi: Reorder items.
21868
21869 2008-09-26  Jim Meyering  <meyering@redhat.com>
21870
21871         fts: tweak inode comparison function
21872         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21873         inode numbers, as documented.
21874
21875         fts: sort dirent entries on inode number before traversing
21876         This avoids a quadratic, seek-related performance penalty when
21877         operating on a directory containing many entries (measurable at 10k;
21878         3.5 hours at 2 million entries with a cold cache) on certain types
21879         of file systems, including ext3 and ext4, but not tmpfs.
21880         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21881         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21882         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21883         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21884         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21885         (fts_build): Set the stat.st_ino member from D_INO.
21886         If it is likely to be useful, sort dirent entries on inode number.
21887
21888         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21889         and the struct statfs.f_type member.
21890         * modules/fts (Depends-on): Add d-ino.
21891
21892 2008-09-26  Bruno Haible  <bruno@clisp.org>
21893
21894         * modules/sigpipe-die (Depends-on): Add sigpipe.
21895
21896         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21897         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21898         and GNULIB_STDIO_H_SIGPIPE are set.
21899         * lib/stdio-write.c: New file.
21900         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21901         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21902         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21903         REPLACE_STDIO_WRITE_FUNCS.
21904         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21905         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21906         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21907         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21908         * modules/stdio (Files): Add lib/stdio-write.c.
21909         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21910         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21911         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21912         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21913         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21914         REPLACE_FPRINTF_POSIX.
21915         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21916         REPLACE_PRINTF_POSIX.
21917         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21918         REPLACE_VFPRINTF_POSIX.
21919         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21920         REPLACE_VPRINTF_POSIX.
21921         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21922         SIGPIPE issue.
21923         * doc/posix-functions/fputc.texi: Likewise.
21924         * doc/posix-functions/fputs.texi: Likewise.
21925         * doc/posix-functions/fwrite.texi: Likewise.
21926         * doc/posix-functions/printf.texi: Likewise.
21927         * doc/posix-functions/putc.texi: Likewise.
21928         * doc/posix-functions/putchar.texi: Likewise.
21929         * doc/posix-functions/puts.texi: Likewise.
21930         * doc/posix-functions/vfprintf.texi: Likewise.
21931         * doc/posix-functions/vprintf.texi: Likewise.
21932
21933         * modules/safe-write (Depends-on): Add write.
21934
21935         * modules/sigpipe-tests: New file.
21936         * tests/test-sigpipe.c: New file.
21937         * tests/test-sigpipe.sh: New file.
21938
21939         * modules/write: New file.
21940         * lib/unistd.in.h: Include <sys/types.h>.
21941         (write): New declaration.
21942         * lib/write.c: New file.
21943         * m4/write.m4: New file.
21944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21945         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21946         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21947         GNULIB_WRITE, REPLACE_WRITE.
21948         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21949         and the SIGPIPE issue.
21950
21951         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21952         (raise): New declaration.
21953         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21954         (ext_signal): New function.
21955         (rpl_raise): New function.
21956         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21957         GNULIB_SIGNAL_H_SIGPIPE.
21958         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21959         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21960
21961         * modules/sigpipe: New file.
21962         * m4/sigpipe.m4: New file.
21963
21964 2008-09-25  Derek Price  <derek@ximbiot.com>
21965             Bruno Haible  <bruno@clisp.org>
21966
21967         * gnulib-tool (func_import): Report all license incompatibilities, not
21968         just the first one.
21969
21970 2008-09-25  Bruno Haible  <bruno@clisp.org>
21971
21972         * gnulib-tool (func_import): When computing the edits, consider not
21973         only the Makefile.ams that exist but also those that will be generated.
21974
21975 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21976
21977         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21978         fixes gnulib-tool --test warning about duplicate dependency.
21979
21980 2008-09-25  Bruno Haible  <bruno@clisp.org>
21981
21982         * gnulib-tool: Don't ask the user to perform edits in the generated
21983         Makefile.ams.
21984         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21985         apply to the Makefile.am being generated.
21986         (func_emit_tests_Makefile_am): Execute edits that apply to the
21987         Makefile.am being generated.
21988         (func_import): Setup list of Makefile.am edits before emitting the
21989         Makefile.ams, not at the end.
21990         (func_create_testdir): Update.
21991         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21992
21993 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21994
21995         * gnulib-tool (func_import): Store the --tests-base option in the
21996         comment in gnulib-cache.m4.
21997
21998 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21999
22000         * NEWS: Document increased portability that sys_select now provides.
22001
22002         * lib/sys_select.in.h: Install select wrapper.
22003         * lib/sys_socket.in.h: Use more descriptive name when there is no
22004         select wrapper.
22005         * lib/winsock-select.c: New.
22006         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22007         Require gl_HEADER_SYS_SOCKET.
22008         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22009         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22010         * tests/test-sys_select.c: Add functional tests.
22011
22012 2008-09-24  Eric Blake  <ebb9@byu.net>
22013
22014         open, fopen: close fd leak in last patch
22015         * lib/open.c (rpl_open): Close fd before returning error.
22016         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22017         * doc/posix-functions/open.texi (open): Document that Irix also
22018         has the bug.
22019         * doc/posix-functions/fopen.texi (fopen): Likewise.
22020         Reported by Paolo Bonzini.
22021
22022 2008-09-24  Bruno Haible  <bruno@clisp.org>
22023
22024         Ensure that a filename ending in a slash cannot be used to access a
22025         non-directory.
22026         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22027         to check whether it's really a directory.
22028         * lib/fopen.c: Include fcntl.h, unistd.h.
22029         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22030         and fdopen().
22031         * modules/fopen (Depends-on): Add unistd.
22032         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22033         * tests/test-fopen.c (main): Likewise.
22034         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22035         * doc/posix-functions/fopen.texi: Likewise.
22036         Reported by Eric Blake.
22037
22038 2008-09-23  Eric Blake  <ebb9@byu.net>
22039
22040         c-stack: avoid compiler optimizations when provoking overflow
22041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22042         recursion harder to optimize, to ensure a stack overflow occurs.
22043         * tests/test-c-stack.c (recurse): Likewise.
22044         Borrowed from libsigsegv.
22045
22046         c-stack: work around Irix sigaltstack bug
22047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22048         whether sigaltstack uses wrong end of stack_t (copied in part from
22049         libsigsegv).
22050         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22051         Irix bug, without requiring an over-allocation.
22052         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22053         bug.
22054
22055         fopen: document mingw bug on directories
22056         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22057         not allowing a stream visiting a directory, even though reading
22058         from such a stream is not portable.
22059
22060 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22061
22062         * lib/poll.c: Rewrite.
22063         * modules/poll: Depend on alloca.
22064
22065 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22066
22067         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22068         instead define prototypes for a full set of wrappers.  Ensure
22069         that Cygwin does not use the compatibility code, which is only
22070         for MinGW.
22071         * lib/winsock.c: New.
22072         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22073         * modules/sys_socket: Add lib/winsock.c.
22074
22075         * modules/poll-tests: Add errno and perror.
22076         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22077
22078 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22079
22080         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22081
22082 2008-09-23  Bruno Haible  <bruno@clisp.org>
22083
22084         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22085         * doc/glibc-functions/*: Likewise.
22086
22087 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22088
22089         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22090         success.
22091
22092 2008-09-22  Eric Blake  <ebb9@byu.net>
22093             Bruno Haible  <bruno@clisp.org>
22094
22095         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22096         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22097         supply %A but mishandle pseudo-NaN.
22098         Reported by Simon Josefsson.
22099
22100 2008-09-21  Bruno Haible  <bruno@clisp.org>
22101
22102         * tests/test-lock.c (main): Tweak skip message.
22103         * tests/test-tls.c (main): Likewise.
22104
22105 2008-09-21  Bruno Haible  <bruno@clisp.org>
22106
22107         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22108         whether 'struct sigaction' has sa_sigaction here...
22109         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22110         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22111
22112 2008-09-21  Bruno Haible  <bruno@clisp.org>
22113
22114         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22115         section.
22116         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22117         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22118         the new section.
22119         (Support for obsolete systems lacking POSIX:2001): New section.
22120         (String handling <string.h>): Move strdup to the new section.
22121         Suggested by Simon Josefsson and Paolo Bonzini.
22122
22123 2008-09-21  Bruno Haible  <bruno@clisp.org>
22124
22125         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22126         exponents in %e and %g results on 'long double'. Needed for mingw's
22127         improved *printf functions.
22128         * tests/test-vasprintf-posix.c (test_function): Likewise.
22129         * tests/test-snprintf-posix.h (test_function): Likewise.
22130         * tests/test-sprintf-posix.h (test_function): Likewise.
22131         Reported by Eric Blake.
22132
22133 2008-09-21  Bruno Haible  <bruno@clisp.org>
22134
22135         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22136         * tests/test-sprintf-posix.h (test_function): Likewise.
22137
22138 2008-09-21  Bruno Haible  <bruno@clisp.org>
22139
22140         * modules/getpass (Depends-on): Add strdup-posix.
22141
22142         New module 'strdup-posix'.
22143         * modules/strdup-posix: New file.
22144         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22145         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22147         REPLACE_STRDUP.
22148         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22149         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22151         strdup-posix.
22152
22153         * modules/strdup (Depends-on): Remove malloc-posix.
22154
22155 2008-09-20  Bruno Haible  <bruno@clisp.org>
22156
22157         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22158         Wildenhues.
22159
22160 2008-09-20  Bruno Haible  <bruno@clisp.org>
22161
22162         Ensure that wint_t gets defined on IRIX 5.3.
22163         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22164         * lib/wctype.in.h (wint_t): Likewise.
22165         (__wctype_wint_t): Remove type.
22166         (isw*): Use wint_t instead of __wctype_wint_t.
22167         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22168         * modules/wchar (Files): Add m4/wint_t.m4.
22169         (Makefile.am): Substitute HAVE_WINT_T.
22170         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22171         * tests/test-wctype.c: Check that wint_t is defined.
22172         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22173         * doc/posix-headers/wctype.texi: Likewise.
22174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22175
22176 2008-09-18  Bruno Haible  <bruno@clisp.org>
22177
22178         * gnulib-tool (func_exit): Update comment.
22179
22180 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22181
22182         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22183         assumes strdup exists and does not depend on strdup to return
22184         ENOMEM on out of memory conditions.
22185
22186 2008-09-18  Bruno Haible  <bruno@clisp.org>
22187
22188         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22189         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22190         digits for the exponent.
22191
22192 2008-09-18  Jim Meyering  <meyering@redhat.com>
22193             Bruno Haible  <bruno@clisp.org>
22194
22195         * lib/vasnprintf.c (decimal_point_char): Define also if
22196         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22197
22198 2008-09-16  Bruno Haible  <bruno@clisp.org>
22199         and Eric Blake  <ebb9@byu.net>
22200
22201         vasnprintf: support Irix 5.3
22202         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22203         that mishandle long double infinity.
22204         Reported by Tom G. Christensen.
22205
22206 2008-09-16  Bruno Haible  <bruno@clisp.org>
22207
22208         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22209         Solaris 9.
22210         * doc/glibc-functions/alphasort.texi: Likewise.
22211         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22212
22213 2008-09-16  Jim Meyering  <meyering@redhat.com>
22214
22215         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22216         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22217         a umask modification leak out of a subshell.  Otherwise, the
22218         opensolaris /bin/sh would be accepted and thus cause unwarranted
22219         failures in the coreutils test suite.
22220
22221 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22222
22223         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22224         to succeed.
22225
22226 2008-09-16  Jim Meyering  <meyering@redhat.com>
22227
22228         avoid spurious test failure when library is built without ACL support
22229         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22230         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22231         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22232         * tests/test-copy-acl.sh: Likewise.
22233
22234 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22235
22236         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22237         based on character occurrence counts.
22238
22239 2008-09-15  Eric Blake  <ebb9@byu.net>
22240
22241         tests: avoid some compiler warnings
22242         * tests/test-memchr.c (main): Pass NULL indirectly.
22243         * tests/test-closein.c (main): Avoid unused variable.
22244
22245 2008-09-15  Bruno Haible  <bruno@clisp.org>
22246
22247         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22248         are missing on OpenBSD 4.0 individually.
22249         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22250
22251 2008-09-15  Bruno Haible  <bruno@clisp.org>
22252
22253         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22254         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22255         * doc/posix-functions/perror.texi: Likewise.
22256         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22257         is missing.
22258         Reported by Eric Blake.
22259
22260         * lib/errno.in.h: Use replacement values >= 2000.
22261         Reported by Eric Blake.
22262
22263 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22264
22265         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22266         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22267         limit.
22268         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22269         compareseq was aborted.
22270
22271 2008-09-14  Bruno Haible  <bruno@clisp.org>
22272
22273         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22274         yvec_edit_count.
22275         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22276         (fstrcmp_bounded): Simplify result computation accordingly.
22277
22278 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22279
22280         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22281         (fstrcmp): Define in terms of fstrcmp_bounded.
22282         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22283         lower_bound argument.
22284         Return quickly if the result is certainly < lower_bound.
22285         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22286
22287 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22288
22289         * lib/diffseq.h (EARLY_ABORT): New macro.
22290         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22291         evaluates to true.
22292
22293 2008-09-14  Bruno Haible  <bruno@clisp.org>
22294
22295         * modules/perror-tests: New file.
22296         * tests/test-perror.sh: New file.
22297         * tests/test-perror.c: New file.
22298
22299         New module 'perror'.
22300         * lib/stdio.in.h (perror): New declaration.
22301         * lib/perror.c: New file.
22302         * m4/perror.m4: New file.
22303         * modules/perror: New file.
22304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22305         * doc/posix-functions/perror.texi: Mention the perror module.
22306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22307         REPLACE_PERROR.
22308         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22309         REPLACE_PERROR.
22310
22311 2008-09-14  Bruno Haible  <bruno@clisp.org>
22312
22313         * modules/stdio (Makefile.am): Reorder to match the order in
22314         lib/stdio.in.h.
22315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22316
22317 2008-09-13  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22320
22321 2008-09-13  Bruno Haible  <bruno@clisp.org>
22322
22323         Extend strerror to cover the added errno values.
22324         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22325         (rpl_strerror): Provide error messages for the added errno values and
22326         for the WSA* values.
22327         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22328         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22329         strerror.
22330         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22331         * modules/strerror (Depends-on): Add errno.
22332         * doc/posix-functions/strerror.texi: Document the change.
22333         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22334         and EOVERFLOW.
22335
22336 2008-09-13  Bruno Haible  <bruno@clisp.org>
22337
22338         * modules/EOVERFLOW: Remove file.
22339         * m4/eoverflow.m4: Remove file.
22340         * modules/EOVERFLOW-tests: Remove file.
22341         * tests/test-EOVERFLOW.c: Remove file.
22342         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22343         * modules/ftell (Depends-on): Likewise.
22344         * modules/getdelim (Depends-on): Likewise.
22345         * modules/getugroups (Depends-on): Likewise.
22346         * modules/poll (Depends-on): Likewise.
22347         * modules/snprintf (Depends-on): Likewise.
22348         * modules/sprintf-posix (Depends-on): Likewise.
22349         * modules/vasnprintf (Depends-on): Likewise.
22350         * modules/vasprintf (Depends-on): Likewise.
22351         * modules/vfprintf-posix (Depends-on): Likewise.
22352         * modules/vsnprintf (Depends-on): Likewise.
22353         * modules/vsprintf-posix (Depends-on): Likewise.
22354         * modules/xvasprintf (Depends-on): Likewise.
22355         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22356         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22357         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22358         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22360         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22361         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22362         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22363         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22364         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22365         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22366         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22367         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22368         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22369         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22370         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22371         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22372         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22373         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22374         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22375         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22376         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22377         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22378         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22379         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22380         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22381         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22382         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22383         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22384         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22385         * MODULES.html.sh: Remove EOVERFLOW.
22386         * NEWS: Mention the change.
22387
22388 2008-09-13  Bruno Haible  <bruno@clisp.org>
22389
22390         * modules/errno-tests: New file.
22391         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22392
22393         * lib/errno.in.h: New file.
22394         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22395         * modules/errno: New file.
22396         * doc/posix-headers/errno.texi: Update documentation.
22397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22398
22399 2008-09-13  Bruno Haible  <bruno@clisp.org>
22400
22401         * tests/test-poll.c: Use #if for native Windows, rather than testing
22402         __MSVCRT__.
22403
22404 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22405             Bruno Haible  <bruno@clisp.org>
22406
22407         * lib/glob.c: Don't include <pwd.h> on native Windows.
22408         (WINDOWS32): New macro.
22409         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22410
22411 2008-09-13  Bruno Haible  <bruno@clisp.org>
22412
22413         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22414         (ETIMEDOUT): Remove macro.
22415         (glthread_cond_timedwait_multithreaded): New declaration.
22416         (glthread_cond_timedwait): Use it.
22417         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22418         (glthread_cond_timedwait_multithreaded): New function.
22419
22420 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22421
22422         * modules/poll-tests: Do not check for io.h.
22423         * tests/test-poll.c: Check for __MSVCRT__ instead.
22424
22425 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22426
22427         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22428         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22429         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22430
22431 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22432
22433         * modules/poll-tests: New.
22434         * tests/test-poll.c: New.
22435
22436 2008-09-12  Eric Blake  <ebb9@byu.net>
22437
22438         frexp: test for NetBSD failure on -0.0
22439         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22440         not all, bugs from NetBSD 3.0 have been fixed.
22441         * doc/posix-functions/frexp.texi (frexp): Document bug.
22442         Reported by Thomas Klausner.
22443
22444         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22445         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22446         literal -0.0.
22447         Reported by Jonathan C. Patschke <jp@centtech.com>.
22448
22449 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22450
22451         * lib/glthread/cond.h: Use dummy implementation also if
22452         USE_WIN32_THREADS.
22453
22454 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22455
22456         * modules/fnmatch-posix (License): Change to LGPLv2+.
22457         * modules/fnmatch-gnu (License): Likewise.
22458
22459 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22460
22461         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22462
22463 2008-09-11  Jim Meyering  <meyering@redhat.com>
22464
22465         * users.txt: Add gtk-vnc.
22466
22467 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22468
22469         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22470         rotate amounts.
22471
22472         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22473         required for 16-bit and 8-bit rotates.
22474         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22475         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22476         UINT8_MAX instead of hard-coded constants.
22477         Suggested by Paul Eggert.
22478
22479 2008-09-07  Bruno Haible  <bruno@clisp.org>
22480
22481         * tests/test-striconveh.c (main): Check behaviour when converting from
22482         UTF-7.
22483
22484         Make striconveh work better with stateful encodings.
22485         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22486         that iconv does not increment the inptr when returning -1/EINVAL.
22487
22488 2008-09-07  Bruno Haible  <bruno@clisp.org>
22489
22490         * build-aux/config.rpath: Update according to libtool-2.2.6.
22491         * build-aux/config.libpath: Likewise.
22492
22493 2008-09-06  Bruno Haible  <bruno@clisp.org>
22494
22495         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22496         * lib/freadptr.c (freadptr): Likewise.
22497         * lib/freadseek.c (freadptrinc): Likewise.
22498         Reported by Simon Josefsson.
22499
22500 2008-09-06  Bruno Haible  <bruno@clisp.org>
22501
22502         * modules/freadptr (License): Change to LGPLv2+.
22503         * modules/freadseek (License): Likewise.
22504         Suggested by Eric Blake.
22505
22506         * modules/memchr2 (License): Change to LGPLv2+.
22507         Approved by Eric Blake.
22508
22509 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22510             Bruno Haible  <bruno@clisp.org>
22511
22512         Make gnulib-tool work with native 'sed' on AIX.
22513         * gnulib-tool (sed_noop): New variable.
22514         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22515         func_add_or_update, func_create_testdir): Use it to initialize sed
22516         script variables.
22517         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22518
22519 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22520             Bruno Haible  <bruno@clisp.org>
22521
22522         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22523         also works after #include directives.
22524
22525 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22526
22527         getdate.y: reject an out-of-range timezone value
22528         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22529         the range [-24...+24].  When specified with only one or two digits,
22530         * tests/test-getdate.c: Tests for the fix.
22531         * doc/getdate.texi: Document this change.
22532
22533 2008-09-03  Bruno Haible  <bruno@clisp.org>
22534
22535         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22536
22537 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22538
22539         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22540         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22541         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22542         Blake <ebb9@byu.net>.
22543
22544         * tests/test-bitrotate.c: Add more test vectors.
22545
22546 2008-09-02  Eric Blake  <ebb9@byu.net>
22547
22548         vasnprintf-posix: handle large precision via %.*d
22549         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22550         when handling it ourselves.
22551         * tests/test-vasnprintf-posix.c (test_function): Add test.
22552         * tests/test-snprintf-posix.h (test_function): Likewise.
22553         * tests/test-sprintf-posix.h (test_function): Likewise.
22554         * tests/test-vasprintf-posix.c (test_function): Likewise.
22555         Reported by Alain Guibert.
22556
22557 2008-09-01  Eric Blake  <ebb9@byu.net>
22558
22559         c-stack: make configure-time check more robust
22560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22561         successful sigaction call.
22562         Reported by Tom G. Christensen.
22563
22564 2008-09-01  Bruno Haible  <bruno@clisp.org>
22565
22566         New module 'findprog-lgpl'.
22567         * modules/findprog-lgpl: New file.
22568         * lib/findprog-lgpl.c: New file.
22569         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22570         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22571         to decide whether to use strdup or xstrdup, concatenated_filename or
22572         xconcatenated_filename.
22573
22574 2008-09-01  Bruno Haible  <bruno@clisp.org>
22575
22576         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22577         'xconcat-filename' (GPL).
22578         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22579         (License): Change to LGPLv2+.
22580         * modules/xconcat-filename: New file.
22581         * lib/concat-filename.h (concatenated_filename): Change specification.
22582         (xconcatenated_filename): New declaration.
22583         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22584         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22585         memory situations.
22586         * lib/xconcat-filename.c: New file.
22587         * NEWS: Mention the change.
22588         * lib/findprog.c: Include concat-filename.h, not filename.h.
22589         (find_in_path): Use xconcatenated_filename instead of
22590         concatenated_filename.
22591         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22592         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22593         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22594         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22595         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22596         instead of concatenated_filename.
22597         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22598         (execute_java_class): Use xconcatenated_filename instead of
22599         concatenated_filename.
22600         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22601         * modules/javacomp (Depends-on): Likewise.
22602         * modules/javaexec (Depends-on): Likewise.
22603
22604 2008-09-01  Bruno Haible  <bruno@clisp.org>
22605
22606         Split module 'filename' into 'filename' and 'concat-filename'.
22607         * modules/filename: Keep only lib/filename.h.
22608         (License): Change to LGPLv2+.
22609         * modules/concat-filename: New file, extracted from modules/filename.
22610         * lib/filename.h (concatenated_filename): Remove declaration.
22611         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22612         * lib/concat-filename.c: Include concat-filename.h.
22613         * NEWS: Mention the change.
22614
22615 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22616
22617         * lib/bitrotate.h (rotl8, rotr8): Add.
22618
22619         * modules/bitrotate (configure.ac): Need
22620         AC_REQUIRE([AC_C_INLINE]).
22621         (Description): Mention stdint.h.  Reported by Bruno Haible
22622         <bruno@clisp.org>.
22623
22624         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22625         Paolo Bonzini <bonzini@gnu.org>.
22626
22627 2008-08-31  Bruno Haible  <bruno@clisp.org>
22628
22629         Assume Solaris specific bi-arch conventions on Solaris systems.
22630         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22631         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22632         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22633         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22634         like acl_libdirstem.
22635         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22636         acl_libdirstem.
22637         * NEWS: Mention the change.
22638         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22639
22640 2008-08-31  Jim Meyering  <meyering@redhat.com>
22641
22642         * lib/strftime.h: Add comments describing the two added arguments.
22643
22644         remove duplicate #include directives
22645         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22646         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22647
22648 2008-08-31  Bruno Haible  <bruno@clisp.org>
22649
22650         New module 'sigpipe-die'.
22651         * modules/sigpipe-die: New file.
22652         * lib/sigpipe-die.h: New file.
22653         * lib/sigpipe-die.c: New file.
22654         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22655
22656 2008-08-31  Bruno Haible  <bruno@clisp.org>
22657
22658         Don't override previously installed signal handlers.
22659         * lib/fatal-signal.c (saved_sigactions): New variable.
22660         (uninstall_handlers): Reset the signal to the saved handler, not
22661         to SIG_DFL (except when ignored).
22662         (install_handlers): Save the previous handlers.
22663
22664 2008-08-30  Bruno Haible  <bruno@clisp.org>
22665
22666         * gnulib-tool (func_reset_sigpipe): New function.
22667         (func_get_automake_snippet, func_modules_transitive_closure,
22668         func_import): Invoke it before a join command that reads from stdin,
22669         to avoid "echo: write error: Broken pipe" error messages on stderr.
22670         Reported by Sam Steingold <sds@gnu.org>.
22671
22672 2008-08-30  Bruno Haible  <bruno@clisp.org>
22673
22674         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22675         Code copied from m4/open.m4.
22676         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22677         access and the filename ends in a slash. Code copied from lib/open.c.
22678         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22679         * tests/test-fopen.c (main): Check against bug with trailing slash.
22680
22681 2008-08-29  Bruno Haible  <bruno@clisp.org>
22682
22683         Avoid some "gcc -pedantic" warnings.
22684         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22685         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22686         * lib/dirent.in.h: Likewise.
22687         * lib/fcntl.in.h: Likewise.
22688         * lib/float.in.h: Likewise.
22689         * lib/iconv.in.h: Likewise.
22690         * lib/inttypes.in.h: Likewise.
22691         * lib/locale.in.h: Likewise.
22692         * lib/math.in.h: Likewise.
22693         * lib/netinet_in.in.h: Likewise.
22694         * lib/search.in.h: Likewise.
22695         * lib/signal.in.h: Likewise.
22696         * lib/stdarg.in.h: Likewise.
22697         * lib/stdint.in.h: Likewise.
22698         * lib/stdio.in.h: Likewise.
22699         * lib/stdlib.in.h: Likewise.
22700         * lib/string.in.h: Likewise.
22701         * lib/strings.in.h: Likewise.
22702         * lib/sys_select.in.h: Likewise.
22703         * lib/sys_socket.in.h: Likewise.
22704         * lib/sys_stat.in.h: Likewise.
22705         * lib/sys_time.in.h: Likewise.
22706         * lib/sysexits.in.h: Likewise.
22707         * lib/time.in.h: Likewise.
22708         * lib/unistd.in.h: Likewise.
22709         * lib/wchar.in.h: Likewise.
22710         * lib/wctype.in.h: Likewise.
22711         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22712         * modules/fchdir (Makefile.am): Likewise.
22713         * modules/fcntl (Makefile.am): Likewise.
22714         * modules/float (Makefile.am): Likewise.
22715         * modules/iconv_open (Makefile.am): Likewise.
22716         * modules/inttypes (Makefile.am): Likewise.
22717         * modules/locale (Makefile.am): Likewise.
22718         * modules/math (Makefile.am): Likewise.
22719         * modules/netinet_in (Makefile.am): Likewise.
22720         * modules/search (Makefile.am): Likewise.
22721         * modules/signal (Makefile.am): Likewise.
22722         * modules/stdarg (Makefile.am): Likewise.
22723         * modules/stdint (Makefile.am): Likewise.
22724         * modules/stdio (Makefile.am): Likewise.
22725         * modules/stdlib (Makefile.am): Likewise.
22726         * modules/string (Makefile.am): Likewise.
22727         * modules/strings (Makefile.am): Likewise.
22728         * modules/sys_select (Makefile.am): Likewise.
22729         * modules/sys_socket (Makefile.am): Likewise.
22730         * modules/sys_stat (Makefile.am): Likewise.
22731         * modules/sys_time (Makefile.am): Likewise.
22732         * modules/sysexits (Makefile.am): Likewise.
22733         * modules/time (Makefile.am): Likewise.
22734         * modules/unistd (Makefile.am): Likewise.
22735         * modules/wchar (Makefile.am): Likewise.
22736         * modules/wctype (Makefile.am): Likewise.
22737         Reported by Reuben Thomas <rrt@sc3d.org>.
22738
22739 2008-08-29  Bruno Haible  <bruno@clisp.org>
22740
22741         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22742         any more.
22743
22744 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22745
22746         * MODULES.html.sh (Misc): Add bitrotate.
22747
22748         * modules/bitrotate: New file.
22749
22750         * lib/bitrotate.h: New file.
22751
22752         * modules/bitrotate-tests: New file.
22753
22754         * tests/test-bitrotate.c: New file.
22755
22756         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22757         on the bitrotate module.
22758
22759         * lib/arctwo.c: Use new bitrotate module.
22760
22761 2008-08-29  Jim Meyering  <meyering@redhat.com>
22762
22763         bootstrap: merge changes from coreutils
22764         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22765         of copied files.  Remove a kludge, now that this is fixed.
22766         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22767         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22768         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22769
22770 2008-08-29  Bruno Haible  <bruno@clisp.org>
22771
22772         * MODULES.html.sh: Remove --cvs-urls option.
22773
22774 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22775
22776         maint.mk: adjust to file name change
22777         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22778
22779 2008-08-28  Jim Meyering  <meyering@redhat.com>
22780
22781         * modules/getndelim2 (License): Relicense to LGPLv2+.
22782         Approved by Richard Stallman for the version of 1995, and by
22783         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22784
22785 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22786
22787         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22788         dummy if one is not available.  Do not touch them if
22789         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22790         (getc_maybe_unlocked): New.
22791         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22792
22793 2008-08-26  Eric Blake  <ebb9@byu.net>
22794
22795         doc/INSTALL: resync from autoconf
22796         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22797         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22798         moving...
22799         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22800         * INSTALL: Regenerate.
22801         * INSTALL.ISO: New file.
22802         * INSTALL.UTF-8: Likewise.
22803
22804 2008-08-26  Jim Meyering  <meyering@redhat.com>
22805
22806         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22807         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22808         these definitions conditional, so that they may be overridden, too.
22809
22810 2008-08-26  Bruno Haible  <bruno@clisp.org>
22811
22812         Generate INSTALL file variants with prettier quotes.
22813         * doc/Makefile (INSTALL_PRELUDE): New macro.
22814         (INSTALL): Use it.
22815         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22816
22817 2008-08-26  Bruno Haible  <bruno@clisp.org>
22818
22819         Run makeinfo in an English locale.
22820         * doc/Makefile (MAKEINFO): New variable.
22821
22822 2008-08-26  Bruno Haible  <bruno@clisp.org>
22823
22824         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22825         Suggested by Eric Blake.
22826
22827 2008-08-25  Bruno Haible  <bruno@clisp.org>
22828
22829         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22830
22831 2008-08-25  Eric Blake  <ebb9@byu.net>
22832
22833         c-stack: test that stack overflow can be caught
22834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22835         that platform allows handling stack overflow; at least OS/2 EMX
22836         has sigaltstack, but crashes before transferring control to
22837         handler on stack overflow.
22838         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22839         check for HAVE_STACK_OVERFLOW_HANDLING.
22840         Reported by Elbert Pol.
22841
22842 2008-08-25  Bruno Haible  <bruno@clisp.org>
22843
22844         * doc/posix-functions/strftime.texi: Fix description of strftime
22845         module.
22846
22847 2008-08-24  Bruno Haible  <bruno@clisp.org>
22848
22849         * tests/uniwidth/test-uc_width2.c: New file.
22850         * tests/uniwidth/test-uc_width2.sh: New file.
22851         * modules/uniwidth/width-tests (Files): Add the new files.
22852         (TESTS): Add uniwidth/test-uc_width2.sh.
22853         (TESTS_ENVIRONMENT): New variable.
22854         (check_PROGRAMS): Add test-uc_width2.
22855         (test_uc_width2_SOURCES): New variable.
22856
22857         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22858         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22859         not 0x00AB.
22860         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22861
22862 2008-08-22  Eric Blake  <ebb9@byu.net>
22863
22864         test-lock, test-tls: mention why a test is skipped
22865         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22866         skipped.
22867         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22868
22869         count-one-bits: relax license
22870         * modules/count-one-bits (License): Relicense to LGPLv2+.
22871         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22872
22873 2008-08-22  Andreas Schwab  <schwab@suse.de>
22874
22875         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22876         Remove spurious space in assignment.
22877
22878 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22879
22880         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22881         Paul Eggert <eggert@CS.UCLA.EDU>.
22882
22883 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22884
22885         * modules/gettext: Add m4/threadlib.m4.
22886
22887 2008-08-19  Eric Blake  <ebb9@byu.net>
22888
22889         test-c-stack: fix compilation failure on FreeBSD 5.0
22890         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22891         headers before <sys/resource.h>.
22892         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22893         the bug.
22894         Reported by Nelson H. F. Beebe.
22895
22896         strverscmp: migrate from "strverscmp.h" to <string.h>
22897         * modules/string (Makefile.am): Add new hooks.
22898         * modules/strverscmp (Files): Remove strverscmp.h.
22899         (Depends-on): Add string.
22900         (configure.ac): Add indicator.
22901         (Include): Mention new header.
22902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22903         defaults.
22904         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22905         results.
22906         * lib/strverscmp.h: Delete.
22907         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22908         * tests/test-strverscmp.c (includes): Adjust client.
22909         * lib/check-version.c (includes): Likewise.
22910         * NEWS: Document the change.
22911
22912         strverscmp: add unit test
22913         * modules/strverscmp-tests: New file.
22914         * tests/test-strverscmp.c: Likewise.
22915
22916 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22917
22918         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22919         regarding Windows crypto stuff, from Mono.
22920
22921 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22922
22923         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22924         if present, for intel RND.  Return error on failures.
22925
22926 2008-08-18  Ben Pfaff  <blp@gnu.org>
22927
22928         gitlog-to-changelog: give better diagnostic for failed pipe-open
22929         * build-aux/gitlog-to-changelog: Improve error message: suggest
22930         that the version of Git may be too old.
22931
22932 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22933
22934         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22935         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22936
22937 2008-08-18  Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22940         pthread_in_use().
22941
22942 2008-08-18  Bruno Haible  <bruno@clisp.org>
22943
22944         * lib/glthread/threadlib.c: Include <pthread.h>.
22945
22946 2008-08-18  Bruno Haible  <bruno@clisp.org>
22947
22948         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22949         glthread_recursive_lock_* macros.
22950         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22951         Fix syntax error.
22952
22953 2008-08-18  Bruno Haible  <bruno@clisp.org>
22954
22955         * lib/glthread/thread.c: Avoid forcing a context switch right after
22956         thread creation.
22957
22958 2008-08-17  Bruno Haible  <bruno@clisp.org>
22959
22960         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22961         * lib/glthread/thread.h: Provide Win32 specific implementation.
22962         * modules/thread (Files): Add lib/glthread/thread.c.
22963         (Depends-on): Add lock.
22964         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22965
22966 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22967
22968         New module 'yield'.
22969         * modules/yield: New file.
22970         * lib/glthread/yield.h: New file.
22971         * m4/yield.m4: New file.
22972         * MODULES.html.sh (Multithreading): Add yield.
22973
22974 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22975
22976         New module 'thread'.
22977         * modules/thread: New file.
22978         * lib/glthread/thread.h: New file.
22979         * m4/thread.m4: New file.
22980         * MODULES.html.sh (Multithreading): Add thread.
22981
22982 2008-08-17  Bruno Haible  <bruno@clisp.org>
22983
22984         * lib/glthread/lock.h: Include <stdlib.h> always.
22985         * lib/glthread/tls.h: Likewise.
22986         * lib/glthread/cond.h: Likewise.
22987
22988 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22989
22990         New module 'cond'.
22991         * modules/cond: New file.
22992         * lib/glthread/cond.h: New file.
22993         * lib/glthread/cond.c: New file.
22994         * m4/cond.m4: New file.
22995         * MODULES.html.sh (Multithreading): Add cond.
22996
22997 2008-08-16  Eric Blake  <ebb9@byu.net>
22998
22999         c-stack: fix regression on Irix 5.3 from 2008-06-21
23000         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23001         sa_sigaction...
23002         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23003         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23004         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23005         * modules/signal (Makefile.am): Use the value.
23006         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23007         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23008         * doc/posix-headers/signal.texi (signal.h): Document this
23009         portability issue.
23010         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23011         Reported by Tom G. Christensen.
23012
23013 2008-08-17  Bruno Haible  <bruno@clisp.org>
23014
23015         New module 'threadlib'.
23016         * modules/threadlib: New file.
23017         * lib/glthread/threadlib.c: New file, extracted from
23018         lib/glthread/lock.c.
23019         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23020         functions.
23021         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23022         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23023         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23024         macros.
23025         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23026         (gl_DISABLE_THREADS): Remove macro.
23027         * modules/lock (Files): Remove build-aux/config.rpath.
23028         (Depends-on): Remove havelib. Add threadlib.
23029         (configure.ac-early): Remove section.
23030         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23031         * modules/tls (Depends-on): Remove lock. Add threadlib.
23032         (Link): New section, copied from threadlib.
23033         * MODULES.html.sh (Multithreading): Add threadlib.
23034
23035 2008-08-14  Bruno Haible  <bruno@clisp.org>
23036
23037         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23038         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23039         glthread_rwlock_unlock, glthread_rwlock_destroy,
23040         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23041         glthread_recursive_lock_destroy): Define as macros always.
23042         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23043         glthread_lock_lock.
23044         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23045         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23046         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23047         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23048         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23049         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23050         (glthread_recursive_lock_lock_func): Renamed from
23051         glthread_recursive_lock_lock.
23052         (glthread_recursive_lock_unlock_func): Renamed from
23053         glthread_recursive_lock_unlock.
23054         (glthread_recursive_lock_destroy_func): Renamed from
23055         glthread_recursive_lock_destroy.
23056
23057 2008-08-14  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/glthread/lock.h: Renamed from lib/lock.h.
23060         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23061         * lib/glthread/tls.h: Renamed from lib/tls.h.
23062         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23063         * lib/fstrcmp.c: Update includes.
23064         * lib/strsignal.c: Update includes.
23065         * modules/lock (Files, Makefile.am): Update.
23066         (Include): Change to "glthread/lock.h".
23067         * modules/tls (Files, Makefile.am): Update.
23068         (Include): Change to "glthread/tls.h".
23069         * tests/test-lock.c: Update includes.
23070         * tests/test-tls.c: Update includes.
23071         * NEWS: Mention the renamed header files.
23072
23073 2008-08-11  Jim Meyering  <meyering@redhat.com>
23074
23075         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23076
23077 2008-08-11  Eric Blake  <ebb9@byu.net>
23078
23079         test-c-stack: avoid C99-ism
23080         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23081         before statement.
23082         Reported by Alain Guibert.
23083
23084 2008-08-10  Jim Meyering  <meyering@redhat.com>
23085
23086         ensure that return value of uinttostr et al are not ignored
23087         * lib/inttostr.h (__GNUC_PREREQ): Define.
23088         (__attribute_warn_unused_result__): Define.
23089         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23090
23091 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23092
23093         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23094         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23095
23096 2008-08-07  Jim Meyering  <meyering@redhat.com>
23097
23098         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23099
23100         * modules/mkstemp (License): Relicense under LGPLv2+.
23101         * modules/tempname (License): Likewise.
23102
23103 2008-08-06  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/poll.c (poll): Further micro-optimization.
23106
23107 2008-08-06  Jim Meyering  <meyering@redhat.com>
23108
23109         inet_pton.c: use locale-independent tolower
23110         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23111         (inet_pton6): Use c_tolower rather than tolower.
23112         * modules/inet_pton (Depends-on): Add c-ctype.
23113
23114 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23115
23116         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23117         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23118
23119 2008-08-06  Jim Meyering  <meyering@redhat.com>
23120
23121         * modules/inet_pton (License): Relicense under LGPLv2+.
23122
23123 2008-08-03  Bruno Haible  <bruno@clisp.org>
23124
23125         Additional non-aborting API for lock and tls.
23126         * lib/lock.h: Include <errno.h>.
23127         (glthread_lock_init): New macro/function.
23128         (gl_lock_init): Define as wrapper around glthread_lock_init.
23129         (glthread_lock_lock): New macro/function.
23130         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23131         (glthread_lock_unlock): New macro/function.
23132         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23133         (glthread_lock_destroy): New macro/function.
23134         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23135         (glthread_rwlock_init): New macro/function.
23136         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23137         (glthread_rwlock_rdlock): New macro/function.
23138         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23139         (glthread_rwlock_wrlock): New macro/function.
23140         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23141         (glthread_rwlock_unlock): New macro/function.
23142         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23143         (glthread_rwlock_destroy): New macro/function.
23144         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23145         (glthread_recursive_lock_init): New macro/function.
23146         (gl_recursive_lock_init): Define as wrapper around
23147         glthread_recursive_lock_init.
23148         (glthread_recursive_lock_lock): New macro/function.
23149         (gl_recursive_lock_lock): Define as wrapper around
23150         glthread_recursive_lock_lock.
23151         (glthread_recursive_lock_unlock): New macro/function.
23152         (gl_recursive_lock_unlock): Define as wrapper around
23153         glthread_recursive_lock_unlock.
23154         (glthread_recursive_lock_destroy): New macro/function.
23155         (gl_recursive_lock_destroy): Define as wrapper around
23156         glthread_recursive_lock_destroy.
23157         (glthread_once): New macro/function.
23158         (gl_once): Define as wrapper around glthread_once.
23159         Update function declarations.
23160         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23161         glthread_rwlock_init. Return error code.
23162         (glthread_rwlock_rdlock_multithreaded): Renamed from
23163         glthread_rwlock_rdlock. Return error code.
23164         (glthread_rwlock_wrlock_multithreaded): Renamed from
23165         glthread_rwlock_wrlock. Return error code.
23166         (glthread_rwlock_unlock_multithreaded): Renamed from
23167         glthread_rwlock_unlock. Return error code.
23168         (glthread_rwlock_destroy_multithreaded): Renamed from
23169         glthread_rwlock_destroy. Return error code.
23170         (glthread_recursive_lock_init_multithreaded): Renamed from
23171         glthread_recursive_lock_init. Return error code.
23172         (glthread_recursive_lock_lock_multithreaded): Renamed from
23173         glthread_recursive_lock_lock. Return error code.
23174         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23175         glthread_recursive_lock_unlock. Return error code.
23176         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23177         glthread_recursive_lock_destroy. Return error code.
23178         (glthread_once_call): Make static.
23179         (glthread_once_multithreaded): Renamed from glthread_once.
23180         * lib/tls.h: Include <errno.h>.
23181         (glthread_tls_key_init): New macro/function.
23182         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23183         (glthread_tls_set): New macro/function.
23184         (gl_tls_set): Define as wrapper around glthread_tls_set.
23185         (glthread_tls_key_destroy): New macro/function.
23186         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23187         Update function declarations.
23188         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23189         glthread_tls_get.
23190         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23191
23192 2008-08-04  Eric Blake  <ebb9@byu.net>
23193
23194         gnumakefile: use space, not TAB, outside of targets
23195         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23196
23197 2008-08-02  Jim Meyering  <meyering@redhat.com>
23198
23199         getdate.y: avoid locale-dependent date parsing failure
23200         In Turkish locales, getdate would fail to recognize keywords
23201         containing a lowercase "i".  The solution is not to rely on
23202         locale-sensitive case-conversion.
23203         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23204         (lookup_word): Use c_toupper in place of toupper.
23205         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23206         Reported by Vefa Bicakci <bicave@superonline.com> in
23207         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23208         * modules/getdate (Depends-on): Add c-ctype.
23209
23210 2008-08-02  Bruno Haible  <bruno@clisp.org>
23211
23212         * gnulib-tool (func_import): When updating or creating a .gitignore
23213         file, prepend each added line with a slash, and ignore leading slashes
23214         from the existing lines.
23215         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23216
23217 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23218
23219         Portability fix for GNU make 3.79.1.
23220         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23221         versions do not understand.
23222
23223 2008-08-01  Bruno Haible  <bruno@clisp.org>
23224
23225         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23226         * tests/test-isnanf.h (zero): New variable.
23227         (main): Avoid literal -0.0f.
23228         * tests/test-isnand.h (zero): New variable.
23229         (main): Avoid literal -0.0.
23230         * tests/test-isnanl.h (zero): New variable.
23231         (main): Avoid literal -0.0L.
23232         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23233         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23234         -0.0, -0.0L.
23235         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23236         (test_signbitd): Avoid literal -0.0.
23237         (test_signbitl): Avoid literal -0.0L.
23238         * tests/test-ceilf1.c (zero): New variable.
23239         (main): Avoid literal -0.0f.
23240         * tests/test-ceill.c (zero): New variable.
23241         (main): Avoid literal -0.0L.
23242         * tests/test-floorf1.c (zero): New variable.
23243         (main): Avoid literal -0.0f.
23244         * tests/test-floorl.c (zero): New variable.
23245         (main): Avoid literal -0.0L.
23246         * tests/test-roundf1.c (zero): New variable.
23247         (main): Avoid literal -0.0f.
23248         * tests/test-round1.c (zero): New variable.
23249         (main): Avoid literal -0.0.
23250         * tests/test-roundl.c (zero): New variable.
23251         (main): Avoid literal -0.0L.
23252         * tests/test-truncf1.c (zero): New variable.
23253         (main): Avoid literal -0.0f.
23254         * tests/test-trunc1.c (zero): New variable.
23255         (main): Avoid literal -0.0.
23256         * tests/test-truncl.c (zero): New variable.
23257         (main): Avoid literal -0.0L.
23258         * tests/test-frexp.c (zero): New variable.
23259         (main): Avoid literal -0.0.
23260         * tests/test-frexpl.c (zero): New variable.
23261         (main): Avoid literal -0.0L.
23262         * tests/test-ldexpl.c (zero): New variable.
23263         (main): Avoid literal -0.0L.
23264         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23265         (zerod, zerol): New variables.
23266         (test_function): Avoid literals -0.0, -0.0L.
23267         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23268         (zerod, zerol): New variables.
23269         (test_function): Avoid literals -0.0, -0.0L.
23270         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23271         (zerod, zerol): New variables.
23272         (test_function): Avoid literals -0.0, -0.0L.
23273         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23274         (zerod, zerol): New variables.
23275         (test_function): Avoid literals -0.0, -0.0L.
23276         * tests/test-strtod.c (zero): New variable.
23277         (main): Avoid literal -0.0.
23278         Reported by Jonathan C. Patschke <jp@centtech.com>.
23279
23280 2008-07-31  Jim Meyering  <meyering@redhat.com>
23281
23282         sha256.h: correct definition of SHA224_DIGEST_SIZE
23283         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23284         Reported by Paulie Pena IV <paulie4@gmail.com>.
23285         Define as 224 / 8, rather than as a literal.
23286         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23287         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23288         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23289
23290 2008-07-31  Bruno Haible  <bruno@clisp.org>
23291
23292         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23293         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23294         Reported by Jonathan Patschke <jp@centtech.com>.
23295
23296 2008-07-31  Bruno Haible  <bruno@clisp.org>
23297
23298         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23299         Reported by Paolo Bonzini <bonzini@gnu.org>.
23300
23301 2008-07-30  Eric Blake  <ebb9@byu.net>
23302
23303         test-strtod: allow compilation without -lm
23304         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23305         Reported by Dennis Clarke <blastwave@gmail.com>.
23306
23307 2008-07-28  Jim Meyering  <meyering@redhat.com>
23308
23309         bootstrap: work also when there are no .po files in po/
23310         * build-aux/bootstrap (update_po_files): Complete the change
23311         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23312
23313 2008-07-27  Jim Meyering  <meyering@redhat.com>
23314
23315         * users.txt: Add zile.
23316
23317 2008-07-26  Ben Pfaff  <blp@gnu.org>
23318
23319         Add missing dependencies on new m4/exponent[fdl].m4 files.
23320         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23321         * modules/isnand-nolibm: Add m4/exponentd.m4.
23322         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23323         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23324         m4/isnan[fdl].m4, because the macros actually used moved.
23325         Reported by Jim Meyering.
23326
23327 2008-07-14  Ben Pfaff  <blp@gnu.org>
23328
23329         Add isinf module.
23330         * lib/isinf.c: New file.
23331         * lib/math.in.h: Define isinf macro if we have decided to replace
23332         it.
23333         * m4/isinf.m4: New file.
23334         * m4/math_h.m4: Initialize and substitute variables for isinf
23335         module.
23336         * modules/isinf: New file.
23337         * modules/isinf-tests: New file.
23338         * modules/math: Add substitutions for new module.
23339         * tests/test-isinf.c: New file.
23340         * doc/posix-functions/isinf.texi: Mention new module.
23341         * MODULES.html.sh: Mention new module.
23342
23343 2008-07-14  Ben Pfaff  <blp@gnu.org>
23344
23345         Factor out some macros for use by additional modules.
23346         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23347         exponentf.m4.
23348         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23349         exponentd.m4.
23350         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23351         file exponentl.m4.
23352         * m4/exponentf.m4: New file.
23353         * m4/exponentd.m4: New file.
23354         * m4/exponentl.m4: New file.
23355         * modules/isnanf: Use new file m4/exponentf.m4.
23356         * modules/isnand: Use new file m4/exponentd.m4.
23357         * modules/isnanl: Use new file m4/exponentl.m4.
23358
23359 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23360
23361         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23362         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23363         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23364         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23365
23366         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23367         readlink on platforms without PATH_MAX.
23368
23369 2008-07-21  Eric Blake  <ebb9@byu.net>
23370
23371         Warn, not fail, on stale version.
23372         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23373
23374         Don't allow installation with stale devel version number.
23375         * top/GNUmakefile (_is-install-target): New macro.
23376         (_curr-ver): Forbid installation with stale version number.
23377
23378 2008-07-20  Bruno Haible  <bruno@clisp.org>
23379
23380         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23381         TESTS_ENVIRONMENT.
23382         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23383
23384 2008-07-20  Bruno Haible  <bruno@clisp.org>
23385
23386         * lib/c-stack.h (c_stack_action): Add documentation.
23387         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23388
23389 2008-07-20  Bruno Haible  <bruno@clisp.org>
23390
23391         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23392         * modules/readlink (License): Likewise.
23393
23394 2008-07-17  Eric Blake  <ebb9@byu.net>
23395
23396         * modules/c-stack (Link): Fix typo.
23397
23398         Make c-stack use libsigsegv, when available.
23399         * modules/c-stack (Depends-on): Add libsigsegv.
23400         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23401         needed.
23402         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23403         (segv_handler, overflow_handler, c_stack_action)
23404         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23405         implementation when libsigsegv is available, but only when using
23406         the library is necessary.
23407         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23408         comment, explaining why XSI check fails on Linux.
23409         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23410         * tests/test-c-stack2.sh: Tweak skip message.
23411         * NEWS: Document new link-time requirements.
23412
23413 2008-07-16  Eric Blake  <ebb9@byu.net>
23414
23415         c-stack: Expose false positives when not using libsigsegv.
23416         * modules/c-stack-tests (Files): Expand test.
23417         * tests/test-c-stack.c (main): Add means to conditionally trigger
23418         non-overflow SIGSEGV.
23419         * tests/test-c-stack2.sh: New file.
23420
23421 2008-07-14  Bruno Haible  <bruno@clisp.org>
23422
23423         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23424         Reported by Eric Blake.
23425
23426 2008-07-14  Sam Steingold  <sds@gnu.org>
23427             Bruno Haible  <bruno@clisp.org>
23428
23429         New module libsigsegv.
23430         * modules/libsigsegv: New file.
23431         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23432         modifications.
23433         * MODULES.html.sh (Signal handling): New section.
23434
23435 2008-07-14  Bruno Haible  <bruno@clisp.org>
23436
23437         * modules/unictype/ctype-* (Description): Add the word "function".
23438         Improves the resulting doc in MODULES.html.
23439
23440 2008-07-12  Ben Pfaff  <blp@gnu.org>
23441
23442         Add longlong module.
23443         * modules/longlong: New file.
23444
23445 2008-07-12  Bruno Haible  <bruno@clisp.org>
23446
23447         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23448         to empty.
23449
23450 2008-07-10  Ben Pfaff  <blp@gnu.org>
23451
23452         Add isnan module.
23453         * doc/posix-functions/isnan.texi: Mention new module.
23454         * lib/math.in.h: Define isnan macro if we have decided to replace
23455         it.
23456         * m4/isnan.m4: New file.
23457         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23458         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23459         also.
23460         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23461         redundancy.
23462         * m4/math_h.m4: Initialize and substitute variables for isnan
23463         module.
23464         * modules/isnan: New file.
23465         * modules/isnan-tests: New file.
23466         * modules/math: Add substitutions for new module.
23467         * tests/test-isnan.c: New file.
23468         * MODULES.html.sh: Mention new module.
23469
23470 2008-07-10  Ben Pfaff  <blp@gnu.org>
23471
23472         Add isnanf module.
23473         * lib/isnanf.m4: New file.
23474         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23475         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23476         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23477         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23478         * modules/isnanf: New file.
23479         * modules/isnanf-tests: New file.
23480         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23481         files.
23482         * tests/test-isnanf-nolibm.c: factored most of its contents into
23483         new file tests/test-isnanf.h.
23484         * tests/test-isnanf.h: New file.
23485         * tests/test-isnanf.c: New file.
23486         * MODULES.html.sh: Mention new module.
23487         * doc/glibc-functions/isnanf.texi: Mention new module.
23488
23489 2008-07-10  Ben Pfaff  <blp@gnu.org>
23490
23491         Add isnand module.
23492         * lib/isnand.h: New file.
23493         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23494         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23495         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23496         functionality also.
23497         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23498         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23499         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23500         * modules/isnand: New file.
23501         * modules/isnand-tests: New file.
23502         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23503         files.
23504         * tests/test-isnand-nolibm.c: factored most of its contents into
23505         new file tests/test-isnand.h.
23506         * tests/test-isnand.h: New file.
23507         * tests/test-isnand.c: New file.
23508         * MODULES.html.sh: Mention new module.
23509
23510 2008-07-10  Ben Pfaff  <blp@gnu.org>
23511
23512         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23513         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23514         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23515         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23516         * modules/isnanf-nolibm: Update references to renamed files.
23517         * modules/isnand-nolibm: Likewise.
23518         * modules/isnanf-nolibm-tests: Likewise.
23519         * modules/isnand-nolibm-tests: Likewise.
23520         * lib/frexp.c: Likewise.
23521         * lib/isfinite.c: Likewise.
23522         * lib/signbitd.c: Likewise.
23523         * lib/signbitf.c: Likewise.
23524         * lib/vasnprintf.c: Likewise.
23525         * tests/test-ceilf1.c: Likewise.
23526         * tests/test-ceilf2.c: Likewise.
23527         * tests/test-floorf1.c: Likewise.
23528         * tests/test-floorf2.c: Likewise.
23529         * tests/test-frexp.c: Likewise.
23530         * tests/test-round1.c: Likewise.
23531         * tests/test-round2.c: Likewise.
23532         * tests/test-roundf1.c: Likewise.
23533         * tests/test-strtod.c: Likewise.
23534         * tests/test-trunc1.c: Likewise.
23535         * tests/test-trunc2.c: Likewise.
23536         * tests/test-truncf1.c: Likewise.
23537         * tests/test-truncf2.c: Likewise.
23538         * NEWS: Mention the renamed header files.
23539
23540 2008-07-11  Jim Meyering  <meyering@redhat.com>
23541
23542         vc-list-files: make the last-resort awk code more portable
23543         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23544         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23545         does not support it.
23546
23547 2008-07-10  Eric Blake  <ebb9@byu.net>
23548
23549         Work with tar's bootstrap.
23550         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23551         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23552         an m4 comment.
23553
23554 2008-07-09  Jim Meyering  <meyering@redhat.com>
23555
23556         posix-shell.m4: fix typo that made this test malfunction
23557         * m4/posix-shell.m4: Remove capitalization in variable name.
23558
23559 2008-07-08  Bruno Haible  <bruno@clisp.org>
23560
23561         * m4/onceonly.m4: Update comments.
23562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23563
23564 2008-07-04  Jim Meyering  <meyering@redhat.com>
23565
23566         * users.txt: Add vc-dwim.
23567         (bison, coreutils): Use the gitweb URL.
23568
23569 2008-07-03  Jim Meyering  <meyering@redhat.com>
23570
23571         * users.txt: Add libffcall.  From Sam Steingold.
23572
23573 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23574
23575         getdate.y: do not ignore TZ with relative day, month or year offset
23576         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23577         relative-date-handling, since otherwise, the latter would clobber the
23578         sole output (an updated Start value) of the tz-handling block.
23579         * tests/test-getdate.c: Tests for the fix
23580
23581 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23582
23583         Recognize 'foo_LIBRARIES += libgnu.a'.
23584         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23585         makefile snippet has already specified an installation location,
23586         also using '+='.
23587
23588 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23589
23590         getdate.y: factor out common actions
23591         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23592         Use them in place of open-coded actions.
23593
23594 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23595
23596         Add self-test for getdate module.
23597         * modules/getdate-tests: New file.
23598         * tests/test-getdate.c: New file.
23599
23600 2008-06-29  Bruno Haible  <bruno@clisp.org>
23601
23602         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23603         .gitignore.
23604         Reported by Sylvain Beucler <beuc@beuc.net>.
23605
23606 2008-06-29  Bruno Haible  <bruno@clisp.org>
23607
23608         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23609         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23610
23611 2008-06-29  Bruno Haible  <bruno@clisp.org>
23612
23613         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23614         EXTRA_DIST.
23615         Reported by Sylvain Beucler <beuc@beuc.net>.
23616
23617 2008-06-26  Jim Meyering  <meyering@redhat.com>
23618
23619         make several modules depend on the "open" module
23620         This provides slightly increased consistency when opening-for-write
23621         the name of a non-directory spelled with a trailing slash.
23622         * modules/chdir-safer: Likewise.
23623         * modules/chown: Likewise.
23624         * modules/clean-temp: Likewise.
23625         * modules/copy-file: Likewise.
23626         * modules/fchdir: Likewise.
23627         * modules/fcntl-safer: Likewise.
23628         * modules/pipe: Likewise.
23629         * modules/utime: Likewise.
23630         Prompted by Eric Blake and Bruno Haible.
23631
23632 2008-06-24  Andreas Schwab  <schwab@suse.de>
23633
23634         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23635         literals can be used as initializers for global variables.
23636
23637 2008-06-23  Eric Blake  <ebb9@byu.net>
23638
23639         Make gnulib-cache.m4 easier to diff.
23640         * gnulib-tool (func_import): Allow newlines when reading cached
23641         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23642
23643 2008-06-23  Bruno Haible  <bruno@clisp.org>
23644
23645         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23646         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23647         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23648         m4/signalblocking.m4.
23649         (gl_PREREQ_SIGACTION): Don't invoke it.
23650         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23651         gl_PREREQ_SIG_HANDLER_H.
23652         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23653         Don't check for sigaction here.
23654
23655 2008-06-23  Bruno Haible  <bruno@clisp.org>
23656
23657         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23658         (install_handlers): Don't set the SA_RESETHAND flag.
23659
23660 2008-06-23  Bruno Haible  <bruno@clisp.org>
23661
23662         * m4/sigaction.m4: Comment fixes.
23663         * lib/signal.in.h: Likewise.
23664
23665 2008-06-23  Eric Blake  <ebb9@byu.net>
23666
23667         Fix typo.
23668         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23669
23670         Avoid SA_ namespace.
23671         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23672         Reported by Ralf Wildenhues.
23673
23674         Avoid test failure due to SA_RESTORER.
23675         * tests/test-sigaction.c (SA_MASK): New macro.
23676         (main): Avoid failing due to extension flags being set.
23677         Reported by Jim Meyering.
23678
23679         Revert use of sig-handler.h in sigprocmask.c.
23680         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23681         it requires the existence of struct sigaction.
23682         * lib/sigprocmask.c (handler_t): Restore typedef.
23683         (rpl_signal, old_handlers): Use local type.
23684
23685 2008-06-22  Bruno Haible  <bruno@clisp.org>
23686
23687         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23688         conditionally.
23689         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23690
23691 2008-06-22  Bruno Haible  <bruno@clisp.org>
23692
23693         * doc/posix-functions/siginterrupt.texi: Move note.
23694
23695         * lib/signal.in.h (SA_RESTART): New macro.
23696         * lib/sigaction.c: Update comment.
23697
23698         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23699
23700         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23701         (gl_PREREQ_SIGPROCMASK): Invoke it.
23702         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23703
23704         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23705
23706         * lib/sigprocmask.c: Update a comment.
23707
23708 2008-06-21  Eric Blake  <ebb9@byu.net>
23709
23710         Use sigaction module rather than signal().
23711         * modules/c-stack (Depends-on): Add sigaction.
23712         * modules/fatal-signal (Depends-on): Likewise.
23713         * modules/nanosleep (Depends-on): Likewise.
23714         * modules/sigprocmask (Files): Add sig-handler.h.
23715         * modules/sigaction (Files): Likewise.
23716         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23717         Eggert.
23718         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23719         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23720         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23721         (init_fatal_signals): Likewise.
23722         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23723         (siginterrupt): Delete fallback.
23724         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23725         instead.
23726         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23727         siginterrupt.
23728
23729         New module sigaction, for mingw.
23730         * modules/sigaction: New module...
23731         * modules/sigaction-tests: ...and its test.
23732         * m4/sigaction.m4: New file.
23733         * lib/sigaction.c: Likewise.
23734         * tests/test-sigaction.c: Likewise.
23735         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23736         * modules/signal (Makefile.am): Likewise.
23737         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23738         needed.
23739         * doc/posix-headers/signal.texi (signal.h): Mention provided
23740         types.
23741         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23742         that sigaction is preferable.
23743         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23744         module.
23745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23746         sigaction.
23747
23748         Improve robustness of sigprocmask by overriding signal.
23749         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23750         is in use.
23751         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23752         (SIGKILL, SIGSTOP): Provide fallbacks.
23753         (rpl_signal): Implement.
23754         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23755         signal can be called inside handlers.
23756
23757         Fix nanosleep module on mingw.
23758         * modules/nanosleep (Depends-on): Add sys_select.
23759         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23760
23761         Fix licensing of sigprocmask.
23762         * modules/raise (License): Relicense as LGPL.
23763
23764 2008-06-21  Bruno Haible  <bruno@clisp.org>
23765
23766         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23767         result if it contains question marks.
23768         Reported by Michael Geng <linux@michaelgeng.de>.
23769
23770 2008-06-19  Bruno Haible  <bruno@clisp.org>
23771
23772         Fix CVS-ism.
23773         * doc/gnulib.texi: Include updated-stamp.texi.
23774         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23775         (updated-stamp.texi): New rule.
23776         (gnulib.info): Depend on it.
23777         * doc/.gitignore: Add updated-stamp.texi.
23778         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23779
23780 2008-06-19  Bruno Haible  <bruno@clisp.org>
23781
23782         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23783         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23784
23785 2008-06-19  Eric Blake  <ebb9@byu.net>
23786
23787         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23788         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23789         Reported by Stepan Kasal.
23790
23791 2008-06-18  Bruno Haible  <bruno@clisp.org>
23792
23793         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23794         Reported by Eric Blake.
23795
23796 2008-06-18  Eric Blake  <ebb9@byu.net>
23797
23798         Work around cygwin 1.5.25 strsignal bug.
23799         * tests/test-strsignal.c: Allow for const char *.
23800         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23801
23802 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23803
23804         * users.txt: Update URL to article and add author/date
23805         information.
23806
23807 2008-06-17  Bruno Haible  <bruno@clisp.org>
23808
23809         New macro gl_DISABLE_THREADS.
23810         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23811         if the user did not pass --enable-threads or --disable-threads option.
23812         (gl_DISABLE_THREADS): New macro.
23813         Reported by Eric Blake <ebb9@byu.net>.
23814
23815 2008-06-17  Bruno Haible  <bruno@clisp.org>
23816
23817         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23818         when the macro ignores it.
23819         Based on a patch by Eric Blake <ebb9@byu.net>.
23820
23821 2008-06-17  Bruno Haible  <bruno@clisp.org>
23822
23823         * modules/tls (License): Change to LGPLv2+.
23824         Reported by Eric Blake.
23825
23826 2008-06-17  Eric Blake  <ebb9@byu.net>
23827
23828         Simplify c-stack prerequisites.
23829         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23830         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23831         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23832         check.
23833         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23834         <sys/resource.h>.
23835
23836         Move c-stack test into testsuite.
23837         * modules/c-stack-tests: New file.
23838         * lib/c-stack.c [DEBUG]: Move test program...
23839         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23840         fail test if sigaltstack is lacking.
23841         * tests/test-c-stack.sh: New driver file.
23842
23843 2008-06-16  Eric Blake  <ebb9@byu.net>
23844
23845         Use raise module consistently.
23846         * modules/fatal-signal (Depends-on): Add raise.
23847         * modules/sigprocmask (Depends-on): Likewise.
23848         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23849         * lib/sigprocmask.c (sigprocmask): Likewise.
23850         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23851         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23852
23853         Fix compliance bug in sigpending.
23854         * lib/sigprocmask.c (sigpending): Return pending array via
23855         parameter, not return value.
23856
23857 2008-06-14  Eric Blake  <ebb9@byu.net>
23858
23859         Improve obstack-printf test code.
23860         * tests/test-obstack-printf.c (test_function): Fix comment, and
23861         simplify usage of obstack_* in macros.  Add a test for coverage.
23862         Reported by Bruno Haible.
23863
23864 2008-06-14  Bruno Haible  <bruno@clisp.org>
23865
23866         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23867         array size as a constant, not as a const variable.
23868         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23869         AC_USE_SYSTEM_EXTENSIONS.
23870         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23871         Test whether the obstack_printf function actually exists.
23872         * modules/obstack-printf (Depends-on): Add extensions.
23873         (Include): Remove obstack.h.
23874         * modules/obstack-printf-posix (Depends-on): Add extensions.
23875         (Include): Remove obstack.h.
23876
23877 2008-06-13  Eric Blake  <ebb9@byu.net>
23878
23879         Add obstack-printf and obstack-printf-posix modules.
23880         * modules/obstack-printf: New file.
23881         * modules/obstack-printf-posix: Likewise.
23882         * MODULES.html.sh (Misc): Mention them.
23883         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23884         Likewise.
23885         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23886         Likewise.
23887         * modules/stdio (Makefile.am): Accomodate new modules.
23888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23889         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23890         Declare.
23891         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23892         functions.
23893         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23894         (gl_REPLACE_OBSTACK_PRINTF): New macros
23895         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23896         * tests/test-obstack-printf.c: New file.
23897         * modules/obstack-printf-tests: Likewise.
23898         * modules/obstack-printf-posix-tests: Likewise.
23899
23900 2008-06-11  Bruno Haible  <bruno@clisp.org>
23901
23902         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23903         * lib/open.c: Include errno.h.
23904         (open): Fail when attempting to write to a file that has a trailing
23905         slash.
23906         * tests/test-open.c (main): Test against trailing slash bug.
23907         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23908
23909 2008-06-10  Bruno Haible  <bruno@clisp.org>
23910
23911         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23912         for $? to work inside the trap command, with various /bin/sh-s.
23913         * tests/test-vc-list-files-cvs.sh: Likewise.
23914
23915 2008-06-10  Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/acl-internal.h: Don't include gettext.h here.
23918         * lib/set-mode-acl.c: Include gettext.h here.
23919         * lib/copy-acl.c: Likewise.
23920
23921 2008-06-10  Bruno Haible  <bruno@clisp.org>
23922
23923         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23924         * lib/wait-process.c (wait_subprocess): Likewise.
23925         * lib/execute.h (execute): Add termsigp argument.
23926         * lib/execute.c (execute): Likewise.
23927         * lib/csharpcomp.c (compile_csharp_using_pnet,
23928         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23929         * lib/csharpexec.c (execute_csharp_using_pnet,
23930         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23931         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23932         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23933         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23934         is_jikes_present): Update.
23935         * lib/javaexec.c (execute_java_class): Update.
23936         * lib/javaversion.c (execute_and_read_line): Update.
23937         * NEWS: Document the changes.
23938         Reported by Eric Blake.
23939
23940 2008-06-10  Eric Blake  <ebb9@byu.net>
23941
23942         Add missing include.
23943         * tests/test-strstr.c (includes): Add <signal.h>.
23944         * tests/test-strcasestr.c (includes): Likewise.
23945         * tests/test-memmem.c (includes): Likewise.
23946
23947 2008-06-10  Bruno Haible  <bruno@clisp.org>
23948
23949         * lib/wait-process.c (wait_subprocess): Add an assertion.
23950
23951 2008-06-10  Bruno Haible  <bruno@clisp.org>
23952
23953         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23954
23955 2008-06-10  Bruno Haible  <bruno@clisp.org>
23956
23957         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23958         using alarm().
23959         * tests/test-strcasestr.c (main): Likewise.
23960         * tests/test-strstr.c (main): Likewise.
23961
23962 2008-06-09  Bruno Haible  <bruno@clisp.org>
23963
23964         Work around the Solaris 10 ACE ACLs ABI change.
23965         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23966         declare if ACL_NO_TRIVIAL is present.
23967         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23968         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23969         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23970         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23971         define if ACL_NO_TRIVIAL is present.
23972         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23973         and use the current ABI.
23974         (file_has_acl): Use same #if condition as elsewhere.
23975         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23976         in use, and use the current ABI.
23977         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23978         Reported by Jim Meyering.
23979
23980 2008-06-09  Eric Blake  <ebb9@byu.net>
23981
23982         Work around environments that (stupidly) ignore SIGALRM.
23983         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23984         before using alarm().
23985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23987         Reported by Ian Beckwith <ianb@erislabs.net>.
23988
23989         Produce autobuild blurb earlier in log.
23990         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23991
23992 2008-06-09  Jim Meyering  <meyering@redhat.com>
23993         and Ondřej Vašík  <ovasik@redhat.com>
23994
23995         utimens.c: correct kernel bug work-around
23996         Ondřej Vašík found that the invalid return value of 280 indicates
23997         failure, not success, and the kernel bug we're trying to work
23998         around affects not just the utimensat call, but also the fallback
23999         futimens call.
24000         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24001         not success.
24002         [HAVE_FUTIMENS]: Use the same work-around, here.
24003
24004 2008-06-09  Jim Meyering  <meyering@redhat.com>
24005
24006         add more guards around definition of ACE_-related code
24007         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24008         ALLOW and ACE_OWNER are also defined.
24009
24010 2008-06-08  Bruno Haible  <bruno@clisp.org>
24011
24012         * lib/acl-internal.h: Add me as co-author.
24013         * lib/file-has-acl.c: Likewise.
24014         * lib/set-mode-acl.c: Likewise.
24015         * lib/copy-acl.c: Likewise.
24016
24017 2008-06-08  Bruno Haible  <bruno@clisp.org>
24018
24019         Add support for AIX ACLs.
24020         * lib/acl-internal.h (acl_nontrivial): New declaration.
24021         * lib/file-has-acl.c (acl_nontrivial): New function.
24022         (file_has_acl): Add implementation using AIX 4 ACL API.
24023         * lib/set-mode-acl.c (qset_acl): Likewise.
24024         * lib/copy-acl.c (qcopy_acl): Likewise.
24025
24026 2008-06-08  Bruno Haible  <bruno@clisp.org>
24027
24028         Add support for HP-UX ACLs.
24029         * lib/acl-internal.h (acl_nontrivial): New declaration.
24030         * lib/file-has-acl.c (acl_nontrivial): New function.
24031         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24032         * lib/set-mode-acl.c (qset_acl): Likewise.
24033         * lib/copy-acl.c (qcopy_acl): Likewise.
24034
24035 2008-06-08  Bruno Haible  <bruno@clisp.org>
24036
24037         Add support for Cygwin ACLs.
24038         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24039         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24040         the chmod_or_fchmod call.
24041         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24042
24043 2008-06-08  Bruno Haible  <bruno@clisp.org>
24044
24045         Fix bug with setuid modes in Solaris 10+ code.
24046         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24047         succeeded, when the mode contains some special bits.
24048
24049 2008-06-08  Bruno Haible  <bruno@clisp.org>
24050
24051         Add support for Solaris 7..10 ACLs.
24052         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24053         declarations.
24054         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24055         functions.
24056         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24057         * lib/set-mode-acl.c (qset_acl): Likewise.
24058         * lib/copy-acl.c (qcopy_acl): Likewise.
24059
24060 2008-06-08  Bruno Haible  <bruno@clisp.org>
24061
24062         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24063         declaration.
24064         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24065         (acl_access_nontrivial): Remove MacOS X case.
24066         (file_has_acl): Use acl_extended_nontrivial.
24067         * lib/copy-acl.c (qcopy_acl): Likewise.
24068
24069 2008-06-08  Bruno Haible  <bruno@clisp.org>
24070
24071         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24072
24073 2008-06-08  Jim Meyering  <meyering@redhat.com>
24074
24075         * modules/acl (Maintainer): Add Bruno Haible.
24076
24077 2008-06-07  Bruno Haible  <bruno@clisp.org>
24078
24079         Improve support for Tru64 ACLs.
24080         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24081         ACL on OSF/1.
24082
24083 2008-06-07  Bruno Haible  <bruno@clisp.org>
24084
24085         Add support for MacOS X ACLs.
24086         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24087         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24088         * lib/set-mode-acl.c (qset_acl): Likewise.
24089         * lib/copy-acl.c (qcopy_acl): Likewise.
24090
24091 2008-06-07  Bruno Haible  <bruno@clisp.org>
24092
24093         Fix memory leak introduced on 2008-05-22.
24094         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24095         use.
24096
24097 2008-06-07  Bruno Haible  <bruno@clisp.org>
24098
24099         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24100         to construct an empty ACL.
24101
24102 2008-06-07  Bruno Haible  <bruno@clisp.org>
24103
24104         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24105         precisely.
24106         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24107
24108 2008-06-07  Bruno Haible  <bruno@clisp.org>
24109
24110         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24111         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24112
24113 2008-06-07  Bruno Haible  <bruno@clisp.org>
24114
24115         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24116         regardless of POSIX.
24117         * doc/posix-functions/_longjmp.texi: Likewise.
24118         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24119         SystemV platform in this case.
24120
24121 2008-06-06  Eric Blake  <ebb9@byu.net>
24122
24123         Document abort() bugs.
24124         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24125
24126         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24127         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24128         sigsetjmp.
24129         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24130         siglongjmp, but only as a macro.
24131         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24132         is obsolete.
24133         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24134
24135         Tweak documentation to cover cygwin argz bugs.
24136         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24137         argz bug fix; no code change needed since no cygwin releases
24138         occurred between the last fix and the bug being tested.
24139         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24140         module and recently fixed cygwin bugs.
24141         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24142         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24143         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24144         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24145         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24146         Likewise.
24147         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24148         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24149         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24150         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24151         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24152         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24153         Likewise.
24154
24155         Avoid gcc warning on cygwin.
24156         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24157         !ACL_NO_TRIVIAL]: Avoid unused variable.
24158
24159 2008-06-05  Eric Blake  <ebb9@byu.net>
24160
24161         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24162         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24163         git-version-gen fails to come up with a version.
24164         Reported by Simon Josefsson.
24165
24166 2008-06-05  Jim Meyering  <meyering@redhat.com>
24167             Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         utimens.c: work around a probable Linux kernel bug
24170         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24171         appears to be a kernel bug that causes utimensat to return 280
24172         instead of 0, indicating success.
24173
24174 2008-06-04  Bruno Haible  <bruno@clisp.org>
24175
24176         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24177         2008-06-01 commit.
24178
24179 2008-06-04  Bruno Haible  <bruno@clisp.org>
24180
24181         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24182         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24183         (file_has_acl): Use it. Save errno afterwards.
24184         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24185
24186 2008-06-03  Bruno Haible  <bruno@clisp.org>
24187
24188         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24189         draft code. Simplify #ifs.
24190         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24191         Put Solaris code after POSIX-draft code. Fix comments regarding
24192         Solaris 10, HP-UX. Mention Cygwin.
24193         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24194
24195 2008-06-03  Eric Blake  <ebb9@byu.net>
24196
24197         Provide fallback for older kernels.
24198         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24199         Provide runtime fallback if kernel lacks support.
24200         Reported by Mike Frysinger.
24201
24202 2008-06-02  Bruno Haible  <bruno@clisp.org>
24203
24204         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24205         it exists.
24206
24207 2008-06-02  Bruno Haible  <bruno@clisp.org>
24208
24209         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24210         * lib/copy-acl.c (qcopy_acl): Update comment.
24211
24212 2008-06-02  Bruno Haible  <bruno@clisp.org>
24213
24214         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24215         like ACL APIs.
24216
24217 2008-06-02  Bruno Haible  <bruno@clisp.org>
24218
24219         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24220         * tests/test-set-mode-acl.sh: Likewise.
24221         * tests/test-copy-acl.sh: Likewise.
24222         * tests/test-copy-file.sh: Likewise.
24223
24224 2008-06-02  Bruno Haible  <bruno@clisp.org>
24225
24226         * tests/test-file-has-acl.sh: Remove unused code.
24227
24228 2008-06-01  Bruno Haible  <bruno@clisp.org>
24229
24230         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24231         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24232         messages.
24233         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24234
24235 2008-06-01  Bruno Haible  <bruno@clisp.org>
24236
24237         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24238         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24239         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24240         APIs.
24241         * modules/acl-tests (configure.ac): Remove tests now contained in
24242         m4/acl.m4.
24243
24244 2008-06-02  Jim Meyering  <meyering@redhat.com>
24245
24246         announce-gen: use a better key-server host name
24247         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24248         it may be more consistently reliable.  Suggested by Werner Koch
24249         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24250
24251 2008-06-01  Bruno Haible  <bruno@clisp.org>
24252
24253         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24254         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24255
24256 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24257
24258         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24259
24260 2008-06-01  Bruno Haible  <bruno@clisp.org>
24261
24262         New ACL tests.
24263         * tests/test-file-has-acl.sh: New file.
24264         * tests/test-file-has-acl.c: New file.
24265         * tests/test-set-mode-acl.sh: New file.
24266         * tests/test-set-mode-acl.c: New file.
24267         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24268         * tests/test-copy-acl.c: New file.
24269         * modules/acl-tests: New file, based on modules/copy-file-tests.
24270         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24271         (Depends-on): Add acl-tests.
24272         (configure.ac): Remove checks.
24273         (Makefile.am): Don't create test-sameacls program here any more.
24274
24275 2008-06-01  Bruno Haible  <bruno@clisp.org>
24276
24277         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24278         * tests/test-sameacls.c: Include progname.h.
24279         (main): Invoke set_program_name. Portability fixes for MacOS X,
24280         Solaris, HP-UX.
24281
24282 2008-06-01  Bruno Haible  <bruno@clisp.org>
24283
24284         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24285         function.
24286         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24287
24288 2008-06-01  Bruno Haible  <bruno@clisp.org>
24289
24290         * modules/rpmatch (Depends-on): Add strdup.
24291
24292 2008-06-01  Bruno Haible  <bruno@clisp.org>
24293
24294         * lib/pipe.c: Include unistd-safer.h.
24295         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24296         * modules/pipe (Depends-on): Add unistd-safer.
24297
24298 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24299
24300         * modules/autobuild (configure.ac): Call AB_INIT.
24301
24302 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24303
24304         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24305         Suggested by Bruno Haible <bruno@clisp.org>.
24306
24307 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24308
24309         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24310         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24311         <bruno@clisp.org>.
24312
24313 2008-05-29  Eric Blake  <ebb9@byu.net>
24314
24315         Prefer new POSIX 200x interfaces over futimesat.
24316         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24317         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24318         when available.
24319         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24320
24321 2008-05-28  Bruno Haible  <bruno@clisp.org>
24322
24323         * modules/stpcpy (License): Change to LGPLv2+.
24324         Requested by David Lutterkort <dlutter@redhat.com>.
24325
24326 2008-05-27  Bruno Haible  <bruno@clisp.org>
24327
24328         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24329         current mingw.
24330         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24331
24332 2008-05-27  Bruno Haible  <bruno@clisp.org>
24333
24334         * modules/iconv_open (Link): New section, from module 'iconv'.
24335         * modules/striconv (Link): Likewise.
24336         * modules/striconveh (Link): Likewise.
24337         * modules/xstriconv (Link): Likewise.
24338         * modules/unicodeio (Link): Likewise.
24339         * modules/propername (Link): Likewise.
24340         Reported by Jim Meyering.
24341
24342 2008-05-26  Jim Meyering  <meyering@redhat.com>
24343
24344         sha256: do not artificially restrict buffer length to be < 2^32
24345         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24346         uint32_t to size_t.
24347         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24348         to match.
24349
24350         avoid unaligned access errors, e.g., on sparc
24351         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24352         direct access through a possibly-unaligned uint64* pointer.
24353         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24354         direct access through a possibly-unaligned uint32* pointer.
24355         Prompted by this patch from Tom "spot" Callaway:
24356         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24357
24358         sha512.c: fix typo in comment
24359         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24360
24361 2008-05-25  Bruno Haible  <bruno@clisp.org>
24362
24363         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24364         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24365         (Makefile.am): Update lib_SOURCES.
24366
24367 2008-05-25  Bruno Haible  <bruno@clisp.org>
24368
24369         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24370
24371 2008-05-25  Jim Meyering  <meyering@redhat.com>
24372
24373         useless-if-before-free: freed expr may have white-space differences
24374         * build-aux/useless-if-before-free: Recognize cases in which the
24375         freed expression differs from the tested one in embedded white
24376         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24377         $1 was used, so we can't make any regexp shy.  Improved tests now
24378         detect this.
24379
24380         useless-if-before-free: accept white space in the expression.
24381         * build-aux/useless-if-before-free: For now, any white space
24382         in the expression must be identical in the free argument.
24383
24384         useless-if-before-free: efficiency tweak
24385         * build-aux/useless-if-before-free: Make the expression-matching
24386         regexp "shy".
24387         Make the *outer* regexp shy, not the expr-matching one.
24388
24389         update code-in-comment to accept cast of free arg
24390         * build-aux/useless-if-before-free: Update regexp.
24391
24392 2008-05-25  Bruno Haible  <bruno@clisp.org>
24393
24394         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24395         * modules/copy-file-tests (Files, Makefile.am): Update.
24396         * tests/test-copy-file.c (func_test_copy): Update.
24397
24398 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24399
24400         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24401
24402 2008-05-23  Bruno Haible  <bruno@clisp.org>
24403
24404         Improve support for ACLs on OSF/1.
24405         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24406         Remove fallback for unknown flavors of ACLs.
24407
24408 2008-05-22  Bruno Haible  <bruno@clisp.org>
24409
24410         Add support for ACLs on OSF/1.
24411         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24412         replacements.
24413         (acl_free_text): New macro fallback.
24414         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24415         acl_free.
24416         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24417         acl_free_text function. Require AC_C_INLINE.
24418
24419 2008-05-22  Bruno Haible  <bruno@clisp.org>
24420
24421         Make copy_acl work on MacOS X 10.5.
24422         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24423         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24424         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24425         If MODE_INSIDE_ACL, don't assume that every system has the same text
24426         representation for ACLs as FreeBSD.
24427         * lib/copy-acl.c (copy_acl): Add support for platforms with
24428         !MODE_INSIDE_ACL.
24429         * lib/file-has-acl.c (file_has_acl): Likewise.
24430         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24431         FreeBSD, MacOS X, or IRIX, respectively.
24432
24433 2008-05-22  Bruno Haible  <bruno@clisp.org>
24434
24435         * lib/acl.h: Don't include <sys/acl.h>.
24436         (GETACLCNT): Move fallback to lib/acl-internal.h.
24437         * lib/acl-internal.h: Include <sys/acl.h> here.
24438         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24439
24440 2008-05-22  Bruno Haible  <bruno@clisp.org>
24441
24442         Split off copy_acl function to separate file.
24443         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24444         * lib/acl.c (copy_acl): Moved function to separate file.
24445         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24446         * modules/acl (Files): Add lib/copy-acl.c.
24447         (Makefiles.am): Augment lib_SOURCES.
24448
24449 2008-05-22  Bruno Haible  <bruno@clisp.org>
24450
24451         * modules/copy-file-tests: New file.
24452         * tests/test-copy-file.sh: New file.
24453         * tests/test-copy-file.c: New file.
24454         * tests/test-copy-file-sameacls.c: New file.
24455
24456 2008-05-22  Eric Blake  <ebb9@byu.net>
24457
24458         Avoid gcc warning.
24459         * tests/test-memcmp.c (main): Pass NULL indirectly.
24460
24461 2008-05-21  Bruno Haible  <bruno@clisp.org>
24462
24463         Add reference doc about ACLs.
24464         * doc/acl-resources.txt: New file.
24465         * doc/acl-cygwin.txt: New file.
24466
24467 2008-05-21  Bruno Haible  <bruno@clisp.org>
24468
24469         Avoid one more warning from gcc.
24470         * lib/vasnprintf.c (IF_LINT): Update comments.
24471         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24472
24473 2008-05-21  Jim Meyering  <meyering@redhat.com>
24474
24475         avoid a warning from gcc
24476         * lib/vasnprintf.c (IF_LINT): Define.
24477         (scale10_round_decimal_long_double):
24478         Use it to avoid a "may be used uninitialized" warning.
24479         (scale10_round_decimal_double): Likewise.
24480
24481 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24482
24483         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24484         declared.
24485
24486 2008-05-20  Bruno Haible  <bruno@clisp.org>
24487
24488         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24489         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24490
24491 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24492
24493         * modules/memcmp-tests: New file.
24494         * tests/test-memcmp.c: New file.
24495
24496 2008-05-19  Bruno Haible  <bruno@clisp.org>
24497
24498         * modules/propername (Notice, configure.ac): Put quoted "..." into
24499         --keyword option.
24500         * lib/propername.h: Update comments accordingly.
24501         Reported by Eric Blake.
24502
24503 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24504
24505         * modules/getpass-gnu (Depends-on): Add fseeko.
24506
24507 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24508
24509         * modules/base64-tests: New file.
24510
24511 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24512
24513         * lib/base64.c (base64_decode_ctx): If a decode context structure
24514         was passed in use it to ignore newlines.  If a context structure
24515         was _not_ passed in, continue to treat newlines as garbage (this
24516         is the historical behavior).  Formerly base64_decode.
24517         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24518         takes a decode context structure.
24519         * lib/base64.h (base64_decode): Macro for four-argument calls.
24520         (base64_decode_alloc): Likewise.
24521         * lib/base64.c (base64_decode_ctx): If a decode context structure
24522         was passed in use it to ignore newlines.  If a context structure
24523         was _not_ passed in, continue to treat newlines as garbage (this
24524         is the historical behavior).  Formerly base64_decode.
24525         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24526         takes a decode context structure.
24527         * lib/base64.h (base64_decode): Macro for four-argument calls.
24528         (base64_decode_alloc): Likewise.
24529
24530 2008-05-19  Jim Meyering  <meyering@redhat.com>
24531
24532         avoid a warning from gcc
24533         * lib/trim.c (IF_LINT): Define.
24534         (trim2): Use it to avoid a "may be used uninitialized" warning.
24535
24536         Fix doc typo.
24537         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24538
24539 2008-05-19  Bruno Haible  <bruno@clisp.org>
24540
24541         * doc/glibc-functions/getpass.texi: Document limits of other
24542         implementations.
24543
24544 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24545             Bruno Haible <bruno@clisp.org>
24546
24547         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24548
24549 2008-05-18  Bruno Haible  <bruno@clisp.org>
24550
24551         * modules/propername: New file, from GNU gettext.
24552         * lib/propername.h: New file, from GNU gettext.
24553         * lib/propername.c: New file, from GNU gettext.
24554         * MODULES.html.sh (Internationalization functions): Add propername.
24555
24556 2008-05-16  Jim Meyering  <meyering@redhat.com>
24557             Bruno Haible  <bruno@clisp.org>
24558
24559         Avoid some warnings from "gcc -Wshadow".
24560         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24561
24562 2008-05-15  Eric Blake  <ebb9@byu.net>
24563
24564         Extend previous patch to cygwin 1.7.0.
24565         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24566         fast implementation in cygwin >= 1.7.0.
24567         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24569
24570 2008-05-15  Bruno Haible  <bruno@clisp.org>
24571
24572         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24573         implementation in glibc >= 2.9.
24574         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24576
24577 2008-05-15  Bruno Haible  <bruno@clisp.org>
24578
24579         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24580         (Unicode string functions): Add unilbrk/*.
24581         Reported by Karl Berry.
24582
24583 2008-05-15  Eric Blake  <ebb9@byu.net>
24584
24585         Fix violation of <stdbool.h> replacement in regex.
24586         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24587         * lib/regexec.c (re_search_internal): Likewise.
24588         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24589
24590 2008-05-15  Jim Meyering  <meyering@redhat.com>
24591
24592         avoid distracting test output when git or cvs is not found
24593         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24594         * tests/test-vc-list-files-git.sh: Likewise.
24595
24596 2008-05-15  Eric Blake  <ebb9@byu.net>
24597
24598         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24599         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24600         glibc version.
24601         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24602         * doc/posix-functions/strstr.texi (strstr): Likewise.
24603         * lib/str-two-way.h (MAX): Sychronize with glibc.
24604
24605 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24606
24607         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24608         opr.ctx_type.
24609         (calc_first): Initialize constraint field.
24610         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24611         Fix grammar.
24612         (duplicate_node): Merge constraint field for all node types.
24613         (calc_eclosure_iter): Look at constraint field for all node types.
24614         * lib/regex_internal.c (create_cd_newstate): Don't look at
24615         opr.ctx_type.
24616
24617 2008-05-14  Bruno Haible  <bruno@clisp.org>
24618
24619         Help GCC to do better code generation.
24620         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24621         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24622         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24623         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24624         Declare with attribute 'malloc' if supported.
24625
24626 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24627
24628         use "echo STR|wc -c" rather than unportable "expr length STR"
24629         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24630         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24631
24632 2008-05-14  Jim Meyering  <meyering@redhat.com>
24633
24634         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24635         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24636         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24637         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24638         via Collin Lasse.
24639
24640 2008-05-14  Eric Blake  <ebb9@byu.net>
24641
24642         Avoid quadratic growth in gl_LIBSOURCES.
24643         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24644         Suggested by Bruno Haible.
24645
24646         Test xmemdup0.
24647         * modules/xmemdup0-tests: New file.
24648         * tests/test-xmemdup0.c: Likewise.
24649
24650 2008-05-13  Eric Blake  <ebb9@byu.net>
24651
24652         Split xmemdup0 into its own module.
24653         * modules/xmemdup0: New file.
24654         * lib/xmemdup0.h: Likewise.
24655         * lib/xmemdup0.c: Likewise.
24656         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24657         * lib/xalloc.h (xmemdup0): Remove.
24658         * lib/xmalloc.c (xmemdup0): Likewise.
24659
24660 2008-05-13  Eric Blake  <ebb9@byu.net>
24661             Bruno Haible  <bruno@clisp.org>
24662
24663         Reduce number of forks required during autoconf.
24664         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24665         and gl_LIBSOURCES_DIR.
24666         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24667         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24668         m4_syscmd per file.
24669         <m4_foreach_w>: Move...
24670         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24671
24672 2008-05-13  Eric Blake  <ebb9@byu.net>
24673
24674         * gnulib-tool: Fix various comment typos.
24675
24676 2008-05-12  Bruno Haible  <bruno@clisp.org>
24677
24678         Tailor the linebreaking algorithm.
24679         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24680
24681 2008-05-12  Bruno Haible  <bruno@clisp.org>
24682
24683         Update to Unicode 5.0.0.
24684         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24685         LBP_JV, LBP_JT. Redistribute values.
24686         (unilbrk_table): Change size.
24687         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24688         Unicode TR#14 rev. 22.
24689         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24690         LBP_JV, LBP_JT. Redistribute values.
24691         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24692         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24693         Update.
24694         * lib/unilbrk/lbrkprop1.h: Regenerated.
24695         * lib/unilbrk/lbrkprop2.h: Regenerated.
24696         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24697         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24698         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24699         Likewise.
24700         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24701         Likewise.
24702         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24703         result.
24704         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24705         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24706         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24707         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24708         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24709         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24710
24711 2008-05-11  Bruno Haible  <bruno@clisp.org>
24712
24713         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24714
24715 2008-05-11  Bruno Haible  <bruno@clisp.org>
24716
24717         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24718         * modules/unilbrk/gen-lbrk: New file.
24719
24720 2008-05-11  Bruno Haible  <bruno@clisp.org>
24721
24722         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24723         * m4/sha512.m4 (gl_SHA512): Likewise.
24724
24725 2008-05-11  Jim Meyering  <meyering@redhat.com>
24726
24727         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24728         * modules/crypto/sha256: New file.
24729         * modules/crypto/sha512: Likewise.
24730         * lib/sha256.c: Likewise.
24731         * lib/sha256.h: Likewise.
24732         * lib/sha512.c: Likewise.
24733         * lib/sha512.h: Likewise.
24734         * lib/u64.h: Likewise.
24735         * m4/sha256.m4: Likewise.
24736         * m4/sha512.m4: Likewise.
24737         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24738
24739 2008-05-10  Bruno Haible  <bruno@clisp.org>
24740
24741         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24742         (Input/Output <stdio.h>): Add xprintf.
24743         (Signal handling <signal.h>): Add strsignal.
24744         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24745         (Core language properties): Add func.
24746         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24747         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24748         strings.
24749         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24750         (Input/output): New section.
24751         (File system functions): Add openat-die, stat-macros.
24752         (Networking functions): Add sockets.
24753         (Unicode string functions): Add unictype/*.
24754         (Support for building libraries and executables): Add gperf.
24755         (Support for building documentation): Add agpl-3.0.
24756         (Misc): Add nocrash.
24757
24758 2008-05-10  Bruno Haible  <bruno@clisp.org>
24759
24760         * modules/unictype/gen-ctype: New file.
24761
24762 2008-05-10  Jim Meyering  <meyering@redhat.com>
24763
24764         Make chdir-safer.c more efficient on a system with no symlinks.
24765         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24766         also if ELOOP is zero.  Suggested by Bruno Haible.
24767
24768         Make chdir-safer.c slightly safer.
24769         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24770         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24771
24772         Avoid compile failure on systems without ELOOP (like mingw).
24773         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24774         Reported by Bruno Haible.
24775
24776 2008-05-10  Bruno Haible  <bruno@clisp.org>
24777
24778         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24779         (is_utf8_encoding): Use a case-insensitive comparison.
24780         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24781         streq.
24782
24783 2008-05-10  Bruno Haible  <bruno@clisp.org>
24784
24785         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24786         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24787         * lib/unilbrk/ulc-common.h (iconv_string_length,
24788         iconv_string_keeping_offsets): Remove declarations.
24789         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24790         Don't include <iconv.h>, streq.h, xsize.h.
24791         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24792         conversion.
24793         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24794         <iconv.h>, streq.h, xsize.h.
24795         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24796         conversion.
24797         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24798         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24799         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24800         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24801
24802 2008-05-10  Bruno Haible  <bruno@clisp.org>
24803
24804         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24805         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24806
24807         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24808         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24809
24810         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24811         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24812
24813         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24814         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24815
24816         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24817         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24818
24819         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24820         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24821
24822         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24823         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24824
24825         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24826         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24827
24828 2008-05-10  Bruno Haible  <bruno@clisp.org>
24829
24830         Split up 'linebreak' module.
24831         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24832         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24833         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24834         modifications.
24835         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24836         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24837         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24838         lib/linebreak.c.
24839         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24840         lib/linebreak.c.
24841         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24842         lib/linebreak.c.
24843         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24844         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24845         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24846         lib/linebreak.c.
24847         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24848         lib/linebreak.c.
24849         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24850         lib/linebreak.c.
24851         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24852         lib/linebreak.c.
24853         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24854         lib/linebreak.c.
24855         * modules/unilbrk/base: New file.
24856         * modules/unilbrk/tables: New file.
24857         * modules/unilbrk/u8-possible-linebreaks: New file.
24858         * modules/unilbrk/u16-possible-linebreaks: New file.
24859         * modules/unilbrk/u32-possible-linebreaks: New file.
24860         * modules/unilbrk/ulc-common: New file.
24861         * modules/unilbrk/ulc-possible-linebreaks: New file.
24862         * modules/unilbrk/u8-width-linebreaks: New file.
24863         * modules/unilbrk/u16-width-linebreaks: New file.
24864         * modules/unilbrk/u32-width-linebreaks: New file.
24865         * modules/unilbrk/ulc-width-linebreaks: New file.
24866         * lib/linebreak.h: Remove file.
24867         * lib/linebreak.c: Remove file.
24868         * m4/linebreak.m4: Remove file.
24869         * modules/linebreak: Remove file.
24870         * NEWS: Mention the changes.
24871
24872 2008-05-09  Eric Blake  <ebb9@byu.net>
24873
24874         Add xmemdup0.
24875         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24876         implementation.
24877         * lib/xmalloc.c (xmemdup0): New C implementation.
24878
24879 2008-05-08  Bruno Haible  <bruno@clisp.org>
24880
24881         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24882
24883 2008-05-07  Eric Blake  <ebb9@byu.net>
24884
24885         Support cross-compilation of <wctype.h>.
24886         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24887         AC_CACHE_CHECK.
24888
24889 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24890
24891         * build-aux/vc-list-files: Add support for bzr.
24892
24893 2008-05-03  Jim Meyering  <meyering@redhat.com>
24894
24895         avoid failed assertion with tight malloc
24896         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24897
24898 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24899
24900         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24901         are needed from arpa/inet.h.
24902         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24903         Reported by Bruno Haible.
24904
24905 2008-05-02  Jim Meyering  <meyering@redhat.com>
24906
24907         avoid compilation error on FreeBSD 6
24908         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24909
24910 2008-05-01  Jim Meyering  <meyering@redhat.com>
24911
24912         useless-if-before-free: correct --help's exit status description
24913         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24914         for one or more matches, etc.  Reported by Bruno Haible.
24915
24916         vc-list-files: make the stand-alone gnulib test work
24917         * modules/vc-list-files-tests (configure.ac):
24918         Define and AC_SUBST abs_aux_dir.
24919         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24920         $(abs_top_srcdir) to each script and having each of them
24921         duplicate the work of setting PATH, set PATH here, using
24922         the new variable, abs_aux_dir instead.
24923         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24924         * tests/test-vc-list-files-git.sh: Likewise.
24925         Reported by Bruno Haible.
24926
24927 2008-05-01  Bruno Haible  <bruno@clisp.org>
24928
24929         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24930         reallocation. Rename 'done' to 'found_delimiter'.
24931
24932 2008-05-01  Jim Meyering  <meyering@redhat.com>
24933
24934         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24935         * build-aux/vc-list-files: Use `...`, not $(...).
24936
24937 2008-04-30  Jim Meyering  <meyering@redhat.com>
24938
24939         add tests for vc-list-files
24940         * modules/vc-list-files-tests: New module.
24941         * tests/test-vc-list-files-cvs.sh: New file.
24942         * tests/test-vc-list-files-git.sh: New file.
24943
24944         avoid a warning from gcc
24945         * lib/getndelim2.c (IF_LINT): Define.
24946         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24947
24948         vc-list-files: work properly with build-aux/cvsu, too
24949         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24950         to all cvs-based clauses.
24951
24952         vc-list-files: work properly in the CVS+awk case, too
24953         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24954
24955         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24956         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24957         take more than one file argument, so .  Add quotes, just in case $dir
24958         ever contains a shell meta-character.  Prompted by Soren Hansen in
24959         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24960
24961 2008-04-29  Eric Blake  <ebb9@byu.net>
24962
24963         Optimize getndelim2 to use block operations when possible.
24964         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24965         freadseek, and memchr2.
24966         * lib/getndelim2.c (getndelim2): Use them for block reads.
24967
24968 2008-04-29  Bruno Haible  <bruno@clisp.org>
24969
24970         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24971         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24972         * modules/inet_ntop (Depends-on): Add extensions.
24973         * modules/inet_pton (Depends-on): Likewise.
24974         Reported by Simon Josefsson.
24975
24976 2008-04-29  Jim Meyering  <meyering@redhat.com>
24977
24978         When the is more than one match in a block, match all of them.
24979         * build-aux/useless-if-before-free: Iterate through each block
24980         until there are no more matches.
24981
24982         Fix broken useless-if-before-free script.
24983         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24984         the expression to match cast of argument to free-like function.
24985
24986 2008-04-29  Eric Blake  <ebb9@byu.net>
24987
24988         Use new header.
24989         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24990
24991 2008-04-29  Jim Meyering  <meyering@redhat.com>
24992
24993         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24994         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24995         by gnulib to exist and to declare e.g., inet_ntop.
24996         Don't include "inet_ntop.h", now removed.
24997
24998         * m4/arpa_inet_h.m4: Remove trailing blanks.
24999
25000 2008-04-29  Eric Blake  <ebb9@byu.net>
25001
25002         Silence valgrind on safe reads beyond potential array bounds.
25003         * lib/rawmemchr.valgrind: New file.
25004         * lib/strchrnul.valgrind: Likewise.
25005         * modules/rawmemchr (Files): Distribute new file.
25006         * modules/strchrnul (Files): Likewise.
25007         Suggested by Bruno Haible.
25008
25009 2008-04-29  Bruno Haible  <bruno@clisp.org>
25010
25011         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25012         (inet_ntop, inet_pton): Change portability warning's wording.
25013         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25014         Invoke gl_CHECK_NEXT_HEADERS.
25015         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25016         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25017         set ARPA_INET_H.
25018         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25019         * modules/arpa_inet (Description): No longer only for systems that
25020         lack it.
25021         (Depends-on): Add include_next.
25022         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25023         HAVE_ARPA_INET_H.
25024
25025 2008-04-29  Jim Meyering  <meyering@redhat.com>
25026
25027         * modules/mkdir (License): Re-license as LGPLv2+.
25028
25029 2008-04-29  Bruno Haible  <bruno@clisp.org>
25030
25031         * modules/rawmemchr (Maintainer): Set to Eric.
25032         * modules/strchrnul (Maintainer): Likewise.
25033
25034 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25035
25036         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25037         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25038
25039         * modules/arpa_inet (arpa/inet.h): Use them.
25040
25041 2008-04-28  Eric Blake  <ebb9@byu.net>
25042
25043         Test getndelim2.
25044         * modules/getndelim2-tests: New file.
25045         * tests/test-getndelim2.c: Likewise.
25046         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25047         stream.
25048         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25049
25050         * MODULES.html.sh: Document new module.
25051
25052 2008-04-20  Bruno Haible  <bruno@clisp.org>
25053
25054         * lib/c-stack.c (die): Use raise.
25055         * modules/c-stack (Depends-on): Add raise.
25056
25057 2008-04-28  Bruno Haible  <bruno@clisp.org>
25058
25059         Expect rpmatch to be declared.
25060         * lib/yesno.c (rpmatch): Remove declaration.
25061
25062         Declare rpmatch.
25063         * lib/stdlib.in.h (rpmatch): New declaration.
25064         * lib/rpmatch.c: Include <stdlib.h> first.
25065         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25066         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25068         HAVE_RPMATCH.
25069         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25071         (Include): Set to <stdlib.h>.
25072         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25073         HAVE_RPMATCH.
25074         * NEWS: Document the change.
25075
25076 2008-04-28  Bruno Haible  <bruno@clisp.org>
25077
25078         Change rpmatch to use nl_langinfo when appropriate.
25079         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25080         (N_): New macro.
25081         (localized_pattern): New function/macro.
25082         (try): Remove match, nomatch arguments. Copy the pattern into safe
25083         memory before caching it.
25084         (rpmatch): Use localized_pattern. Add translator comments.
25085         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25086         Suggested by Eric Blake.
25087         * modules/rpmatch (Depends-on): Add stdbool.
25088
25089 2008-04-28  Eric Blake  <ebb9@byu.net>
25090
25091         Add rawmemchr module, matching glibc.
25092         * modules/string (Makefile.am): New indicator.
25093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25094         * lib/string.in.h (rawmemchr): Declare when appropriate.
25095         * modules/rawmemchr: New file.
25096         * m4/rawmemchr.m4: Likewise.
25097         * lib/rawmemchr.c: Likewise.
25098         * modules/rawmemchr-tests: Likewise.
25099         * tests/test-rawmemchr.c: Likewise.
25100         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25101         module.
25102         * modules/strchrnul (Depends-on): Add rawmemchr.
25103         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25104
25105         Whitespace cleanup.
25106         * tests/test-strchrnul.c: Reindent.
25107         * lib/strchrnul.c: Likewise.
25108
25109         Optimize and test strchrnul.
25110         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25111         * modules/strchrnul-tests: New file.
25112         * tests/test-strchrnul.c: Likewise.
25113
25114         Remove intprops dependency.
25115         * modules/memchr (Depends-on): Remove intprops.
25116         * modules/memrchr (Depends-on): Likewise.
25117         * modules/memchr2 (Depends-on): Likewise.
25118         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25119         * lib/memrchr.c (__memrchr): Likewise.
25120         * lib/memrchr2.c (memchr2): Likewise.
25121         Reported by Simon Josefsson.
25122
25123 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25124
25125         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25126         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25127
25128 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25129
25130         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25131
25132         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25133
25134         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25135
25136         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25137         declarations.
25138         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25139
25140         * m4/inet_pton.m4: Don't check for header files.
25141
25142         * m4/inet_ntop.m4: Don't check for header files.
25143
25144 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25145
25146         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25147         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25148         trigger for cygwin).
25149         Reported by Bruno Haible  <bruno@clisp.org>.
25150
25151 2008-04-28  Bruno Haible  <bruno@clisp.org>
25152
25153         * doc/posix-functions/strdup.texi: Mention mingw problem.
25154
25155 2008-04-27  Bruno Haible  <bruno@clisp.org>
25156
25157         * modules/stat-time-tests (Depends-on): Add sleep.
25158         * tests/test-stat-time.c (force_unlink): New function.
25159         (cleanup): Use it.
25160         (test_mtime): Remove the ctime related tests.
25161         (test_ctime): New function, containing the ctime related tests.
25162         (main): Call test_ctime, except on native Windows platforms.
25163
25164 2008-04-27  Bruno Haible  <bruno@clisp.org>
25165
25166         * lib/rpmatch.c (rpmatch): Add some comments.
25167         Reported by James Youngman <jay@gnu.org>.
25168
25169 2008-04-27  Bruno Haible  <bruno@clisp.org>
25170
25171         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25172         quiet NaNs.
25173
25174 2008-04-27  Bruno Haible  <bruno@clisp.org>
25175
25176         Make test-yesno.sh work on mingw.
25177         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25178         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25179         (main): Set stdin to binary mode.
25180         * modules/yesno-tests (Depends-on): Add binary-io.
25181
25182 2008-04-27  Bruno Haible  <bruno@clisp.org>
25183
25184         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25185         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25186         argument that lie outside the IEEE 854 domain.
25187         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25188         (gl_ISFINITE): Use it.
25189         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25190
25191 2008-04-27  Bruno Haible  <bruno@clisp.org>
25192
25193         Allow local renaming in config.h.
25194         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25195
25196 2008-04-27  Bruno Haible  <bruno@clisp.org>
25197
25198         * lib/memchr.c (__memchr): Change type of 'i'.
25199         * lib/memchr2.c (memchr2): Likewise.
25200
25201 2008-04-26  Eric Blake  <ebb9@byu.net>
25202         and Bruno Haible  <bruno@clisp.org>
25203
25204         Optimize and test memrchr.
25205         * modules/memrchr (Depends-on): Add intprops.
25206         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25207         * modules/memrchr-tests: New file.
25208         * tests/test-memrchr.c: New file.
25209
25210 2008-04-26  Bruno Haible  <bruno@clisp.org>
25211
25212         Add tentative support for DragonFly BSD.
25213         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25214         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25215         fp.
25216         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25217         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25218         * lib/fpurge.c (fpurge): Likewise.
25219         * lib/freadable.c (freaadable): Likewise.
25220         * lib/freadahead.c (freadahead): Likewise.
25221         * lib/freading.c (freading): Likewise.
25222         * lib/freadptr.c (freadptr): Likewise.
25223         * lib/freadseek.c (freadptrinc): Likewise.
25224         * lib/fseeko.c (fseeko): Likewise.
25225         * lib/fseterr.c (fseterr): Likewise.
25226         * lib/fwritable.c (fwritable): Likewise.
25227         * lib/fwriting.c (fwriting): Likewise.
25228
25229 2008-04-26  Bruno Haible  <bruno@clisp.org>
25230
25231         * lib/stdio-impl.h: New file.
25232         * lib/fbufmode.c: Include stdio-impl.h.
25233         (fbufmode): Use fp_, remove redundant #defines.
25234         * lib/fflush.c: Include stdio-impl.h.
25235         (clear_ungetc_buffer): Remove redundant #defines.
25236         * lib/fpurge.c: Include stdio-impl.h.
25237         (fpurge): Remove redundant #defines.
25238         * lib/freadable.c: Include stdio-impl.h.
25239         (freadable): Remove redundant #defines.
25240         * lib/freadahead.c: Include stdio-impl.h.
25241         (freadahead): Remove redundant #defines.
25242         * lib/freading.c: Include stdio-impl.h.
25243         (freading): Remove redundant #defines.
25244         * lib/freadptr.c: Include stdio-impl.h.
25245         (freadptr): Remove redundant #defines.
25246         * lib/freadseek.c: Include stdio-impl.h.
25247         (freadptrinc): Remove redundant #defines.
25248         * lib/fseeko.c: Include stdio-impl.h.
25249         (rpl_fseeko): Remove redundant #defines.
25250         * lib/fseterr.c: Include stdio-impl.h.
25251         (fseterr): Remove redundant #defines.
25252         * lib/fwritable.c: Include stdio-impl.h.
25253         (fwritable: Remove redundant #defines.
25254         * lib/fwriting.c: Include stdio-impl.h.
25255         (fwriting): Remove redundant #defines.
25256         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25257         * modules/fflush (Files): Likewise.
25258         * modules/fpurge (Files): Likewise.
25259         * modules/freadable (Files): Likewise.
25260         * modules/freadahead (Files): Likewise.
25261         * modules/freading (Files): Likewise.
25262         * modules/freadptr (Files): Likewise.
25263         * modules/freadseek (Files): Likewise.
25264         * modules/fseeko (Files): Likewise.
25265         * modules/fseterr (Files): Likewise.
25266         * modules/fwritable (Files): Likewise.
25267         * modules/fwriting (Files): Likewise.
25268
25269 2008-04-26  Bruno Haible  <bruno@clisp.org>
25270
25271         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25272         restore_seek_optimization, update_fpos_cache): New functions, extracted
25273         from rpl_fflush.
25274         (rpl_fflush): Use them.
25275         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25276         (gl_REPLACE_FFLUSH): Use it.
25277
25278 2008-04-26  Bruno Haible  <bruno@clisp.org>
25279
25280         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25281         on Solaris.
25282         * tests/test-xstrtoimax.sh: Likewise.
25283         * tests/test-xstrtoumax.sh: Likewise.
25284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25285
25286 2008-04-26  Bruno Haible  <bruno@clisp.org>
25287
25288         * modules/memchr-tests: New file.
25289         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25290
25291 2008-04-26  Eric Blake  <ebb9@byu.net>
25292             Bruno Haible  <bruno@clisp.org>
25293
25294         * lib/memchr.c: Include intprops.h.
25295         (__memchr): Optimize parallel detection of matching bytes. Rename local
25296         variables. Add explanatory comments.
25297
25298 2008-04-26  Bruno Haible  <bruno@clisp.org>
25299
25300         Fix module 'memchr', broken since 2000-10-28.
25301         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25302
25303 2008-04-26  Bruno Haible  <bruno@clisp.org>
25304
25305         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25306         comments.
25307
25308 2008-04-25  Eric Blake  <ebb9@byu.net>
25309
25310         Use native fstatat on cygwin 1.7.0.
25311         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25312         first.
25313
25314 2008-04-23  Eric Blake  <ebb9@byu.net>
25315
25316         Improve memchr2 performance.
25317         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25318         NUL bytes.
25319         * modules/memchr2 (Depends-on): Use intprops.h.
25320
25321 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25322
25323         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25324         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25325         <blp@cs.stanford.edu>.
25326
25327 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25328
25329         * lib/arpa_inet.in.h: New file.
25330
25331         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25332         (Makefile.am): Sed in substitute header file.
25333
25334         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25335         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25336
25337         * modules/inet_ntop (configure.ac): Use
25338         gl_ARPA_INET_MODULE_INDICATOR.
25339
25340         * modules/inet_pton (configure.ac): Use
25341         gl_ARPA_INET_MODULE_INDICATOR.
25342
25343 2008-04-22  Jim Meyering  <meyering@redhat.com>
25344
25345         * modules/verify (License): Re-license as LGPLv2+.
25346
25347 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25348
25349         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25350         parameter to void* as per POSIX standard (MinGW uses char*).
25351
25352 2008-04-21  Bruno Haible  <bruno@clisp.org>
25353
25354         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25355         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25356         Define to replacements if REPLACE_ISWCNTRL is 1.
25357         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25358         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25359         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25360         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25361         what it fixes.
25362         * doc/posix-functions/iswalpha.texi: Likewise.
25363         * doc/posix-functions/iswblank.texi: Likewise.
25364         * doc/posix-functions/iswcntrl.texi: Likewise.
25365         * doc/posix-functions/iswdigit.texi: Likewise.
25366         * doc/posix-functions/iswgraph.texi: Likewise.
25367         * doc/posix-functions/iswlower.texi: Likewise.
25368         * doc/posix-functions/iswprint.texi: Likewise.
25369         * doc/posix-functions/iswpunct.texi: Likewise.
25370         * doc/posix-functions/iswspace.texi: Likewise.
25371         * doc/posix-functions/iswupper.texi: Likewise.
25372         * doc/posix-functions/iswxdigit.texi: Likewise.
25373         Reported by Alain Guibert.
25374
25375 2008-04-21  Bruno Haible  <bruno@clisp.org>
25376
25377         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25378         Patch by Alain Guibert.
25379
25380 2008-04-21  Bruno Haible  <bruno@clisp.org>
25381
25382         Fix test failures on mingw.
25383         * tests/test-xstrtol.c (print_no_progname): New function.
25384         (main): Install it in error_print_progname hook.
25385         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25386         * tests/test-xstrtoimax.sh: Likewise.
25387         * tests/test-xstrtoumax.sh: Likewise.
25388
25389 2008-04-21  Bruno Haible  <bruno@clisp.org>
25390
25391         Fix test failure on mingw.
25392         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25393
25394 2008-04-21  Bruno Haible  <bruno@clisp.org>
25395
25396         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25397         Actually assign a value.
25398
25399 2008-04-20  Bruno Haible  <bruno@clisp.org>
25400
25401         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25402         take 2.
25403         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25404         'canonicalize-lgpl' module is also used.
25405         * lib/canonicalize-lgpl.c: Undo last change.
25406         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25407
25408 2008-04-20  Bruno Haible  <bruno@clisp.org>
25409
25410         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25411         config.h. Provide _mkdir based fallback for mingw.
25412         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25413         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25414         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25415         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25416         rather than defining mkdir in config.h.
25417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25418         (gl_SYS_STAT_H_DEFAULTS): New macro.
25419         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25420         HAVE_IO_H any more.
25421         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25422         HAVE_DECL_MKDIR and HAVE_IO_H.
25423
25424 2008-04-20  Bruno Haible  <bruno@clisp.org>
25425
25426         * lib/isapipe.c: Port to native Windows platforms.
25427
25428 2008-04-20  Bruno Haible  <bruno@clisp.org>
25429
25430         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25431
25432 2008-04-21  Eric Blake  <ebb9@byu.net>
25433
25434         Work around preprocessors that don't handle UINTMAX_MAX.
25435         * lib/memchr2.c (memchr2): Avoid embedded #if.
25436         Reported by Alain Guibert, fix suggested by Bruno Haible.
25437
25438 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25439
25440         * doc/posix-functions/strftime.texi (strftime): Explain better
25441         Windows incompatibility.  Suggested by Micah Cowan
25442         <micah@cowan.name>.
25443
25444 2008-04-20  Bruno Haible  <bruno@clisp.org>
25445
25446         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25447         unistr/u8-mblen.
25448
25449 2008-04-20  Bruno Haible  <bruno@clisp.org>
25450
25451         Fix test failure on platforms with non-GNU iconv.
25452         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25453         (U_TO_U8): Use it, rather than u16_to_u8.
25454         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25455         units at the end of the input string.
25456         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25457
25458 2008-04-20  Bruno Haible  <bruno@clisp.org>
25459
25460         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25461         when the resulting length is 0.
25462         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25463
25464 2008-04-20  Bruno Haible  <bruno@clisp.org>
25465
25466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25467         works.
25468         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25469
25470 2008-04-20  Bruno Haible  <bruno@clisp.org>
25471
25472         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25473         * modules/tsearch-tests (configure.ac): Test for initstate function.
25474
25475 2008-04-20  Bruno Haible  <bruno@clisp.org>
25476
25477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25478         for nlink_t if missing.
25479         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25480
25481 2008-04-19  Bruno Haible  <bruno@clisp.org>
25482
25483         Work around snprintf bug on Linux libc5.
25484         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25485         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25486         gl_SNPRINTF_SIZE1.
25487         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25488         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25489         that test failed.
25490         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25491         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25492         * modules/snprintf (Files): Add m4/printf.m4.
25493         * modules/vsnprintf (Files): Likewise.
25494         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25495         * doc/posix-functions/vsnprintf.texi: Likewise.
25496
25497 2008-04-19  Bruno Haible  <bruno@clisp.org>
25498
25499         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25500         from 0.0058 to less than 10^-7.
25501
25502 2008-04-19  Bruno Haible  <bruno@clisp.org>
25503
25504         Fix rounding when a precision is given.
25505         * lib/vasnprintf.c (is_borderline): New function.
25506         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25507         9...9x.
25508         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25509         %e, %g.
25510         * tests/test-vasprintf-posix.c (test_function): Likewise.
25511         * tests/test-snprintf-posix.h (test_function): Likewise.
25512         * tests/test-sprintf-posix.h (test_function): Likewise.
25513         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25514         * tests/test-printf-posix.h (test_function): Likewise.
25515         * tests/test-printf-posix.output: Update.
25516         Reported by John Darrington <john@darrington.wattle.id.au> via
25517         Ben Pfaff <blp@cs.stanford.edu>.
25518
25519 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25520
25521         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25522         Suggested by Bruno Haible <bruno@clisp.org>.
25523
25524 2008-04-17  Bruno Haible  <bruno@clisp.org>
25525
25526         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25527         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25528         implementation.
25529         Patch by Bruce Merry <bmerry@gmail.com>.
25530
25531 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25532
25533         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25534         doesn't work under Windows.
25535
25536 2008-04-16  Bruno Haible  <bruno@clisp.org>
25537
25538         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25539         New macros.
25540         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25541         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25542         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25543         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25544         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25545         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25546         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25547         macros.
25548         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25549         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25550         Northern Sotho, Uighur.
25551
25552 2008-04-16  Bruno Haible  <bruno@clisp.org>
25553
25554         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25555         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25556         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25557         Reported by Daniel Bergström <daniel@octocode.com>.
25558
25559 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25560             Bruno Haible  <bruno@clisp.org>
25561
25562         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25563         function.
25564         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25565         New functions, mostly extracted from gl_locale_name_default.
25566         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25567
25568 2008-04-16  Eric Blake  <ebb9@byu.net>
25569
25570         Adjust strtod detection to catch glibc 2.7 bug.
25571         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25572         Reported by John Gatewood Ham.
25573
25574 2008-04-16  Bruno Haible  <bruno@clisp.org>
25575
25576         Add tentative support for Linux libc5.
25577         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25578         * lib/fpurge.c (fpurge): Likewise.
25579         * lib/freadable.c (freadable): Likewise.
25580         * lib/freadahead.c (freadahead): Likewise.
25581         * lib/freading.c (freading): Likewise.
25582         * lib/freadptr.c (freadptr): Likewise.
25583         * lib/freadseek.c (freadptrinc): Likewise.
25584         * lib/fseeko.c (rpl_fseeko): Likewise.
25585         * lib/fseterr.c (fseterr): Likewise.
25586         * lib/fwritable.c (fwritable): Likewise.
25587         * lib/fwriting.c (fwriting): Likewise.
25588         Reported by Alain Guibert <alguibert+bts@free.fr>.
25589
25590 2008-04-15  Bruno Haible  <bruno@clisp.org>
25591
25592         * modules/mathl (configure.ac): Define module indicator.
25593
25594 2008-04-15  Bruno Haible  <bruno@clisp.org>
25595
25596         * lib/logl.c (logl): Remove unused variables.
25597
25598 2008-04-15  Bruno Haible  <bruno@clisp.org>
25599
25600         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25601         fails.
25602
25603 2008-04-15  Bruno Haible  <bruno@clisp.org>
25604
25605         * lib/trim.c (trim2): Fix argument of isspace() macro.
25606
25607 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25608
25609         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25610         to 0.
25611         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25612
25613 2008-04-14  Bruno Haible  <bruno@clisp.org>
25614
25615         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25616         AC_LANG_PROGRAM argument.
25617         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25618         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25620         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25621         * m4/math_h.m4 (gl_MATH_H): Likewise.
25622         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25624         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25625         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25626         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25627         * m4/regex.m4 (gl_REGEX): Likewise.
25628         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25629         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25631         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25632         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25633         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25635         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25636
25637 2008-04-14  Jim Meyering  <meyering@redhat.com>
25638
25639         test-strtod: fix typos: s/abs/fabs/
25640         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25641
25642 2008-04-13  Bruno Haible  <bruno@clisp.org>
25643
25644         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25645         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25646         module is also used and while not building the reloc-wrapper.
25647
25648 2008-04-13  Bruno Haible  <bruno@clisp.org>
25649
25650         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25651
25652 2008-04-13  Bruno Haible  <bruno@clisp.org>
25653
25654         Fix AIX compilation failure introduced on 2008-04-02.
25655         * tests/test-frexp.c (exp): Undefine before redefining.
25656         * tests/test-frexpl.c (exp): Likewise.
25657
25658 2008-04-13  Bruno Haible  <bruno@clisp.org>
25659
25660         Work around a HP-UX stdio bug.
25661         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25662         * tests/test-ftello.c (main): Likewise.
25663         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25664         * doc/posix-functions/ftello.texi: Likewise.
25665
25666 2008-04-13  Bruno Haible  <bruno@clisp.org>
25667
25668         Make test-signbit pass on HP-UX/hppa.
25669         * tests/test-signbit.c (minus_zerol): New variable.
25670         (test_signbitl): Use it.
25671
25672 2008-04-13  Bruno Haible  <bruno@clisp.org>
25673
25674         Make truncl work on OSF/1 4.0.
25675         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25676         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25677         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25679         HAVE_DECL_TRUNCL.
25680         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25681         HAVE_DECL_TRUNCL.
25682         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25683
25684 2008-04-13  Bruno Haible  <bruno@clisp.org>
25685
25686         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25687
25688 2008-04-13  Bruno Haible  <bruno@clisp.org>
25689
25690         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25691         expression, so as to avoid HP-UX 11 cc compiler bug.
25692
25693 2008-04-13  Bruno Haible  <bruno@clisp.org>
25694
25695         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25696
25697 2008-04-13  Bruno Haible  <bruno@clisp.org>
25698
25699         * lib/git-merge-changelog.c: Remove empty declaration outside of
25700         functions.
25701
25702 2008-04-13  Bruno Haible  <bruno@clisp.org>
25703
25704         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25705
25706 2008-04-13  Bruno Haible  <bruno@clisp.org>
25707
25708         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25709         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25711         also if it exists but lacks definitions of the SHUT_* macros.
25712         * modules/sys_socket (Description): Update.
25713         Reported by Elbert Pol <e.pol@chello.nl>.
25714
25715 2008-04-13  Bruno Haible  <bruno@clisp.org>
25716
25717         * lib/localcharset.c (OS2): Don't redefine if already defined.
25718         Reported by Elbert Pol <e.pol@chello.nl>.
25719
25720 2008-04-13  Bruno Haible  <bruno@clisp.org>
25721
25722         * lib/binary-io.h [__EMX__]: Include <io.h>.
25723         Reported by Elbert Pol <e.pol@chello.nl>.
25724
25725 2008-04-12  Bruno Haible  <bruno@clisp.org>
25726
25727         * lib/fpucw.h: Enable the definitions also for x86_64.
25728         Needed for NetBSD/x86_64.
25729         Reported by Thomas Klausner <tk@giga.or.at>.
25730
25731 2008-04-12  Bruno Haible  <bruno@clisp.org>
25732
25733         * tests/test-strtod.c: Include isnand.h.
25734         (main): Use isnand instead of isnan.
25735         Reported by Jim Meyering.
25736
25737 2008-04-12  Bruno Haible  <bruno@clisp.org>
25738
25739         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25740         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25741
25742 2008-04-12  Jim Meyering  <meyering@redhat.com>
25743
25744         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25745
25746 2008-04-12  Bruno Haible  <bruno@clisp.org>
25747
25748         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25749         Reported by Elbert Pol <e.pol@chello.nl>.
25750
25751 2008-04-12  Eric Blake  <ebb9@byu.net>
25752
25753         Work around Solaris 10 math.h bug.
25754         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25755         (gl_MATH_H_DEFAULTS): Set up default.
25756         * modules/math (Makefile.am): Replace new indicators.
25757         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25758         * tests/test-math.c (main): Test this.
25759         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25760         * doc/posix-headers/math.texi (math.h): Mention bug.
25761         Reported by Nelson H. F. Beebe and Jim Meyering.
25762
25763 2008-04-11  Bruno Haible  <bruno@clisp.org>
25764
25765         Adapt to future versions of Apple GCC.
25766         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25767         Reported by Peter O'Gorman <peter@pogma.com>.
25768
25769 2008-04-11  Bruno Haible  <bruno@clisp.org>
25770
25771         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25772
25773 2008-04-11  Bruno Haible  <bruno@clisp.org>
25774
25775         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25776
25777         * modules/getaddrinfo-tests (Makefile.am): Define
25778         test_getaddrinfo_LDADD.
25779
25780 2008-04-11  Bruno Haible  <bruno@clisp.org>
25781
25782         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25783         (init): Fix syntax error.
25784         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25785         is declared.
25786
25787 2008-04-11  Bruno Haible  <bruno@clisp.org>
25788
25789         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25790         * modules/glob (Depends-on): Add stdbool.
25791
25792 2008-04-11  Bruno Haible  <bruno@clisp.org>
25793
25794         * lib/trim.c: Include <string.h>.
25795
25796 2008-04-11  Eric Blake  <ebb9@byu.net>
25797
25798         Avoid compile failure on OS/2.
25799         * lib/regex_internal.h (internal_function): Disable optimization
25800         on OS/2 (__EMX__), where it caused compiler error.
25801         Reported by Elbert Pol.
25802
25803 2008-04-11  Bruno Haible  <bruno@clisp.org>
25804
25805         Flush the standard error stream before aborting. Needed on mingw.
25806         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25807         * tests/test-array_list.c (ASSERT): Likewise.
25808         * tests/test-array_oset.c (ASSERT): Likewise.
25809         * tests/test-avltree_list.c (ASSERT): Likewise.
25810         * tests/test-avltree_oset.c (ASSERT): Likewise.
25811         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25812         * tests/test-binary-io.c (ASSERT): Likewise.
25813         * tests/test-byteswap.c (ASSERT): Likewise.
25814         * tests/test-c-ctype.c (ASSERT): Likewise.
25815         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25816         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25817         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25818         * tests/test-c-strstr.c (ASSERT): Likewise.
25819         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25820         * tests/test-canonicalize.c (ASSERT): Likewise.
25821         * tests/test-carray_list.c (ASSERT): Likewise.
25822         * tests/test-ceilf1.c (ASSERT): Likewise.
25823         * tests/test-ceilf2.c (ASSERT): Likewise.
25824         * tests/test-ceill.c (ASSERT): Likewise.
25825         * tests/test-count-one-bits.c (ASSERT): Likewise.
25826         * tests/test-fbufmode.c (ASSERT): Likewise.
25827         * tests/test-fflush2.c (ASSERT): Likewise.
25828         * tests/test-floorf1.c (ASSERT): Likewise.
25829         * tests/test-floorf2.c (ASSERT): Likewise.
25830         * tests/test-floorl.c (ASSERT): Likewise.
25831         * tests/test-fopen.c (ASSERT): Likewise.
25832         * tests/test-fpending.c (ASSERT): Likewise.
25833         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25834         * tests/test-fpurge.c (ASSERT): Likewise.
25835         * tests/test-freadable.c (ASSERT): Likewise.
25836         * tests/test-freadahead.c (ASSERT): Likewise.
25837         * tests/test-freading.c (ASSERT): Likewise.
25838         * tests/test-freadptr.c (ASSERT): Likewise.
25839         * tests/test-freadptr2.c (ASSERT): Likewise.
25840         * tests/test-freadseek.c (ASSERT): Likewise.
25841         * tests/test-freopen.c (ASSERT): Likewise.
25842         * tests/test-frexp.c (ASSERT): Likewise.
25843         * tests/test-frexpl.c (ASSERT): Likewise.
25844         * tests/test-fseek.c (ASSERT): Likewise.
25845         * tests/test-fseeko.c (ASSERT): Likewise.
25846         * tests/test-fstrcmp.c (ASSERT): Likewise.
25847         * tests/test-ftell.c (ASSERT): Likewise.
25848         * tests/test-ftello.c (ASSERT): Likewise.
25849         * tests/test-func.c (ASSERT): Likewise.
25850         * tests/test-fwritable.c (ASSERT): Likewise.
25851         * tests/test-fwriting.c (ASSERT): Likewise.
25852         * tests/test-getdelim.c (ASSERT): Likewise.
25853         * tests/test-getline.c (ASSERT): Likewise.
25854         * tests/test-i-ring.c (ASSERT): Likewise.
25855         * tests/test-iconv-utf.c (ASSERT): Likewise.
25856         * tests/test-iconv.c (ASSERT): Likewise.
25857         * tests/test-isfinite.c (ASSERT): Likewise.
25858         * tests/test-isnand.c (ASSERT): Likewise.
25859         * tests/test-isnanf.c (ASSERT): Likewise.
25860         * tests/test-isnanl.h (ASSERT): Likewise.
25861         * tests/test-ldexpl.c (ASSERT): Likewise.
25862         * tests/test-linked_list.c (ASSERT): Likewise.
25863         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25864         * tests/test-localename.c (ASSERT): Likewise.
25865         * tests/test-lseek.c (ASSERT): Likewise.
25866         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25867         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25868         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25869         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25870         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25871         * tests/test-mbschr.c (ASSERT): Likewise.
25872         * tests/test-mbscspn.c (ASSERT): Likewise.
25873         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25874         * tests/test-mbspbrk.c (ASSERT): Likewise.
25875         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25876         * tests/test-mbsrchr.c (ASSERT): Likewise.
25877         * tests/test-mbsspn.c (ASSERT): Likewise.
25878         * tests/test-mbsstr1.c (ASSERT): Likewise.
25879         * tests/test-mbsstr2.c (ASSERT): Likewise.
25880         * tests/test-mbsstr3.c (ASSERT): Likewise.
25881         * tests/test-memchr2.c (ASSERT): Likewise.
25882         * tests/test-memmem.c (ASSERT): Likewise.
25883         * tests/test-open.c (ASSERT): Likewise.
25884         * tests/test-printf-frexp.c (ASSERT): Likewise.
25885         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25886         * tests/test-printf-posix.c (ASSERT): Likewise.
25887         * tests/test-quotearg.c (ASSERT): Likewise.
25888         * tests/test-rbtree_list.c (ASSERT): Likewise.
25889         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25890         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25891         * tests/test-round1.c (ASSERT): Likewise.
25892         * tests/test-roundf1.c (ASSERT): Likewise.
25893         * tests/test-roundl.c (ASSERT): Likewise.
25894         * tests/test-signbit.c (ASSERT): Likewise.
25895         * tests/test-sleep.c (ASSERT): Likewise.
25896         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25897         * tests/test-snprintf.c (ASSERT): Likewise.
25898         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25899         * tests/test-stat-time.c (ASSERT): Likewise.
25900         * tests/test-strcasestr.c (ASSERT): Likewise.
25901         * tests/test-strerror.c (ASSERT): Likewise.
25902         * tests/test-striconv.c (ASSERT): Likewise.
25903         * tests/test-striconveh.c (ASSERT): Likewise.
25904         * tests/test-striconveha.c (ASSERT): Likewise.
25905         * tests/test-strsignal.c (ASSERT): Likewise.
25906         * tests/test-strstr.c (ASSERT): Likewise.
25907         * tests/test-strtod.c (ASSERT): Likewise.
25908         * tests/test-trunc1.c (ASSERT): Likewise.
25909         * tests/test-trunc2.c (ASSERT): Likewise.
25910         * tests/test-truncf1.c (ASSERT): Likewise.
25911         * tests/test-truncf2.c (ASSERT): Likewise.
25912         * tests/test-truncl.c (ASSERT): Likewise.
25913         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25914         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25915         * tests/test-vasnprintf.c (ASSERT): Likewise.
25916         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25917         * tests/test-vasprintf.c (ASSERT): Likewise.
25918         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25919         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25920         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25921         * tests/test-vsnprintf.c (ASSERT): Likewise.
25922         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25923         * tests/test-wcwidth.c (ASSERT): Likewise.
25924         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25925         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25926         * tests/test-xvasprintf.c (ASSERT): Likewise.
25927         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25928         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25929         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25930         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25931         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25932         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25933         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25934         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25935         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25936         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25937         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25938         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25939         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25940         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25941         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25942         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25943         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25944         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25945         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25946         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25947         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25948         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25949         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25950         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25951         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25952         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25953         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25954         * tests/unictype/test-combining.c (ASSERT): Likewise.
25955         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25956         * tests/unictype/test-digit.c (ASSERT): Likewise.
25957         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25958         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25959         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25960         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25961         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25962         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25963         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25964         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25965         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25966         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25967         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25968         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25969         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25970         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25971         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25972         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25973         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25974         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25975         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25976         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25977         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25978         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25979         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25980         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25981         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25982         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25983         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25984         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25985         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25986         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25987         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25988         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25989         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25990         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25991         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25992         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25993         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25994         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25995         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25996         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25997         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25998         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25999         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26000         Reported by Eric Blake.
26001
26002 2008-04-11  Bruno Haible  <bruno@clisp.org>
26003
26004         * lib/wchar.in.h: Tweak comment.
26005
26006 2008-04-11  Bruno Haible  <bruno@clisp.org>
26007
26008         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26009         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26010         gl_COMMON.
26011         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26012
26013 2008-04-11  Bruno Haible  <bruno@clisp.org>
26014
26015         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26016
26017 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26018
26019         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26020         of attempting to use non-existing /dev/*random.  Based on patch
26021         from Adam Strzelecki <ono@java.pl> in
26022         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26023
26024 2008-04-08  Bruno Haible  <bruno@clisp.org>
26025
26026         Add tentative support for emx+gcc.
26027         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26028         * lib/fpurge.c (fpurge): Likewise.
26029         * lib/freadable.c (freadable): Likewise.
26030         * lib/freadahead.c (freadahead): Likewise.
26031         * lib/freading.c (freading): Likewise.
26032         * lib/freadptr.c (freadptr): Likewise.
26033         * lib/freadseek.c (freadptrinc): Likewise.
26034         * lib/fseeko.c (rpl_fseeko): Likewise.
26035         * lib/fseterr.c (fseterr): Likewise.
26036         * lib/fwritable.c (fwritable): Likewise.
26037         * lib/fwriting.c (fwriting): Likewise.
26038         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26039
26040 2008-04-09  Eric Blake  <ebb9@byu.net>
26041
26042         Avoid some autoconf warnings.
26043         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26044         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26045         * m4/afs.m4 (gl_AFS): Likewise.
26046         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26047         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26049         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26050         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26051         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26052         (AC_CHECK_DECLS_ONCE): Likewise.
26053         Rename file...
26054         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26055         gnulib-tool requires autoconf 2.59 or better.
26056         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26057
26058 2008-04-08  Eric Blake  <ebb9@byu.net>
26059
26060         Use 'git describe --match' if present (added in git 1.5.5).
26061         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26062         if possible.
26063
26064 2008-04-08  Bruno Haible  <bruno@clisp.org>
26065
26066         Add tentative support for OpenServer.
26067         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26068         _ptr, _cnt.
26069         * lib/fpurge.c (fpurge): Likewise.
26070         * lib/freadable.c (freadable): Likewise.
26071         * lib/freadahead.c (freadahead): Likewise.
26072         * lib/freading.c (freading): Likewise.
26073         * lib/freadptr.c (freadptr): Likewise.
26074         * lib/freadseek.c (freadptrinc): Likewise.
26075         * lib/fseeko.c (rpl_fseeko): Likewise.
26076         * lib/fseterr.c (fseterr): Likewise.
26077         * lib/fwritable.c (fwritable): Likewise.
26078         * lib/fwriting.c (fwriting): Likewise.
26079         Reported by Roger Cornelius <rac@tenzing.org> and
26080         Brian K. White <brian@aljex.com>.
26081
26082 2008-04-06  Jim Meyering  <meyering@redhat.com>
26083
26084         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26085
26086 2008-04-06  Bruno Haible  <bruno@clisp.org>
26087
26088         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26089         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26090         * tests/test-printf-posix.sh: Likewise.
26091         * tests/test-vfprintf-posix.sh: Likewise.
26092         * tests/test-vprintf-posix.sh: Likewise.
26093         * tests/test-xprintf-posix.sh: Likewise.
26094
26095 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26096
26097         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26098         hide error from 'ls', needed on OS/2.
26099         Report by Elbert Pol <elbert.pol@gmail.com>.
26100
26101 2008-04-04  Eric Blake  <ebb9@byu.net>
26102
26103         Make test-fseeko.c failures meaningful.
26104         * tests/test-fseeko.c: Print line number on failure.
26105         * tests/test-fseek.c: Likewise.
26106         Reported by Nelson H. F. Beebe.
26107
26108         Improve strtod bug detection check.
26109         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26110         required for Solaris 10.
26111         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26112
26113 2008-04-04  Bruno Haible  <bruno@clisp.org>
26114
26115         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26116         by m4/setenv.m4.
26117
26118 2008-04-03  Eric Blake  <ebb9@byu.net>
26119
26120         Ensure sane .version contents.
26121         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26122         version string.
26123         * build-aux/git-version-gen: Improve documentation.
26124
26125         Make GNU make output nicer.
26126         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26127         MAKECMDGOALS to enforce message for all command line targets.  Set
26128         srcdir for use in maint.mk.
26129
26130         Another maintainer tweak.
26131         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26132         a target that regenerates version.
26133
26134 2008-04-03  Jim Meyering  <meyering@redhat.com>
26135
26136         vc-list-files: don't cause coreutils "make po-check" failure
26137         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26138
26139 2008-04-03  Eric Blake  <ebb9@byu.net>
26140
26141         Allow VPATH usage of vc-list-files.
26142         * build-aux/vc-list-files (scriptversion): Add timestamp.
26143         (options): Add --help, --version, -C.
26144         (CVS): Support installed cvsu.
26145
26146 2008-04-02  Bruno Haible  <bruno@clisp.org>
26147
26148         Avoid some "statement with no effect" warnings from gcc.
26149         * tests/test-wctype.c (main): Explicitly ignore unused values.
26150         Reported by Jim Meyering.
26151
26152 2008-04-02  Jim Meyering  <meyering@redhat.com>
26153
26154         Avoid some warnings from "gcc -Wshadow".
26155         * tests/test-frexp.c (exp): Define to a different identifier.
26156         * tests/test-frexpl.c (exp): Likewise.
26157
26158 2008-04-03  Jim Meyering  <meyering@redhat.com>
26159
26160         bootstrap: remove dangling *.[ch] symlinks from lib
26161         * build-aux/bootstrap [dangling symlink removal]: Move find's
26162         -depth option to precede all others, to avoid a warning.
26163         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26164
26165 2008-04-02  Bruno Haible  <bruno@clisp.org>
26166
26167         Avoid some warnings from "gcc -Wshadow".
26168         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26169         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26170         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26171         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26172         Reported by Jim Meyering.
26173
26174 2008-04-01  Bruno Haible  <bruno@clisp.org>
26175
26176         Fix test to work on IRIX 6.5 with cc.
26177         * tests/test-math.c (numeric_equal): New function.
26178         (main): Use it.
26179
26180 2008-04-01  Bruno Haible  <bruno@clisp.org>
26181
26182         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26183
26184 2008-04-01  Bruno Haible  <bruno@clisp.org>
26185
26186         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26187         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26188         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26189         (Depends-on): Remove math.
26190
26191         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26192         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26193         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26194         (Depends-on): Remove math.
26195
26196         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26197         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26198         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26199         (Depends-on): Remove math.
26200         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26201         (Depends-on): Remove math.
26202
26203         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26204         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26205         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26206         (Depends-on): Remove math.
26207         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26208         (Depends-on): Remove math.
26209
26210         * tests/test-round1.c: Include nan.h.
26211         (main): Use NaNd instead of NAN.
26212         * modules/round-tests (Files): Add tests/nan.h.
26213
26214         * tests/test-trunc1.c: Include nan.h.
26215         (main): Use NaNd instead of NAN.
26216         * modules/trunc-tests (Files): Add tests/nan.h.
26217
26218         * tests/test-roundf1.c: Include nan.h.
26219         (main): Use NaNf instead of NAN.
26220         * modules/roundf-tests (Files): Add tests/nan.h.
26221
26222         * tests/test-truncf1.c: Include nan.h.
26223         (main): Use NaNf instead of NAN.
26224         * modules/truncf-tests (Files): Add tests/nan.h.
26225
26226         * tests/test-ceilf1.c: Include nan.h.
26227         (main): Use NaNf instead of NAN.
26228         * modules/ceilf-tests (Files): Add tests/nan.h.
26229
26230         * tests/test-floorf1.c: Include nan.h.
26231         (main): Use NaNf instead of NAN.
26232         * modules/floorf-tests (Files): Add tests/nan.h.
26233
26234         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26235         (main): Use NaNf instead of NAN.
26236         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26237
26238         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26239         (main): Use NaNd instead of NAN.
26240         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26241
26242         * tests/test-frexp.c: Include nan.h.
26243         (main): Use NaNd instead of NAN.
26244         * modules/frexp-tests (Files): Add tests/nan.h.
26245
26246         * lib/isnan.c: Don't include <math.h>.
26247         (FUNC): Don't use NAN macro.
26248         * modules/isnand-nolibm (Depends-on): Remove math.
26249         * modules/isnanf-nolibm (Depends-on): Remove math.
26250         * modules/isnanl (Depends-on): Remove math.
26251         * modules/isnanl-nolibm (Depends-on): Remove math.
26252
26253         * tests/nan.h: New file.
26254
26255 2008-04-01  Eric Blake  <ebb9@byu.net>
26256
26257         Fix typos.
26258         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26259         values to be the right type.
26260
26261         For now, cater to gnulib strtod inaccuracies.
26262         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26263         fractional results.  While not as nice from a QoI perspective, it
26264         is a quicker patch than correctly implementing decimal to binary
26265         rounding.
26266
26267 2008-03-31  Eric Blake  <ebb9@byu.net>
26268
26269         Guarantee a definition of NAN.
26270         * lib/math.in.h (NAN): Define if missing.
26271         * tests/test-math.c (main): Test it.
26272         * doc/posix-headers/math.texi (math.h): Document this.
26273         * lib/isnan.c (rpl_isnand): Use it.
26274         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26275         * tests/test-floorf1.c (NaN): Likewise.
26276         * tests/test-frexp.c (NaN): Likewise.
26277         * tests/test-isnand.c (NaN): Likewise.
26278         * tests/test-isnanf.c (NaN): Likewise.
26279         * tests/test-round1.c (NaN): Likewise.
26280         * tests/test-roundf1.c (NaN): Likewise.
26281         * tests/test-snprintf-posix.h (NaN): Likewise.
26282         * tests/test-sprintf-posix.h (NaN): Likewise.
26283         * tests/test-trunc1.c (NaN): Likewise.
26284         * tests/test-truncf1.c (NaN): Likewise.
26285         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26286         * tests/test-vasprintf-posix.c (NaN): Likewise.
26287         * modules/isnand-nolibm (Depends-on): Add math.
26288         * modules/isnanf-nolibm (Depends-on): Likewise.
26289         * modules/isnanl (Depends-on): Likewise.
26290         * modules/isnanl-nolibm (Depends-on): Likewise.
26291         * modules/snprintf-posix-tests (Depends-on): Likewise.
26292         * modules/sprintf-posix-tests (Depends-on): Likewise.
26293         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26294         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26295         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26296         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26297
26298 2008-03-31  Bruno Haible  <bruno@clisp.org>
26299
26300         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26301         * doc/posix-functions/strtod.texi: Likewise.
26302
26303 2008-03-31  Bruno Haible  <bruno@clisp.org>
26304
26305         * tests/test-strtod.c (main): Don't use C99 syntax.
26306
26307 2008-03-31  Bruno Haible  <bruno@clisp.org>
26308
26309         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26310         Reported by Eric Blake.
26311
26312 2008-03-31  Jim Meyering  <meyering@redhat.com>
26313
26314         Don't compare actual signbit return values.
26315         * tests/test-strtod.c (main): Rather, compare only their
26316         zero/non-zero nature.
26317
26318 2008-03-31  Eric Blake  <ebb9@byu.net>
26319
26320         More strtod documentation.
26321         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26322         failures as distinct bugs.
26323
26324 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26325
26326         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26327         Problem reported by Erik Benada in
26328         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26329
26330 2008-03-30  Bruno Haible  <bruno@clisp.org>
26331
26332         * tests/test-strtod.c: Add comments about which assertion fails on which
26333         platform.
26334         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26335
26336 2008-03-30  Eric Blake  <ebb9@byu.net>
26337
26338         Test signbit behavior on zeros.
26339         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26340         (test_signbitd, test_signbitl): Likewise.
26341
26342         More strtod touchups.
26343         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26344         sign of negative underflow, for now.  Use .5, not .1.
26345         * doc/posix-functions/strtod.texi (strtod): Mention these
26346         limitations.
26347         Reported by Jim Meyering.
26348
26349 2008-03-30  Bruno Haible  <bruno@clisp.org>
26350
26351         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26352         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26353
26354 2008-03-30  Bruno Haible  <bruno@clisp.org>
26355
26356         Avoid failure when attempting to return empty iconv results on some
26357         platforms.
26358         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26359         allocation, don't report ENOMEM when the resulting string is empty.
26360
26361 2008-03-30  Bruno Haible  <bruno@clisp.org>
26362
26363         Fix buffer overrun.
26364         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26365         Don't consider the width for tmp_length. Check count against tmp_length
26366         before doing the padding. Ensure enough allocation during padding.
26367
26368 2008-03-30  Eric Blake  <ebb9@byu.net>
26369
26370         strtod touchups.
26371         * lib/strtod.c (strtod): Avoid compiler warnings.
26372         Reported by Jim Meyering.
26373
26374 2008-03-30  Bruno Haible  <bruno@clisp.org>
26375
26376         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26377         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26378         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26379         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26380         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26381         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26382         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26383         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26384
26385         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26386         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26387         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26388         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26389         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26390         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26391         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26392         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26393
26394         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26395         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26396         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26397         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26398         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26399         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26400         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26401         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26402
26403         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26404         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26405
26406         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26407         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26408
26409         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26410         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26411
26412         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26413         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26414         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26415
26416         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26418         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26419
26420         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26421         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26422         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26423
26424         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26426         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26427
26428         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26429         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26431         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26432         (Depends-on): Add EOVERFLOW.
26433         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26434         (Depends-on): Add EOVERFLOW.
26435         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26436         (Depends-on): Add EOVERFLOW.
26437         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26438         (Depends-on): Add EOVERFLOW.
26439         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26440         (Depends-on): Add EOVERFLOW.
26441         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26442         (Depends-on): Add EOVERFLOW.
26443         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26444         (Depends-on): Add EOVERFLOW.
26445         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26446         (Depends-on): Add EOVERFLOW.
26447
26448         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26450         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26451
26452         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26454         * modules/snprintf (Depends-on): Add EOVERFLOW.
26455
26456         * lib/poll.c (EOVERFLOW): Remove fallback.
26457         * modules/poll (Depends-on): Add EOVERFLOW.
26458
26459         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26460         * modules/getugroups (Depends-on): Add EOVERFLOW.
26461
26462         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26463         * modules/getdelim (Depends-on): Add EOVERFLOW.
26464
26465         * lib/ftell.c (EOVERFLOW): Remove fallback.
26466         * modules/ftell (Depends-on): Add EOVERFLOW.
26467
26468         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26469         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26470         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26471
26472         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26473
26474         * modules/EOVERFLOW-tests: New file.
26475         * tests/test-EOVERFLOW.c: New file.
26476
26477         * modules/EOVERFLOW: New file.
26478         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26479
26480 2008-03-30  Bruno Haible  <bruno@clisp.org>
26481
26482         Fix bug introduced on 2007-06-10.
26483         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26484         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26485
26486 2008-03-30  Bruno Haible  <bruno@clisp.org>
26487
26488         Improve freadseek's efficiency after ungetc.
26489         * lib/freadseek.c: Include freadahead.h.
26490         (freadptrinc): New function, extracted from freadseek.
26491         (freadseek): Use it in a loop. Use freadahead to determine the number
26492         of loop iterations.
26493         * modules/freadseek (Depends-on): Add freadahead.
26494         (configure.ac): Require AC_C_INLINE.
26495
26496 2008-03-30  Bruno Haible  <bruno@clisp.org>
26497
26498         * lib/freadseek.c (freadseek): Don't ignore the return value of
26499         freadptr.
26500
26501 2008-03-29  Eric Blake  <ebb9@byu.net>
26502
26503         Add hex float support.
26504         * modules/strtod (Depends-on): Add c-ctype.
26505         (Link): Mention POW_LIB.
26506         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26507         whitespace between 'e' and exponent.
26508         * tests/test-strtod.c (main): Enable hex float tests.
26509         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26510         now provides.
26511
26512         Document various strtod bugs, with some fixes.
26513         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26514         "-0x", "inf", "nan", and hex constants.
26515         * doc/posix-functions/atof.texi (atof): Likewise.
26516         * modules/stdlib (Makefile.am): Support strtod.
26517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26518         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26519         detect additional strtod bugs.
26520         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26521         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26522         bool where appropriate.  Parse 'inf' and 'nan'.
26523         * tests/test-strtod.c: New file.
26524         * modules/strtod (Depends-on): Add stdbool, stdlib.
26525         (configure.ac): Turn on module indicator.
26526         * modules/strtod-tests: New module.
26527
26528 2008-03-29  Eric Blake  <ebb9@byu.net>
26529
26530         Fix ftell on mingw.
26531         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26532         * modules/ftell-tests (Depends-on): Add binary-io.
26533         * modules/ftello-tests (Depends-on): Likewise.
26534         * tests/test-ftell.c (main): Enhance test to cover behavior after
26535         ungetc.  Enforce binary mode.
26536         * tests/test-ftello.c (main): Likewise.
26537
26538         Pass test-freadseek on cygwin.
26539         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26540         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26541         ungetc buffer.
26542
26543         * tests/test-fflush2.c (main): Fix typo.
26544
26545 2008-03-29  Bruno Haible  <bruno@clisp.org>
26546
26547         * tests/test-fflush2.c (main): Temporarily disable the contents of
26548         this test.
26549         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26550         Reported by Eric Blake.
26551
26552 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26553
26554         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26555         (GC_SHA224_DIGEST_SIZE): Add.
26556
26557         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26558         (gc_hash_digest_length): Likewise.
26559         (gc_hash_buffer): Likewise.
26560
26561 2008-03-25  Bruno Haible  <bruno@clisp.org>
26562
26563         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26564         detail which gettext release to use.
26565         Reported by Simon Josefsson.
26566
26567 2008-03-26  Jim Meyering  <meyering@redhat.com>
26568
26569         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26570         * modules/gnumakefile (clean-GNUmakefile): Also, use
26571         test ... && ... || : syntax rather than if-then ... fi.
26572
26573         gnumakefile: Don't double-quote-expand $(VPATH) value.
26574         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26575
26576 2008-03-24  Eric Blake  <ebb9@byu.net>
26577
26578         Alter GNUmakefile to install into top directory.
26579         * modules/maintainer-makefile: Split, and add dependency...
26580         * modules/gnumakefile: to this new module.
26581         * build-aux/GNUmakefile: Move...
26582         * top/GNUmakefile: ...here.
26583         * build-aux/maint.mk: Move...
26584         * top/maint.mk: ...here.
26585         * MODULES.html.sh (Support for maintaining...): Document new
26586         module.
26587
26588 2008-03-23  Bruno Haible  <bruno@clisp.org>
26589
26590         * gnulib-tool: New options --vc-files, --no-vc-files.
26591         (func_usage): Document them.
26592         (vc_files): New variable.
26593         (func_import): Consider vc_files.
26594         (func_create_testdir): Set vc_files to empty.
26595         Suggested by Jim Meyering and Karl Berry.
26596
26597 2008-03-23  Bruno Haible  <bruno@clisp.org>
26598
26599         Fix regex compilation error on HP-UX 11.
26600         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26601         * modules/regex (Files): Add m4/mbstate_t.m4.
26602         Reported by Ton Voon <ton.voon@altinity.com>.
26603
26604 2008-03-23  Bruno Haible  <bruno@clisp.org>
26605
26606         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26607
26608 2008-03-23  Eric Blake  <ebb9@byu.net>
26609             Bruno Haible  <bruno@clisp.org>
26610
26611         Install files from top/ in the destination directory.
26612         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26613         augmentation also for the files from top/.
26614         (func_import, func_create_testdir): Rewrite file names:
26615         top/filename -> filename.
26616
26617 2008-03-23  Bruno Haible  <bruno@clisp.org>
26618
26619         Tweak "gnulib --version" output.
26620         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26621
26622 2008-03-23  Bruno Haible  <bruno@clisp.org>
26623
26624         Tweak "gnulib --version" output.
26625         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26626         rather than contents of ChangeLog, when possible.
26627
26628 2008-03-21  Eric Blake  <ebb9@byu.net>
26629
26630         More --version tweaks.
26631         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26632         date of last ChangeLog entry.
26633
26634 2008-03-21  Jim Meyering  <meyering@redhat.com>
26635
26636         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26637
26638 2008-03-20  Eric Blake  <ebb9@byu.net>
26639
26640         VPATH fix.
26641         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26642
26643 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26644
26645         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26646         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26647
26648 2008-03-20  Eric Blake  <ebb9@byu.net>
26649
26650         Sync GNUmakefile with coreutils.
26651         * build-aux/GNUmakefile (have-Makefile): Rename...
26652         (_have-Makefile): ...to this, for namespace consideration.
26653         (GNUmakefile.cfg): Include, if present.
26654         (_autoreconf): Define a default.
26655         (_is-dist-target): New rule for rebuilds to pick up intra-release
26656         version.
26657         (maint-cfg.mk): Rename...
26658         (cfg.mk): ...to this.
26659
26660 2008-03-18  Jim Meyering  <meyering@redhat.com>
26661
26662         New script and module: mktempd
26663         * MODULES.html.sh (maint+release support): Add mktempd.
26664         * build-aux/mktempd: New file.
26665         * modules/mktempd: New file.
26666
26667 2008-03-15  Jim Meyering  <meyering@redhat.com>
26668
26669         Undo last change.
26670         * lib/sha1.c, lib/md5.c: 63 != ~63.
26671         Reported by Andreas Schwab.
26672
26673         sha1.c, md5.c: Hoist a redundant expression.
26674         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26675         "ctx->buflen" only once, before calling *_process_block.
26676         * lib/md5.c (md5_process_bytes): Likewise.
26677
26678 2008-03-14  Eric Blake  <ebb9@byu.net>
26679
26680         Bump copyright year in files generated by gnulib-tool.
26681         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26682         gnulib-tool, rather than hard-coding it.
26683
26684         Fix 'gnulib-tool --version' output to work with git.
26685         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26686         (startup): ...here.
26687         (func_version): Use it to invoke git-version-gen, rather than
26688         relying on CVS keyword expansion.  Modernize wording.
26689         (cvsdatestamp, last_checkin_date, version): Kill unused
26690         variables.
26691
26692 2008-03-12  Jim Meyering  <meyering@redhat.com>
26693
26694         Recognize optional cast of the argument to free.
26695         * build-aux/useless-if-before-free: Update regexps.
26696
26697         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26698
26699 2008-03-11  Bruno Haible  <bruno@clisp.org>
26700
26701         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26702         by a single package.
26703         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26704         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26705         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26706         Reported by Sam Steingold <sds@gnu.org>.
26707
26708 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26709
26710         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26711         repositories.
26712
26713 2008-03-11  Bruno Haible  <bruno@clisp.org>
26714
26715         Avoid conflicts between local macro definitions.
26716         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26717         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26718
26719 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26720             Bruno Haible  <bruno@clisp.org>
26721
26722         Make va_copy work with some version of xlc on AIX 5.1.
26723         * lib/stdarg.in.h: New file.
26724         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26725         On AIX, use a <stdarg.h> file substitute.
26726         * modules/stdarg (Files): Add lib/stdarg.in.h.
26727         (Depends-on): Add include_next.
26728         (Makefile.am): Build a stdarg.h substitute if requested.
26729         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26730
26731 2008-03-10  Bruno Haible  <bruno@clisp.org>
26732
26733         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26734         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26735         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26736
26737 2008-03-10  Bruno Haible  <bruno@clisp.org>
26738
26739         * modules/stdlib (Depends-on): Add include_next, remove
26740         absolute-header.
26741
26742 2008-03-09  Bruno Haible  <bruno@clisp.org>
26743
26744         * lib/freadahead.h (freadahead): Document more precisely.
26745         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26746         the sum of both buffer sizes.
26747         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26748         * NEWS: Document the change.
26749
26750 2008-03-09  Bruno Haible  <bruno@clisp.org>
26751
26752         Extend freadptr to return also the buffer size.
26753         * lib/freadptr.h (freadptr): Add sizep argument.
26754         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26755         (freadptr): Add sizep argument. Determine buffer size like freadahead
26756         does.
26757         * tests/test-freadptr.c: Don't include freadahead.h.
26758         (main): Adapt for new calling convention of freadptr.
26759         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26760         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26761         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26762         tests/test-freadptr2.sh.
26763         (Depends): Remove freadahead.
26764         (TESTS): Add test-freadptr2.sh.
26765         (check_PROGRAMS): Add test-freadptr2.
26766
26767 2008-03-09  Bruno Haible  <bruno@clisp.org>
26768
26769         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26770         Report and solution by Simon Josefsson.
26771
26772 2008-03-06  Bruno Haible  <bruno@clisp.org>
26773
26774         Make fflush after ungetc work on BSD platforms.
26775         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26776         * tests/test-fflush2.c: New file.
26777         * tests/test-fflush2.sh: New file.
26778         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26779         tests/test-fflush2.c.
26780         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26781         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26782
26783 2008-03-06  Eric Blake  <ebb9@byu.net>
26784
26785         Likewise for ftello.
26786         * modules/ftello (Dependencies): Add extensions.
26787         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26788
26789 2008-03-06  Bruno Haible  <bruno@clisp.org>
26790
26791         * modules/fseeko (Dependencies): Add extensions.
26792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26793         Needed on glibc systems.
26794
26795 2008-03-06  Bruno Haible  <bruno@clisp.org>
26796
26797         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26798         email address.
26799         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26800
26801 2008-03-06  Bruno Haible  <bruno@clisp.org>
26802
26803         * users.txt: Add libgnupdf.
26804
26805 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26806
26807         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26808         (Header File Substitutes, Function Substitutes,
26809         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26810         (Build robot for gnulib): Fix typo.
26811
26812 2008-03-06  Bruno Haible  <bruno@clisp.org>
26813
26814         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26815         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26816
26817 2008-03-06  Bruno Haible  <bruno@clisp.org>
26818
26819         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26820         * doc/gnulib.texi: Include it.
26821
26822 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26823
26824         * modules/func (License): Change license to unlimited; there was
26825         no LGPL parts in the module anyway.
26826
26827 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26828
26829         * modules/__func__: Renamed to modules/func.
26830         * modules/__func__-tests: Renamed to modules/func-tests.
26831         * tests/test-__func__.c: Renamed to tests/test-func.c.
26832         * m4/__func__.m4: Renamed to m4/func.m4.
26833         * doc/gnulib.texi (__func__): Section renamed to func.
26834         Suggested by Eric Blake <ebb9@byu.net>.
26835
26836 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26837
26838         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26839         about __func__.  Make example self-contained.  Suggested by Eric
26840         Blake <ebb9@byu.net>.
26841
26842         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26843         Suggested by Eric Blake <ebb9@byu.net>.
26844
26845 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26846
26847         * modules/__func__: New file.
26848         * modules/__func__-tests: New file.
26849         * tests/test-__func__.c: New file.
26850         * m4/__func__.m4: New file.
26851         * doc/gnulib.texi (__func__): Document __func__ module.
26852
26853 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26854
26855         * modules/byteswap (License): Re-license as LGPLv2+.
26856
26857 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26858
26859         * doc/Makefile: Add pdf target.
26860
26861 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26862
26863         * modules/inline (License): Use 'unlimited', since there are only
26864         *.m4 files in this module.
26865
26866 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26867             Bruno Haible  <bruno@clisp.org>
26868
26869         Add support for HP C 7.1 on OpenVMS 8.3.
26870         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26871
26872 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26873
26874         Update VMS specifics.
26875         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26876
26877 2008-03-02  Jim Meyering  <meyering@redhat.com>
26878
26879         Remove the last dependency on the "free" module.
26880         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26881         Reported by Bob Proulx.
26882
26883         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26884
26885         Remove useless "if" tests before free.  Deprecate "free" module.
26886         * doc/posix-functions/free.texi: Mention that this
26887         module is no longer useful.
26888         * modules/free (Notice): Say this module is obsolete.
26889         * modules/readutmp (Depends-on): Remove free.
26890         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26891         * lib/putenv.c (putenv): Likewise.
26892         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26893         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26894         * tests/test-c-strcasestr.c (main): Likewise.
26895         * tests/test-c-strstr.c (main): Likewise.
26896         * tests/test-mbscasestr1.c (main): Likewise.
26897         * tests/test-mbscasestr2.c (main): Likewise.
26898         * tests/test-mbsstr1.c (main): Likewise.
26899         * tests/test-mbsstr2.c (main): Likewise.
26900         * tests/test-memmem.c (main): Likewise.
26901         * tests/test-strcasestr.c (main): Likewise.
26902         * tests/test-striconv.c (main): Likewise.
26903         * tests/test-striconveh.c (main): Likewise.
26904         * tests/test-striconveha.c (main): Likewise.
26905         * tests/test-strstr.c (main): Likewise.
26906
26907         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26908
26909         bootstrap: sync from coreutils again
26910         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26911
26912 2008-03-01  Jim Meyering  <meyering@redhat.com>
26913
26914         bootstrap: sync from coreutils
26915         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26916         also when the target doesn't exist.
26917
26918 2008-03-01  Eric Blake  <ebb9@byu.net>
26919
26920         Fix bugs in last patch.
26921         * lib/memchr2.c (memchr2): Fix typo.
26922         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26923         extension.
26924         Reported by Bruce Korb.
26925
26926         New module 'memchr2'.
26927         * modules/memchr2: New file.
26928         * modules/memchr2-tests: Likewise.
26929         * lib/memchr2.h: Likewise.
26930         * lib/memchr2.c: Likewise, based on memchr.c.
26931         * tests/test-memchr2.c: New test.
26932         * MODULES.html.sh (String handling): Add memchr2.
26933
26934 2008-02-29  Bruno Haible  <bruno@clisp.org>
26935
26936         * modules/freadseek-tests: New file.
26937         * tests/test-freadseek.sh: New file.
26938         * tests/test-freadseek.c: New file.
26939
26940         New module 'freadseek'.
26941         * modules/freadseek: New file.
26942         * lib/freadseek.h: New file.
26943         * lib/freadseek.c: New file.
26944         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26945
26946 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26947
26948         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26949         wydawca.
26950
26951         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26952         program_invocation_name and program_invocation_short_name are
26953         present.
26954
26955 2008-02-28  Bruno Haible  <bruno@clisp.org>
26956
26957         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26958         * tests/test-freadptr.sh: Also test non-seekable stdin.
26959
26960 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26961
26962         * build-aux/bootstrap (source_base, m4_base)
26963         (doc_base, tests_base): New variables.
26964         (gnulib_tool_options): Do not hardcode base directories, use
26965         the above variables instead.
26966
26967 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26968
26969         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26970
26971 2008-02-28  Bruno Haible  <bruno@clisp.org>
26972
26973         * modules/freadptr-tests: New file.
26974         * tests/test-freadptr.sh: New file.
26975         * tests/test-freadptr.c: New file.
26976
26977         New module 'freadptr'.
26978         * modules/freadptr: New file.
26979         * lib/freadptr.h: New file.
26980         * lib/freadptr.c: New file.
26981         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26982
26983 2008-02-26  Karl Berry  <karl@freefriends.org>
26984
26985         Sync from Libtool:
26986         * libltdl/argz.c (argz_add, argz_count): New functions.
26987         * libltdl/argz.in.h: Declare them.
26988         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26989
26990 2008-02-22  Bruno Haible  <bruno@clisp.org>
26991
26992         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26993         is a pointer type.  Needed for HP-UX 10.
26994         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26995         * doc/posix-functions/gmtime_r.texi: Likewise.
26996         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26997
26998 2008-02-24  Bruno Haible  <bruno@clisp.org>
26999
27000         * modules/environ-tests: New file.
27001         * tests/test-environ.c: New file.
27002
27003         New module 'environ'.
27004         * modules/environ: New file.
27005         * lib/unistd.in.h (environ): New declaration.
27006         * m4/environ.m4: New file.
27007         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27008         after use.
27009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27010         HAVE_DECL_ENVIRON.
27011         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27012         HAVE_DECL_ENVIRON.
27013         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27014         wrong claim that 'environ' is missing on some systems.
27015         * modules/execute (Depends-on): Add environ.
27016         * lib/execute.c (environ): Remove fallback declaration.
27017         * modules/pipe (Depends-on): Add environ.
27018         * lib/pipe.c (environ): Remove fallback declaration.
27019         * modules/setenv (Depends-on): Add environ.
27020         * lib/setenv.c (environ): Remove fallback declaration.
27021         * modules/unsetenv (Depends-on): Add environ.
27022         * lib/unsetenv.c (environ): Remove fallback declaration.
27023         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27024         m4/environ.m4.
27025         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27026         (gl_PREREQ_UNSETENV): Likewise.
27027
27028 2008-02-24  Bruno Haible  <bruno@clisp.org>
27029
27030         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27031
27032 2008-02-20  Bob Proulx  <bob@proulx.com>
27033
27034         Enable use of older two part flavor 'git describe'.
27035         * build-aux/git-version-gen: If using the older two part flavor of
27036         git version then recreate the third part now present in the
27037         newer three part flavor of git describe.
27038
27039 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27040
27041         * lib/fts.c (fts_build): Typo correction to comment.
27042
27043 2008-02-17  Bruno Haible  <bruno@clisp.org>
27044
27045         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27046         generating no-op conflicts.
27047
27048 2008-02-17  Bruno Haible  <bruno@clisp.org>
27049
27050         Speed up by 10%.
27051         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27052         result_entries, rather than an index-based loop.
27053
27054 2008-02-17  Bruno Haible  <bruno@clisp.org>
27055
27056         Speed up by 25%.
27057         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27058         'hashcode_cached'.
27059         (entry_create): New function.
27060         (entry_hashcode): Use the cached hashcode if possible.
27061         (read_changelog_file, try_split_merged_entry): Use entry_create.
27062
27063 2008-02-17  Bruno Haible  <bruno@clisp.org>
27064
27065         Speed up from O(n^2) to O(n) for long ChangeLog files.
27066         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27067         (read_changelog_file): Change implementation of entries_reversed list
27068         to rbtreehash.
27069         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27070
27071 2008-02-17  Bruno Haible  <bruno@clisp.org>
27072
27073         New option --split-merged-entry.
27074         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27075         (find_paragraph_end, try_split_merged_entry): New functions.
27076         (long_options): Add option --split-merged-entry.
27077         (usage): Document option --split-merged-entry.
27078         (main): Implement option --split-merged-entry.
27079         Reported by Eric Blake.
27080
27081 2008-02-17  Bruno Haible  <bruno@clisp.org>
27082
27083         * lib/git-merge-changelog.c: Include c-strstr.h.
27084         (main): Support the "git pull --rebase" situation.
27085         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27086         Reported by Eric Blake.
27087
27088 2008-02-16  Eric Blake  <ebb9@byu.net>
27089
27090         Avoid doubling \ in common case of "c-maybe" quoting style.
27091         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27092         eliding outer quotes.
27093         * lib/quotearg.h: Document this.
27094         * tests/test-quotearg.c (result_strings, inputs, results_g)
27095         (flag_results, locale_results): Test it by adding a new string to
27096         each test group.
27097         (compare_strings): Test new string.
27098
27099 2008-02-13  Eric Blake  <ebb9@byu.net>
27100
27101         Avoid trigraph quoting in default output.
27102         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27103         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27104         unless explicitly requested.
27105         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27106
27107 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27108
27109         Don't rely on signed integer overflowing to negative value.
27110         * lib/getugroups.c (getugroups): Include <limits.h>.
27111         Instead, compare against INT_MAX, and increment only if the test passes.
27112
27113 2008-02-13  Jim Meyering  <meyering@redhat.com>
27114         and Eric Blake  <ebb9@byu.net>
27115
27116         Avoid shadowing warning and compile errors on Linux.
27117         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27118         forwarding macros on Linux.
27119         (dcgettext): Define a stub, for Linux.
27120         (results_g, main): Avoid warnings.
27121
27122 2008-02-12  Eric Blake  <ebb9@byu.net>
27123
27124         Silence warning in last patch.
27125         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27126
27127         Quotearg part 4: add tests, fix c-maybe colon quoting.
27128         * lib/quotearg.h: Improve documentation.
27129         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27130         escapes when adding outer quotes.  When quoting trigraphs, use
27131         valid C notation.  When quoting NUL, omit extra characters if next
27132         character is not digit.  Alter prototype.
27133         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27134         callers.
27135         * modules/quotearg-tests: New module.
27136         * tests/test-quotearg.c: New test.
27137
27138 2008-02-07  Eric Blake  <ebb9@byu.net>
27139
27140         Quotearg part 3: add flag to control outer quote elision.
27141         * lib/quotearg.h (c_maybe_quoting_style): New style.
27142         (enum quoting_flags): Better documentation of flags.
27143         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27144         c-maybe style.
27145         (quotearg_buffer_restyled): Handle new flag to elide outer
27146         quotes.
27147
27148         Quotearg part 2: add flag that can control NUL elision.
27149         * lib/quotearg.h (set_quoting_flags): New prototype.
27150         * lib/quotearg.c (struct quoting_options): Add flag field.
27151         (set_quoting_flags): New function.
27152         (quotearg_buffer_restyled): Add flags parameter.
27153         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27154         (quotearg_n_options): Set the flag, since length cannot be
27155         returned.
27156         (quoting_options_from_style): Default flags correctly.
27157
27158         Quotearg part 1: more wrappers, restore quotearg_char state.
27159         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27160         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27161         (quotearg_colon_mem): New wrappers.
27162         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27163         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27164         functions.
27165         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27166         (quotearg_colon_mem): New functions.
27167
27168 2008-02-11  Bruno Haible  <bruno@clisp.org>
27169
27170         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27171         library in the current directory: it does not work with parallel make.
27172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27173
27174 2008-02-11  Bruno Haible  <bruno@clisp.org>
27175
27176         * .gitattributes: New file.
27177
27178 2008-02-11  Jim Meyering  <meyering@redhat.com>
27179
27180         useless-if-before-free: Fix reversed exit values.
27181         * build-aux/useless-if-before-free: Use correct values
27182         for EXIT_MATCH and EXIT_NO_MATCH.
27183
27184         * build-aux/useless-if-before-free: Close stdout carefully.
27185
27186 2008-02-10  Bruno Haible  <bruno@clisp.org>
27187
27188         New module 'git-merge-changelog'.
27189         * modules/git-merge-changelog: New file.
27190         * lib/git-merge-changelog.c: New file.
27191
27192 2008-02-10  Jim Meyering  <meyering@redhat.com>
27193
27194         useless-if-before-free: New option: --list (-l).
27195
27196         useless-if-before-free: Don't exit immediately upon open failure.
27197         * build-aux/useless-if-before-free: Exit 2 for errors.
27198         Upon failure to open a file, don't exit immediately.
27199         Rather, just warn and continue with any remaining files.
27200
27201 2008-02-10  Bruno Haible  <bruno@clisp.org>
27202
27203         New abstract list operation 'node_set_value'.
27204         * lib/gl_list.h (gl_list_node_set_value): New function.
27205         (struct gl_list_implementation): New field node_set_value.
27206         * lib/gl_list.c (gl_list_node_set_value): New function.
27207         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27208         (gl_array_list_implementation): Update.
27209         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27210         (gl_carray_list_implementation): Update.
27211         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27212         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27213         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27214         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27215         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27216         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27217         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27218         Update.
27219         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27220         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27221         (gl_sublist_list_implementation): Update.
27222
27223 2008-02-10  Bruno Haible  <bruno@clisp.org>
27224
27225         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27226         Needed when ELEMENT is #defined to 'some_type *'.
27227
27228 2008-02-10  Jim Meyering  <meyering@redhat.com>
27229
27230         New script and module: useless-if-before-free
27231         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27232         * build-aux/useless-if-before-free: New file.
27233         * modules/useless-if-before-free: New file.
27234
27235         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27236
27237         xstrtol_error: Fix typo.
27238         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27239         s/exit_failure/exit_status/.
27240
27241 2008-02-09  Jim Meyering  <meyering@redhat.com>
27242
27243         New script and module: gitlog-to-changelog
27244         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27245         * modules/gitlog-to-changelog: New file.
27246         * build-aux/gitlog-to-changelog: New file.
27247
27248 2008-02-08  Jim Meyering  <meyering@redhat.com>
27249
27250         Avoid two "parameter unused" warnings.
27251         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27252         Mark "st" as used.
27253
27254         Use "git COMMAND", not "git-COMMAND".
27255         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27256         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27257         * build-aux/git-version-gen: Use "git status", not "git-status".
27258
27259 2008-02-07  Bruno Haible  <bruno@clisp.org>
27260
27261         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27262         Avoids a crash on Windows Vista.
27263         Reported by Adam Strzelecki <ono@java.pl> via
27264         Simon Josefsson <simon@josefsson.org>.
27265
27266 2008-02-06  Bruno Haible  <bruno@clisp.org>
27267
27268         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27269         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27270         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27272         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27274         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27275         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27283         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27284         left-adjust flag.
27285         * tests/test-snprintf-posix.h (test_function): Likewise.
27286         * tests/test-sprintf-posix.h (test_function): Likewise.
27287         * tests/test-vasprintf-posix.c (test_function): Likewise.
27288         * doc/posix-functions/fprintf.texi: Update.
27289         * doc/posix-functions/printf.texi: Update.
27290         * doc/posix-functions/snprintf.texi: Update.
27291         * doc/posix-functions/sprintf.texi: Update.
27292         * doc/posix-functions/vfprintf.texi: Update.
27293         * doc/posix-functions/vprintf.texi: Update.
27294         * doc/posix-functions/vsnprintf.texi: Update.
27295         * doc/posix-functions/vsprintf.texi: Update.
27296         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27297
27298 2008-02-06  Bruno Haible  <bruno@clisp.org>
27299
27300         Fix bug introduced on 2008-01-26.
27301         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27302
27303 2008-02-06  Bruno Haible  <bruno@clisp.org>
27304
27305         Fix bug introduced on 2007-06-10.
27306         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27307         !NEED_PRINTF_FLAG_ZERO.
27308
27309 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27310
27311         getloadavg: use libperfstat on AIX5
27312         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27313
27314 2008-02-03  Bruno Haible  <bruno@clisp.org>
27315
27316         * lib/diffseq.h: Add comments about required #includes.
27317         Reported by Michael Biggs <gnulib@doubleplum.net>.
27318
27319 2008-02-01  Bruno Haible  <bruno@clisp.org>
27320
27321         * users.txt: Add gnuit.
27322
27323 2008-01-31  Bruno Haible  <bruno@clisp.org>
27324
27325         * lib/md4.c (set_uint32): Mark as inline.
27326         * lib/md5.c (set_uint32): Likewise.
27327         * lib/sha1.c (set_uint32): Likewise.
27328         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27329         * m4/md5.m4 (gl_MD5): Likewise.
27330         * m4/sha1.m4 (gl_SHA1): Likewise.
27331
27332 2008-01-31  Jim Meyering  <meyering@redhat.com>
27333
27334         Use "sizeof VAR", rather than a literal "4".
27335         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27336         * lib/md4.c (md4_read_ctx): Likewise.
27337         * lib/sha1.c (sha1_read_ctx): Likewise.
27338
27339 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27340
27341         * tests/test-sha1.c: New file, based on test-md5.c.
27342
27343         * modules/crypto/sha1-tests: New file.
27344
27345 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27346
27347         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27348
27349 2008-01-31  Jim Meyering  <meyering@redhat.com>
27350
27351         Prefer "sizeof v" over the equivalent "4".
27352         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27353         * lib/md5.c (set_uint32): Likewise.
27354         * lib/sha1.c (set_uint32): Likewise.
27355
27356 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27357
27358         * lib/sha1.c (set_uint32): Mark function as static.
27359
27360 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27361
27362         md2: clarify comments to say that alignment is not required.
27363         * lib/md2.h: Remove warning about alignment in comment.
27364         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27365         never been required.
27366
27367 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27368
27369         md4: adapt alignment constraint fix from sha1.
27370         * lib/md4.c (set_uint32): New function, from sha1.c
27371         (md4_read_ctx): Use it.
27372         (md4_finish_ctx): Doc fix.
27373         * lib/md4.h: Doc fix.
27374
27375 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27376
27377         md5: adapt alignment constraint fix from sha1.
27378         * lib/md5.c (set_uint32): New function, from sha1.c
27379         (md5_read_ctx): Use it.
27380         (md5_finish_ctx): Doc fix.
27381         * lib/md5.h: Doc fix.
27382
27383 2008-01-30  Peter Palfrader  <weasel@debian.org>
27384
27385         sha1: remove the result buffer alignment constraint
27386         * lib/sha1.c (set_uint32): New function.
27387         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27388         constraint.
27389         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27390         * lib/sha1.h: Likewise.
27391
27392 2008-01-30  Andreas Schwab  <schwab@suse.de>
27393             Bruno Haible  <bruno@clisp.org>
27394
27395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27396         correct definition of LDBL_MIN_EXP.
27397
27398 2008-01-30  Karl Berry  <karl@gnu.org>
27399
27400         * config/srclist-update: try to preserve x bit on updates.
27401         * config/srclistvars.sh: update for karl.
27402
27403 2008-01-29  Jim Meyering  <meyering@redhat.com>
27404
27405         vasnprintf.c: Avoid warning about unused label
27406         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27407         "overflow" label definition and associated code with the
27408         same cpp condition that guards the sole use of that label.
27409
27410 2008-01-26  Bruno Haible  <bruno@clisp.org>
27411
27412         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27413         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27414         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27415         * lib/isnanl-nolibm.h (isnanl): Likewise.
27416         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27417
27418 2008-01-26  Bruno Haible  <bruno@clisp.org>
27419
27420         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27421         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27422
27423 2008-01-26  Bruno Haible  <bruno@clisp.org>
27424
27425         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27426         GCC >= 4.0 built-in.
27427         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27428
27429 2008-01-26  Bruno Haible  <bruno@clisp.org>
27430
27431         Rename isnan, applicable to 'double' only, to isnand.
27432         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27433         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27434         (configure.ac): Update.
27435         (Include): Replace "isnan.h" with "isnand.h".
27436         * m4/isnand.m4: Renamed from m4/isnan.m4.
27437         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27438         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27439         instead of isnan.c.
27440         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27441         instead of HAVE_ISNAN_IN_LIBC.
27442         (isnand): Renamed from isnan.
27443         * lib/isnand.c: New file.
27444         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27445         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27446         (Makefile.am): Update.
27447         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27448         Include isnand.h instead of isnan.h.
27449         (main): Test isnand instead of isnan.
27450         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27451         isnan-nolibm.
27452         * modules/frexp (Depends-on): Likewise.
27453         * modules/frexp-tests (Depends-on): Likewise.
27454         * modules/frexp-nolibm (Depends-on): Likewise.
27455         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27456         * modules/isfinite (Depends-on): Likewise.
27457         * modules/round-tests (Depends-on): Likewise.
27458         * modules/signbit (Depends-on): Likewise.
27459         * modules/signbit-tests (Depends-on): Likewise.
27460         * modules/snprintf-posix (Depends-on): Likewise.
27461         * modules/sprintf-posix (Depends-on): Likewise.
27462         * modules/trunc-tests (Depends-on): Likewise.
27463         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27466         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27467         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27470         * modules/vasnprintf-posix (Depends-on): Likewise.
27471         * modules/vasprintf-posix (Depends-on): Likewise.
27472         * modules/vfprintf-posix (Depends-on): Likewise.
27473         * modules/vsnprintf-posix (Depends-on): Likewise.
27474         * modules/vsprintf-posix (Depends-on): Likewise.
27475         * lib/frexp.c: Include isnand.h instead of isnan.h.
27476         (ISNAN): Set to isnand instead of isnan.
27477         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27478         (gl_isfinited): Use isnand instead of isnan.
27479         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27480         (gl_signbitd): Use isnand instead of isnan.
27481         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27482         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27483         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27484         (main): Use isnand instead of isnan.
27485         * tests/test-round1.c: Include isnand.h.
27486         (main): Use isnand instead of isnan.
27487         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27488         (ISNAN): Set to isnand instead of isnan.
27489         * tests/test-trunc1.c: Include isnand.h.
27490         (main): Use isnand instead of isnan.
27491         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27492         (equal): Use isnand instead of isnan.
27493         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27494         isnand-nolibm.
27495         * NEWS: Mention the change.
27496
27497 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27498             Bruno Haible  <bruno@clisp.org>
27499
27500         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27501         the GCC builtins for signbits are present and set
27502         REPLACE_SIGNBIT_USING_GCC if so.
27503         * lib/math.in.h (signbit): Define using GCC builtins if
27504         REPLACE_SIGNBIT_USING_GCC is set.
27505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27506         REPLACE_SIGNBIT_USING_GCC.
27507         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27508
27509 2008-01-25  Jim Meyering  <meyering@redhat.com>
27510
27511         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27512         * lib/poll.c: Include <config.h>, not "config.h".
27513         * tests/test-getaddrinfo.c: Likewise.
27514
27515 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27516
27517         * modules/sockets-tests: New file.
27518
27519 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27520
27521         * modules/sockets: New module, can be used to call WSA_Startup and
27522         WSA_Cleanup when needed.
27523
27524         * lib/sockets.h, lib/sockets.c: New files.
27525
27526         * m4/sockets.m4: New file.
27527
27528         * tests/test-sockets.c: New file.
27529
27530 2008-01-19  Bruno Haible  <bruno@clisp.org>
27531
27532         * doc/posix-headers: Renamed from doc/headers.
27533         * doc/posix-functions: Renamed from doc/functions.
27534         * doc/gnulib.texi: Update.
27535
27536 2008-01-19  Bruno Haible  <bruno@clisp.org>
27537
27538         * doc/glibc-functions/strcasestr.texi: Include contents of
27539         doc/functions/strcasestr.texi, fixing the list of platforms.
27540         * doc/functions/strcasestr.texi: Remove file.
27541
27542 2008-01-19  Bruno Haible  <bruno@clisp.org>
27543
27544         * doc/glibc-functions/memmem.texi: Include contents of
27545         doc/functions/memmem.texi.
27546         * doc/functions/memmem.texi: Remove file.
27547
27548 2008-01-18  Bruno Haible  <bruno@clisp.org>
27549
27550         * doc/glibc-functions/*.texi: New files.
27551         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27552         to use the new files.
27553
27554 2008-01-17  Bruno Haible  <bruno@clisp.org>
27555
27556         * tests/test-gethostname.c (main): Fix printf statement.
27557
27558 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27559
27560         * modules/gethostname-tests: New file.
27561
27562         * tests/test-gethostname.c: New file.
27563
27564 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27565
27566         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27567         used by the UNAME case.  Reported by Bruno Haible
27568         <bruno@clisp.org>.
27569
27570 2008-01-17  Eric Blake  <ebb9@byu.net>
27571
27572         Convert c-strcasestr to be more efficient.
27573         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27574         (Depends-on): Add c-strcase, remove malloca, strnlen.
27575         * tests/test-c-strcasestr.c (main): Enhance test.
27576         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27577
27578 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27579
27580         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27581         Use it in creating po/Makevars.
27582
27583 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27584
27585         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27586         Applications that requires it should initialize libgcrypt
27587         manually.
27588
27589 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27590
27591         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27592
27593 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27594
27595         Fix problem with getdate on mingw32 reported by Simon Josefsson
27596         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27597         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27598         tzname", when deciding whether to declare tzname.
27599         * lib/strftime.c (tzname): Likewise.
27600
27601 2008-01-15  Bruno Haible  <bruno@clisp.org>
27602
27603         Work around a MacOS X 10.5 bug in frexpl().
27604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27605         * doc/functions/frexpl.texi: Document the bug.
27606         Reported by Elias Pipping <pipping@gentoo.org>.
27607
27608 2008-01-14  Eric Blake  <ebb9@byu.net>
27609
27610         Touch up previous patch.
27611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27612         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27613
27614         Convert strcasestr module to use Two-Way algorithm.
27615         * modules/strcasestr-simple: New module, based on the old
27616         strcasestr, but with Two-Way rather than KMP.
27617         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27618         * lib/string.in.h (rpl_strcasestr): Declare.
27619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27620         performance.
27621         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27622         * modules/string (Makefile.am): Support strcasestr.
27623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27624         * modules/strcasestr-tests (Depends-on): Check for alarm.
27625         * tests/test-strcasestr.c: Augment test.
27626         * lib/str-two-way.h: Clean up stray macro.
27627         * NEWS: Document new module.
27628         * MODULES.html.sh (string handling): Likewise.
27629         * doc/functions/strcasestr.texi: New file.
27630         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27631         here, since it is not a POSIX function.
27632
27633 2008-01-14  Colin Watson  <cjwatson@debian.org>
27634             Bruno Haible  <bruno@clisp.org>
27635
27636         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27637         works fine; if not, set REPLACE_STRSIGNAL.
27638         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27640         REPLACE_STRSIGNAL.
27641         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27642         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27643         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27644
27645 2008-01-14  Bruno Haible  <bruno@clisp.org>
27646
27647         * modules/strsignal (Include): Change to <string.h>.
27648
27649 2008-01-14  Colin Watson  <cjwatson@debian.org>
27650
27651         * modules/argp (Notice): Add a notice recommending to change
27652         XGETTEXT_OPTIONS.
27653         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27654
27655 2008-01-13  Colin Watson  <cjwatson@debian.org>
27656
27657         * modules/strsignal-tests: New file.
27658         * tests/test-strsignal.c: New file.
27659
27660         * lib/strsignal.c: New file, from glibc with modifications.
27661         * lib/siglist.h: New file, from glibc with modifications.
27662         * lib/string.in.h (strsignal): New declaration.
27663         * m4/strsignal.m4: New file.
27664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27665         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27666         * modules/strsignal: New file.
27667         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27668         HAVE_DECL_STRSIGNAL.
27669
27670 2008-01-13  Bruno Haible  <bruno@clisp.org>
27671
27672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27673         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27674         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27675         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27676
27677 2008-01-13  Bruno Haible  <bruno@clisp.org>
27678
27679         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27680         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27681         * lib/argp.h (__attribute__): Likewise.
27682         * lib/c-stack.c (__attribute__): Likewise.
27683         * lib/error.h (__attribute__): Likewise.
27684         * lib/fts.c (__attribute__): Likewise.
27685         * lib/openat.h (__attribute__): Likewise.
27686         * lib/stdio.in.h (__attribute__): Likewise.
27687         * lib/string.in.h (__attribute__): Likewise.
27688         * lib/utimens.c (__attribute__): Likewise.
27689         * lib/vasnprintf.h (__attribute__): Likewise.
27690         * lib/xalloc.h (__attribute__): Likewise.
27691         * lib/xprintf.h (__attribute__): Likewise.
27692         * lib/xstrtol.h (__attribute__): Likewise.
27693         * lib/xvasprintf.h (__attribute__): Likewise.
27694
27695 2008-01-12  Bruno Haible  <bruno@clisp.org>
27696
27697         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27698         * doc/glibc-headers/a.out.texi: New file.
27699         * doc/glibc-headers/aliases.texi: New file.
27700         * doc/glibc-headers/alloca.texi: New file.
27701         * doc/glibc-headers/ar.texi: New file.
27702         * doc/glibc-headers/argp.texi: New file.
27703         * doc/glibc-headers/argz.texi: New file.
27704         * doc/glibc-headers/byteswap.texi: New file.
27705         * doc/glibc-headers/crypt.texi: New file.
27706         * doc/glibc-headers/endian.texi: New file.
27707         * doc/glibc-headers/envz.texi: New file.
27708         * doc/glibc-headers/err.texi: New file.
27709         * doc/glibc-headers/error.texi: New file.
27710         * doc/glibc-headers/execinfo.texi: New file.
27711         * doc/glibc-headers/fpu_control.texi: New file.
27712         * doc/glibc-headers/fstab.texi: New file.
27713         * doc/glibc-headers/fts.texi: New file.
27714         * doc/glibc-headers/getopt.texi: New file.
27715         * doc/glibc-headers/ieee754.texi: New file.
27716         * doc/glibc-headers/ifaddrs.texi: New file.
27717         * doc/glibc-headers/libintl.texi: New file.
27718         * doc/glibc-headers/mcheck.texi: New file.
27719         * doc/glibc-headers/mntent.texi: New file.
27720         * doc/glibc-headers/obstack.texi: New file.
27721         * doc/glibc-headers/paths.texi: New file.
27722         * doc/glibc-headers/printf.texi: New file.
27723         * doc/glibc-headers/pty.texi: New file.
27724         * doc/glibc-headers/resolv.texi: New file.
27725         * doc/glibc-headers/shadow.texi: New file.
27726         * doc/glibc-headers/sysexits.texi: New file.
27727         * doc/glibc-headers/ttyent.texi: New file.
27728
27729 2008-01-12  Jim Meyering  <meyering@redhat.com>
27730
27731         announce-gen: emit Gnulib's git-based version string.
27732         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27733         New option --gnulib-version=V, where V is expected to be
27734         the output of running git describe in the gnulib directory.
27735         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27736         not useful, and plan to stop publishing an xdelta file with each
27737         coreutils release.
27738
27739         * build-aux/announce-gen: Also check for lzma-compressed files.
27740
27741 2008-01-11  Bruno Haible  <bruno@clisp.org>
27742
27743         * tests/test-memmem.c (main): Increase maximum allowed time.
27744         * tests/test-strstr.c (main): Likewise.
27745
27746 2008-01-11  Bruno Haible  <bruno@clisp.org>
27747
27748         * doc/functions/memmem.texi: Add more precisions about platforms.
27749         * doc/functions/strstr.texi: Likewise.
27750
27751 2008-01-10  Eric Blake  <ebb9@byu.net>
27752
27753         * m4/strstr.m4: Delete cruft from copy-n-paste.
27754         Reported by Bruno Haible.
27755
27756 2008-01-10  Bruno Haible  <bruno@clisp.org>
27757
27758         Make c-strstr rely on strstr.
27759         * lib/c-strstr.c: Don't include str-kmp.h.
27760         (c_strstr): Define in terms of strstr.
27761         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27762         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27763
27764 2008-01-10  Bruno Haible  <bruno@clisp.org>
27765
27766         * doc/gnulib.texi (String Functions in C Locale): New section.
27767         * doc/c-ctype.texi: New file.
27768         * doc/c-strcase.texi: New file.
27769         * doc/c-strcaseeq.texi: New file.
27770         * doc/c-strcasestr.texi: New file.
27771         * doc/c-strstr.texi: New file.
27772         * doc/c-strtod.texi: New file.
27773         * doc/c-strtold.texi: New file.
27774
27775 2008-01-10  Eric Blake  <ebb9@byu.net>
27776
27777         * lib/relocatable.h: Fix a comment.
27778
27779 2008-01-10  Eric Blake  <ebb9@byu.net>
27780
27781         Share two-way algorithm.
27782         * lib/str-two-way.h: New file, merged from...
27783         * lib/memmem.c: ...here...
27784         * lib/strstr.c: ...and here.
27785         * modules/memmem (Files): Use it.
27786         * modules/strstr (Files): Likewise.
27787
27788         Avoid quadratic strstr implementations.
27789         * lib/strstr.c: New file.
27790         * m4/strstr.m4: Likewise.
27791         * modules/strstr: Likewise.
27792         * modules/strstr-tests: Likewise.
27793         * tests/test-strstr.c: Likewise.
27794         * lib/string.in.h (rpl_strstr): Declare.
27795         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27797         * modules/string (Makefile.am): Likewise.
27798         * MODULES.html.sh (string handling): Mention new module.
27799         * doc/functions/strstr.texi (strstr): Document the bug.
27800
27801 2008-01-10  Bruno Haible  <bruno@clisp.org>
27802
27803         * lib/relocatable.h (relocate): State whether result is freshly
27804         allocated or not.
27805         * lib/relocatable.c (relocate): Return a freshly allocated string
27806         instead of a pointer to a privately held string.
27807         Reported by Sylvain Beucler <beuc@gnu.org>.
27808
27809 2008-01-10  Colin Watson  <cjwatson@debian.org>
27810
27811         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27812         s/S_ISNLK/S_ISLNK/.
27813
27814 2008-01-09  Bruno Haible  <bruno@clisp.org>
27815
27816         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27817         and other files.
27818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27819         if it's only a guess.
27820         * modules/memmem: Simplify by depending on memmem-simple.
27821
27822 2008-01-09  Bruno Haible  <bruno@clisp.org>
27823
27824         Work around OpenBSD 4.0 tdelete() bug.
27825         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27826         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27827         macros and don't redefine the enum values.
27828         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27829         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27830         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27831
27832 2008-01-09  Bruno Haible  <bruno@clisp.org>
27833
27834         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27835         (main): Don't perform the tests if setlocale did not install a UTF-8
27836         locale. Needed on OpenBSD 4.0.
27837         * modules/wcwidth-tests (Depends-on): Add localcharset.
27838
27839 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27840
27841         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27842         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27843         * NEWS: announce this.
27844         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27845
27846 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27847         and Eric Blake  <ebb9@byu.net>
27848
27849         Add memmem-simple module.
27850         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27851         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27852         * modules/memmem-simple: New file.
27853         * modules/memmem (Description): Tweak.
27854         * MODULES.html.sh (string handling): Mention new module.
27855         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27856         addressed by memmem-simple.
27857         * NEWS: Document the difference.
27858
27859 2008-01-09  Eric Blake  <ebb9@byu.net>
27860
27861         Give gcc some memmem optimization hints.
27862         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27863         (strcasestr): Declare as pure.
27864         * modules/memmem (Maintainer): Claim my implementation.
27865
27866 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27867
27868         Support AIX 6.1 and higher.
27869         * build-aux/config.libpath: Likewise.
27870         * build-aux/config.rpath: Likewise.
27871
27872 2008-01-08  Jim Meyering  <meyering@redhat.com>
27873             Bruno Haible  <bruno@clisp.org>
27874
27875         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27876         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27877         Reported by Peter Fales in
27878         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27879
27880 2008-01-08  Bruno Haible  <bruno@clisp.org>
27881
27882         * modules/unictype/category-of (Depends-on): Add
27883         unictype/category-none.
27884         * modules/unictype/category-and-tests (Depends-on): Add
27885         unictype/category-{L,N,Lu,Nd}.
27886         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27887         * modules/unictype/category-or-tests (Depends-on): Add
27888         unictype/category-{L,N}.
27889         * modules/unictype/category-name-tests (Depends-on): Add
27890         unictype/category-{Z,Nl}.
27891         Reported by Simon Josefsson.
27892
27893 2008-01-08  Bruno Haible  <bruno@clisp.org>
27894
27895         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27896         convention better.
27897         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27898         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27899         Reported by Peter Miller <millerp@canb.auug.org.au>.
27900
27901 2008-01-08  Eric Blake  <ebb9@byu.net>
27902
27903         Rewrite memmem to guarantee linear complexity without malloc.
27904         * lib/memmem.c (memmem): Use Two-Way rather than
27905         Knuth-Morris-Pratt, to allow O(1) space usage.
27906         (critical_factorization, two_way_short_needle)
27907         (two_way_long_needle): New functions.
27908         (knuth_morris_pratt): Delete.
27909         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27910         Add stdint.
27911         * tests/test-memmem.c (main): Add tests for periodic needle and
27912         sublinear performance.
27913         * doc/functions/memmem.texi (memmem): Document other deficiencies
27914         in cygwin and older glibc.
27915
27916 2008-01-08  Bruno Haible  <bruno@clisp.org>
27917
27918         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27919         augmentation.
27920
27921 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27922
27923         Add a configure time option: --disable-acl.
27924         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27925         AC_ARG_ENABLE(acl).
27926
27927 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27928
27929         * tests/test-localename.c: Don't include obsolete "setenv.h".
27930
27931         * modules/localename-tests (Depends-on): Need unsetenv.
27932
27933 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27934
27935         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27936
27937 2008-01-06  Colin Watson  <cjwatson@debian.org>
27938
27939         * users.txt: Add man-db.
27940
27941 2008-01-07  Bruno Haible  <bruno@clisp.org>
27942
27943         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27944         previous section name.
27945
27946 2008-01-07  Bruno Haible  <bruno@clisp.org>
27947
27948         * lib/progname.c (set_program_name): Don't strip off a leading
27949         "lt-" prefix outside a .libs directory.
27950         Suggested by Paul Eggert.
27951
27952 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27953             Bruno Haible  <bruno@clisp.org>
27954
27955         Improve memory cleanup in 'relocatable' module.
27956         * lib/relocatable.h (compute_curr_prefix): Change return type to
27957         'char *'.
27958         * lib/relocatable.c (compute_curr_prefix): Change return type to
27959         'char *'. Free curr_installdir after use.
27960         (relocate): Free curr_prefix_better after use.
27961         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27962
27963 2008-01-01  Bruno Haible  <bruno@clisp.org>
27964
27965         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27966         failure on older glibc systems.
27967         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27968
27969 2008-01-05  Eric Blake  <ebb9@byu.net>
27970
27971         Avoid quadratic system memmem.
27972         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27973         Reported by Ralf Wildenhues.
27974
27975         Fix memmem test for mingw.
27976         * modules/memmem-tests (configure.ac): Check for alarm.
27977         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27978         it.
27979         * doc/functions/memmem.texi: New file.
27980         * doc/gnulib.texi (Function Substitutes): Add memmem.
27981         Reported by Bruno Haible.
27982
27983 2008-01-04  Bruno Haible  <bruno@clisp.org>
27984
27985         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27986         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27987         gl_HEADER_STRING_H_DEFAULTS.
27988
27989 2008-01-04  Eric Blake  <ebb9@byu.net>
27990
27991         Shorten duration of memmem test.
27992         * tests/test-memmem.c (main): Use alarm to declare failure if test
27993         is taking too long.
27994         Reported by Ralf Wildenhues.
27995
27996 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27997
27998         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27999         string, needed by strerror.
28000
28001 2008-01-03  Colin Watson  <cjwatson@debian.org>
28002             Bruno Haible  <bruno@clisp.org>
28003
28004         * doc/gnulib-tool.texi (Localization): New section.
28005
28006 2008-01-02  Bruno Haible  <bruno@clisp.org>
28007
28008         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28009         variables to 'unsigned char *' type.
28010         Reported by Paul Eggert.
28011
28012 2008-01-02  Jim Meyering  <jim@meyering.net>
28013
28014         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28015
28016 2007-12-31  Jim Meyering  <jim@meyering.net>
28017
28018         Avoid use of private FTS type name.
28019         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28020
28021 2007-12-30  Karl Berry  <karl@gnu.org>
28022
28023         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28024         work around defect in Texinfo and/or the standalone Info browser.
28025
28026 2007-12-30  Bruno Haible  <bruno@clisp.org>
28027
28028         Unify 5 copies of the KMP code.
28029         * lib/str-kmp.h: New file.
28030         * lib/c-strcasestr.c: Include str-kmp.h.
28031         (knuth_morris_pratt): Remove function.
28032         (c_strcasestr): Update.
28033         * lib/c-strstr.c: Include str-kmp.h.
28034         (knuth_morris_pratt): Remove function.
28035         (c_strcasestr): Update.
28036         * lib/mbscasestr.c: Include str-kmp.h.
28037         (knuth_morris_pratt_unibyte): Remove function.
28038         * lib/mbsstr.c: Include str-kmp.h.
28039         (knuth_morris_pratt_unibyte): Remove function.
28040         * lib/strcasestr.c: Include str-kmp.h.
28041         (knuth_morris_pratt): Remove function.
28042         (strcasestr): Update.
28043         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28044         * modules/c-strstr (Files): Likewise.
28045         * modules/mbscasestr (Files): Likewise.
28046         * modules/mbsstr (Files): Likewise.
28047         * modules/strcasestr (Files): Likewise.
28048         Suggested by Paul Eggert.
28049
28050 2007-12-30  Bruno Haible  <bruno@clisp.org>
28051
28052         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28053         defined.
28054
28055 2007-12-30  Bruno Haible  <bruno@clisp.org>
28056
28057         * lib/xmalloca.h: Include xalloc.h.
28058         (xnmalloca): New macro.
28059
28060 2007-12-30  Bruno Haible  <bruno@clisp.org>
28061
28062         * lib/malloca.h (nmalloca): New macro.
28063         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28064         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28065         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28066         knuth_morris_pratt_multibyte): Likewise.
28067         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28068         knuth_morris_pratt_multibyte): Likewise.
28069         * lib/memmem.c (knuth_morris_pratt): Likewise.
28070         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28071
28072 2007-12-25  Bruno Haible  <bruno@clisp.org>
28073
28074         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28075         * lib/glob.c: Don't include openat.h.
28076         (link_exists2_p): Add back the code that deals with the
28077         !GLOB_ALTDIRFUNC case.
28078         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28079         let it do the filename concatenation.
28080         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28081         * modules/glob (Depends-on): Remove openat.
28082
28083 2007-12-31  Bruno Haible  <bruno@clisp.org>
28084
28085         * modules/dirfd (License): Change to LGPLv2+.
28086         Approved by Jim Meyering.
28087
28088 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28089
28090         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28091         when multiplying M by sizeof (size_t).
28092
28093 2007-12-10  Martin Lambers  <marlam@marlam.de>
28094
28095         Override getpagesize on mingw.
28096         * lib/getpagesize.c: New file.
28097         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28098         * modules/getpagesize (Files): Add lib/getpagesize.c.
28099         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28101         REPLACE_GETPAGESIZE.
28102         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28103
28104 2007-12-25  Bruno Haible  <bruno@clisp.org>
28105
28106         * modules/localcharset (Notice): New field.
28107         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28108         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28109
28110 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28111             Bruno Haible  <bruno@clisp.org>
28112
28113         Avoid using the syntax symbol() in formatted documentation.
28114         * MODULES.html.sh (func_module): When replacing symbol() with a
28115         hyperlink, remove the parentheses. Show an error if some remain.
28116         Recognize and render the '...' syntax.
28117         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28118         Rework. Add paragraph about GCC's inlining.
28119         * doc/alloca.texi: Likewise.
28120         * doc/error.texi: Remove parentheses from symbol reference.
28121         * doc/gnulib-intro.texi: Likewise.
28122         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28123         * modules/fnmatch (Description): Reword to say "the ... function".
28124         * modules/full-read (Description): Likewise.
28125         * modules/full-write (Description): Likewise.
28126         * modules/safe-read (Description): Likewise.
28127         * modules/safe-write (Description): Likewise.
28128         * modules/strchrnul (Description): Likewise.
28129         * modules/trim (Description): Likewise.
28130         * modules/error (Description): Remove parentheses from symbol
28131         references.
28132         * modules/verror (Description): Likewise.
28133         Reported by Karl Berry.
28134
28135 2007-12-25  Bruno Haible  <bruno@clisp.org>
28136
28137         Fixup after 2007-10-16 commit.
28138         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28139
28140 2007-12-24  Bruno Haible  <bruno@clisp.org>
28141
28142         Make --enable-relocatable work with DESTDIR.
28143         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28144         to compute installdir from destprog.
28145         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28146         also set the RELOC_DESTDIR variable.
28147         Reported by Левашев Иван <octagram@bluebottle.com>.
28148
28149 2007-12-24  Bruno Haible  <bruno@clisp.org>
28150
28151         Fix link error due to xalloc_die().
28152         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28153         of xreadlink.
28154         * lib/relocwrapper.c: Update comments.
28155         * build-aux/install-reloc: Remove xreadlink.c from file list.
28156         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28157         xreadlink.c.
28158         Reported by Левашев Иван <octagram@bluebottle.com>.
28159
28160 2007-12-24  Bruno Haible  <bruno@clisp.org>
28161
28162         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28163         * lib/setenv.h: Remove file.
28164         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28165         lib/setenv.h.
28166         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28167         (Depends-on): Add stdlib.
28168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28169         gl_FUNC_UNSETENV.
28170         (Include): Replace setenv.h with <stdlib.h>.
28171         * modules/unsetenv: New file.
28172         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28173         * lib/unsetenv.c: Include <stdlib.h> first.
28174         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28175         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28176         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28177         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28178         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28179         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28181         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28182         * doc/functions/unsetenv.texi: Update.
28183         * modules/xsetenv (Depends-on): Add unsetenv.
28184         * modules/getdate (Depends-on): Likewise.
28185         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28186         * lib/xsetenv.c: Don't include setenv.h.
28187         * lib/getdate.y: Likewise.
28188         * lib/relocwrapper.c: Likewise.
28189         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28190         (Depends-on): Add stdlib.
28191         * NEWS: Mention the changes.
28192         Reported by Левашев Иван <octagram@bluebottle.com>.
28193
28194 2007-12-23  Bruno Haible  <bruno@clisp.org>
28195
28196         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28197         indentation.
28198
28199 2007-12-23  Bruno Haible  <bruno@clisp.org>
28200
28201         * lib/c-strcasestr.c: Add more comments.
28202         * lib/c-strstr.c: Likewise.
28203         * lib/mbscasestr.c: Likewise.
28204         * lib/mbsstr.c: Likewise.
28205         * lib/strcasestr.c: Likewise.
28206         * lib/memmem.c: Likewise.
28207
28208 2007-12-23  Bruno Haible  <bruno@clisp.org>
28209
28210         * tests/test-memmem.c: Include <string.h> first.
28211
28212 2007-12-22  Bruno Haible  <bruno@clisp.org>
28213
28214         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28215         the contents of $testsbase.
28216         Reported by Ralf Wildenhues.
28217
28218 2007-12-22  Bruno Haible  <bruno@clisp.org>
28219
28220         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28221         two variables local_ldadd_before, local_ldadd_last.
28222
28223 2007-12-20  Eric Blake  <ebb9@byu.net>
28224
28225         Work around circular library issue when cross-compiling.
28226         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28227         that progname.o does not need to pull in rpl_memcmp.
28228
28229 2007-12-19  Eric Blake  <ebb9@byu.net>
28230
28231         Fix memmem to avoid O(n^2) worst-case complexity.
28232         * lib/memmem.c (knuth_morris_pratt): New function.
28233         (memmem): Use it if first few naive iterations fail.
28234         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28235         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28236         * modules/memchr (License): Likewise.
28237         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28238         malloca.
28239         * tests/test-memmem.c: Rewrite, borrowing ideas from
28240         test-mbsstr1.c; the old version wouldn't even compile!
28241         * modules/memmem-tests: New file.
28242         * lib/string.in.h (rpl_memmem): Add declaration.
28243         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28245         REPLACE_MEMMEM.
28246
28247 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28250         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28251         before any system include files, and undef after them all.  This
28252         should fix a problem on VMS reported by John E. Malmberg in
28253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28254
28255 2007-12-17  Eric Blake  <ebb9@byu.net>
28256
28257         Revert addition of verify, for BSD/OS.
28258         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28259         can't handle large files, for the sake of obsolete platforms.
28260         * modules/fseeko (Depends-on): Remove verify.
28261         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28262         * doc/functions/ftello.texi (ftello): Likewise.
28263         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28264         Reported by Larry Jones.
28265
28266 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28267
28268         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28269         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28270
28271 2007-12-17  Jim Meyering  <meyering@redhat.com>
28272
28273         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28274         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28275         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28276         * modules/getcwd (Depends-on): Add openat.
28277         Reported by Petr Salinger.
28278
28279 2007-12-17  Bruno Haible  <bruno@clisp.org>
28280
28281         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28282         avoid a segmentation fault of the configure test on x86_64 systems.
28283
28284 2007-12-15  Jim Meyering  <meyering@redhat.com>
28285
28286         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28287
28288 2007-12-13  Eric Blake  <ebb9@byu.net>
28289
28290         Another fseek test.
28291         * tests/test-fseek.c (main): Also test ungetc handling.
28292         * tests/test-fseeko.c (main): Likewise.
28293         * modules/fseeko (Depends-on): Add verify.
28294         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28295         large.
28296         Reported by Larry Jones.
28297
28298         Fix fseeko on mingw.
28299         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28300         seek.
28301
28302         Beef up fseek tests.
28303         * tests/test-fseek.c (main): Also test eof handling.
28304         * tests/test-fseeko.c (main): Likewise.
28305         Reported by Larry Jones.
28306
28307 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28308
28309         Fix fseeko on BSD-based platforms.
28310         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28311         successful seek.
28312
28313 2007-12-12  Eric Blake  <ebb9@byu.net>
28314
28315         Allow circular dependency of separate libtests.a
28316         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28317         when use_libtests.
28318
28319 2007-12-11  Eric Blake  <ebb9@byu.net>
28320
28321         Fix bug with -0.0L in previous patch.
28322         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28323         * tests/test-isnan.c (main): Also test on zeroes.
28324         * tests/test-isnanf.c (main): Likewise.
28325         * tests/test-isnanl.h (main): Likewise.
28326
28327         Detect pseudo-denormals on x86 even when cross-compiling.
28328         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28329         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28330         invalid bit patterns that happen to satisfy ==.
28331
28332         Avoid link failures with separate libtests.a.
28333         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28334         last, to satisfy circular dependencies.
28335
28336 2007-12-11  Eric Blake  <ebb9@byu.net>
28337         and Bruno Haible  <bruno@clisp.org>
28338
28339         Fix OpenBSD 4.0 <float.h> handling of long double.
28340         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28341         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28342         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28343
28344 2007-12-11  Jim Meyering  <meyering@redhat.com>
28345
28346         * users.txt: Add libvirt.
28347
28348         Support versions of autoconf prior to 2.59c.
28349         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28350         if it is not already defined.
28351
28352 2007-12-09  Bruno Haible  <bruno@clisp.org>
28353
28354         Let 'gnulib-tool --import' collect sources needed for the tests in
28355         tests/ rather than in lib/.
28356         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28357         argument. If true, add rules to generate libtests.a, and put libtests.a
28358         into $(LDADD). Consider source files in subdirectories and set
28359         uses_subdirs.
28360         (func_emit_initmacro_start, func_emit_initmacro_end,
28361         func_emit_initmacro_done): Pass all arguments explicitly.
28362         (func_import): Determine two module lists main_modules,
28363         testsrelated_modules. Determine use_libtests. Determine two variables
28364         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28365         instead of just sed_transform_lib_file. Determine two variables
28366         main_files and testsrelated_files. Compute 'files' as the union of
28367         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28368         func_add_or_update. In the generated gnulib-comp.m4, collect the
28369         object files for tests/ in different variables than those for lib/.
28370         Substitute LIBTESTS_LIBDEPS.
28371         (func_create_testdir): Combine the uses_subdirs results from
28372         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28373
28374 2007-12-09  Bruno Haible  <bruno@clisp.org>
28375
28376         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28377         the build-aux directory.
28378
28379 2007-12-09  Bruno Haible  <bruno@clisp.org>
28380
28381         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28382         introduced on 2006-09-09.
28383
28384 2007-12-07  Jim Meyering  <meyering@redhat.com>
28385
28386         Let these macros work also with autoconf-2.59.
28387         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28388         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28390
28391 2007-12-06  Jim Meyering  <meyering@redhat.com>
28392
28393         Avoid a configure-time syntax error in gl_FUNC_ACL.
28394         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28395         function in each branch, before testing the cache variable.
28396
28397 2007-12-04  Eric Blake  <ebb9@byu.net>
28398
28399         Make scripts executable.
28400         * build-aux/config.guess: Add execute permissions.
28401         * build-aux/config.sub: Likewise.
28402         * build-aux/gendocs.sh: Likewise.
28403
28404         Fix frexp on mingw.
28405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28406         cross-compiling.
28407         * doc/functions/frexp.texi (frexp): Document the bug.
28408
28409         Make cygwin fseeko check more reliable.
28410         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28411         version numbers, rather than unrelated feature check.
28412         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28413         * doc/functions/ftello.texi (ftello): Likewise.
28414         Reported by Bruno Haible.
28415
28416         * m4/strerror.m4: Bump version number.
28417
28418 2007-12-03  Bruno Haible  <bruno@clisp.org>
28419
28420         * doc/functions/mprotect.texi: Mention the mingw problem.
28421
28422 2007-12-03  Eric Blake  <ebb9@byu.net>
28423
28424         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28425         REPLACE_STRERROR is initialized before this macro.
28426
28427 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28428
28429         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28430         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28431         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28432         put -lsec in even for programs other than 'ls'.  This fixes a problem
28433         for gettext reported by Bruno Haible in
28434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28435         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28436         Add support for Solaris 10.  This isn't efficient, but should get the
28437         job done for now.
28438
28439 2007-12-03  James Youngman  <jay@gnu.org>
28440
28441         * doc/regexprops-generic.texi: change "an close-group" to "a
28442         close-group" and "illegal" to "not allowed".
28443
28444 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28445
28446         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28447         pr_byname.h. Needed for the rare case when the maintainer has done
28448         "make maintainer-clean" in the source directory and then attempts a
28449         build outside the source directory.
28450         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28451         scripts_byname.h.
28452
28453 2007-12-02  Martin Lambers <marlam@marlam.de>
28454             Bruno Haible  <bruno@clisp.org>
28455
28456         * lib/getpagesize.h: Remove file.
28457         * lib/unistd.in.h: Include declaration of getpagesize here.
28458         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28459         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28460         HAVE_SYS_PARAM_H.
28461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28462         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28463         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28464         (Depends-on): Add unistd.
28465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28466         (Include): Use <unistd.h> instead of getpagesize.h.
28467         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28468         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28469         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28470         gl_GETPAGESIZE invocation, already handled by module dependency.
28471         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28472
28473 2007-12-02  Bruno Haible  <bruno@clisp.org>
28474
28475         * modules/strings-tests: New file.
28476         * tests/test-strings.c: New file.
28477
28478         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28479         * lib/strings.in.h: New file.
28480         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28481         * m4/strings_h.m4: New file.
28482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28483         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28484         * modules/strings: New file.
28485         * modules/string (Makefile.am): Update.
28486         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28487         Reported by Karl Berry.
28488
28489 2007-12-01  Eric Blake  <ebb9@byu.net>
28490
28491         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28492         accomodate fix in cygwin 1.5.25.
28493
28494 2007-12-01  Jim Meyering  <meyering@redhat.com>
28495
28496         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28497         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28498         that would inhibit utf8-optimization of a regexp containing line-
28499         or buffer-anchors, e.g., `^', `$'.
28500
28501 2007-11-30  Bruno Haible  <bruno@clisp.org>
28502
28503         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28504         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28505         glthread_recursive_lock_init.
28506         * lib/lock.c (glthread_recursive_lock_init)
28507         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28508         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28509
28510 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28511
28512         New function qset_acl, like set_acl but with syscall semantics.
28513         * lib/acl.h (qset_acl): New decl.
28514         * lib/acl.c (qset_acl): New function.
28515         (set_acl): Use new function.  Use more-consistent diagnostics.
28516
28517 2007-11-28  Jim Meyering  <meyering@redhat.com>
28518
28519         * modules/physmem (License): Change from GPL to LGPLv2+.
28520
28521 2007-11-26  Bruno Haible  <bruno@clisp.org>
28522
28523         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28524         'long double' type has excess precision.
28525         Reported by Jim Meyering in
28526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28527
28528 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28529
28530         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28531         Sync from <http://gnu.org/licenses>.
28532         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28533         with license text from same location.
28534         * doc/maintain.texi, doc/standards.texi:  Sync from
28535         <http://savannah.gnu.org/projects/gnustandards>.
28536
28537 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28538         and Jim Meyering  <meyering@redhat.com>
28539
28540         Adjust getdate' grammar to accept a slightly more regular language.
28541         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28542         Before, the former was rejected.
28543         * lib/getdate.y (digits_to_date_time): New function, factored
28544         out of ...
28545         (number): ...here.  Just call digits_to_date_time.
28546         (hybrid): New non-terminal to handle an <unsigned number,
28547         signed relative offset> sequence consistently.
28548
28549 2007-11-18  Jim Meyering  <meyering@redhat.com>
28550
28551         Pull my changes from coreutils:
28552         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28553         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28554         use of $gnulib_tool_option_extras, so that it's separated from the
28555         preceding argument.
28556
28557         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28558         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28559         parent destination directories before copying a file into place.
28560
28561 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28562
28563         bootstrap: work also with 4-argument variant of AC_INIT
28564         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28565
28566 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28567
28568         Port test-getaddrinfo to Solaris.
28569         Problem reported by Bruno Haible in
28570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28571         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28572         explanation of setting 'hints'.
28573         Don't reject an implementation merely because it returns EAI_SERVICE.
28574         (EAI_SERVICE): Define to 0 if not defined.
28575
28576 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28577
28578         The license of gnu-make and posix-shell is now "GPLed build tool".
28579         * modules/gnu-make (License): Likewise.
28580         * modules/posix-shell (License): Likewise.
28581
28582         New module posix-shell, for determining a POSIX shell
28583         or perhaps something that is close enough to a POSIX shell.
28584         * m4/posix-shell.m4: New file.
28585         * modules/posix-shell: New file.
28586
28587         * MODULES.html.sh: Mention new module.
28588
28589         New module gnu-make, for determining whether we're using GNU Make.
28590         * m4/gnu-make.m4: New file.
28591         * modules/gnu-make: New file.
28592         * MODULES.html.sh: Mention new module.
28593
28594 2007-11-14  Jim Meyering  <meyering@redhat.com>
28595
28596         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28597         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28598         use this macro to create a function _definition_.
28599         Remove useless "#undef ARGMATCH_DIE".
28600
28601 2007-11-14  Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/config.charset: Update for OpenBSD 4.1.
28604         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28605
28606 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28607
28608         Document 64-bit #if problems in stdint.texi.
28609         * doc/headers/stdint.texi (stdint.h): Mention problems with
28610         64-bit-#if, and how to work around them.
28611
28612         Don't insist on 'long long int' support in the preprocessor.  It
28613         breaks too many things.  For example, PRIdMAX still uses a 'long
28614         long int' format with the latest Sun compiler, even though
28615         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28616         preprocessor problem.  This causes the latest coreutils to dump
28617         core on Solaris 10 sparc with the Sun C compiler.
28618         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28619         the troublesome expressions at configure-time, not at #if-time.
28620         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28621         preprocessor.
28622         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28623         compile-time C checks, done at 'configure'-time.
28624         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28625         * modules/inttypes (Makefile): Substitute the new symbols that
28626         gl_INTTYPES_H now generates.
28627         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28628
28629 2007-11-12  Bruno Haible  <bruno@clisp.org>
28630
28631         Tests for Unicode character classification functions.
28632
28633         * modules/unictype/bidicategory-byname-tests: New file.
28634         * modules/unictype/bidicategory-name-tests: New file.
28635         * modules/unictype/bidicategory-of-tests: New file.
28636         * modules/unictype/bidicategory-test-tests: New file.
28637         * modules/unictype/block-list-tests: New file.
28638         * modules/unictype/block-of-tests: New file.
28639         * modules/unictype/block-test-tests: New file.
28640         * modules/unictype/category-C-tests: New file.
28641         * modules/unictype/category-Cc-tests: New file.
28642         * modules/unictype/category-Cf-tests: New file.
28643         * modules/unictype/category-Cn-tests: New file.
28644         * modules/unictype/category-Co-tests: New file.
28645         * modules/unictype/category-Cs-tests: New file.
28646         * modules/unictype/category-L-tests: New file.
28647         * modules/unictype/category-Ll-tests: New file.
28648         * modules/unictype/category-Lm-tests: New file.
28649         * modules/unictype/category-Lo-tests: New file.
28650         * modules/unictype/category-Lt-tests: New file.
28651         * modules/unictype/category-Lu-tests: New file.
28652         * modules/unictype/category-M-tests: New file.
28653         * modules/unictype/category-Mc-tests: New file.
28654         * modules/unictype/category-Me-tests: New file.
28655         * modules/unictype/category-Mn-tests: New file.
28656         * modules/unictype/category-N-tests: New file.
28657         * modules/unictype/category-Nd-tests: New file.
28658         * modules/unictype/category-Nl-tests: New file.
28659         * modules/unictype/category-No-tests: New file.
28660         * modules/unictype/category-P-tests: New file.
28661         * modules/unictype/category-Pc-tests: New file.
28662         * modules/unictype/category-Pd-tests: New file.
28663         * modules/unictype/category-Pe-tests: New file.
28664         * modules/unictype/category-Pf-tests: New file.
28665         * modules/unictype/category-Pi-tests: New file.
28666         * modules/unictype/category-Po-tests: New file.
28667         * modules/unictype/category-Ps-tests: New file.
28668         * modules/unictype/category-S-tests: New file.
28669         * modules/unictype/category-Sc-tests: New file.
28670         * modules/unictype/category-Sk-tests: New file.
28671         * modules/unictype/category-Sm-tests: New file.
28672         * modules/unictype/category-So-tests: New file.
28673         * modules/unictype/category-Z-tests: New file.
28674         * modules/unictype/category-Zl-tests: New file.
28675         * modules/unictype/category-Zp-tests: New file.
28676         * modules/unictype/category-Zs-tests: New file.
28677         * modules/unictype/category-and-not-tests: New file.
28678         * modules/unictype/category-and-tests: New file.
28679         * modules/unictype/category-byname-tests: New file.
28680         * modules/unictype/category-name-tests: New file.
28681         * modules/unictype/category-none-tests: New file.
28682         * modules/unictype/category-of-tests: New file.
28683         * modules/unictype/category-or-tests: New file.
28684         * modules/unictype/category-test-withtable-tests: New file.
28685         * modules/unictype/combining-class-tests: New file.
28686         * modules/unictype/ctype-alnum-tests: New file.
28687         * modules/unictype/ctype-alpha-tests: New file.
28688         * modules/unictype/ctype-blank-tests: New file.
28689         * modules/unictype/ctype-cntrl-tests: New file.
28690         * modules/unictype/ctype-digit-tests: New file.
28691         * modules/unictype/ctype-graph-tests: New file.
28692         * modules/unictype/ctype-lower-tests: New file.
28693         * modules/unictype/ctype-print-tests: New file.
28694         * modules/unictype/ctype-punct-tests: New file.
28695         * modules/unictype/ctype-space-tests: New file.
28696         * modules/unictype/ctype-upper-tests: New file.
28697         * modules/unictype/ctype-xdigit-tests: New file.
28698         * modules/unictype/decimal-digit-tests: New file.
28699         * modules/unictype/digit-tests: New file.
28700         * modules/unictype/mirror-tests: New file.
28701         * modules/unictype/numeric-tests: New file.
28702         * modules/unictype/property-alphabetic-tests: New file.
28703         * modules/unictype/property-ascii-hex-digit-tests: New file.
28704         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28705         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28706         * modules/unictype/property-bidi-block-separator-tests: New file.
28707         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28708         * modules/unictype/property-bidi-common-separator-tests: New file.
28709         * modules/unictype/property-bidi-control-tests: New file.
28710         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28711         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28712         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28713         * modules/unictype/property-bidi-european-digit-tests: New file.
28714         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28715         * modules/unictype/property-bidi-left-to-right-tests: New file.
28716         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28717         * modules/unictype/property-bidi-other-neutral-tests: New file.
28718         * modules/unictype/property-bidi-pdf-tests: New file.
28719         * modules/unictype/property-bidi-segment-separator-tests: New file.
28720         * modules/unictype/property-bidi-whitespace-tests: New file.
28721         * modules/unictype/property-byname-tests: New file.
28722         * modules/unictype/property-combining-tests: New file.
28723         * modules/unictype/property-composite-tests: New file.
28724         * modules/unictype/property-currency-symbol-tests: New file.
28725         * modules/unictype/property-dash-tests: New file.
28726         * modules/unictype/property-decimal-digit-tests: New file.
28727         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28728         * modules/unictype/property-deprecated-tests: New file.
28729         * modules/unictype/property-diacritic-tests: New file.
28730         * modules/unictype/property-extender-tests: New file.
28731         * modules/unictype/property-format-control-tests: New file.
28732         * modules/unictype/property-grapheme-base-tests: New file.
28733         * modules/unictype/property-grapheme-extend-tests: New file.
28734         * modules/unictype/property-grapheme-link-tests: New file.
28735         * modules/unictype/property-hex-digit-tests: New file.
28736         * modules/unictype/property-hyphen-tests: New file.
28737         * modules/unictype/property-id-continue-tests: New file.
28738         * modules/unictype/property-id-start-tests: New file.
28739         * modules/unictype/property-ideographic-tests: New file.
28740         * modules/unictype/property-ids-binary-operator-tests: New file.
28741         * modules/unictype/property-ids-trinary-operator-tests: New file.
28742         * modules/unictype/property-ignorable-control-tests: New file.
28743         * modules/unictype/property-iso-control-tests: New file.
28744         * modules/unictype/property-join-control-tests: New file.
28745         * modules/unictype/property-left-of-pair-tests: New file.
28746         * modules/unictype/property-line-separator-tests: New file.
28747         * modules/unictype/property-logical-order-exception-tests: New file.
28748         * modules/unictype/property-lowercase-tests: New file.
28749         * modules/unictype/property-math-tests: New file.
28750         * modules/unictype/property-non-break-tests: New file.
28751         * modules/unictype/property-not-a-character-tests: New file.
28752         * modules/unictype/property-numeric-tests: New file.
28753         * modules/unictype/property-other-alphabetic-tests: New file.
28754         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28755         * modules/unictype/property-other-grapheme-extend-tests: New file.
28756         * modules/unictype/property-other-id-continue-tests: New file.
28757         * modules/unictype/property-other-id-start-tests: New file.
28758         * modules/unictype/property-other-lowercase-tests: New file.
28759         * modules/unictype/property-other-math-tests: New file.
28760         * modules/unictype/property-other-uppercase-tests: New file.
28761         * modules/unictype/property-paired-punctuation-tests: New file.
28762         * modules/unictype/property-paragraph-separator-tests: New file.
28763         * modules/unictype/property-pattern-syntax-tests: New file.
28764         * modules/unictype/property-pattern-white-space-tests: New file.
28765         * modules/unictype/property-private-use-tests: New file.
28766         * modules/unictype/property-punctuation-tests: New file.
28767         * modules/unictype/property-quotation-mark-tests: New file.
28768         * modules/unictype/property-radical-tests: New file.
28769         * modules/unictype/property-sentence-terminal-tests: New file.
28770         * modules/unictype/property-soft-dotted-tests: New file.
28771         * modules/unictype/property-space-tests: New file.
28772         * modules/unictype/property-terminal-punctuation-tests: New file.
28773         * modules/unictype/property-test-tests: New file.
28774         * modules/unictype/property-titlecase-tests: New file.
28775         * modules/unictype/property-unassigned-code-value-tests: New file.
28776         * modules/unictype/property-unified-ideograph-tests: New file.
28777         * modules/unictype/property-uppercase-tests: New file.
28778         * modules/unictype/property-variation-selector-tests: New file.
28779         * modules/unictype/property-white-space-tests: New file.
28780         * modules/unictype/property-xid-continue-tests: New file.
28781         * modules/unictype/property-xid-start-tests: New file.
28782         * modules/unictype/property-zero-width-tests: New file.
28783         * modules/unictype/scripts-tests: New file.
28784         * modules/unictype/syntax-c-ident-tests: New file.
28785         * modules/unictype/syntax-c-whitespace-tests: New file.
28786         * modules/unictype/syntax-java-ident-tests: New file.
28787         * modules/unictype/syntax-java-whitespace-tests: New file.
28788         * tests/unictype/test-bidi_byname.c: New file.
28789         * tests/unictype/test-bidi_name.c: New file.
28790         * tests/unictype/test-bidi_of.c: New file.
28791         * tests/unictype/test-bidi_test.c: New file.
28792         * tests/unictype/test-block_list.c: New file.
28793         * tests/unictype/test-block_of.c: New file.
28794         * tests/unictype/test-block_test.c: New file.
28795         * tests/unictype/test-categ_and.c: New file.
28796         * tests/unictype/test-categ_and_not.c: New file.
28797         * tests/unictype/test-categ_byname.c: New file.
28798         * tests/unictype/test-categ_name.c: New file.
28799         * tests/unictype/test-categ_none.c: New file.
28800         * tests/unictype/test-categ_of.c: New file.
28801         * tests/unictype/test-categ_or.c: New file.
28802         * tests/unictype/test-categ_test_withtable.c: New file.
28803         * tests/unictype/test-combining.c: New file.
28804         * tests/unictype/test-decdigit.c: New file.
28805         * tests/unictype/test-digit.c: New file.
28806         * tests/unictype/test-mirror.c: New file.
28807         * tests/unictype/test-numeric.c: New file.
28808         * tests/unictype/test-pr_byname.c: New file.
28809         * tests/unictype/test-pr_test.c: New file.
28810         * tests/unictype/test-predicate-part1.h: New file.
28811         * tests/unictype/test-predicate-part2.h: New file.
28812         * tests/unictype/test-scripts.c: New file.
28813         * tests/unictype/test-sy_c_ident.c: New file.
28814         * tests/unictype/test-sy_java_ident.c: New file.
28815
28816         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28817         for Unicode 5.0.0.
28818         * tests/unictype/test-categ_Cc.c: Likewise.
28819         * tests/unictype/test-categ_Cf.c: Likewise.
28820         * tests/unictype/test-categ_Cn.c: Likewise.
28821         * tests/unictype/test-categ_Co.c: Likewise.
28822         * tests/unictype/test-categ_Cs.c: Likewise.
28823         * tests/unictype/test-categ_L.c: Likewise.
28824         * tests/unictype/test-categ_Ll.c: Likewise.
28825         * tests/unictype/test-categ_Lm.c: Likewise.
28826         * tests/unictype/test-categ_Lo.c: Likewise.
28827         * tests/unictype/test-categ_Lt.c: Likewise.
28828         * tests/unictype/test-categ_Lu.c: Likewise.
28829         * tests/unictype/test-categ_M.c: Likewise.
28830         * tests/unictype/test-categ_Mc.c: Likewise.
28831         * tests/unictype/test-categ_Me.c: Likewise.
28832         * tests/unictype/test-categ_Mn.c: Likewise.
28833         * tests/unictype/test-categ_N.c: Likewise.
28834         * tests/unictype/test-categ_Nd.c: Likewise.
28835         * tests/unictype/test-categ_Nl.c: Likewise.
28836         * tests/unictype/test-categ_No.c: Likewise.
28837         * tests/unictype/test-categ_P.c: Likewise.
28838         * tests/unictype/test-categ_Pc.c: Likewise.
28839         * tests/unictype/test-categ_Pd.c: Likewise.
28840         * tests/unictype/test-categ_Pe.c: Likewise.
28841         * tests/unictype/test-categ_Pf.c: Likewise.
28842         * tests/unictype/test-categ_Pi.c: Likewise.
28843         * tests/unictype/test-categ_Po.c: Likewise.
28844         * tests/unictype/test-categ_Ps.c: Likewise.
28845         * tests/unictype/test-categ_S.c: Likewise.
28846         * tests/unictype/test-categ_Sc.c: Likewise.
28847         * tests/unictype/test-categ_Sk.c: Likewise.
28848         * tests/unictype/test-categ_Sm.c: Likewise.
28849         * tests/unictype/test-categ_So.c: Likewise.
28850         * tests/unictype/test-categ_Z.c: Likewise.
28851         * tests/unictype/test-categ_Zl.c: Likewise.
28852         * tests/unictype/test-categ_Zp.c: Likewise.
28853         * tests/unictype/test-categ_Zs.c: Likewise.
28854         * tests/unictype/test-ctype_alnum.c: Likewise.
28855         * tests/unictype/test-ctype_alpha.c: Likewise.
28856         * tests/unictype/test-ctype_blank.c: Likewise.
28857         * tests/unictype/test-ctype_cntrl.c: Likewise.
28858         * tests/unictype/test-ctype_digit.c: Likewise.
28859         * tests/unictype/test-ctype_graph.c: Likewise.
28860         * tests/unictype/test-ctype_lower.c: Likewise.
28861         * tests/unictype/test-ctype_print.c: Likewise.
28862         * tests/unictype/test-ctype_punct.c: Likewise.
28863         * tests/unictype/test-ctype_space.c: Likewise.
28864         * tests/unictype/test-ctype_upper.c: Likewise.
28865         * tests/unictype/test-ctype_xdigit.c: Likewise.
28866         * tests/unictype/test-decdigit.h: Likewise.
28867         * tests/unictype/test-digit.h: Likewise.
28868         * tests/unictype/test-numeric.h: Likewise.
28869         * tests/unictype/test-pr_alphabetic.c: Likewise.
28870         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28871         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28872         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28873         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28874         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28875         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28876         * tests/unictype/test-pr_bidi_control.c: Likewise.
28877         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28878         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28879         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28880         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28881         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28882         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28883         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28884         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28885         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28886         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28887         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28888         * tests/unictype/test-pr_combining.c: Likewise.
28889         * tests/unictype/test-pr_composite.c: Likewise.
28890         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28891         * tests/unictype/test-pr_dash.c: Likewise.
28892         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28893         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28894         * tests/unictype/test-pr_deprecated.c: Likewise.
28895         * tests/unictype/test-pr_diacritic.c: Likewise.
28896         * tests/unictype/test-pr_extender.c: Likewise.
28897         * tests/unictype/test-pr_format_control.c: Likewise.
28898         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28899         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28900         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28901         * tests/unictype/test-pr_hex_digit.c: Likewise.
28902         * tests/unictype/test-pr_hyphen.c: Likewise.
28903         * tests/unictype/test-pr_id_continue.c: Likewise.
28904         * tests/unictype/test-pr_id_start.c: Likewise.
28905         * tests/unictype/test-pr_ideographic.c: Likewise.
28906         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28907         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28908         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28909         * tests/unictype/test-pr_iso_control.c: Likewise.
28910         * tests/unictype/test-pr_join_control.c: Likewise.
28911         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28912         * tests/unictype/test-pr_line_separator.c: Likewise.
28913         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28914         * tests/unictype/test-pr_lowercase.c: Likewise.
28915         * tests/unictype/test-pr_math.c: Likewise.
28916         * tests/unictype/test-pr_non_break.c: Likewise.
28917         * tests/unictype/test-pr_not_a_character.c: Likewise.
28918         * tests/unictype/test-pr_numeric.c: Likewise.
28919         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28920         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28921         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28922         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28923         * tests/unictype/test-pr_other_id_start.c: Likewise.
28924         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28925         * tests/unictype/test-pr_other_math.c: Likewise.
28926         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28927         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28928         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28929         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28930         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28931         * tests/unictype/test-pr_private_use.c: Likewise.
28932         * tests/unictype/test-pr_punctuation.c: Likewise.
28933         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28934         * tests/unictype/test-pr_radical.c: Likewise.
28935         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28936         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28937         * tests/unictype/test-pr_space.c: Likewise.
28938         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28939         * tests/unictype/test-pr_titlecase.c: Likewise.
28940         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28941         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28942         * tests/unictype/test-pr_uppercase.c: Likewise.
28943         * tests/unictype/test-pr_variation_selector.c: Likewise.
28944         * tests/unictype/test-pr_white_space.c: Likewise.
28945         * tests/unictype/test-pr_xid_continue.c: Likewise.
28946         * tests/unictype/test-pr_xid_start.c: Likewise.
28947         * tests/unictype/test-pr_zero_width.c: Likewise.
28948         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28949         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28950
28951 2007-11-12  Bruno Haible  <bruno@clisp.org>
28952
28953         Unicode character classification functions.
28954         * lib/unictype.h: New file.
28955         * modules/unictype/base: New file.
28956         * modules/unictype/category-L: New file.
28957         * modules/unictype/category-Lu: New file.
28958         * modules/unictype/category-Ll: New file.
28959         * modules/unictype/category-Lt: New file.
28960         * modules/unictype/category-Lm: New file.
28961         * modules/unictype/category-Lo: New file.
28962         * modules/unictype/category-M: New file.
28963         * modules/unictype/category-Mn: New file.
28964         * modules/unictype/category-Mc: New file.
28965         * modules/unictype/category-Me: New file.
28966         * modules/unictype/category-N: New file.
28967         * modules/unictype/category-Nd: New file.
28968         * modules/unictype/category-Nl: New file.
28969         * modules/unictype/category-No: New file.
28970         * modules/unictype/category-P: New file.
28971         * modules/unictype/category-Pc: New file.
28972         * modules/unictype/category-Pd: New file.
28973         * modules/unictype/category-Ps: New file.
28974         * modules/unictype/category-Pe: New file.
28975         * modules/unictype/category-Pi: New file.
28976         * modules/unictype/category-Pf: New file.
28977         * modules/unictype/category-Po: New file.
28978         * modules/unictype/category-S: New file.
28979         * modules/unictype/category-Sm: New file.
28980         * modules/unictype/category-Sc: New file.
28981         * modules/unictype/category-Sk: New file.
28982         * modules/unictype/category-So: New file.
28983         * modules/unictype/category-Z: New file.
28984         * modules/unictype/category-Zs: New file.
28985         * modules/unictype/category-Zl: New file.
28986         * modules/unictype/category-Zp: New file.
28987         * modules/unictype/category-C: New file.
28988         * modules/unictype/category-Cc: New file.
28989         * modules/unictype/category-Cf: New file.
28990         * modules/unictype/category-Cs: New file.
28991         * modules/unictype/category-Co: New file.
28992         * modules/unictype/category-Cn: New file.
28993         * modules/unictype/category-or: New file.
28994         * modules/unictype/category-of: New file.
28995         * modules/unictype/category-test: New file.
28996         * modules/unictype/category-test-withtable: New file.
28997         * modules/unictype/category-byname: New file.
28998         * modules/unictype/category-none: New file.
28999         * modules/unictype/category-and: New file.
29000         * modules/unictype/category-and-not: New file.
29001         * modules/unictype/category-name: New file.
29002         * modules/unictype/combining-class: New file.
29003         * modules/unictype/category-all: New file.
29004         * modules/unictype/bidicategory-all: New file.
29005         * modules/unictype/bidicategory-byname: New file.
29006         * modules/unictype/bidicategory-name: New file.
29007         * modules/unictype/bidicategory-of: New file.
29008         * modules/unictype/bidicategory-test: New file.
29009         * modules/unictype/decimal-digit: New file.
29010         * modules/unictype/digit: New file.
29011         * modules/unictype/numeric: New file.
29012         * modules/unictype/mirror: New file.
29013         * modules/unictype/property-white-space: New file.
29014         * modules/unictype/property-alphabetic: New file.
29015         * modules/unictype/property-other-alphabetic: New file.
29016         * modules/unictype/property-not-a-character: New file.
29017         * modules/unictype/property-default-ignorable-code-point: New file.
29018         * modules/unictype/property-other-default-ignorable-code-point: New
29019         file.
29020         * modules/unictype/property-deprecated: New file.
29021         * modules/unictype/property-logical-order-exception: New file.
29022         * modules/unictype/property-variation-selector: New file.
29023         * modules/unictype/property-private-use: New file.
29024         * modules/unictype/property-unassigned-code-value: New file.
29025         * modules/unictype/property-uppercase: New file.
29026         * modules/unictype/property-other-uppercase: New file.
29027         * modules/unictype/property-lowercase: New file.
29028         * modules/unictype/property-other-lowercase: New file.
29029         * modules/unictype/property-titlecase: New file.
29030         * modules/unictype/property-soft-dotted: New file.
29031         * modules/unictype/property-id-start: New file.
29032         * modules/unictype/property-other-id-start: New file.
29033         * modules/unictype/property-id-continue: New file.
29034         * modules/unictype/property-other-id-continue: New file.
29035         * modules/unictype/property-xid-start: New file.
29036         * modules/unictype/property-xid-continue: New file.
29037         * modules/unictype/property-pattern-white-space: New file.
29038         * modules/unictype/property-pattern-syntax: New file.
29039         * modules/unictype/property-join-control: New file.
29040         * modules/unictype/property-grapheme-base: New file.
29041         * modules/unictype/property-grapheme-extend: New file.
29042         * modules/unictype/property-other-grapheme-extend: New file.
29043         * modules/unictype/property-grapheme-link: New file.
29044         * modules/unictype/property-bidi-control: New file.
29045         * modules/unictype/property-bidi-left-to-right: New file.
29046         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29047         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29048         * modules/unictype/property-bidi-european-digit: New file.
29049         * modules/unictype/property-bidi-eur-num-separator: New file.
29050         * modules/unictype/property-bidi-eur-num-terminator: New file.
29051         * modules/unictype/property-bidi-arabic-digit: New file.
29052         * modules/unictype/property-bidi-common-separator: New file.
29053         * modules/unictype/property-bidi-block-separator: New file.
29054         * modules/unictype/property-bidi-segment-separator: New file.
29055         * modules/unictype/property-bidi-whitespace: New file.
29056         * modules/unictype/property-bidi-non-spacing-mark: New file.
29057         * modules/unictype/property-bidi-boundary-neutral: New file.
29058         * modules/unictype/property-bidi-pdf: New file.
29059         * modules/unictype/property-bidi-embedding-or-override: New file.
29060         * modules/unictype/property-bidi-other-neutral: New file.
29061         * modules/unictype/property-hex-digit: New file.
29062         * modules/unictype/property-ascii-hex-digit: New file.
29063         * modules/unictype/property-ideographic: New file.
29064         * modules/unictype/property-unified-ideograph: New file.
29065         * modules/unictype/property-radical: New file.
29066         * modules/unictype/property-ids-binary-operator: New file.
29067         * modules/unictype/property-ids-trinary-operator: New file.
29068         * modules/unictype/property-zero-width: New file.
29069         * modules/unictype/property-space: New file.
29070         * modules/unictype/property-non-break: New file.
29071         * modules/unictype/property-iso-control: New file.
29072         * modules/unictype/property-format-control: New file.
29073         * modules/unictype/property-dash: New file.
29074         * modules/unictype/property-hyphen: New file.
29075         * modules/unictype/property-punctuation: New file.
29076         * modules/unictype/property-line-separator: New file.
29077         * modules/unictype/property-paragraph-separator: New file.
29078         * modules/unictype/property-quotation-mark: New file.
29079         * modules/unictype/property-sentence-terminal: New file.
29080         * modules/unictype/property-terminal-punctuation: New file.
29081         * modules/unictype/property-currency-symbol: New file.
29082         * modules/unictype/property-math: New file.
29083         * modules/unictype/property-other-math: New file.
29084         * modules/unictype/property-paired-punctuation: New file.
29085         * modules/unictype/property-left-of-pair: New file.
29086         * modules/unictype/property-combining: New file.
29087         * modules/unictype/property-composite: New file.
29088         * modules/unictype/property-decimal-digit: New file.
29089         * modules/unictype/property-numeric: New file.
29090         * modules/unictype/property-diacritic: New file.
29091         * modules/unictype/property-extender: New file.
29092         * modules/unictype/property-ignorable-control: New file.
29093         * modules/unictype/property-test: New file.
29094         * modules/unictype/property-byname: New file.
29095         * modules/unictype/property-all: New file.
29096         * modules/unictype/scripts: New file.
29097         * modules/unictype/scripts-all: New file.
29098         * modules/unictype/block-of: New file.
29099         * modules/unictype/block-test: New file.
29100         * modules/unictype/block-list: New file.
29101         * modules/unictype/block-all: New file.
29102         * modules/unictype/syntax-c-whitespace: New file.
29103         * modules/unictype/syntax-java-whitespace: New file.
29104         * modules/unictype/syntax-c-ident: New file.
29105         * modules/unictype/syntax-java-ident: New file.
29106         * modules/unictype/ctype-alnum: New file.
29107         * modules/unictype/ctype-alpha: New file.
29108         * modules/unictype/ctype-cntrl: New file.
29109         * modules/unictype/ctype-digit: New file.
29110         * modules/unictype/ctype-graph: New file.
29111         * modules/unictype/ctype-lower: New file.
29112         * modules/unictype/ctype-print: New file.
29113         * modules/unictype/ctype-punct: New file.
29114         * modules/unictype/ctype-space: New file.
29115         * modules/unictype/ctype-upper: New file.
29116         * modules/unictype/ctype-xdigit: New file.
29117         * modules/unictype/ctype-blank: New file.
29118         * lib/unictype/bidi_byname.c: New file.
29119         * lib/unictype/bidi_name.c: New file.
29120         * lib/unictype/bidi_of.c: New file.
29121         * lib/unictype/bidi_test.c: New file.
29122         * lib/unictype/bitmap.h: New file.
29123         * lib/unictype/block_test.c: New file.
29124         * lib/unictype/blocks.c: New file.
29125         * lib/unictype/categ_C.c: New file.
29126         * lib/unictype/categ_Cc.c: New file.
29127         * lib/unictype/categ_Cf.c: New file.
29128         * lib/unictype/categ_Cn.c: New file.
29129         * lib/unictype/categ_Co.c: New file.
29130         * lib/unictype/categ_Cs.c: New file.
29131         * lib/unictype/categ_L.c: New file.
29132         * lib/unictype/categ_Ll.c: New file.
29133         * lib/unictype/categ_Lm.c: New file.
29134         * lib/unictype/categ_Lo.c: New file.
29135         * lib/unictype/categ_Lt.c: New file.
29136         * lib/unictype/categ_Lu.c: New file.
29137         * lib/unictype/categ_M.c: New file.
29138         * lib/unictype/categ_Mc.c: New file.
29139         * lib/unictype/categ_Me.c: New file.
29140         * lib/unictype/categ_Mn.c: New file.
29141         * lib/unictype/categ_N.c: New file.
29142         * lib/unictype/categ_Nd.c: New file.
29143         * lib/unictype/categ_Nl.c: New file.
29144         * lib/unictype/categ_No.c: New file.
29145         * lib/unictype/categ_P.c: New file.
29146         * lib/unictype/categ_Pc.c: New file.
29147         * lib/unictype/categ_Pd.c: New file.
29148         * lib/unictype/categ_Pe.c: New file.
29149         * lib/unictype/categ_Pf.c: New file.
29150         * lib/unictype/categ_Pi.c: New file.
29151         * lib/unictype/categ_Po.c: New file.
29152         * lib/unictype/categ_Ps.c: New file.
29153         * lib/unictype/categ_S.c: New file.
29154         * lib/unictype/categ_Sc.c: New file.
29155         * lib/unictype/categ_Sk.c: New file.
29156         * lib/unictype/categ_Sm.c: New file.
29157         * lib/unictype/categ_So.c: New file.
29158         * lib/unictype/categ_Z.c: New file.
29159         * lib/unictype/categ_Zl.c: New file.
29160         * lib/unictype/categ_Zp.c: New file.
29161         * lib/unictype/categ_Zs.c: New file.
29162         * lib/unictype/categ_and.c: New file.
29163         * lib/unictype/categ_and_not.c: New file.
29164         * lib/unictype/categ_byname.c: New file.
29165         * lib/unictype/categ_name.c: New file.
29166         * lib/unictype/categ_none.c: New file.
29167         * lib/unictype/categ_of.c: New file.
29168         * lib/unictype/categ_or.c: New file.
29169         * lib/unictype/categ_test.c: New file.
29170         * lib/unictype/combining.c: New file.
29171         * lib/unictype/ctype_alnum.c: New file.
29172         * lib/unictype/ctype_alpha.c: New file.
29173         * lib/unictype/ctype_blank.c: New file.
29174         * lib/unictype/ctype_cntrl.c: New file.
29175         * lib/unictype/ctype_digit.c: New file.
29176         * lib/unictype/ctype_graph.c: New file.
29177         * lib/unictype/ctype_lower.c: New file.
29178         * lib/unictype/ctype_print.c: New file.
29179         * lib/unictype/ctype_punct.c: New file.
29180         * lib/unictype/ctype_space.c: New file.
29181         * lib/unictype/ctype_upper.c: New file.
29182         * lib/unictype/ctype_xdigit.c: New file.
29183         * lib/unictype/decdigit.c: New file.
29184         * lib/unictype/digit.c: New file.
29185         * lib/unictype/identsyntaxmap.h: New file.
29186         * lib/unictype/mirror.c: New file.
29187         * lib/unictype/numeric.c: New file.
29188         * lib/unictype/pr_alphabetic.c: New file.
29189         * lib/unictype/pr_ascii_hex_digit.c: New file.
29190         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29191         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29192         * lib/unictype/pr_bidi_block_separator.c: New file.
29193         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29194         * lib/unictype/pr_bidi_common_separator.c: New file.
29195         * lib/unictype/pr_bidi_control.c: New file.
29196         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29197         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29198         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29199         * lib/unictype/pr_bidi_european_digit.c: New file.
29200         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29201         * lib/unictype/pr_bidi_left_to_right.c: New file.
29202         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29203         * lib/unictype/pr_bidi_other_neutral.c: New file.
29204         * lib/unictype/pr_bidi_pdf.c: New file.
29205         * lib/unictype/pr_bidi_segment_separator.c: New file.
29206         * lib/unictype/pr_bidi_whitespace.c: New file.
29207         * lib/unictype/pr_byname.c: New file.
29208         * lib/unictype/pr_byname.gperf: New file.
29209         * lib/unictype/pr_combining.c: New file.
29210         * lib/unictype/pr_composite.c: New file.
29211         * lib/unictype/pr_currency_symbol.c: New file.
29212         * lib/unictype/pr_dash.c: New file.
29213         * lib/unictype/pr_decimal_digit.c: New file.
29214         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29215         * lib/unictype/pr_deprecated.c: New file.
29216         * lib/unictype/pr_diacritic.c: New file.
29217         * lib/unictype/pr_extender.c: New file.
29218         * lib/unictype/pr_format_control.c: New file.
29219         * lib/unictype/pr_grapheme_base.c: New file.
29220         * lib/unictype/pr_grapheme_extend.c: New file.
29221         * lib/unictype/pr_grapheme_link.c: New file.
29222         * lib/unictype/pr_hex_digit.c: New file.
29223         * lib/unictype/pr_hyphen.c: New file.
29224         * lib/unictype/pr_id_continue.c: New file.
29225         * lib/unictype/pr_id_start.c: New file.
29226         * lib/unictype/pr_ideographic.c: New file.
29227         * lib/unictype/pr_ids_binary_operator.c: New file.
29228         * lib/unictype/pr_ids_trinary_operator.c: New file.
29229         * lib/unictype/pr_ignorable_control.c: New file.
29230         * lib/unictype/pr_iso_control.c: New file.
29231         * lib/unictype/pr_join_control.c: New file.
29232         * lib/unictype/pr_left_of_pair.c: New file.
29233         * lib/unictype/pr_line_separator.c: New file.
29234         * lib/unictype/pr_logical_order_exception.c: New file.
29235         * lib/unictype/pr_lowercase.c: New file.
29236         * lib/unictype/pr_math.c: New file.
29237         * lib/unictype/pr_non_break.c: New file.
29238         * lib/unictype/pr_not_a_character.c: New file.
29239         * lib/unictype/pr_numeric.c: New file.
29240         * lib/unictype/pr_other_alphabetic.c: New file.
29241         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29242         * lib/unictype/pr_other_grapheme_extend.c: New file.
29243         * lib/unictype/pr_other_id_continue.c: New file.
29244         * lib/unictype/pr_other_id_start.c: New file.
29245         * lib/unictype/pr_other_lowercase.c: New file.
29246         * lib/unictype/pr_other_math.c: New file.
29247         * lib/unictype/pr_other_uppercase.c: New file.
29248         * lib/unictype/pr_paired_punctuation.c: New file.
29249         * lib/unictype/pr_paragraph_separator.c: New file.
29250         * lib/unictype/pr_pattern_syntax.c: New file.
29251         * lib/unictype/pr_pattern_white_space.c: New file.
29252         * lib/unictype/pr_private_use.c: New file.
29253         * lib/unictype/pr_punctuation.c: New file.
29254         * lib/unictype/pr_quotation_mark.c: New file.
29255         * lib/unictype/pr_radical.c: New file.
29256         * lib/unictype/pr_sentence_terminal.c: New file.
29257         * lib/unictype/pr_soft_dotted.c: New file.
29258         * lib/unictype/pr_space.c: New file.
29259         * lib/unictype/pr_terminal_punctuation.c: New file.
29260         * lib/unictype/pr_test.c: New file.
29261         * lib/unictype/pr_titlecase.c: New file.
29262         * lib/unictype/pr_unassigned_code_value.c: New file.
29263         * lib/unictype/pr_unified_ideograph.c: New file.
29264         * lib/unictype/pr_uppercase.c: New file.
29265         * lib/unictype/pr_variation_selector.c: New file.
29266         * lib/unictype/pr_white_space.c: New file.
29267         * lib/unictype/pr_xid_continue.c: New file.
29268         * lib/unictype/pr_xid_start.c: New file.
29269         * lib/unictype/pr_zero_width.c: New file.
29270         * lib/unictype/scripts.c: New file.
29271         * lib/unictype/sy_c_ident.c: New file.
29272         * lib/unictype/sy_c_whitespace.c: New file.
29273         * lib/unictype/sy_java_ident.c: New file.
29274         * lib/unictype/sy_java_whitespace.c: New file.
29275
29276         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29277         Unicode 5.0.0.
29278         * lib/unictype/blocks.h: Likewise.
29279         * lib/unictype/categ_C.h: Likewise.
29280         * lib/unictype/categ_Cc.h: Likewise.
29281         * lib/unictype/categ_Cf.h: Likewise.
29282         * lib/unictype/categ_Cn.h: Likewise.
29283         * lib/unictype/categ_Co.h: Likewise.
29284         * lib/unictype/categ_Cs.h: Likewise.
29285         * lib/unictype/categ_L.h: Likewise.
29286         * lib/unictype/categ_Ll.h: Likewise.
29287         * lib/unictype/categ_Lm.h: Likewise.
29288         * lib/unictype/categ_Lo.h: Likewise.
29289         * lib/unictype/categ_Lt.h: Likewise.
29290         * lib/unictype/categ_Lu.h: Likewise.
29291         * lib/unictype/categ_M.h: Likewise.
29292         * lib/unictype/categ_Mc.h: Likewise.
29293         * lib/unictype/categ_Me.h: Likewise.
29294         * lib/unictype/categ_Mn.h: Likewise.
29295         * lib/unictype/categ_N.h: Likewise.
29296         * lib/unictype/categ_Nd.h: Likewise.
29297         * lib/unictype/categ_Nl.h: Likewise.
29298         * lib/unictype/categ_No.h: Likewise.
29299         * lib/unictype/categ_P.h: Likewise.
29300         * lib/unictype/categ_Pc.h: Likewise.
29301         * lib/unictype/categ_Pd.h: Likewise.
29302         * lib/unictype/categ_Pe.h: Likewise.
29303         * lib/unictype/categ_Pf.h: Likewise.
29304         * lib/unictype/categ_Pi.h: Likewise.
29305         * lib/unictype/categ_Po.h: Likewise.
29306         * lib/unictype/categ_Ps.h: Likewise.
29307         * lib/unictype/categ_S.h: Likewise.
29308         * lib/unictype/categ_Sc.h: Likewise.
29309         * lib/unictype/categ_Sk.h: Likewise.
29310         * lib/unictype/categ_Sm.h: Likewise.
29311         * lib/unictype/categ_So.h: Likewise.
29312         * lib/unictype/categ_Z.h: Likewise.
29313         * lib/unictype/categ_Zl.h: Likewise.
29314         * lib/unictype/categ_Zp.h: Likewise.
29315         * lib/unictype/categ_Zs.h: Likewise.
29316         * lib/unictype/categ_of.h: Likewise.
29317         * lib/unictype/combining.h: Likewise.
29318         * lib/unictype/ctype_alnum.h: Likewise.
29319         * lib/unictype/ctype_alpha.h: Likewise.
29320         * lib/unictype/ctype_blank.h: Likewise.
29321         * lib/unictype/ctype_cntrl.h: Likewise.
29322         * lib/unictype/ctype_digit.h: Likewise.
29323         * lib/unictype/ctype_graph.h: Likewise.
29324         * lib/unictype/ctype_lower.h: Likewise.
29325         * lib/unictype/ctype_print.h: Likewise.
29326         * lib/unictype/ctype_punct.h: Likewise.
29327         * lib/unictype/ctype_space.h: Likewise.
29328         * lib/unictype/ctype_upper.h: Likewise.
29329         * lib/unictype/ctype_xdigit.h: Likewise.
29330         * lib/unictype/decdigit.h: Likewise.
29331         * lib/unictype/digit.h: Likewise.
29332         * lib/unictype/mirror.h: Likewise.
29333         * lib/unictype/numeric.h: Likewise.
29334         * lib/unictype/pr_alphabetic.h: Likewise.
29335         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29336         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29337         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29338         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29339         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29340         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29341         * lib/unictype/pr_bidi_control.h: Likewise.
29342         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29343         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29344         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29345         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29346         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29347         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29348         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29349         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29350         * lib/unictype/pr_bidi_pdf.h: Likewise.
29351         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29352         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29353         * lib/unictype/pr_combining.h: Likewise.
29354         * lib/unictype/pr_composite.h: Likewise.
29355         * lib/unictype/pr_currency_symbol.h: Likewise.
29356         * lib/unictype/pr_dash.h: Likewise.
29357         * lib/unictype/pr_decimal_digit.h: Likewise.
29358         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29359         * lib/unictype/pr_deprecated.h: Likewise.
29360         * lib/unictype/pr_diacritic.h: Likewise.
29361         * lib/unictype/pr_extender.h: Likewise.
29362         * lib/unictype/pr_format_control.h: Likewise.
29363         * lib/unictype/pr_grapheme_base.h: Likewise.
29364         * lib/unictype/pr_grapheme_extend.h: Likewise.
29365         * lib/unictype/pr_grapheme_link.h: Likewise.
29366         * lib/unictype/pr_hex_digit.h: Likewise.
29367         * lib/unictype/pr_hyphen.h: Likewise.
29368         * lib/unictype/pr_id_continue.h: Likewise.
29369         * lib/unictype/pr_id_start.h: Likewise.
29370         * lib/unictype/pr_ideographic.h: Likewise.
29371         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29372         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29373         * lib/unictype/pr_ignorable_control.h: Likewise.
29374         * lib/unictype/pr_iso_control.h: Likewise.
29375         * lib/unictype/pr_join_control.h: Likewise.
29376         * lib/unictype/pr_left_of_pair.h: Likewise.
29377         * lib/unictype/pr_line_separator.h: Likewise.
29378         * lib/unictype/pr_logical_order_exception.h: Likewise.
29379         * lib/unictype/pr_lowercase.h: Likewise.
29380         * lib/unictype/pr_math.h: Likewise.
29381         * lib/unictype/pr_non_break.h: Likewise.
29382         * lib/unictype/pr_not_a_character.h: Likewise.
29383         * lib/unictype/pr_numeric.h: Likewise.
29384         * lib/unictype/pr_other_alphabetic.h: Likewise.
29385         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29386         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29387         * lib/unictype/pr_other_id_continue.h: Likewise.
29388         * lib/unictype/pr_other_id_start.h: Likewise.
29389         * lib/unictype/pr_other_lowercase.h: Likewise.
29390         * lib/unictype/pr_other_math.h: Likewise.
29391         * lib/unictype/pr_other_uppercase.h: Likewise.
29392         * lib/unictype/pr_paired_punctuation.h: Likewise.
29393         * lib/unictype/pr_paragraph_separator.h: Likewise.
29394         * lib/unictype/pr_pattern_syntax.h: Likewise.
29395         * lib/unictype/pr_pattern_white_space.h: Likewise.
29396         * lib/unictype/pr_private_use.h: Likewise.
29397         * lib/unictype/pr_punctuation.h: Likewise.
29398         * lib/unictype/pr_quotation_mark.h: Likewise.
29399         * lib/unictype/pr_radical.h: Likewise.
29400         * lib/unictype/pr_sentence_terminal.h: Likewise.
29401         * lib/unictype/pr_soft_dotted.h: Likewise.
29402         * lib/unictype/pr_space.h: Likewise.
29403         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29404         * lib/unictype/pr_titlecase.h: Likewise.
29405         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29406         * lib/unictype/pr_unified_ideograph.h: Likewise.
29407         * lib/unictype/pr_uppercase.h: Likewise.
29408         * lib/unictype/pr_variation_selector.h: Likewise.
29409         * lib/unictype/pr_white_space.h: Likewise.
29410         * lib/unictype/pr_xid_continue.h: Likewise.
29411         * lib/unictype/pr_xid_start.h: Likewise.
29412         * lib/unictype/pr_zero_width.h: Likewise.
29413         * lib/unictype/scripts.h: Likewise.
29414         * lib/unictype/scripts_byname.gperf: Likewise.
29415         * lib/unictype/sy_c_ident.h: Likewise.
29416         * lib/unictype/sy_c_whitespace.h: Likewise.
29417         * lib/unictype/sy_java_ident.h: Likewise.
29418         * lib/unictype/sy_java_whitespace.h: Likewise.
29419
29420         * lib/unictype/Makefile: New file.
29421         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29422         glibc.
29423         * lib/unictype/3level.h: New file, copied from glibc.
29424         * lib/unictype/3levelbit.h: New file.
29425
29426 2007-11-11  Bruno Haible  <bruno@clisp.org>
29427
29428         * modules/gperf: New file.
29429         * modules/iconv_open (Depends-on): Add it.
29430         (Makefile.am): Remove the GPERF definition.
29431
29432 2007-11-11  Bruno Haible  <bruno@clisp.org>
29433
29434         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29435         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29436
29437 2007-11-11  Bruno Haible  <bruno@clisp.org>
29438
29439         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29440         (usage): Remove function.
29441
29442 2007-11-11  Bruno Haible  <bruno@clisp.org>
29443
29444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29445         gl_FUNC_CEILF_LIBS.
29446         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29447         gl_FUNC_CEIL_LIBS.
29448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29449         gl_FUNC_CEILL_LIBS.
29450         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29451         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29452         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29453
29454 2007-11-11  Bruno Haible  <bruno@clisp.org>
29455
29456         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29457         roundf were declared but do not exist on functions.
29458         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29459         roundl were declared but do not exist on functions.
29460         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29461         HAVE_FLOORL_AND_CEILL, respectively.
29462         Needed for Sun C on Solaris 10.
29463
29464 2007-11-11  Bruno Haible  <bruno@clisp.org>
29465
29466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29467         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29468         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29469         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29471         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29472         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29473         HAVE_DECL_ROUNDF.
29474         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29475         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29477         of HAVE_DECL_ROUND*.
29478         * modules/math (Makefile.am): Update.
29479
29480 2007-11-10  Bruno Haible  <bruno@clisp.org>
29481
29482         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29483         ptrdiff_t as m4/intl.m4.
29484
29485 2007-11-10  Jim Meyering  <meyering@redhat.com>
29486
29487         Avoid link failure for the argmatch test.
29488         * tests/test-argmatch.c (usage): Define function to avoid a link
29489         failure: argmatch_die requires a usage function.
29490
29491 2007-11-09  Bruno Haible  <bruno@clisp.org>
29492
29493         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29494         * doc/functions/vsnprintf.texi: Likewise.
29495         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29496         with a size argument < 2.
29497
29498 2007-11-09  Bruno Haible  <bruno@clisp.org>
29499
29500         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29501         buffer. Fixes an inefficiency introduced on 2007-11-03.
29502
29503 2007-11-09  Bruno Haible  <bruno@clisp.org>
29504
29505         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29506         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29507
29508 2007-11-08  Jim Meyering  <meyering@redhat.com>
29509
29510         Change cache variable name prefix "jm_" to "gl_" everywhere.
29511         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29512         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29513         * m4/uptime.m4: s/gl_/jm_/
29514
29515 2007-11-07  Bruno Haible  <bruno@clisp.org>
29516
29517         Update to GNU gettext 0.17.
29518         * m4/intl.m4: Update to GNU gettext 0.17.
29519         * m4/po.m4: Likewise.
29520         * modules/gettext (Files): Remove m4/ulonglong.m4.
29521         (configure.ac): Require gettext infrastructure from version 0.17.
29522
29523 2007-11-06  Bruno Haible  <bruno@clisp.org>
29524
29525         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29526         symbolic values are not defined in a public header.
29527         * lib/freadable.c (freadable) [QNX]: Likewise.
29528         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29529         * lib/freading.c (freading) [QNX]: Likewise.
29530         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29531         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29532         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29533         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29534         Reported by Alain Magloire.
29535
29536         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29537
29538 2007-11-05  Bruno Haible  <bruno@clisp.org>
29539
29540         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29541         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29542         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29543         Reported by Eric Blake.
29544
29545 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29546             Bruno Haible  <bruno@clisp.org>
29547
29548         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29549         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29550         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29551         (malloc): Undefine also before including <stdlib.h>.
29552         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29553         Needed on OSF/1 4.0.
29554
29555 2007-11-05  Jim Meyering  <meyering@redhat.com>
29556
29557         git-version-gen: sync from coreutils.
29558         * build-aux/git-version-gen: Add comments.
29559         Change the first '-' to '.' in the snapshot version string,
29560         e.g., 6.9-377-08144 -> 6.9.377-08144
29561         Remove first parameter.
29562         Don't declare a version "-dirty" merely because a time
29563         stamp has changed.
29564
29565 2007-11-04  Bruno Haible  <bruno@clisp.org>
29566
29567         * lib/lock.h: Protect all macro definitions containing an 'if'
29568         statement through a "do { ... } while (0)".
29569         * lib/tls.h: Likewise.
29570
29571 2007-11-04  Bruno Haible  <bruno@clisp.org>
29572
29573         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29574
29575 2007-11-04  Bruno Haible  <bruno@clisp.org>
29576
29577         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29578         * modules/fprintf-posix (Depends-on): Add nocrash.
29579         * modules/snprintf-posix (Depends-on): Likewise.
29580         * modules/sprintf-posix (Depends-on): Likewise.
29581         * modules/vasnprintf-posix (Depends-on): Likewise.
29582         * modules/vasprintf-posix (Depends-on): Likewise.
29583         * modules/vfprintf-posix (Depends-on): Likewise.
29584         * modules/vsnprintf-posix (Depends-on): Likewise.
29585         * modules/vsprintf-posix (Depends-on): Likewise.
29586         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29587         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29588         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29589         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29590         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29591         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29592         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29593
29594 2007-11-04  Bruno Haible  <bruno@clisp.org>
29595
29596         * modules/nocrash: New file.
29597         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29598         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29599
29600 2007-11-04  Bruno Haible  <bruno@clisp.org>
29601
29602         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29603         precision handling.
29604         * tests/test-vasprintf-posix.c (test_function): Likewise.
29605         * tests/test-snprintf-posix.h (test_function): Likewise.
29606         * tests/test-sprintf-posix.h (test_function): Likewise.
29607
29608         Fix *printf behaviour for large precisions on mingw and BeOS.
29609         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29610         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29612         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29614         gl_PRINTF_PRECISION and test its result. Invoke
29615         gl_PREREQ_VASNPRINTF_PRECISION.
29616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29623         * doc/functions/fprintf.texi: Update.
29624         * doc/functions/printf.texi: Update.
29625         * doc/functions/snprintf.texi: Update.
29626         * doc/functions/sprintf.texi: Update.
29627         * doc/functions/vfprintf.texi: Update.
29628         * doc/functions/vprintf.texi: Update.
29629         * doc/functions/vsnprintf.texi: Update.
29630         * doc/functions/vsprintf.texi: Update.
29631
29632 2007-11-04  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29635
29636 2007-11-04  Bruno Haible  <bruno@clisp.org>
29637
29638         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29639         Reported by Sylvain Beucler <beuc@gnu.org>.
29640
29641 2007-11-03  Bruno Haible  <bruno@clisp.org>
29642
29643         * tests/test-fprintf-posix2.sh: New file.
29644         * tests/test-fprintf-posix2.c: New file.
29645         * modules/fprintf-posix-tests (Files): Add them.
29646         (TESTS): Add test-fprintf-posix2.sh.
29647         (configure.ac): Check for getrlimit and setrlimit.
29648         (check_PROGRAMS): Add test-fprintf-posix2.
29649
29650         * tests/test-printf-posix2.sh: New file.
29651         * tests/test-printf-posix2.c: New file.
29652         * modules/printf-posix-tests (Files): Add them.
29653         (TESTS): Add test-printf-posix2.sh.
29654         (configure.ac): Check for getrlimit and setrlimit.
29655         (check_PROGRAMS): Add test-printf-posix2.
29656
29657         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29658         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29659         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29660         (decode_double): New function, copied from decode_long_double.
29661         (scale10_round_decimal_decoded): New function, extracted from
29662         scale10_round_decimal_long_double.
29663         (scale10_round_decimal_long_double): Use it.
29664         (scale10_round_decimal_double): New function.
29665         (floorlog10): New function.
29666         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29668         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29670         gl_PRINTF_ENOMEM and test its result. Invoke
29671         gl_PREREQ_VASNPRINTF_ENOMEM.
29672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29679         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29680         * modules/snprintf-posix (Depends-on): Likewise.
29681         * modules/sprintf-posix (Depends-on): Likewise.
29682         * modules/vasnprintf-posix (Depends-on): Likewise.
29683         * modules/vasprintf-posix (Depends-on): Likewise.
29684         * modules/vfprintf-posix (Depends-on): Likewise.
29685         * modules/vsnprintf-posix (Depends-on): Likewise.
29686         * modules/vsprintf-posix (Depends-on): Likewise.
29687         * doc/functions/fprintf.texi: Update.
29688         * doc/functions/printf.texi: Update.
29689         * doc/functions/snprintf.texi: Update.
29690         * doc/functions/sprintf.texi: Update.
29691         * doc/functions/vfprintf.texi: Update.
29692         * doc/functions/vprintf.texi: Update.
29693         * doc/functions/vsnprintf.texi: Update.
29694         * doc/functions/vsprintf.texi: Update.
29695
29696 2007-11-03  Bruno Haible  <bruno@clisp.org>
29697
29698         * modules/frexp-nolibm-tests: New file.
29699
29700         * modules/frexp-nolibm: New file.
29701         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29702
29703 2007-11-03  Bruno Haible  <bruno@clisp.org>
29704
29705         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29706         value is C99 compliant.
29707         Needed for OSF/1 5.1.
29708
29709 2007-11-03  Bruno Haible  <bruno@clisp.org>
29710
29711         Fix out-of-memory handling of vasnprintf.
29712         * lib/printf-parse.c: Include <errno.h>.
29713         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29714         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29715         is already set.
29716
29717 2007-11-02  Eric Blake  <ebb9@byu.net>
29718
29719         Fix tests on cygwin.
29720         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29721
29722 2007-11-01  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29725         warning.
29726         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29727         needed for POSIX compatibility.
29728
29729 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29730
29731         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29732         for compatibility with GNU.
29733
29734 2007-11-01  Bruno Haible  <bruno@clisp.org>
29735
29736         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29737         (putenv): Renamed from rpl_putenv. Change argument type from
29738         'const char *' to 'char *'.
29739         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29740         of defining putenv in config.h, just set REPLACE_PUTENV.
29741         * modules/putenv (Depends-on): Add stdlib.
29742         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29743         (Include): Use <stdlib.h>.
29744         * lib/stdlib.in.h (putenv): New declaration.
29745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29746         REPLACE_PUTENV.
29747         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29748         REPLACE_PUTENV.
29749         Needed for MacOS X 10.5.0.
29750         Reported by Peter O'Gorman <peter@pogma.com>.
29751
29752 2007-11-01  Jim Meyering  <meyering@redhat.com>
29753
29754         Treat an empty date string exactly like "0".
29755         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29756         if the remaining date string (to be parsed) is empty, use "0".
29757         Reported by Mischa Molhoek and discussed in this thread:
29758         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29759
29760 2007-10-31  Bruno Haible  <bruno@clisp.org>
29761
29762         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29763         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29764         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29765         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29766         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29767         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29768
29769 2007-10-31  Bruno Haible  <bruno@clisp.org>
29770
29771         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29772         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29773         (AC_TYPE_LONG_LONG_INT): Use it.
29774         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29775         it as well.
29776         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29777         to m4/longlong.m4.
29778         * modules/stdint (Files): Remove m4/ulonglong.m4.
29779         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29780         m4/ulonglong.m4.
29781         * modules/strtoumax (Files): Likewise.
29782
29783 2007-10-30  Bruno Haible  <bruno@clisp.org>
29784
29785         * modules/xvasprintf-posix: New file.
29786         Suggested by Eric Blake.
29787
29788 2007-10-30  Bruno Haible  <bruno@clisp.org>
29789
29790         * modules/xprintf-posix-tests: New file.
29791         * tests/test-xprintf-posix.sh: New file.
29792         * tests/test-xprintf-posix.c: New file.
29793         * tests/test-xfprintf-posix.c: New file.
29794
29795         * modules/xprintf-posix: New file.
29796
29797 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29798
29799         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29800         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29801         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29802
29803 2007-10-29  Bruno Haible  <bruno@clisp.org>
29804
29805         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29806         contain the special marker '_cv_'.
29807         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29808         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29810         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29811         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29812         Reported by Ralf Wildenhues.
29813
29814 2007-10-29  Bruno Haible  <bruno@clisp.org>
29815
29816         * gnulib-tool (func_import): When --lgpl is not specified, set
29817         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29818         GPLv3.
29819         Reported by Simon Josefsson.
29820
29821 2007-10-28  Bruno Haible  <bruno@clisp.org>
29822
29823         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29824         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29825         HAVE_DECL_ISFINITE.
29826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29827         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29828         HAVE_DECL_ISFINITE.
29829
29830 2007-10-28  Bruno Haible  <bruno@clisp.org>
29831
29832         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29833         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29834
29835 2007-10-28  Bruno Haible  <bruno@clisp.org>
29836
29837         Fix link errors with Sun C 5.0 on Solaris 10.
29838         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29839         function is declared but not present in the compiler's libm.
29840         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29841         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29842         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29843         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29844         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29845         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29846         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29848         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29849         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29850         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29851         HAVE_DECL_FLOORL.
29852
29853 2007-10-28  Bruno Haible  <bruno@clisp.org>
29854
29855         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29856         gl_FUNC_FLOORL. Cache the result.
29857         (gl_FUNC_FLOORL): Use it.
29858         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29859         gl_FUNC_CEILL. Cache the result.
29860         (gl_FUNC_CEILL): Use it.
29861
29862         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29863         gl_FUNC_FLOOR. Cache the result.
29864         (gl_FUNC_FLOOR): Use it.
29865         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29866         gl_FUNC_CEIL. Cache the result.
29867         (gl_FUNC_CEIL): Use it.
29868
29869         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29870         gl_FUNC_FLOORF. Cache the result.
29871         (gl_FUNC_FLOORF): Use it.
29872         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29873         gl_FUNC_CEILF. Cache the result.
29874         (gl_FUNC_CEILF): Use it.
29875
29876 2007-10-28  Bruno Haible  <bruno@clisp.org>
29877
29878         * gnulib-tool: Allow specifying the LGPL version number through
29879         --lgpl=2 or --lgpl=3.
29880         (func_usage): Document --lgpl with argument.
29881         Handle --lgpl=... arguments.
29882         (func_import): Recognize also gl_LGPL calls with an argument. When
29883         --lgpl=2 is used and the module's license is just LGPL, report an
29884         error. Set sed_transform_lib_file according to the lgpl variable. In
29885         the generated files, use --lgpl or gl_LGPL invocations with argument,
29886         if necessary.
29887         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29888         an LGPv2+ license.
29889         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29890         gl_LGPL macro.
29891
29892 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29893             Bruno Haible  <bruno@clisp.org>
29894
29895         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29896         (u16_uctomb_aux): Likewise.
29897         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29898         !HAVE_INLINE.
29899         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29900
29901 2007-10-28  Bruno Haible  <bruno@clisp.org>
29902
29903         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29904         Invoke AM_GETTEXT_OPTION if it exists.
29905         * modules/vasprintf: Likewise.
29906         * modules/verror: Likewise.
29907         * modules/xprintf: Likewise.
29908         * modules/xvasprintf: Likewise.
29909
29910 2007-10-27  Ben Pfaff  <blp@gnu.org>
29911
29912         * lib/math.in.h: Define isfinite macro and prototypes for
29913         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29914         implementations.
29915         * m4/math_h.m4: New substitutions for isfinite module.
29916         * lib/isfinite.c: New file.
29917         * m4/isfinite.m4: New file.
29918         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29919         * modules/isfinite: New file.
29920         * modules/isfinite-tests: New file.
29921         * tests/tests-isfinite.c: New file.
29922         * doc/functions/isfinite.texi: Mention isfinite module.
29923         * MODULES.html.sh: Mention new module.
29924
29925 2007-10-27  Ben Pfaff  <blp@gnu.org>
29926
29927         Ralf Wildenhues reported that Tru64 4.0D declares the round
29928         functions but does not have definitions.
29929         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29930         cannot be found in any library, set the output variable to
29931         "missing" instead of "".
29932         * m4/round.m4: Also use our substitute if we cannot find round in
29933         any library, even if it is declared.
29934         * m4/roundf.m4: Likewise for roundf.
29935         * m4/roundl.m4: Likewise for roundl.
29936         * lib/math.in.h: Undefine roundf, round, roundl before defining
29937         their replacements, to allow for hypothetical systems where these
29938         may be defined as macros but not available in libraries.
29939
29940 2007-10-27  Bruno Haible  <bruno@clisp.org>
29941
29942         * doc/gnulib.texi: Invoke @firstparagraphindent.
29943         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29944         changes in gnulib.
29945         (Source changes): New section.
29946
29947 2007-10-26  Bruno Haible  <bruno@clisp.org>
29948
29949         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29950         borrowed from autoconf.
29951
29952 2007-10-26  Bruno Haible  <bruno@clisp.org>
29953
29954         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29955         strerror returned the empty string. Needed on HP-UX 11.00.
29956
29957 2007-10-24  Micah Cowan  <micah@cowan.name>
29958
29959         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29960         * build-aux/bootstrap: Remove support for now-unnecessary option,
29961         --cvs-user, and envvars CVS_USER, CVS_RSH.
29962
29963 2007-10-24  Jim Meyering  <meyering@redhat.com>
29964
29965         Avoid diagnostics from sha1sum when there is no cached checksum.
29966         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29967         if the po.s1 file hasn't been created yet.
29968
29969         * build-aux/bootstrap: Sync from coreutils:
29970         2007-10-24  Jim Meyering  <meyering@redhat.com>
29971         Get gnulib from the git repository, not from an obsolete cvs one.
29972         * build-aux/bootstrap: Suggestion from Micah Cowan.
29973         2007-10-04  Jim Meyering  <jim@meyering.net>
29974         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29975         (update_po_files): Work also when there are no .po files in po/.
29976
29977 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29978
29979         * README: Append ".git" to git and cg examples.
29980         Problem reported by Benoit Sigoure.
29981
29982 2007-10-23  Micah Cowan  <micah@cowan.name>
29983
29984         * users.txt: Add wget.
29985
29986 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29987
29988         Fix linking of some unistdio tests on FreeBSD.
29989         * modules/unistdio/u16-vsnprintf-tests
29990         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29991         * modules/unistdio/u16-vsprintf-tests
29992         (test_u16_vsnprintf1_LDADD): Likewise.
29993         * modules/unistdio/u32-vsnprintf-tests
29994         (test_u32_vsnprintf1_LDADD): Likewise.
29995         * modules/unistdio/u32-vsprintf-tests
29996         (test_u32_vsprintf1_LDADD): Likewise.
29997         * modules/unistdio/u8-vsnprintf-tests
29998         (test_u8_vsnprintf1_LDADD): Likewise.
29999         * modules/unistdio/u8-vsprintf-tests
30000         (test_u8_vsprintf1_LDADD): Likewise.
30001         * modules/unistdio/ulc-vsnprintf-tests
30002         (test_ulc_vsnprintf1_LDADD): Likewise.
30003         * modules/unistdio/ulc-vsprintf-tests
30004         (test_ulc_vsprintf1_LDADD): Likewise.
30005
30006         Fix linking of some uniconv tests on FreeBSD.
30007         * modules/uniconv/u16-conv-from-enc-tests
30008         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30009         * modules/uniconv/u16-conv-to-enc-tests
30010         (test_u16_conv_to_enc_LDADD): Likewise.
30011         * modules/uniconv/u16-strconv-from-enc-tests
30012         (test_u16_strconv_from_enc_LDADD): Likewise.
30013         * modules/uniconv/u16-strconv-to-enc-tests
30014         (test_u16_strconv_to_enc_LDADD): Likewise.
30015         * modules/uniconv/u32-conv-from-enc-tests
30016         (test_u32_conv_from_enc_LDADD): Likewise.
30017         * modules/uniconv/u32-conv-to-enc-tests
30018         (test_u32_conv_to_enc_LDADD): Likewise.
30019         * modules/uniconv/u32-strconv-from-enc-tests
30020         (test_u32_strconv_from_enc_LDADD): Likewise.
30021         * modules/uniconv/u32-strconv-to-enc-tests
30022         (test_u32_strconv_to_enc_LDADD): Likewise.
30023         * modules/uniconv/u8-conv-from-enc-tests
30024         (test_u8_conv_from_enc_LDADD): Likewise.
30025         * modules/uniconv/u8-conv-to-enc-tests
30026         (test_u8_conv_to_enc_LDADD): Likewise.
30027         * modules/uniconv/u8-strconv-from-enc-tests
30028         (test_u8_strconv_from_enc_LDADD): Likewise.
30029         * modules/uniconv/u8-strconv-to-enc-tests
30030         (test_u8_strconv_to_enc_LDADD): Likewise.
30031
30032 2007-10-22  Bruno Haible  <bruno@clisp.org>
30033
30034         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30035         size.
30036
30037 2007-10-22  Eric Blake  <ebb9@byu.net>
30038
30039         Tweak x*printf documentation.
30040         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30041         variable name and comments.
30042         Suggested by Bruno Haible.
30043
30044 2007-10-22  Bruno Haible  <bruno@clisp.org>
30045
30046         * lib/acl.c (copy_acl): Fix file name in comment.
30047
30048 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30049
30050         Fix Tru64 problem with stdbool.h.
30051         * lib/stdbool.in.h (false, true):
30052         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30053         Don't declare as an enum in this situation; it runs afoul of Tru64.
30054         Problem reported by Steven M. Schweda in
30055         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30056
30057 2007-10-22  Eric Blake  <ebb9@byu.net>
30058
30059         Also wrap vf?printf.
30060         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30061         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30062         (xvprintf, xvfprintf): New functions.
30063
30064 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30065
30066         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30067         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30068
30069         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30070         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30071
30072 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30073
30074         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30075         by Bruno Haible.
30076
30077 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30078
30079         * lib/getloadavg.c
30080         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30081         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30082
30083         * tests/test-i-ring.c: Work for C89.
30084
30085 2007-10-22  Bruno Haible  <bruno@clisp.org>
30086
30087         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30088         -1u, in preprocessor expression, so that we don't test for the bug
30089         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30091
30092 2007-10-22  Eric Blake  <ebb9@byu.net>
30093
30094         * tests/test-yesno.sh: Silence stderr during test.
30095
30096 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30097
30098         * modules/crypto/gc-camellia: New file.
30099
30100         * m4/gc-camellia.m4: New file.
30101
30102         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30103
30104         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30105
30106 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30107
30108         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30109         --help to stdout.  Reported by sms@antinode.org (Steven
30110         M. Schweda).
30111
30112 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30113
30114         * users.txt: Fix link to libksba.
30115
30116 2007-10-21  Ben Pfaff  <blp@gnu.org>
30117
30118         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30119         round.c roundf implementation that depends on floorf and ceilf to
30120         be tested unconditionally.
30121
30122 2007-10-21  Ben Pfaff  <blp@gnu.org>
30123
30124         * m4/check-libm-func.m4: Removed.
30125         * m4/check-math-lib.m4: New file.
30126         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30127         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30128         definition and lack of AC_LIBOBJ([roundf]).
30129         * m4/roundl.m4: Ditto, and similarly for roundl.
30130         * modules/round: Reference new m4 file.
30131         * modules/roundf: Ditto.
30132         * modules/roundl: Ditto.
30133         * tests/test-round2.c (main): Use ROUND instead of round.
30134         Bug report from Bruno Haible.
30135
30136 2007-10-21  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30139         context.
30140
30141 2007-10-21  Bruno Haible  <bruno@clisp.org>
30142
30143         * tests/test-wcwidth.c (main): Allow negative result for some control
30144         characters.
30145
30146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30147         Needed on OSF/1 5.1.
30148
30149 2007-10-21  Bruno Haible  <bruno@clisp.org>
30150
30151         * tests/test-floorf1.c: Include isnanf.h.
30152         (main): Use isnanf() instead of isnan().
30153         * tests/test-ceilf1.c: Include isnanf.h.
30154         (main): Use isnanf() instead of isnan().
30155         * tests/test-truncf1.c: Include isnanf.h.
30156         (main): Use isnanf() instead of isnan().
30157         * tests/test-roundf1.c: Include isnanf.h.
30158         (main): Use isnanf() instead of isnan().
30159
30160 2007-10-21  Eric Blake  <ebb9@byu.net>
30161
30162         * users.txt: Update URL for m4.
30163
30164 2007-10-21  Bruno Haible  <bruno@clisp.org>
30165
30166         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30167
30168 2007-10-21  Bruno Haible  <bruno@clisp.org>
30169
30170         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30171         Git's management files if the CVS files are not present.
30172
30173 2007-10-20  Bruno Haible  <bruno@clisp.org>
30174
30175         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30176         gcc-3.4.x.
30177
30178 2007-10-20  Ben Pfaff  <blp@gnu.org>
30179
30180         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30181         implementations.
30182         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30183         * lib/round.c: New file.
30184         * lib/roundf.c: New file.
30185         * lib/roundl.c: New file.
30186         * m4/round.m4: New file.
30187         * m4/roundf.m4: New file.
30188         * m4/roundl.m4: New file.
30189         * m4/check-libm-func-m4: New file.
30190         * modules/math: Replace round, roundf, roundl related @VARS@ in
30191         math.in.h.
30192         * modules/round: New file.
30193         * modules/round-tests: New file.
30194         * modules/roundf: New file.
30195         * modules/roundf-tests: New file.
30196         * modules/roundl: New file.
30197         * modules/roundl-tests: New file.
30198         * tests/test-round1.c: New file.
30199         * tests/test-round2.c: New file.
30200         * tests/test-roundf1.c: New file.
30201         * tests/test-roundf2.c: New file.
30202         * tests/test-roundl.c: New file.
30203         * doc/functions/round.texi: Mention round module.
30204         * doc/functions/roundf.texi: Mention roundf module.
30205         * doc/functions/roundl.texi: Mention roundl module.
30206         * MODULES.html.sh: Mention new modules.
30207         Thanks to Bruno Haible for suggestions.
30208
30209 2007-10-20  Jim Meyering  <meyering@redhat.com>
30210
30211         * lib/xprintf.c: Include <config.h> unconditionally.
30212
30213         Change xprintf's license to GPL.
30214         * modules/xprintf (License): s/LGPL/GPL/, since this module
30215         depends on modules (exit and exitfail) which are GPL.
30216         Suggestion from Bruno Haible.
30217
30218         xprintf fixes.
30219         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30220         Use a clearer diagnostic.
30221         Patch from Bruno Haible.
30222
30223 2007-10-20  Bruno Haible  <bruno@clisp.org>
30224
30225         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30226         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30228
30229 2007-10-20  Bruno Haible  <bruno@clisp.org>
30230
30231         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30232         precision in the comparison result > x - 1 or similar.
30233         * tests/test-ceilf2.c (correct_result_p): Likewise.
30234         * tests/test-truncf2.c (correct_result_p): Likewise.
30235         * tests/test-trunc2.c (correct_result_p): Likewise.
30236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30237
30238 2007-10-20  Bruno Haible  <bruno@clisp.org>
30239
30240         * modules/ceil: New file.
30241         * m4/ceil.m4: New file.
30242         * doc/functions/ceil.texi: Mention the 'ceil' module.
30243
30244 2007-10-20  Bruno Haible  <bruno@clisp.org>
30245
30246         * modules/floor: New file.
30247         * m4/floor.m4: New file.
30248         * doc/functions/floor.texi: Mention the 'floor' module.
30249
30250 2007-10-20  Bruno Haible  <bruno@clisp.org>
30251
30252         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30253         of %a.
30254         * modules/floorf-tests (Depends-on): Likewise.
30255         * modules/truncf-tests (Depends-on): Likewise.
30256         * modules/trunc-tests (Depends-on): Likewise.
30257         Reported by Ben Pfaff.
30258
30259 2007-10-19  Jim Meyering  <meyering@redhat.com>
30260
30261         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30262         Don't bother testing specific errno values.  Just test ferror.
30263
30264         New module: xprintf
30265         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30266
30267 2007-10-19  Bruno Haible  <bruno@clisp.org>
30268
30269         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30270         syntax.
30271         * modules/javaexec (Makefile.am): Likewise.
30272         * modules/relocatable-prog (Makefile.am): Likewise.
30273         Suggested by Jim Meyering.
30274
30275 2007-10-18  Bruno Haible  <bruno@clisp.org>
30276
30277         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30278         Reported by Jim Meyering.
30279
30280 2007-10-18  Eric Blake  <ebb9@byu.net>
30281
30282         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30283
30284 2007-10-18  Bruno Haible  <bruno@clisp.org>
30285
30286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30287         the format string into writable memory. Needed in Fortify conditions.
30288
30289 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30290             Bruno Haible  <bruno@clisp.org>
30291
30292         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30293         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30294         * modules/trim (Depends-on): Add mbchar.
30295         (configure.ac): Add gl_FUNC_MBRTOWC.
30296         (Makefile.am): Augment lib_SOURCES.
30297
30298 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30299
30300         Modify glob.c to use fstatat and dirfd, to simplify it.
30301         Suggested by Eric Blake.
30302         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30303         Don't include <stdbool.h>; not used.
30304         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30305         (link_exists_p): Simplify implementation, since we can now assume
30306         dirfd and fstatat.
30307         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30308
30309 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30310
30311         * gnulib-tool (func_get_dependencies): Fix sed script to
30312         match only tests.
30313
30314 2007-10-17  Bruno Haible  <bruno@clisp.org>
30315
30316         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30317         allow locale names without encoding suffix.
30318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30320
30321 2007-10-16  Bruno Haible  <bruno@clisp.org>
30322
30323         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30324         * lib/getgroups.c (getgroups): Likewise.
30325         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30326
30327 2007-10-16  Bruno Haible  <bruno@clisp.org>
30328
30329         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30330         * modules/malloc-posix (License): Likewise.
30331         * modules/realloc-posix (License): Likewise.
30332         * modules/calloc-posix (License): Likewise.
30333         * modules/intprops (License): Change from GPL to LGPL, with
30334         Paul Eggert's approval.
30335
30336 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30337
30338         Merge glibc changes into lib/glob.c.
30339
30340         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30341         2007-10-15 04:59:03 UTC.  Here are the changes:
30342
30343         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30344
30345         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30346
30347         * lib/glob.c: Add some branch prediction throughout.
30348
30349         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30350
30351         [BZ #5103]
30352         * lib/glob.c (glob): Recognize patterns starting \/.
30353
30354         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30355
30356         [BZ #3996]
30357         * lib/glob.c (attribute_hidden): Define if not defined.
30358         (glob): Unescape dirname, filename or username when needed and not
30359         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30360         is NULL.  Handle unescaped [ in pattern without closing ].
30361         Don't pass GLOB_CHECK down to recursive glob for directories.
30362         (__glob_pattern_type): New function.
30363         (__glob_pattern_p): Implement using __glob_pattern_type.
30364         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30365         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30366         Remove unreachable code.
30367
30368         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30369
30370         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30371         explain why there are no leaks.
30372
30373         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30374
30375         [BZ #3253]
30376         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30377         time, rather allocate increasingly bigger arrays of pointers, if
30378         possible with alloca, if too large with malloc.
30379
30380 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30381
30382         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30383         Problem reported by H.Merijn Brand in
30384         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30386         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30387
30388 2007-10-15  Bruno Haible  <bruno@clisp.org>
30389
30390         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30391         with explicit rpl_ prefix.
30392         * lib/fopen.c (fopen): Likewise.
30393         * lib/freopen.c (freopen): Likewise.
30394         * lib/iconv.c (iconv): Likewise.
30395         * lib/iconv_close.c (iconv_close): Likewise.
30396
30397 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30398
30399         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30400
30401 2007-10-15  Bruno Haible  <bruno@clisp.org>
30402
30403         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30404         <stddef.h> instead of <stdlib.h> since we only need NULL.
30405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30406
30407 2007-10-15  Bruno Haible  <bruno@clisp.org>
30408
30409         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30410         Replace paragraph talking about LIBOBJS.
30411         Reported by Colin Watson <cjwatson@debian.org>.
30412
30413 2007-10-15  Bruno Haible  <bruno@clisp.org>
30414
30415         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30416         <stdlib.h> before using NULL.
30417
30418 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30419
30420         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30421         Reported by Albert Chin <china@thewrittenword.com>.
30422
30423 2007-10-14  Bruno Haible  <bruno@clisp.org>
30424
30425         * modules/iconv_open-utf-tests: New file.
30426         * tests/test-iconv-utf.c: New file.
30427
30428         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30429         * modules/iconv_open-utf: New file.
30430         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30431         (iconv, iconv_close): New declarations.
30432         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30433         be defined.
30434         (iconv_open): Add special handling of conversion between UTF-8 and
30435         UTF-{16,32}{BE,LE}.
30436         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30437         * lib/iconv_close.c: New file.
30438         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30439         gl_FUNC_ICONV_OPEN.
30440         (gl_FUNC_ICONV_OPEN): Use it.
30441         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30442         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30443         and REPLACE_ICONV_UTF.
30444         * modules/iconv_open (Depends-on): Add c-strcase.
30445         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30446         ICONV_CONST.
30447         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30448
30449 2007-10-13  Albert Chin  <china@thewrittenword.com>
30450             Bruno Haible  <bruno@clisp.org>
30451
30452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30453         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30454
30455 2007-10-13  Bruno Haible  <bruno@clisp.org>
30456
30457         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30458         defined, use the ISO C99 inline semantics.
30459         * lib/argp.h (ARGP_EI): Likewise.
30460
30461 2007-10-13  Bruno Haible  <bruno@clisp.org>
30462
30463         Handle 'inline' change in gcc 4.3.0.
30464         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30465         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30466         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30467         argp_fmtstream_point): Disable 'extern' declaration if the function
30468         definition is going to be provided inline.
30469         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30470         semantics, not the ISO C99 inline semantics.
30471         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30472         'extern' declaration if the function definition is going to be provided
30473         inline.
30474         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30475         the GNU C inline semantics, not the ISO C99 inline semantics. With
30476         GCC 4.2, avoid a warning.
30477
30478 2007-10-13  Bruno Haible  <bruno@clisp.org>
30479
30480         * lib/freading.h (freading): Enable the use of __freading for
30481         glibc >= 2.7.
30482         * lib/freading.c (freading): Likewise.
30483
30484 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30485
30486         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30487         "warning: C99 inline functions are not supported; using GNU89".
30488
30489 2007-10-12  Bruno Haible  <bruno@clisp.org>
30490
30491         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30492         of 2.
30493         * tests/test-ceilf2.c: New file.
30494         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30495
30496         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30497         * modules/ceilf-tests: Update.
30498
30499 2007-10-12  Bruno Haible  <bruno@clisp.org>
30500
30501         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30502         of 2.
30503         * tests/test-floorf2.c: New file.
30504         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30505
30506         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30507         * modules/floorf-tests: Update.
30508
30509 2007-10-12  Bruno Haible  <bruno@clisp.org>
30510
30511         * tests/test-trunc2.c: New file.
30512         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30513
30514         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30515         * modules/trunc-tests: Update.
30516
30517 2007-10-12  Bruno Haible  <bruno@clisp.org>
30518
30519         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30520         of 2.
30521         * tests/test-truncf2.c: New file.
30522         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30523
30524         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30525         * modules/truncf-tests: Update.
30526
30527 2007-10-11  Eric Blake  <ebb9@byu.net>
30528
30529         Don't claim strerror is broken on Interix.
30530         * doc/functions/strerror.texi (strerror): Known broken systems are
30531         now Solaris 8, and not Interix.
30532         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30533         Interix on cross-compile.
30534         Reported by Martin Koeppe in
30535         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30536
30537 2007-10-11  Bruno Haible  <bruno@clisp.org>
30538
30539         * modules/i-ring-tests: New file.
30540         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30541         instead of assert.
30542
30543 2007-10-11  Bruno Haible  <bruno@clisp.org>
30544
30545         * modules/filenamecat-tests: New file.
30546         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30547         * lib/filenamecat.c: Remove test code.
30548
30549 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30550
30551         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30552
30553         * lib/strerror.c: Include <string.h> always, to test interface,
30554         and to remove the need for the dummy.
30555         Include intprops.h to compute width instead of doing it ourselves
30556         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30557         (strerror): Define it to return NULL if there's no system strerror.
30558         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30559         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30560         ancient pre-strerror Unix systems well any more.  Saying "unknown
30561         system error" is enough.
30562         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30563         simpler strerror.c implementation.
30564         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30565         Simplify the tests to reflect the simpler strerror implementation.
30566         * modules/strerror (Depends-on): Add intprops.
30567
30568 2007-10-09  Eric Blake  <ebb9@byu.net>
30569
30570         Silence test-fpending.
30571         * modules/fpending-tests (Files): Add wrapper script.
30572         * tests/test-fpending.sh: New file.
30573
30574 2007-10-09  Bruno Haible  <bruno@clisp.org>
30575
30576         * MODULES.html.sh (func_module): Don't create a hyperlink for
30577         function names like 'printf_frexp'.
30578         (Misc): Add crc, memxor.
30579         (Characteristics of floating types): New section.
30580         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30581         isnanf-nolibm, signbit, trunc, truncf, truncl.
30582         (Enhancements for ISO C 99 functions): New subsection Input/output.
30583         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30584         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30585         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30586         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30587         (Enhancements for POSIX:2001 functions): Add chdir-long.
30588         (File system functions): Add areadlink, chdir-safer, read-file.
30589         Remove cycle-check.
30590         (File system as inode set): New section.
30591         (Date and time): Add gethrxtime.
30592         (Multithreading): Add openmp.
30593         (Internationalization functions): Add localename.
30594         (Unicode string functions): Add unistr/u*-mbsnlen.
30595         (Support for maintaining and releasing projects): Add git-version-gen.
30596         (Lone files): Remove directories.
30597
30598 2007-10-08  Ben Pfaff  <blp@gnu.org>
30599
30600         * lib/xmalloca.h: Fix typo in comment.
30601
30602 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30603
30604         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30605         when avoiding problems with integer overflow.  Use a portable test
30606         instead.
30607
30608 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30609
30610         * modules/dummy (License): Change to LGPLv2+.
30611         * modules/float (License): Likewise
30612         * modules/realloc (License): Likewise
30613         * modules/stdlib (License): Likewise
30614
30615 2007-10-07  Bruno Haible  <bruno@clisp.org>
30616
30617         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30618         * floor.c (TWO_MANT_DIG): Likewise.
30619         * ceil.c (TWO_MANT_DIG): Likewise.
30620         Reported by Ben Pfaff.
30621
30622 2007-10-07  Bruno Haible  <bruno@clisp.org>
30623
30624         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30625         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30626         * lib/frexp.c (FUNC): Likewise.
30627         * lib/printf-frexp.h (printf_frexp): Likewise.
30628         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30629         * lib/printf-frexp.c (FUNC): Likewise.
30630         Suggested by Jim Meyering.
30631
30632 2007-10-07  Jim Meyering  <meyering@redhat.com>
30633
30634         Make xnanosleep's integer overflow test more robust.
30635         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30636         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30637
30638 2007-10-07  Bruno Haible  <bruno@clisp.org>
30639
30640         * NEWS: Mention the license change.
30641
30642         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30643         abbreviations in the modules files.
30644
30645         Change copyright notice from GPLv2+ to GPLv3+.
30646         * README: Change copyright notice.
30647         * MODULES.html.sh: Likewise.
30648         * build-aux/bootstrap.conf: Likewise.
30649         * build-aux/config.libpath: Likewise.
30650         * build-aux/csharpcomp.sh.in: Likewise.
30651         * build-aux/csharpexec.sh.in: Likewise.
30652         * build-aux/install-reloc: Likewise.
30653         * build-aux/javacomp.sh.in: Likewise.
30654         * build-aux/javaexec.sh.in: Likewise.
30655         * build-aux/ldd.sh.in: Likewise.
30656         * build-aux/reloc-ldflags: Likewise.
30657         * build-aux/relocatable.sh.in: Likewise.
30658         * build-aux/x-to-1.in: Likewise.
30659         * check-module: Likewise.
30660         * config/srclistvars.sh: Likewise.
30661         * gnulib-tool: Likewise.
30662         * lib/acl-internal.h: Likewise.
30663         * lib/acl.c: Likewise.
30664         * lib/acl.h: Likewise.
30665         * lib/acl_entries.c: Likewise.
30666         * lib/areadlink-with-size.c: Likewise.
30667         * lib/areadlink.c: Likewise.
30668         * lib/areadlink.h: Likewise.
30669         * lib/argmatch.c: Likewise.
30670         * lib/argmatch.h: Likewise.
30671         * lib/argp-ba.c: Likewise.
30672         * lib/argp-eexst.c: Likewise.
30673         * lib/argp-fmtstream.c: Likewise.
30674         * lib/argp-fmtstream.h: Likewise.
30675         * lib/argp-fs-xinl.c: Likewise.
30676         * lib/argp-help.c: Likewise.
30677         * lib/argp-namefrob.h: Likewise.
30678         * lib/argp-parse.c: Likewise.
30679         * lib/argp-pin.c: Likewise.
30680         * lib/argp-pv.c: Likewise.
30681         * lib/argp-pvh.c: Likewise.
30682         * lib/argp-xinl.c: Likewise.
30683         * lib/argp.h: Likewise.
30684         * lib/at-func.c: Likewise.
30685         * lib/atanl.c: Likewise.
30686         * lib/backupfile.c: Likewise.
30687         * lib/backupfile.h: Likewise.
30688         * lib/basename.c: Likewise.
30689         * lib/binary-io.h: Likewise.
30690         * lib/byteswap.in.h: Likewise.
30691         * lib/c-stack.c: Likewise.
30692         * lib/c-stack.h: Likewise.
30693         * lib/c-strcasestr.c: Likewise.
30694         * lib/c-strcasestr.h: Likewise.
30695         * lib/c-strstr.c: Likewise.
30696         * lib/c-strstr.h: Likewise.
30697         * lib/c-strtod.c: Likewise.
30698         * lib/calloc.c: Likewise.
30699         * lib/canon-host.c: Likewise.
30700         * lib/canon-host.h: Likewise.
30701         * lib/canonicalize-lgpl.c: Likewise.
30702         * lib/canonicalize.c: Likewise.
30703         * lib/canonicalize.h: Likewise.
30704         * lib/ceil.c: Likewise.
30705         * lib/ceilf.c: Likewise.
30706         * lib/ceill.c: Likewise.
30707         * lib/chdir-long.c: Likewise.
30708         * lib/chdir-long.h: Likewise.
30709         * lib/chdir-safer.c: Likewise.
30710         * lib/chdir-safer.h: Likewise.
30711         * lib/chown.c: Likewise.
30712         * lib/classpath.c: Likewise.
30713         * lib/classpath.h: Likewise.
30714         * lib/clean-temp.c: Likewise.
30715         * lib/clean-temp.h: Likewise.
30716         * lib/cloexec.c: Likewise.
30717         * lib/close-stream.c: Likewise.
30718         * lib/closein.c: Likewise.
30719         * lib/closein.h: Likewise.
30720         * lib/closeout.c: Likewise.
30721         * lib/closeout.h: Likewise.
30722         * lib/concat-filename.c: Likewise.
30723         * lib/copy-file.c: Likewise.
30724         * lib/copy-file.h: Likewise.
30725         * lib/count-one-bits.h: Likewise.
30726         * lib/crc.c: Likewise.
30727         * lib/crc.h: Likewise.
30728         * lib/creat-safer.c: Likewise.
30729         * lib/csharpcomp.c: Likewise.
30730         * lib/csharpcomp.h: Likewise.
30731         * lib/csharpexec.c: Likewise.
30732         * lib/csharpexec.h: Likewise.
30733         * lib/cycle-check.c: Likewise.
30734         * lib/cycle-check.h: Likewise.
30735         * lib/diacrit.c: Likewise.
30736         * lib/diacrit.h: Likewise.
30737         * lib/diffseq.h: Likewise.
30738         * lib/dirchownmod.c: Likewise.
30739         * lib/dirent.in.h: Likewise.
30740         * lib/dirfd.c: Likewise.
30741         * lib/dirfd.h: Likewise.
30742         * lib/dirname.c: Likewise.
30743         * lib/dirname.h: Likewise.
30744         * lib/dummy.c: Likewise.
30745         * lib/dup-safer.c: Likewise.
30746         * lib/dup2.c: Likewise.
30747         * lib/eealloc.h: Likewise.
30748         * lib/error.c: Likewise.
30749         * lib/error.h: Likewise.
30750         * lib/euidaccess.c: Likewise.
30751         * lib/exclude.c: Likewise.
30752         * lib/exclude.h: Likewise.
30753         * lib/execute.c: Likewise.
30754         * lib/execute.h: Likewise.
30755         * lib/exitfail.c: Likewise.
30756         * lib/exitfail.h: Likewise.
30757         * lib/expl.c: Likewise.
30758         * lib/fatal-signal.c: Likewise.
30759         * lib/fatal-signal.h: Likewise.
30760         * lib/fbufmode.c: Likewise.
30761         * lib/fbufmode.h: Likewise.
30762         * lib/fchdir.c: Likewise.
30763         * lib/fchmodat.c: Likewise.
30764         * lib/fchownat.c: Likewise.
30765         * lib/fcntl--.h: Likewise.
30766         * lib/fcntl-safer.h: Likewise.
30767         * lib/fcntl.in.h: Likewise.
30768         * lib/fd-safer.c: Likewise.
30769         * lib/fflush.c: Likewise.
30770         * lib/file-has-acl.c: Likewise.
30771         * lib/file-set.c: Likewise.
30772         * lib/file-type.c: Likewise.
30773         * lib/file-type.h: Likewise.
30774         * lib/fileblocks.c: Likewise.
30775         * lib/filemode.c: Likewise.
30776         * lib/filemode.h: Likewise.
30777         * lib/filename.h: Likewise.
30778         * lib/filenamecat.c: Likewise.
30779         * lib/filenamecat.h: Likewise.
30780         * lib/findprog.c: Likewise.
30781         * lib/findprog.h: Likewise.
30782         * lib/float.in.h: Likewise.
30783         * lib/floor.c: Likewise.
30784         * lib/floorf.c: Likewise.
30785         * lib/floorl.c: Likewise.
30786         * lib/fopen-safer.c: Likewise.
30787         * lib/fopen.c: Likewise.
30788         * lib/fpending.c: Likewise.
30789         * lib/fpending.h: Likewise.
30790         * lib/fprintf.c: Likewise.
30791         * lib/fprintftime.h: Likewise.
30792         * lib/fpucw.h: Likewise.
30793         * lib/fpurge.c: Likewise.
30794         * lib/fpurge.h: Likewise.
30795         * lib/freadable.c: Likewise.
30796         * lib/freadable.h: Likewise.
30797         * lib/freadahead.c: Likewise.
30798         * lib/freadahead.h: Likewise.
30799         * lib/freading.c: Likewise.
30800         * lib/freading.h: Likewise.
30801         * lib/free.c: Likewise.
30802         * lib/freopen.c: Likewise.
30803         * lib/frexp.c: Likewise.
30804         * lib/frexpl.c: Likewise.
30805         * lib/fseek.c: Likewise.
30806         * lib/fseterr.c: Likewise.
30807         * lib/fseterr.h: Likewise.
30808         * lib/fstatat.c: Likewise.
30809         * lib/fstrcmp.c: Likewise.
30810         * lib/fstrcmp.h: Likewise.
30811         * lib/fsusage.c: Likewise.
30812         * lib/fsusage.h: Likewise.
30813         * lib/ftell.c: Likewise.
30814         * lib/ftello.c: Likewise.
30815         * lib/fts-cycle.c: Likewise.
30816         * lib/fts.c: Likewise.
30817         * lib/fts_.h: Likewise.
30818         * lib/full-read.c: Likewise.
30819         * lib/full-read.h: Likewise.
30820         * lib/full-write.c: Likewise.
30821         * lib/full-write.h: Likewise.
30822         * lib/fwritable.c: Likewise.
30823         * lib/fwritable.h: Likewise.
30824         * lib/fwriteerror.c: Likewise.
30825         * lib/fwriteerror.h: Likewise.
30826         * lib/fwriting.c: Likewise.
30827         * lib/fwriting.h: Likewise.
30828         * lib/gcd.c: Likewise.
30829         * lib/gcd.h: Likewise.
30830         * lib/getcwd.c: Likewise.
30831         * lib/getdate.h: Likewise.
30832         * lib/getdate.y: Likewise.
30833         * lib/getdomainname.c: Likewise.
30834         * lib/getdomainname.h: Likewise.
30835         * lib/getgroups.c: Likewise.
30836         * lib/gethostname.c: Likewise.
30837         * lib/gethrxtime.c: Likewise.
30838         * lib/gethrxtime.h: Likewise.
30839         * lib/getloadavg.c: Likewise.
30840         * lib/getndelim2.c: Likewise.
30841         * lib/getndelim2.h: Likewise.
30842         * lib/getnline.c: Likewise.
30843         * lib/getnline.h: Likewise.
30844         * lib/getopt.c: Likewise.
30845         * lib/getopt.in.h: Likewise.
30846         * lib/getopt1.c: Likewise.
30847         * lib/getopt_int.h: Likewise.
30848         * lib/getpagesize.h: Likewise.
30849         * lib/getsubopt.c: Likewise.
30850         * lib/gettime.c: Likewise.
30851         * lib/getugroups.c: Likewise.
30852         * lib/getugroups.h: Likewise.
30853         * lib/getusershell.c: Likewise.
30854         * lib/gl_anyavltree_list1.h: Likewise.
30855         * lib/gl_anyavltree_list2.h: Likewise.
30856         * lib/gl_anyhash_list1.h: Likewise.
30857         * lib/gl_anyhash_list2.h: Likewise.
30858         * lib/gl_anylinked_list1.h: Likewise.
30859         * lib/gl_anylinked_list2.h: Likewise.
30860         * lib/gl_anyrbtree_list1.h: Likewise.
30861         * lib/gl_anyrbtree_list2.h: Likewise.
30862         * lib/gl_anytree_list1.h: Likewise.
30863         * lib/gl_anytree_list2.h: Likewise.
30864         * lib/gl_anytree_oset.h: Likewise.
30865         * lib/gl_anytreehash_list1.h: Likewise.
30866         * lib/gl_anytreehash_list2.h: Likewise.
30867         * lib/gl_array_list.c: Likewise.
30868         * lib/gl_array_list.h: Likewise.
30869         * lib/gl_array_oset.c: Likewise.
30870         * lib/gl_array_oset.h: Likewise.
30871         * lib/gl_avltree_list.c: Likewise.
30872         * lib/gl_avltree_list.h: Likewise.
30873         * lib/gl_avltree_oset.c: Likewise.
30874         * lib/gl_avltree_oset.h: Likewise.
30875         * lib/gl_avltreehash_list.c: Likewise.
30876         * lib/gl_avltreehash_list.h: Likewise.
30877         * lib/gl_carray_list.c: Likewise.
30878         * lib/gl_carray_list.h: Likewise.
30879         * lib/gl_linked_list.c: Likewise.
30880         * lib/gl_linked_list.h: Likewise.
30881         * lib/gl_linkedhash_list.c: Likewise.
30882         * lib/gl_linkedhash_list.h: Likewise.
30883         * lib/gl_list.c: Likewise.
30884         * lib/gl_list.h: Likewise.
30885         * lib/gl_oset.c: Likewise.
30886         * lib/gl_oset.h: Likewise.
30887         * lib/gl_rbtree_list.c: Likewise.
30888         * lib/gl_rbtree_list.h: Likewise.
30889         * lib/gl_rbtree_oset.c: Likewise.
30890         * lib/gl_rbtree_oset.h: Likewise.
30891         * lib/gl_rbtreehash_list.c: Likewise.
30892         * lib/gl_rbtreehash_list.h: Likewise.
30893         * lib/gl_sublist.c: Likewise.
30894         * lib/gl_sublist.h: Likewise.
30895         * lib/group-member.c: Likewise.
30896         * lib/group-member.h: Likewise.
30897         * lib/hard-locale.c: Likewise.
30898         * lib/hard-locale.h: Likewise.
30899         * lib/hash-pjw.c: Likewise.
30900         * lib/hash-pjw.h: Likewise.
30901         * lib/hash-triple.c: Likewise.
30902         * lib/hash.c: Likewise.
30903         * lib/hash.h: Likewise.
30904         * lib/human.c: Likewise.
30905         * lib/human.h: Likewise.
30906         * lib/i-ring.c: Likewise.
30907         * lib/i-ring.h: Likewise.
30908         * lib/idcache.c: Likewise.
30909         * lib/imaxabs.c: Likewise.
30910         * lib/imaxdiv.c: Likewise.
30911         * lib/inet_pton.c: Likewise.
30912         * lib/inet_pton.h: Likewise.
30913         * lib/intprops.h: Likewise.
30914         * lib/inttostr.c: Likewise.
30915         * lib/inttostr.h: Likewise.
30916         * lib/inttypes.in.h: Likewise.
30917         * lib/isapipe.c: Likewise.
30918         * lib/isdir.c: Likewise.
30919         * lib/isnan.c: Likewise.
30920         * lib/isnan.h: Likewise.
30921         * lib/isnanf.c: Likewise.
30922         * lib/isnanf.h: Likewise.
30923         * lib/isnanl-nolibm.h: Likewise.
30924         * lib/isnanl.c: Likewise.
30925         * lib/isnanl.h: Likewise.
30926         * lib/javacomp.c: Likewise.
30927         * lib/javacomp.h: Likewise.
30928         * lib/javaexec.c: Likewise.
30929         * lib/javaexec.h: Likewise.
30930         * lib/javaversion.c: Likewise.
30931         * lib/javaversion.h: Likewise.
30932         * lib/javaversion.java: Likewise.
30933         * lib/lbrkprop.h: Likewise.
30934         * lib/lchmod.h: Likewise.
30935         * lib/lchown.c: Likewise.
30936         * lib/ldexpl.c: Likewise.
30937         * lib/linebreak.c: Likewise.
30938         * lib/linebreak.h: Likewise.
30939         * lib/linebuffer.c: Likewise.
30940         * lib/linebuffer.h: Likewise.
30941         * lib/locale.in.h: Likewise.
30942         * lib/logl.c: Likewise.
30943         * lib/long-options.c: Likewise.
30944         * lib/long-options.h: Likewise.
30945         * lib/lstat.c: Likewise.
30946         * lib/lstat.h: Likewise.
30947         * lib/math.in.h: Likewise.
30948         * lib/mbchar.c: Likewise.
30949         * lib/mbchar.h: Likewise.
30950         * lib/mbfile.h: Likewise.
30951         * lib/mbiter.h: Likewise.
30952         * lib/mbscasecmp.c: Likewise.
30953         * lib/mbscasestr.c: Likewise.
30954         * lib/mbschr.c: Likewise.
30955         * lib/mbscspn.c: Likewise.
30956         * lib/mbslen.c: Likewise.
30957         * lib/mbsncasecmp.c: Likewise.
30958         * lib/mbsnlen.c: Likewise.
30959         * lib/mbspbrk.c: Likewise.
30960         * lib/mbspcasecmp.c: Likewise.
30961         * lib/mbsrchr.c: Likewise.
30962         * lib/mbssep.c: Likewise.
30963         * lib/mbsspn.c: Likewise.
30964         * lib/mbsstr.c: Likewise.
30965         * lib/mbstok_r.c: Likewise.
30966         * lib/mbswidth.c: Likewise.
30967         * lib/mbswidth.h: Likewise.
30968         * lib/mbuiter.h: Likewise.
30969         * lib/memcasecmp.c: Likewise.
30970         * lib/memcasecmp.h: Likewise.
30971         * lib/memchr.c: Likewise.
30972         * lib/memcmp.c: Likewise.
30973         * lib/memcoll.c: Likewise.
30974         * lib/memcoll.h: Likewise.
30975         * lib/memcpy.c: Likewise.
30976         * lib/memrchr.c: Likewise.
30977         * lib/mkancesdirs.c: Likewise.
30978         * lib/mkdir-p.c: Likewise.
30979         * lib/mkdir-p.h: Likewise.
30980         * lib/mkdir.c: Likewise.
30981         * lib/mkdirat.c: Likewise.
30982         * lib/mkdtemp.c: Likewise.
30983         * lib/mkstemp-safer.c: Likewise.
30984         * lib/mkstemp.c: Likewise.
30985         * lib/modechange.c: Likewise.
30986         * lib/modechange.h: Likewise.
30987         * lib/mountlist.c: Likewise.
30988         * lib/mountlist.h: Likewise.
30989         * lib/mpsort.c: Likewise.
30990         * lib/nanosleep.c: Likewise.
30991         * lib/obstack.c: Likewise.
30992         * lib/obstack.h: Likewise.
30993         * lib/open-safer.c: Likewise.
30994         * lib/open.c: Likewise.
30995         * lib/openat-die.c: Likewise.
30996         * lib/openat-priv.h: Likewise.
30997         * lib/openat-proc.c: Likewise.
30998         * lib/openat.c: Likewise.
30999         * lib/openat.h: Likewise.
31000         * lib/pagealign_alloc.c: Likewise.
31001         * lib/pagealign_alloc.h: Likewise.
31002         * lib/physmem.c: Likewise.
31003         * lib/physmem.h: Likewise.
31004         * lib/pipe-safer.c: Likewise.
31005         * lib/pipe.c: Likewise.
31006         * lib/pipe.h: Likewise.
31007         * lib/posixtm.c: Likewise.
31008         * lib/posixtm.h: Likewise.
31009         * lib/posixver.c: Likewise.
31010         * lib/printf-frexp.c: Likewise.
31011         * lib/printf-frexp.h: Likewise.
31012         * lib/printf-frexpl.c: Likewise.
31013         * lib/printf-frexpl.h: Likewise.
31014         * lib/printf.c: Likewise.
31015         * lib/progname.c: Likewise.
31016         * lib/progname.h: Likewise.
31017         * lib/progreloc.c: Likewise.
31018         * lib/putenv.c: Likewise.
31019         * lib/quote.c: Likewise.
31020         * lib/quote.h: Likewise.
31021         * lib/quotearg.c: Likewise.
31022         * lib/quotearg.h: Likewise.
31023         * lib/raise.c: Likewise.
31024         * lib/readline.c: Likewise.
31025         * lib/readline.h: Likewise.
31026         * lib/readlink.c: Likewise.
31027         * lib/readtokens.c: Likewise.
31028         * lib/readtokens.h: Likewise.
31029         * lib/readtokens0.c: Likewise.
31030         * lib/readtokens0.h: Likewise.
31031         * lib/readutmp.c: Likewise.
31032         * lib/readutmp.h: Likewise.
31033         * lib/realloc.c: Likewise.
31034         * lib/relocwrapper.c: Likewise.
31035         * lib/rename-dest-slash.c: Likewise.
31036         * lib/rename.c: Likewise.
31037         * lib/rmdir.c: Likewise.
31038         * lib/rpmatch.c: Likewise.
31039         * lib/safe-read.c: Likewise.
31040         * lib/safe-read.h: Likewise.
31041         * lib/safe-write.c: Likewise.
31042         * lib/safe-write.h: Likewise.
31043         * lib/same-inode.h: Likewise.
31044         * lib/same.c: Likewise.
31045         * lib/same.h: Likewise.
31046         * lib/save-cwd.c: Likewise.
31047         * lib/save-cwd.h: Likewise.
31048         * lib/savedir.c: Likewise.
31049         * lib/savedir.h: Likewise.
31050         * lib/savewd.c: Likewise.
31051         * lib/savewd.h: Likewise.
31052         * lib/search.in.h: Likewise.
31053         * lib/setenv.c: Likewise.
31054         * lib/setenv.h: Likewise.
31055         * lib/settime.c: Likewise.
31056         * lib/sh-quote.c: Likewise.
31057         * lib/sh-quote.h: Likewise.
31058         * lib/sig2str.c: Likewise.
31059         * lib/sig2str.h: Likewise.
31060         * lib/signal.in.h: Likewise.
31061         * lib/signbitd.c: Likewise.
31062         * lib/signbitf.c: Likewise.
31063         * lib/signbitl.c: Likewise.
31064         * lib/sigprocmask.c: Likewise.
31065         * lib/sincosl.c: Likewise.
31066         * lib/sleep.c: Likewise.
31067         * lib/sprintf.c: Likewise.
31068         * lib/sqrtl.c: Likewise.
31069         * lib/stat-time.h: Likewise.
31070         * lib/stdio--.h: Likewise.
31071         * lib/stdio-safer.h: Likewise.
31072         * lib/stdlib--.h: Likewise.
31073         * lib/stdlib-safer.h: Likewise.
31074         * lib/stdlib.in.h: Likewise.
31075         * lib/stpcpy.c: Likewise.
31076         * lib/stpncpy.c: Likewise.
31077         * lib/strchrnul.c: Likewise.
31078         * lib/strcspn.c: Likewise.
31079         * lib/strerror.c: Likewise.
31080         * lib/strftime.c: Likewise.
31081         * lib/strftime.h: Likewise.
31082         * lib/striconveh.c: Likewise.
31083         * lib/striconveh.h: Likewise.
31084         * lib/striconveha.c: Likewise.
31085         * lib/striconveha.h: Likewise.
31086         * lib/stripslash.c: Likewise.
31087         * lib/strnlen1.c: Likewise.
31088         * lib/strnlen1.h: Likewise.
31089         * lib/strtod.c: Likewise.
31090         * lib/strtoimax.c: Likewise.
31091         * lib/strtok_r.c: Likewise.
31092         * lib/strtol.c: Likewise.
31093         * lib/strtoll.c: Likewise.
31094         * lib/strtoul.c: Likewise.
31095         * lib/strtoull.c: Likewise.
31096         * lib/sysexits.in.h: Likewise.
31097         * lib/tempname.c: Likewise.
31098         * lib/tempname.h: Likewise.
31099         * lib/timespec.h: Likewise.
31100         * lib/tls.c: Likewise.
31101         * lib/tls.h: Likewise.
31102         * lib/tmpdir.c: Likewise.
31103         * lib/tmpdir.h: Likewise.
31104         * lib/tmpfile-safer.c: Likewise.
31105         * lib/tmpfile.c: Likewise.
31106         * lib/trigl.c: Likewise.
31107         * lib/trigl.h: Likewise.
31108         * lib/trim.c: Likewise.
31109         * lib/trim.h: Likewise.
31110         * lib/trunc.c: Likewise.
31111         * lib/truncf.c: Likewise.
31112         * lib/truncl.c: Likewise.
31113         * lib/tsearch.c: Likewise.
31114         * lib/unicodeio.c: Likewise.
31115         * lib/unicodeio.h: Likewise.
31116         * lib/unistd--.h: Likewise.
31117         * lib/unistd-safer.h: Likewise.
31118         * lib/unistdio/ulc-fprintf.c: Likewise.
31119         * lib/unistdio/ulc-vfprintf.c: Likewise.
31120         * lib/unlinkdir.c: Likewise.
31121         * lib/unlinkdir.h: Likewise.
31122         * lib/unlocked-io.h: Likewise.
31123         * lib/unsetenv.c: Likewise.
31124         * lib/userspec.c: Likewise.
31125         * lib/utime.c: Likewise.
31126         * lib/utimecmp.c: Likewise.
31127         * lib/utimecmp.h: Likewise.
31128         * lib/utimens.c: Likewise.
31129         * lib/verify.h: Likewise.
31130         * lib/verror.c: Likewise.
31131         * lib/verror.h: Likewise.
31132         * lib/version-etc-fsf.c: Likewise.
31133         * lib/version-etc.c: Likewise.
31134         * lib/version-etc.h: Likewise.
31135         * lib/vfprintf.c: Likewise.
31136         * lib/vprintf.c: Likewise.
31137         * lib/vsprintf.c: Likewise.
31138         * lib/w32spawn.h: Likewise.
31139         * lib/wait-process.c: Likewise.
31140         * lib/wait-process.h: Likewise.
31141         * lib/wcwidth.c: Likewise.
31142         * lib/write-any-file.c: Likewise.
31143         * lib/xalloc-die.c: Likewise.
31144         * lib/xalloc.h: Likewise.
31145         * lib/xasprintf.c: Likewise.
31146         * lib/xgetcwd.c: Likewise.
31147         * lib/xgetcwd.h: Likewise.
31148         * lib/xgetdomainname.c: Likewise.
31149         * lib/xgetdomainname.h: Likewise.
31150         * lib/xgethostname.c: Likewise.
31151         * lib/xmalloc.c: Likewise.
31152         * lib/xmalloca.c: Likewise.
31153         * lib/xmalloca.h: Likewise.
31154         * lib/xmemcoll.c: Likewise.
31155         * lib/xnanosleep.c: Likewise.
31156         * lib/xreadlink.c: Likewise.
31157         * lib/xreadlink.h: Likewise.
31158         * lib/xsetenv.c: Likewise.
31159         * lib/xsetenv.h: Likewise.
31160         * lib/xstriconv.c: Likewise.
31161         * lib/xstriconv.h: Likewise.
31162         * lib/xstrndup.c: Likewise.
31163         * lib/xstrndup.h: Likewise.
31164         * lib/xstrtod.c: Likewise.
31165         * lib/xstrtod.h: Likewise.
31166         * lib/xstrtol-error.c: Likewise.
31167         * lib/xstrtol.c: Likewise.
31168         * lib/xstrtol.h: Likewise.
31169         * lib/xtime.h: Likewise.
31170         * lib/xvasprintf.c: Likewise.
31171         * lib/xvasprintf.h: Likewise.
31172         * lib/yesno.c: Likewise.
31173         * lib/yesno.h: Likewise.
31174         * posix-modules: Likewise.
31175         * tests/test-alloca-opt.c: Likewise.
31176         * tests/test-arcfour.c: Likewise.
31177         * tests/test-arctwo.c: Likewise.
31178         * tests/test-argmatch.c: Likewise.
31179         * tests/test-argp-2.sh: Likewise.
31180         * tests/test-argp.c: Likewise.
31181         * tests/test-arpa_inet.c: Likewise.
31182         * tests/test-array_list.c: Likewise.
31183         * tests/test-array_oset.c: Likewise.
31184         * tests/test-atexit.c: Likewise.
31185         * tests/test-avltree_list.c: Likewise.
31186         * tests/test-avltree_oset.c: Likewise.
31187         * tests/test-avltreehash_list.c: Likewise.
31188         * tests/test-base64.c: Likewise.
31189         * tests/test-binary-io.c: Likewise.
31190         * tests/test-byteswap.c: Likewise.
31191         * tests/test-c-ctype.c: Likewise.
31192         * tests/test-c-strcasecmp.c: Likewise.
31193         * tests/test-c-strcasestr.c: Likewise.
31194         * tests/test-c-strncasecmp.c: Likewise.
31195         * tests/test-c-strstr.c: Likewise.
31196         * tests/test-canonicalize-lgpl.c: Likewise.
31197         * tests/test-canonicalize.c: Likewise.
31198         * tests/test-carray_list.c: Likewise.
31199         * tests/test-ceilf.c: Likewise.
31200         * tests/test-ceill.c: Likewise.
31201         * tests/test-count-one-bits.c: Likewise.
31202         * tests/test-crc.c: Likewise.
31203         * tests/test-dirname.c: Likewise.
31204         * tests/test-fbufmode.c: Likewise.
31205         * tests/test-fcntl.c: Likewise.
31206         * tests/test-fflush.c: Likewise.
31207         * tests/test-floorf.c: Likewise.
31208         * tests/test-floorl.c: Likewise.
31209         * tests/test-fopen.c: Likewise.
31210         * tests/test-fprintf-posix.c: Likewise.
31211         * tests/test-fprintf-posix.h: Likewise.
31212         * tests/test-fpurge.c: Likewise.
31213         * tests/test-freadable.c: Likewise.
31214         * tests/test-freadahead.c: Likewise.
31215         * tests/test-freading.c: Likewise.
31216         * tests/test-freopen.c: Likewise.
31217         * tests/test-frexp.c: Likewise.
31218         * tests/test-frexpl.c: Likewise.
31219         * tests/test-fseek.c: Likewise.
31220         * tests/test-fseeko.c: Likewise.
31221         * tests/test-fseterr.c: Likewise.
31222         * tests/test-fstrcmp.c: Likewise.
31223         * tests/test-ftell.c: Likewise.
31224         * tests/test-ftello.c: Likewise.
31225         * tests/test-fwritable.c: Likewise.
31226         * tests/test-fwriting.c: Likewise.
31227         * tests/test-getaddrinfo.c: Likewise.
31228         * tests/test-getpass.c: Likewise.
31229         * tests/test-gettimeofday.c: Likewise.
31230         * tests/test-hmac-md5.c: Likewise.
31231         * tests/test-hmac-sha1.c: Likewise.
31232         * tests/test-iconv.c: Likewise.
31233         * tests/test-iconvme.c: Likewise.
31234         * tests/test-inttypes.c: Likewise.
31235         * tests/test-isnan.c: Likewise.
31236         * tests/test-isnanf.c: Likewise.
31237         * tests/test-isnanl-nolibm.c: Likewise.
31238         * tests/test-isnanl.c: Likewise.
31239         * tests/test-isnanl.h: Likewise.
31240         * tests/test-ldexpl.c: Likewise.
31241         * tests/test-linked_list.c: Likewise.
31242         * tests/test-linkedhash_list.c: Likewise.
31243         * tests/test-locale.c: Likewise.
31244         * tests/test-localename.c: Likewise.
31245         * tests/test-lock.c: Likewise.
31246         * tests/test-lseek.c: Likewise.
31247         * tests/test-malloca.c: Likewise.
31248         * tests/test-math.c: Likewise.
31249         * tests/test-mbscasecmp.c: Likewise.
31250         * tests/test-mbscasestr1.c: Likewise.
31251         * tests/test-mbscasestr2.c: Likewise.
31252         * tests/test-mbscasestr3.c: Likewise.
31253         * tests/test-mbscasestr4.c: Likewise.
31254         * tests/test-mbschr.c: Likewise.
31255         * tests/test-mbscspn.c: Likewise.
31256         * tests/test-mbsncasecmp.c: Likewise.
31257         * tests/test-mbspbrk.c: Likewise.
31258         * tests/test-mbspcasecmp.c: Likewise.
31259         * tests/test-mbsrchr.c: Likewise.
31260         * tests/test-mbsspn.c: Likewise.
31261         * tests/test-mbsstr1.c: Likewise.
31262         * tests/test-mbsstr2.c: Likewise.
31263         * tests/test-mbsstr3.c: Likewise.
31264         * tests/test-md5.c: Likewise.
31265         * tests/test-memmem.c: Likewise.
31266         * tests/test-netinet_in.c: Likewise.
31267         * tests/test-open.c: Likewise.
31268         * tests/test-printf-frexp.c: Likewise.
31269         * tests/test-printf-frexpl.c: Likewise.
31270         * tests/test-printf-posix.c: Likewise.
31271         * tests/test-printf-posix.h: Likewise.
31272         * tests/test-rbtree_list.c: Likewise.
31273         * tests/test-rbtree_oset.c: Likewise.
31274         * tests/test-rbtreehash_list.c: Likewise.
31275         * tests/test-read-file.c: Likewise.
31276         * tests/test-rijndael.c: Likewise.
31277         * tests/test-search.c: Likewise.
31278         * tests/test-signbit.c: Likewise.
31279         * tests/test-sleep.c: Likewise.
31280         * tests/test-snprintf-posix.c: Likewise.
31281         * tests/test-snprintf-posix.h: Likewise.
31282         * tests/test-snprintf.c: Likewise.
31283         * tests/test-sprintf-posix.c: Likewise.
31284         * tests/test-sprintf-posix.h: Likewise.
31285         * tests/test-stat-time.c: Likewise.
31286         * tests/test-stdbool.c: Likewise.
31287         * tests/test-stdint.c: Likewise.
31288         * tests/test-stdio.c: Likewise.
31289         * tests/test-stdlib.c: Likewise.
31290         * tests/test-stpncpy.c: Likewise.
31291         * tests/test-strcasestr.c: Likewise.
31292         * tests/test-striconv.c: Likewise.
31293         * tests/test-striconveh.c: Likewise.
31294         * tests/test-striconveha.c: Likewise.
31295         * tests/test-string.c: Likewise.
31296         * tests/test-sys_select.c: Likewise.
31297         * tests/test-sys_socket.c: Likewise.
31298         * tests/test-sys_stat.c: Likewise.
31299         * tests/test-sys_time.c: Likewise.
31300         * tests/test-sysexits.c: Likewise.
31301         * tests/test-time.c: Likewise.
31302         * tests/test-tls.c: Likewise.
31303         * tests/test-trunc.c: Likewise.
31304         * tests/test-truncf.c: Likewise.
31305         * tests/test-truncl.c: Likewise.
31306         * tests/test-unistd.c: Likewise.
31307         * tests/test-vasnprintf-posix.c: Likewise.
31308         * tests/test-vasnprintf-posix2.c: Likewise.
31309         * tests/test-vasnprintf.c: Likewise.
31310         * tests/test-vasprintf-posix.c: Likewise.
31311         * tests/test-vasprintf.c: Likewise.
31312         * tests/test-verify.c: Likewise.
31313         * tests/test-vfprintf-posix.c: Likewise.
31314         * tests/test-vprintf-posix.c: Likewise.
31315         * tests/test-vsnprintf-posix.c: Likewise.
31316         * tests/test-vsnprintf.c: Likewise.
31317         * tests/test-vsprintf-posix.c: Likewise.
31318         * tests/test-wchar.c: Likewise.
31319         * tests/test-wctype.c: Likewise.
31320         * tests/test-wcwidth.c: Likewise.
31321         * tests/test-xstrtol.c: Likewise.
31322         * tests/test-xvasprintf.c: Likewise.
31323         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31324         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31325         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31326         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31327         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31328         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31329         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31330         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31331         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31332         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31333         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31334         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31335         * tests/uniname/test-uninames.c: Likewise.
31336         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31337         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31338         * tests/unistdio/test-u16-printf1.h: Likewise.
31339         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31340         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31341         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31342         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31343         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31344         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31345         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31346         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31347         * tests/unistdio/test-u32-printf1.h: Likewise.
31348         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31349         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31350         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31351         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31352         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31353         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31354         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31355         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31356         * tests/unistdio/test-u8-printf1.h: Likewise.
31357         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31358         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31359         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31360         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31361         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31362         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31363         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31364         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31365         * tests/unistdio/test-ulc-printf1.h: Likewise.
31366         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31367         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31368         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31369         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31370         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31371         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31372         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31373         * tests/uniwidth/test-u16-width.c: Likewise.
31374         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31375         * tests/uniwidth/test-u32-width.c: Likewise.
31376         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31377         * tests/uniwidth/test-u8-width.c: Likewise.
31378         * tests/uniwidth/test-uc_width.c: Likewise.
31379         * config/srclist-update: Likewise.
31380         (fixlicense): Update to GPLv3+.
31381
31382         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31383         * tests/test-tsearch.c: Change copyright notice.
31384
31385         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31386         * lib/c-strcaseeq.h: Change copyright notice.
31387         * lib/streq.h: Likewise.
31388         * lib/uniconv.h: Likewise.
31389         * lib/uniconv/u-conv-from-enc.h: Likewise.
31390         * lib/uniconv/u-conv-to-enc.h: Likewise.
31391         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31392         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31393         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31394         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31395         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31396         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31397         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31398         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31399         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31400         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31401         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31402         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31403         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31404         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31405         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31406         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31407         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31408         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31409         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31410         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31411         * lib/uniname.h: Likewise.
31412         * lib/uniname/uniname.c: Likewise.
31413         * lib/unistdio.h: Likewise.
31414         * lib/unistdio/u-asnprintf.h: Likewise.
31415         * lib/unistdio/u-asprintf.h: Likewise.
31416         * lib/unistdio/u-printf-args.c: Likewise.
31417         * lib/unistdio/u-printf-args.h: Likewise.
31418         * lib/unistdio/u-printf-parse.h: Likewise.
31419         * lib/unistdio/u-snprintf.h: Likewise.
31420         * lib/unistdio/u-sprintf.h: Likewise.
31421         * lib/unistdio/u-vasprintf.h: Likewise.
31422         * lib/unistdio/u-vsnprintf.h: Likewise.
31423         * lib/unistdio/u-vsprintf.h: Likewise.
31424         * lib/unistdio/u16-asnprintf.c: Likewise.
31425         * lib/unistdio/u16-asprintf.c: Likewise.
31426         * lib/unistdio/u16-printf-parse.c: Likewise.
31427         * lib/unistdio/u16-snprintf.c: Likewise.
31428         * lib/unistdio/u16-sprintf.c: Likewise.
31429         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31430         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31431         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31432         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31433         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31434         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31435         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31436         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31437         * lib/unistdio/u16-vasnprintf.c: Likewise.
31438         * lib/unistdio/u16-vasprintf.c: Likewise.
31439         * lib/unistdio/u16-vsnprintf.c: Likewise.
31440         * lib/unistdio/u16-vsprintf.c: Likewise.
31441         * lib/unistdio/u32-asnprintf.c: Likewise.
31442         * lib/unistdio/u32-asprintf.c: Likewise.
31443         * lib/unistdio/u32-printf-parse.c: Likewise.
31444         * lib/unistdio/u32-snprintf.c: Likewise.
31445         * lib/unistdio/u32-sprintf.c: Likewise.
31446         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31447         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31448         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31449         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31450         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31451         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31452         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31453         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31454         * lib/unistdio/u32-vasnprintf.c: Likewise.
31455         * lib/unistdio/u32-vasprintf.c: Likewise.
31456         * lib/unistdio/u32-vsnprintf.c: Likewise.
31457         * lib/unistdio/u32-vsprintf.c: Likewise.
31458         * lib/unistdio/u8-asnprintf.c: Likewise.
31459         * lib/unistdio/u8-asprintf.c: Likewise.
31460         * lib/unistdio/u8-printf-parse.c: Likewise.
31461         * lib/unistdio/u8-snprintf.c: Likewise.
31462         * lib/unistdio/u8-sprintf.c: Likewise.
31463         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31464         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31465         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31466         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31467         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31468         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31469         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31470         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31471         * lib/unistdio/u8-vasnprintf.c: Likewise.
31472         * lib/unistdio/u8-vasprintf.c: Likewise.
31473         * lib/unistdio/u8-vsnprintf.c: Likewise.
31474         * lib/unistdio/u8-vsprintf.c: Likewise.
31475         * lib/unistdio/ulc-asnprintf.c: Likewise.
31476         * lib/unistdio/ulc-asprintf.c: Likewise.
31477         * lib/unistdio/ulc-printf-parse.c: Likewise.
31478         * lib/unistdio/ulc-snprintf.c: Likewise.
31479         * lib/unistdio/ulc-sprintf.c: Likewise.
31480         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31481         * lib/unistdio/ulc-vasprintf.c: Likewise.
31482         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31483         * lib/unistdio/ulc-vsprintf.c: Likewise.
31484         * lib/unistr.h: Likewise.
31485         * lib/unistr/u-cpy-alloc.h: Likewise.
31486         * lib/unistr/u-cpy.h: Likewise.
31487         * lib/unistr/u-endswith.h: Likewise.
31488         * lib/unistr/u-move.h: Likewise.
31489         * lib/unistr/u-set.h: Likewise.
31490         * lib/unistr/u-startswith.h: Likewise.
31491         * lib/unistr/u-stpcpy.h: Likewise.
31492         * lib/unistr/u-stpncpy.h: Likewise.
31493         * lib/unistr/u-strcat.h: Likewise.
31494         * lib/unistr/u-strcpy.h: Likewise.
31495         * lib/unistr/u-strcspn.h: Likewise.
31496         * lib/unistr/u-strdup.h: Likewise.
31497         * lib/unistr/u-strlen.h: Likewise.
31498         * lib/unistr/u-strncat.h: Likewise.
31499         * lib/unistr/u-strncpy.h: Likewise.
31500         * lib/unistr/u-strnlen.h: Likewise.
31501         * lib/unistr/u-strpbrk.h: Likewise.
31502         * lib/unistr/u-strspn.h: Likewise.
31503         * lib/unistr/u-strstr.h: Likewise.
31504         * lib/unistr/u-strtok.h: Likewise.
31505         * lib/unistr/u16-check.c: Likewise.
31506         * lib/unistr/u16-chr.c: Likewise.
31507         * lib/unistr/u16-cmp.c: Likewise.
31508         * lib/unistr/u16-cpy-alloc.c: Likewise.
31509         * lib/unistr/u16-cpy.c: Likewise.
31510         * lib/unistr/u16-endswith.c: Likewise.
31511         * lib/unistr/u16-mblen.c: Likewise.
31512         * lib/unistr/u16-mbsnlen.c: Likewise.
31513         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31514         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31515         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31516         * lib/unistr/u16-mbtouc.c: Likewise.
31517         * lib/unistr/u16-mbtoucr.c: Likewise.
31518         * lib/unistr/u16-move.c: Likewise.
31519         * lib/unistr/u16-next.c: Likewise.
31520         * lib/unistr/u16-prev.c: Likewise.
31521         * lib/unistr/u16-set.c: Likewise.
31522         * lib/unistr/u16-startswith.c: Likewise.
31523         * lib/unistr/u16-stpcpy.c: Likewise.
31524         * lib/unistr/u16-stpncpy.c: Likewise.
31525         * lib/unistr/u16-strcat.c: Likewise.
31526         * lib/unistr/u16-strchr.c: Likewise.
31527         * lib/unistr/u16-strcmp.c: Likewise.
31528         * lib/unistr/u16-strcpy.c: Likewise.
31529         * lib/unistr/u16-strcspn.c: Likewise.
31530         * lib/unistr/u16-strdup.c: Likewise.
31531         * lib/unistr/u16-strlen.c: Likewise.
31532         * lib/unistr/u16-strmblen.c: Likewise.
31533         * lib/unistr/u16-strmbtouc.c: Likewise.
31534         * lib/unistr/u16-strncat.c: Likewise.
31535         * lib/unistr/u16-strncmp.c: Likewise.
31536         * lib/unistr/u16-strncpy.c: Likewise.
31537         * lib/unistr/u16-strnlen.c: Likewise.
31538         * lib/unistr/u16-strpbrk.c: Likewise.
31539         * lib/unistr/u16-strrchr.c: Likewise.
31540         * lib/unistr/u16-strspn.c: Likewise.
31541         * lib/unistr/u16-strstr.c: Likewise.
31542         * lib/unistr/u16-strtok.c: Likewise.
31543         * lib/unistr/u16-to-u32.c: Likewise.
31544         * lib/unistr/u16-to-u8.c: Likewise.
31545         * lib/unistr/u16-uctomb-aux.c: Likewise.
31546         * lib/unistr/u16-uctomb.c: Likewise.
31547         * lib/unistr/u32-check.c: Likewise.
31548         * lib/unistr/u32-chr.c: Likewise.
31549         * lib/unistr/u32-cmp.c: Likewise.
31550         * lib/unistr/u32-cpy-alloc.c: Likewise.
31551         * lib/unistr/u32-cpy.c: Likewise.
31552         * lib/unistr/u32-endswith.c: Likewise.
31553         * lib/unistr/u32-mblen.c: Likewise.
31554         * lib/unistr/u32-mbsnlen.c: Likewise.
31555         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31556         * lib/unistr/u32-mbtouc.c: Likewise.
31557         * lib/unistr/u32-mbtoucr.c: Likewise.
31558         * lib/unistr/u32-move.c: Likewise.
31559         * lib/unistr/u32-next.c: Likewise.
31560         * lib/unistr/u32-prev.c: Likewise.
31561         * lib/unistr/u32-set.c: Likewise.
31562         * lib/unistr/u32-startswith.c: Likewise.
31563         * lib/unistr/u32-stpcpy.c: Likewise.
31564         * lib/unistr/u32-stpncpy.c: Likewise.
31565         * lib/unistr/u32-strcat.c: Likewise.
31566         * lib/unistr/u32-strchr.c: Likewise.
31567         * lib/unistr/u32-strcmp.c: Likewise.
31568         * lib/unistr/u32-strcpy.c: Likewise.
31569         * lib/unistr/u32-strcspn.c: Likewise.
31570         * lib/unistr/u32-strdup.c: Likewise.
31571         * lib/unistr/u32-strlen.c: Likewise.
31572         * lib/unistr/u32-strmblen.c: Likewise.
31573         * lib/unistr/u32-strmbtouc.c: Likewise.
31574         * lib/unistr/u32-strncat.c: Likewise.
31575         * lib/unistr/u32-strncmp.c: Likewise.
31576         * lib/unistr/u32-strncpy.c: Likewise.
31577         * lib/unistr/u32-strnlen.c: Likewise.
31578         * lib/unistr/u32-strpbrk.c: Likewise.
31579         * lib/unistr/u32-strrchr.c: Likewise.
31580         * lib/unistr/u32-strspn.c: Likewise.
31581         * lib/unistr/u32-strstr.c: Likewise.
31582         * lib/unistr/u32-strtok.c: Likewise.
31583         * lib/unistr/u32-to-u16.c: Likewise.
31584         * lib/unistr/u32-to-u8.c: Likewise.
31585         * lib/unistr/u32-uctomb.c: Likewise.
31586         * lib/unistr/u8-check.c: Likewise.
31587         * lib/unistr/u8-chr.c: Likewise.
31588         * lib/unistr/u8-cmp.c: Likewise.
31589         * lib/unistr/u8-cpy-alloc.c: Likewise.
31590         * lib/unistr/u8-cpy.c: Likewise.
31591         * lib/unistr/u8-endswith.c: Likewise.
31592         * lib/unistr/u8-mblen.c: Likewise.
31593         * lib/unistr/u8-mbsnlen.c: Likewise.
31594         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31595         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31596         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31597         * lib/unistr/u8-mbtouc.c: Likewise.
31598         * lib/unistr/u8-mbtoucr.c: Likewise.
31599         * lib/unistr/u8-move.c: Likewise.
31600         * lib/unistr/u8-next.c: Likewise.
31601         * lib/unistr/u8-prev.c: Likewise.
31602         * lib/unistr/u8-set.c: Likewise.
31603         * lib/unistr/u8-startswith.c: Likewise.
31604         * lib/unistr/u8-stpcpy.c: Likewise.
31605         * lib/unistr/u8-stpncpy.c: Likewise.
31606         * lib/unistr/u8-strcat.c: Likewise.
31607         * lib/unistr/u8-strchr.c: Likewise.
31608         * lib/unistr/u8-strcmp.c: Likewise.
31609         * lib/unistr/u8-strcpy.c: Likewise.
31610         * lib/unistr/u8-strcspn.c: Likewise.
31611         * lib/unistr/u8-strdup.c: Likewise.
31612         * lib/unistr/u8-strlen.c: Likewise.
31613         * lib/unistr/u8-strmblen.c: Likewise.
31614         * lib/unistr/u8-strmbtouc.c: Likewise.
31615         * lib/unistr/u8-strncat.c: Likewise.
31616         * lib/unistr/u8-strncmp.c: Likewise.
31617         * lib/unistr/u8-strncpy.c: Likewise.
31618         * lib/unistr/u8-strnlen.c: Likewise.
31619         * lib/unistr/u8-strpbrk.c: Likewise.
31620         * lib/unistr/u8-strrchr.c: Likewise.
31621         * lib/unistr/u8-strspn.c: Likewise.
31622         * lib/unistr/u8-strstr.c: Likewise.
31623         * lib/unistr/u8-strtok.c: Likewise.
31624         * lib/unistr/u8-to-u16.c: Likewise.
31625         * lib/unistr/u8-to-u32.c: Likewise.
31626         * lib/unistr/u8-uctomb-aux.c: Likewise.
31627         * lib/unistr/u8-uctomb.c: Likewise.
31628         * lib/unitypes.h: Likewise.
31629         * lib/uniwidth.h: Likewise.
31630         * lib/uniwidth/cjk.h: Likewise.
31631         * lib/uniwidth/u16-strwidth.c: Likewise.
31632         * lib/uniwidth/u16-width.c: Likewise.
31633         * lib/uniwidth/u32-strwidth.c: Likewise.
31634         * lib/uniwidth/u32-width.c: Likewise.
31635         * lib/uniwidth/u8-strwidth.c: Likewise.
31636         * lib/uniwidth/u8-width.c: Likewise.
31637         * lib/uniwidth/width.c: Likewise.
31638
31639 2007-10-07  Bruno Haible  <bruno@clisp.org>
31640
31641         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31642         The file is still under LGPL (see modules/inttypes).
31643
31644 2007-10-06  Bruno Haible  <bruno@clisp.org>
31645
31646         * modules/trunc (Dependencies): Add 'extensions'.
31647         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31648         Reported by Ben Pfaff <blp@gnu.org>.
31649
31650 2007-10-06  Bruno Haible  <bruno@clisp.org>
31651
31652         * modules/freopen-tests: New file.
31653         * tests/test-freopen.c: New file.
31654
31655         * modules/fopen-tests: New file.
31656         * tests/test-fopen.c: New file.
31657
31658         * modules/fopen: New file.
31659         * lib/fopen.c: New file.
31660         * m4/fopen.m4: New file.
31661         * modules/freopen: New file.
31662         * lib/freopen.c: New file.
31663         * m4/freopen.m4: New file.
31664         * lib/stdio.in.h (fopen, freopen): New declarations.
31665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31666         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31667         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31668         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31669         * doc/functions/fopen.texi: Mention the 'fopen' module.
31670         * doc/functions/freopen.texi: Mention the 'freopen' module.
31671
31672 2007-10-06  Bruno Haible  <bruno@clisp.org>
31673
31674         * modules/open-tests: New file.
31675         * tests/test-open.c: New file.
31676
31677         * modules/open: New file.
31678         * lib/open.c: New file.
31679         * m4/open.m4: New file.
31680         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31681         lib/open.c does.
31682         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31683         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31684         macros.
31685         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31686         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31687         REPLACE_OPEN.
31688         * doc/functions/open.texi: Mention the 'open' module.
31689
31690 2007-10-04  Bruno Haible  <bruno@clisp.org>
31691
31692         * modules/ceill-tests: New file.
31693         * tests/test-ceill.c: New file.
31694
31695         * modules/ceill: New file.
31696         * lib/ceill.c: Replace entire file.
31697         * m4/ceill.m4: New file.
31698         * lib/math.in.h (ceill): Replace declaration.
31699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31700         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31701         * doc/functions/ceill.texi: Mention the 'ceill' module.
31702         * modules/mathl (Files): Remove lib/ceill.c.
31703         (Depends-on): Add ceill.
31704
31705 2007-10-04  Bruno Haible  <bruno@clisp.org>
31706
31707         * modules/ceilf-tests: New file.
31708         * tests/test-ceilf.c: New file.
31709
31710         * modules/ceilf: New file.
31711         * lib/ceil.c: New file.
31712         * lib/ceilf.c: New file.
31713         * m4/ceilf.m4: New file.
31714         * lib/math.in.h (ceilf): New declaration.
31715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31716         HAVE_DECL_CEILF.
31717         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31718         HAVE_DECL_CEILF.
31719         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31720
31721 2007-10-04  Bruno Haible  <bruno@clisp.org>
31722
31723         * modules/floorl-tests: New file.
31724         * tests/test-floorl.c: New file.
31725
31726         * modules/floorl: New file.
31727         * lib/floorl.c: Replace entire file.
31728         * m4/floorl.m4: New file.
31729         * lib/math.in.h (floorl): Replace declaration.
31730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31731         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31732         * doc/functions/floorl.texi: Mention the 'floorl' module.
31733         * modules/mathl (Files): Remove lib/floorl.c.
31734         (Depends-on): Add floorl.
31735
31736 2007-10-04  Bruno Haible  <bruno@clisp.org>
31737
31738         * modules/floorf-tests: New file.
31739         * tests/test-floorf.c: New file.
31740
31741         * modules/floorf: New file.
31742         * lib/floor.c: New file.
31743         * lib/floorf.c: New file.
31744         * m4/floorf.m4: New file.
31745         * lib/math.in.h (floorf): New declaration.
31746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31747         HAVE_DECL_FLOORF.
31748         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31749         HAVE_DECL_FLOORF.
31750         * doc/functions/floorf.texi: Mention the 'floorf' module.
31751
31752 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31753             Bruno Haible  <bruno@clisp.org>
31754
31755         Advertise for the Git server instead of the CVS server.
31756         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31757         repository instead of the CVS one.
31758         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31759         about all VCS systems generically.
31760         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31761
31762 2007-10-04  Bruno Haible  <bruno@clisp.org>
31763
31764         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31765         means.
31766         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31767
31768 2007-10-04  Bruno Haible  <bruno@clisp.org>
31769
31770         * modules/truncl-tests: New file.
31771         * tests/test-truncl.c: New file.
31772
31773         * modules/truncl: New file.
31774         * lib/truncl.c: New file.
31775         * m4/truncl.m4: New file.
31776         * lib/math.in.h (truncl): New declaration.
31777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31778         HAVE_DECL_TRUNCL.
31779         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31780         HAVE_DECL_TRUNCL.
31781         * doc/functions/truncl.texi: Mention the 'truncl' module.
31782
31783 2007-10-04  Bruno Haible  <bruno@clisp.org>
31784
31785         * modules/truncf-tests: New file.
31786         * tests/test-truncf.c: New file.
31787
31788         * modules/truncf: New file.
31789         * lib/trunc.c: Make paramerizable through USE_* macros.
31790         * lib/truncf.c: New file.
31791         * m4/truncf.m4: New file.
31792         * lib/math.in.h (truncf): New declaration.
31793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31794         HAVE_DECL_TRUNCF.
31795         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31796         HAVE_DECL_TRUNCF.
31797         * doc/functions/truncf.texi: Mention the 'truncf' module.
31798
31799 2007-10-03  Bruno Haible  <bruno@clisp.org>
31800
31801         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31802         augmentation also for tests modules.
31803         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31804         * modules/atexit-tests (Makefile.am): Likewise.
31805         * modules/binary-io-tests (Makefile.am): Likewise.
31806         * modules/c-strcase-tests (Makefile.am): Likewise.
31807         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31808         * modules/canonicalize-tests (Makefile.am): Likewise.
31809         * modules/closein-tests (Makefile.am): Likewise.
31810         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31811         * modules/freadahead-tests (Makefile.am): Likewise.
31812         * modules/fseek-tests (Makefile.am): Likewise.
31813         * modules/fseeko-tests (Makefile.am): Likewise.
31814         * modules/ftell-tests (Makefile.am): Likewise.
31815         * modules/ftello-tests (Makefile.am): Likewise.
31816         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31817         * modules/isnanl-tests (Makefile.am): Likewise.
31818         * modules/lseek-tests (Makefile.am): Likewise.
31819         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31820         * modules/mbscasestr-tests (Makefile.am): Likewise.
31821         * modules/mbschr-tests (Makefile.am): Likewise.
31822         * modules/mbscspn-tests (Makefile.am): Likewise.
31823         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31824         * modules/mbspbrk-tests (Makefile.am): Likewise.
31825         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31826         * modules/mbsrchr-tests (Makefile.am): Likewise.
31827         * modules/mbsspn-tests (Makefile.am): Likewise.
31828         * modules/mbsstr-tests (Makefile.am): Likewise.
31829         * modules/printf-posix-tests (Makefile.am): Likewise.
31830         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31831         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31832         * modules/tsearch-tests (Makefile.am): Likewise.
31833         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31834         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31835         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31836         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31837         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31838         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31839         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31840         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31841         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31842         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31843         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31844         * modules/xstrtol-tests (Makefile.am): Likewise.
31845         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31846         * modules/yesno-tests (Makefile.am): Likewise.
31847
31848 2007-10-03  Bruno Haible  <bruno@clisp.org>
31849
31850         * modules/trunc-tests: New file.
31851         * tests/test-trunc.c: New file.
31852
31853         * modules/trunc: New file.
31854         * lib/trunc.c: New file.
31855         * m4/trunc.m4: New file.
31856         * lib/math.in.h (trunc): New declaration.
31857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31858         HAVE_DECL_TRUNC.
31859         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31860         HAVE_DECL_TRUNC.
31861         * doc/functions/trunc.texi: Mention the 'trunc' module.
31862
31863 2007-10-03  Bruno Haible  <bruno@clisp.org>
31864
31865         * tests/test-fpending.c: New file, mostly copied
31866         from coreutils/lib/t-fpending.c.
31867         * modules/fpending-tests: New file.
31868
31869 2007-10-03  Bruno Haible  <bruno@clisp.org>
31870
31871         Port the stdio extensions to QNX (untested).
31872         * lib/fseterr.c (fseterr): Add support for QNX.
31873         * lib/fbufmode.c (fbufmode): Likewise.
31874         * lib/freadable.c (freadable): Likewise.
31875         * lib/fwritable.c (fwritable): Likewise.
31876         * lib/freading.c (freading): Likewise.
31877         * lib/fwriting.c (fwriting): Likewise.
31878         * lib/freadahead.c (freadahed): Likewise.
31879         * lib/fpurge.c (fpurge): Likewise.
31880         * lib/fseeko.c (rpl_fseeko): Likewise.
31881
31882 2007-10-03  Bruno Haible  <bruno@clisp.org>
31883             Jim Meyering  <jim@meyering.net>
31884             Eric Blake  <ebb9@byu.net>
31885
31886         * doc/relocatable.texi: Use @command instead of @program.
31887
31888 2007-10-02  Jim Meyering  <jim@meyering.net>
31889
31890         Perform one more "_.h" -> ".in.h" substitution.
31891         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31892         instead of unistd_.h here, too.
31893
31894 2007-10-01  Bruno Haible  <bruno@clisp.org>
31895
31896         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31897         Needed for the alloca-opt module.
31898
31899 2007-09-30  Bruno Haible  <bruno@clisp.org>
31900
31901         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31902         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31903         alloca_.h.
31904         * lib/argz.in.h: Renamed from lib/argz_.h.
31905         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31906         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31907         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31908         byteswap_.h.
31909         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31910         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31911         dirent_.h.
31912         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31913         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31914         fcntl_.h.
31915         * lib/float.in.h: Renamed from lib/float_.h.
31916         * modules/float (Files, Makefile.am): Use float.in.h instead of
31917         float_.h.
31918         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31919         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31920         fnmatch_.h.
31921         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31922         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31923         getopt_.h.
31924         * lib/glob.in.h: Renamed from lib/glob_.h.
31925         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31926         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31927         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31928         iconv_.h.
31929         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31930         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31931         inttypes_.h.
31932         * lib/locale.in.h: Renamed from lib/locale_.h.
31933         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31934         locale_.h.
31935         * lib/math.in.h: Renamed from lib/math_.h.
31936         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31937         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31938         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31939         of netinet_in_.h. Add dependency.
31940         * lib/poll.in.h: Renamed from lib/poll_.h.
31941         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31942         * lib/search.in.h: Renamed from lib/search_.h.
31943         * modules/search (Files, Makefile.am): Use search.in.h instead of
31944         search_.h.
31945         * lib/signal.in.h: Renamed from lib/signal_.h.
31946         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31947         _signal.h.
31948         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31949         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31950         stdbool_.h.
31951         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31952         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31953         stdint_.h.
31954         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31955         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31956         stdio_.h.
31957         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31958         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31959         stdlib_.h.
31960         * lib/string.in.h: Renamed from lib/string_.h.
31961         * modules/string (Files, Makefile.am): Use string.in.h instead of
31962         string_.h.
31963         * doc/gnulib-tool.texi (Initial import): Update.
31964         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31965         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31966         of sys_select_.h. Add dependency.
31967         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31968         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31969         of sys_socket_.h.
31970         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31971         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31972         sys_stat_.h.
31973         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31974         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31975         sys_time_.h.
31976         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31977         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31978         sysexits_.h.
31979         * lib/time.in.h: Renamed from lib/time_.h.
31980         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31981         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31982         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31983         unistd_.h.
31984         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31985         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31986         wchar_.h.
31987         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31988         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31989         wctype_.h.
31990         * build-aux/bootstrap (slurp): Update.
31991         * lib/.cppi-disable: Update.
31992
31993 2007-09-30  Bruno Haible  <bruno@clisp.org>
31994
31995         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31996         Needed on BeOS.
31997
31998 2007-09-30  Bruno Haible  <bruno@clisp.org>
31999
32000         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32001
32002 2007-09-29  Bruno Haible  <bruno@clisp.org>
32003
32004         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32005
32006 2007-09-29  Bruno Haible  <bruno@clisp.org>
32007
32008         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32009         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32010         * build-aux/install-reloc: Compile also areadlink.c.
32011         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32012
32013 2007-09-29  Bruno Haible  <bruno@clisp.org>
32014
32015         * gnulib-tool (func_emit_initmacro_done): Indentation.
32016
32017 2007-09-29  Bruno Haible  <bruno@clisp.org>
32018
32019         * README: Add CVS checkout update instructions.
32020         Info from Bob Proulx <bob@proulx.com>.
32021
32022 2007-09-28  Eric Blake  <ebb9@byu.net>
32023
32024         Provide move-if-change.
32025         * build-aux/move-if-change: New file, based on best practice
32026         rather than any canonical upstream location.
32027
32028 2007-09-28  Jim Meyering  <jim@meyering.net>
32029
32030         Fix canonicalize loop-detection corner case.
32031         Do not attempt to stat the symlink values stored via seen_triple.
32032         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32033         on linux-2.6.18, (but not 2.6.22).
32034         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32035         triple_compare.  The former compares dev,ino,filename, while the latter
32036         would actually stat dirname(filename) when dev and ino were equal.
32037         * lib/hash-triple.c: Install <string.h>.
32038         (STREQ): Define.
32039         (triple_compare_ino_str): New function.
32040         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32041
32042 2007-09-28  Eric Blake  <ebb9@byu.net>
32043
32044         Enforce that AC_REPLACE_FUNCS files exist.
32045         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32046         override check for typos.
32047
32048         Fix test-closein on Solaris 10.
32049         * tests/test-closein.c (main): Don't assume stdin can be inherited
32050         closed on all systems.
32051         * tests/test-closein.sh: Likewise.
32052         Reported by Piotr Tarnowski.
32053
32054 2007-09-28  Jim Meyering  <jim@meyering.net>
32055
32056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32057
32058 2007-09-27  Jim Meyering  <jim@meyering.net>
32059
32060         canonicalize: Avoid a false-positive cycle failure.
32061         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32062         Sort.  Remove cycle-check.
32063         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32064         not cycle-check.h.
32065         (seen_triple): New function.
32066         (canonicalize_filename_mode): Use it instead of cycle-check.
32067         * tests/test-canonicalize.c: Add a test for this bug.
32068         * tests/test-canonicalize.sh: Set up and run the test.
32069
32070         New module, file-set, from coreutils.
32071         * modules/file-set: Define it.
32072         * lib/file-set.c, lib/file-set.h: Implement.
32073
32074         New module, hash-triple, from coreutils.
32075         * modules/hash-triple: Define it.
32076         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32077
32078 2007-09-25  Eric Blake  <ebb9@byu.net>
32079
32080         Fix strerror on Interix.
32081         * lib/string_.h (strerror): Declare replacement.
32082         * doc/functions/strerror.texi (strerror): Document the Interix
32083         shortcoming.
32084         * modules/string (Makefile.am): Support new hooks.
32085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32086         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32087         gl_FUNC_STRERROR_SEPARATE.
32088         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32089         * lib/strerror.c (rpl_strerror): Provide replacement.
32090         * modules/strerror (Depends-on): Add string.
32091         (configure.ac): Detect use of module.
32092         * tests/test-strerror.c: New file.
32093         * modules/strerror-tests: New test module.
32094         * modules/argp (Depends-on): Add strerror.
32095         * modules/error (Depends-on): Likewise.
32096         Reported by Martin Koeppe.
32097
32098 2007-09-24  Bruno Haible  <bruno@clisp.org>
32099
32100         * README: Update git instructions.
32101
32102 2007-09-24  Eric Blake  <ebb9@byu.net>
32103
32104         Revert fpending breakage from 2007-09-08.
32105         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32106         __fpending.c.
32107
32108 2007-09-24  Jim Meyering  <jim@meyering.net>
32109
32110         filenamecat.c: Add a test.
32111         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32112         showing how the function works when DIR is the empty string.
32113
32114 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32115
32116         * tests/test-canonicalize.sh: Turn on executable bit.
32117
32118 2007-09-19  Eric Blake  <ebb9@byu.net>
32119
32120         * README: Update CVS instructions.
32121
32122 2007-09-18  Bruno Haible  <bruno@clisp.org>
32123
32124         * modules/areadlink: New file.
32125         * lib/areadlink.h (areadlink): New declaration.
32126         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32127
32128 2007-09-17  Jim Meyering  <jim@meyering.net>
32129
32130         * lib/savewd.c (ESTALE) [!defined]: Define.
32131         Reported to be required on Interix by Martin Koeppe.
32132
32133 2007-09-17  Bruno Haible  <bruno@clisp.org>
32134
32135         * gnulib-tool (func_version): Use $version.
32136
32137 2007-09-16  Bruno Haible  <bruno@clisp.org>
32138
32139         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32140         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32141         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32142         Reported by Greg Schafer <gschafer@zip.com.au>.
32143
32144 2007-09-15  Bruno Haible  <bruno@clisp.org>
32145
32146         * gnulib-tool (sed): Try a little harder to make bash understand the
32147         alias.
32148         Reported by Bruce Korb <bruce.korb@gmail.com>.
32149
32150 2007-09-13  Eric Blake  <ebb9@byu.net>
32151
32152         * ChangeLog: Remove conflict markers.
32153
32154 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32155
32156         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32157         Reported by Bruno Haible <bruno@clisp.org>.
32158
32159 2007-09-12  Bruno Haible  <bruno@clisp.org>
32160
32161         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32162         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32163         is not defined.
32164
32165 2007-09-12  Eric Blake  <ebb9@byu.net>
32166
32167         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32168         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32169         Autoconf definition.
32170         * modules/euidaccess (Depends-on): Add extensions, for
32171         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32172         * modules/fnmatch (Depends-on): Likewise.
32173         * modules/getaddrinfo (Depends-on): Likewise.
32174         * modules/getdelim (Depends-on): Likewise.
32175         * modules/getline (Depends-on): Likewise.
32176         * modules/getsubopt (Depends-on): Likewise.
32177         * modules/gettext (Depends-on): Likewise.
32178         * modules/group-member (Depends-on): Likewise.
32179         * modules/mbchar (Depends-on): Likewise.
32180         * modules/memmem (Depends-on): Likewise.
32181         * modules/mempcpy (Depends-on): Likewise.
32182         * modules/memrchr (Depends-on): Likewise.
32183         * modules/pagealign_alloc (Depends-on): Likewise.
32184         * modules/readutmp (Depends-on): Likewise.
32185         * modules/stpcpy (Depends-on): Likewise.
32186         * modules/stpncpy (Depends-on): Likewise.
32187         * modules/strchrnul (Depends-on): Likewise.
32188         * modules/strndup (Depends-on): Likewise.
32189         * modules/strsep (Depends-on): Likewise.
32190         * modules/strverscmp (Depends-on): Likewise.
32191         * modules/vasprintf (Depends-on): Likewise.
32192         * modules/wcwidth (Depends-on): Likewise.
32193         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32194         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32195         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32197         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32198         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32199         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32200         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32201         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32202         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32203         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32204         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32205         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32206         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32207         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32208         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32209         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32210         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32212         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32213         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32214         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32215         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32216         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32217         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32219         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32220         so that lock.m4 can be used in gettext without extensions module.
32221
32222 2007-09-11  Bruno Haible  <bruno@clisp.org>
32223
32224         * m4/isc-posix.m4: Remove file.
32225         Suggested by Eric Blake.
32226
32227 2007-09-11  Eric Blake  <ebb9@byu.net>
32228
32229         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32230
32231 2007-09-10  Bruno Haible  <bruno@clisp.org>
32232
32233         * posix-modules: Fix typo in error message.
32234         Reported by Matt <mkraai@beckman.com>.
32235
32236 2007-09-09  Bruno Haible  <bruno@clisp.org>
32237
32238         * doc/functions/getdelim.texi: Update list of platforms lacking the
32239         function.
32240         * doc/functions/getline.texi: Likewise.
32241
32242 2007-09-09  Jim Meyering  <jim@meyering.net>
32243
32244         * lib/hash.c (hash_initialize): Detect calloc failure.
32245         Reported by Bruno Haible.
32246
32247 2007-09-09  Bruno Haible  <bruno@clisp.org>
32248
32249         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32250         malloc or realloc fails.
32251
32252 2007-09-09  Bruno Haible  <bruno@clisp.org>
32253
32254         * modules/getcwd (Depends-on): Add malloc-posix.
32255         * modules/glob (Depends-on): Likewise.
32256         * modules/putenv (Depends-on): Likewise.
32257         * modules/strdup (Depends-on): Likewise.
32258         * modules/getdelim (Depends-on): Add realloc-posix.
32259         * modules/read-file (Depends-on): Likewise.
32260
32261 2007-09-09  Bruno Haible  <bruno@clisp.org>
32262
32263         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32264         (gl_FUNC_MALLOC_POSIX): Require it.
32265         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32266         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32267         * modules/realloc (Files): Add m4/malloc.m4.
32268         * modules/calloc (Files): Likewise.
32269
32270 2007-09-09  Bruno Haible  <bruno@clisp.org>
32271
32272         * modules/malloc-posix: New file.
32273         * modules/malloc (Depends-on): Add malloc-posix.
32274         * lib/malloc.c: Include errno.h.
32275         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32276         and a POSIX-compatible malloc into a single function. Set ENOMEM
32277         when returning NULL.
32278         * m4/malloc.m4: New file.
32279         * doc/functions/malloc.texi: Mention the malloc-posix module.
32280         * lib/stdlib_.h (malloc): New declaration.
32281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32282         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32283         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32284         and HAVE_MALLOC_POSIX.
32285
32286 2007-09-09  Bruno Haible  <bruno@clisp.org>
32287
32288         * modules/realloc-posix: New file.
32289         * modules/realloc (Depends-on): Add realloc-posix.
32290         * lib/realloc.c: Include errno.h.
32291         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32292         and a POSIX-compatible realloc into a single function. Set ENOMEM
32293         when returning NULL.
32294         * m4/realloc.m4: New file.
32295         * doc/functions/realloc.texi: Mention the realloc-posix module.
32296         * lib/stdlib_.h (realloc): New declaration.
32297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32298         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32299         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32300         and HAVE_REALLOC_POSIX.
32301
32302 2007-09-09  Bruno Haible  <bruno@clisp.org>
32303
32304         * modules/calloc-posix: New file.
32305         * modules/calloc (Depends-on): Add calloc-posix.
32306         * lib/calloc.c: Include errno.h.
32307         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32308         and a POSIX-compatible calloc into a single function. Set ENOMEM
32309         when returning NULL.
32310         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32311         * doc/functions/calloc.texi: Mention the calloc-posix module.
32312         * lib/stdlib_.h (calloc): New declaration.
32313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32314         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32315         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32316         and HAVE_CALLOC_POSIX.
32317
32318 2007-09-09  Bruno Haible  <bruno@clisp.org>
32319
32320         Allow for modules to show an arbitrary notice.
32321         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32322         * gnulib-tool: New option --extract-notice.
32323         (func_usage): Document it.
32324         (sed_extract_prog): Update.
32325         (func_get_notice): New function.
32326         (func_modules_notice): New function.
32327         (func_import, func_create_testdir): Invoke it.
32328         Suggested by Jim Meyering.
32329
32330 2007-09-09  Bruno Haible  <bruno@clisp.org>
32331
32332         * gnulib-tool: New options --verbose, --quiet.
32333         (func_usage): Document them.
32334         (verbose): New variable.
32335         (func_execute_command): New function.
32336         (func_import): Don't show the module list and the file list if
32337         $verbose < 0.
32338         (func_create_testdir): Likewise. Use func_execute_command.
32339         (func_create_megatestdir): Use func_execute_command.
32340
32341 2007-09-08  Bruno Haible  <bruno@clisp.org>
32342
32343         * gnulib-tool (func_import): Prefer rsync over wget when available,
32344         for fetching the PO files.
32345
32346 2007-09-08  Bruno Haible  <bruno@clisp.org>
32347
32348         * posix-modules: New file. Portions copied from gnulib-tool.
32349         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32350
32351 2007-09-08  Jim Meyering  <jim@meyering.net>
32352
32353         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32354         * lib/fpending.h: Rename from __fpending.h.
32355         * lib/fpending.c: Rename from __fpending.c.
32356         Include "fpending.h", not "__fpending.h".
32357         * lib/__fpending.h, lib/__fpending.c: Remove files.
32358         * modules/fpending (Files): Reflect new file names.
32359         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32360
32361 2007-09-08  Bruno Haible  <bruno@clisp.org>
32362
32363         * m4/inttypes-h.m4: Remove stub file.
32364
32365 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32366
32367         * doc/headers/stdint.texi: Discuss #include_next issue.
32368
32369 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32370
32371         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32372
32373 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32374
32375         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32376         in variable name.
32377
32378 2007-09-03  Jim Meyering  <jim@meyering.net>
32379
32380         New module: git-version-gen.
32381         * modules/git-version-gen: New file.
32382
32383         Import changes from coreutils for bootstrap script.
32384
32385         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32386
32387         bootstrap: uses rsync to download the .po files
32388         * build-aux/bootstrap (po_download_command_format): New global.
32389         (download_po_files): Use rsync.
32390         (update_po_files): Don't remove .po files after download,
32391         so future rsync runs can take advantage of the copies.
32392
32393         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32394
32395         Solve the unnecessary-.po-file-regeneration problem once and for all.
32396         * build-aux/bootstrap (download_po_files): New function, renamed from
32397         get_translations.  Now, downloads, but doesn't update LINGUAS.
32398         (update_po_files): New function.
32399
32400         bootstrap: Ignore more.
32401         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32402         uniwidth to e.g., lib/.gitignore.
32403         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32404
32405         * build-aux/bootstrap: New setting: vc_ignore.
32406         (insert_sorted_if_absent): Create $file if absent.
32407         Adapt to new, possibly empty, list: $vc_ignore.
32408
32409         bootstrap: generate more ignorable names
32410         * build-aux/bootstrap (slurp): When generating ignorable names,
32411         also map .sin to .sed, .gperf to .c, and .y to .c.
32412
32413 2007-09-03  Jim Meyering  <jim@meyering.net>
32414
32415         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32416         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32417
32418 2007-09-02  Bruno Haible  <bruno@clisp.org>
32419
32420         Fix mis-recognition of 'mcs' on QNX 6.
32421         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32422         output contains the string "Mono".
32423         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32424         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32425
32426 2007-09-01  Bruno Haible  <bruno@clisp.org>
32427
32428         Fix collision between uniwidth/* and linebreak modules.
32429         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32430         u32_width): Remove declarations.
32431         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32432         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32433         streq3, streq2, streq1, streq0): Remove functions.
32434         (STREQ): Remove macro.
32435         (is_cjk_encoding): Remove function.
32436         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32437         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32438         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32439         * NEWS: Document the change.
32440
32441 2007-09-01  Bruno Haible  <bruno@clisp.org>
32442
32443         * lib/streq.h: Add double-inclusion guard.
32444
32445 2007-09-01  Karl Berry  <karl@gnu.org>
32446
32447         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32448
32449 2007-08-28  Jim Meyering  <jim@meyering.net>
32450
32451         Rename mreadlink_with_size to areadlink_with_size.
32452         * NEWS: Document the change.
32453         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32454         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32455         * lib/mreadlink.h: Rename this to...
32456         * lib/areadlink.h: ...this.
32457         * modules/mreadlink-with-size: Rename this to...
32458         * modules/areadlink-with-size: ...this.
32459         * lib/canonicalize.c: Reflect the renaming.
32460         * modules/canonicalize: Likewise.
32461
32462 2007-08-26  Bruno Haible  <bruno@clisp.org>
32463
32464         * gnulib-tool (func_import): When deciding which files to remove,
32465         consider also dangling symbolic links.
32466         Reported by Eric Blake.
32467
32468 2007-08-26  Bruno Haible  <bruno@clisp.org>
32469
32470         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32471
32472 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32473
32474         * lib/readline.c: Don't include getline.h, the prototype is now
32475         found in stdio.h.
32476
32477 2007-08-23  Jim Meyering  <jim@meyering.net>
32478
32479         Getdelim touchup.
32480         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32481         around the funlockfile call, since funlockfile never sets errno.
32482         Don't set errno upon failed realloc.
32483
32484 2007-08-22  Eric Blake  <ebb9@byu.net>
32485
32486         Getline touchups.
32487         * lib/getdelim.c (getdelim): Revert regression that required *n to
32488         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32489         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32490         getdelim, rather than whether implementation is missing.
32491         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32492         * lib/stdio_.h (getline): Also declare if replacement is
32493         required.
32494         * doc/functions/getdelim.texi: New file.
32495         * doc/functions/getline.texi: Likewise.
32496         * doc/gnulib.texi (Function Substitutes): Add new files.
32497         Reported by Bruno Haible.
32498
32499 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32500
32501         * users.txt: Add Guile.
32502
32503 2007-08-22  Eric Blake  <ebb9@byu.net>
32504
32505         * tests/test-getdelim.c (main): Use remove, not unlink.
32506         * tests/test-getline.c (main): Likewise.
32507
32508         Move getline and getdelim into stdio.h, per POSIX 200x.
32509         * modules/getline (Files): Remove getline.h.
32510         (Depends-on): Add stdio.
32511         (configure.ac): Add module indicator.
32512         * modules/getdelim (Files): Remove getdelim.h.
32513         (Depends-on): Add stdio.
32514         (configure.ac): Add module indicator.
32515         * modules/stdio (Makefile.am): Work with new indicators.
32516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32517         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32519         * lib/getdelim.h: Delete.
32520         * lib/getline.h: Delete.
32521         * lib/stdio_.h (getdelim, getline): Declare.
32522         * modules/getdelim-tests: New module.
32523         * modules/getline-tests: Likewise.
32524         * tests/test-getdelim.c: New file.
32525         * tests/test-getline.c: Likewise.
32526         * NEWS: Document the change.
32527         * lib/getline.c: Update choice of header.
32528         * lib/csharpcomp.c: Likewise.
32529         * lib/getpass.c: Likewise.
32530         * lib/javacomp.c: Likewise.
32531         * lib/javaversion.c: Likewise.
32532         * lib/yesno.c: Likewise.
32533         * lib/getdelim.c: Likewise.
32534         (getdelim): Set errno on failure, and avoid memory leak.
32535
32536 2007-08-19  Bruno Haible  <bruno@clisp.org>
32537
32538         * modules/closein (Depends-on): Add freadahead.
32539         * lib/closein.c: Include freadahead.h.
32540         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32541         is zero.
32542
32543 2007-08-19  Bruno Haible  <bruno@clisp.org>
32544
32545         * modules/freadahead-tests: New file.
32546         * tests/test-freadahead.sh: New file.
32547         * tests/test-freadahead.c: New file.
32548
32549         * modules/freadahead: New file.
32550         * lib/freadahead.h: New file.
32551         * lib/freadahead.c: New file.
32552         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32553         fbufmode, fpurge, freadable, fwritable.
32554
32555 2007-08-19  Eric Blake  <ebb9@byu.net>
32556
32557         Test yesno in combination with closein.
32558         * lib/yesno.c (yesno): Document use of stdin.
32559         * modules/yesno-tests (Files): New module.
32560         * tests/test-yesno.c (main): New file.
32561         * tests/test-yesno.sh: Likewise.
32562
32563 2007-08-19  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32566         * lib/fseeko.c (rpl_fseeko): Likewise.
32567         * lib/fseterr.c (fseterr): Likewise.
32568
32569 2007-08-19  Bruno Haible  <bruno@clisp.org>
32570
32571         * tests/test-lseek.c (main): Disable a test for BeOS.
32572         * doc/functions/lseek.texi: Document the BeOS bug.
32573
32574 2007-08-19  Bruno Haible  <bruno@clisp.org>
32575             Eric Blake  <ebb9@byu.net>
32576
32577         * lib/lseek.c: Include <sys/stat.h>.
32578         (rpl_lseek): Add workaround code also for Unix platforms.
32579         Needed for BeOS.
32580         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32581         * doc/functions/lseek.texi: Document BeOS definiency.
32582
32583 2007-08-18  Bruno Haible  <bruno@clisp.org>
32584
32585         * modules/fstrcmp-tests: New file.
32586         * tests/test-fstrcmp.c: New file.
32587
32588 2007-08-18  Bruno Haible  <bruno@clisp.org>
32589
32590         * modules/fstrcmp: New file, from GNU gettext with modifications.
32591         * lib/fstrcmp.h: New file, from GNU gettext.
32592         * lib/fstrcmp.c: New file, from GNU gettext.
32593         * MODULES.html.sh (String handling): Add fstrcmp.
32594
32595 2007-08-18  Bruno Haible  <bruno@clisp.org>
32596
32597         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32598         'bool'.
32599         (diag, compareseq): Remove const from the ctxt argument.
32600         (USE_HEURISTIC): Undefine at the end.
32601
32602 2007-08-18  Jim Meyering  <jim@meyering.net>
32603
32604         New file: lib/idcache.h
32605         * NEWS: Mention the addition.
32606         * modules/idcache (Files): Add lib/idcache.h
32607         * lib/idcache.c: Include "idcache.h".
32608         Don't include <sys/types.h>.
32609         Add a FIXME comment.
32610         Move file-scoped "static" declarations to the top.
32611         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32612
32613 2007-08-17  Bruno Haible  <bruno@clisp.org>
32614         and Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * MODULES.html.sh: Add diffseq.
32617         * modules/diffseq: New file.
32618         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32619         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32620
32621 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32622
32623         Import changes from coreutils for bootstrap script.
32624
32625         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32626
32627         * build-aux/bootstrap (slurp): Work even in environments where
32628         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32629         current code does not slurp files whose names start with ".", and
32630         this looks like it might be a troublesome area.
32631
32632         2007-07-11  Jim Meyering  <jim@meyering.net>
32633
32634         If there's a GPL vN copyright comment, require that N == 3.
32635
32636         2007-07-08  Jim Meyering  <jim@meyering.net>
32637
32638         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32639         * build-aux/bootstrap (mam_template): Move definition out of loop.
32640
32641         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32642
32643         * build-aux/bootstrap (symlink_to_dir): Rename function from
32644         symlink_to_gnulib.  Add a directory parameter.  Update all
32645         callers.
32646         (cp_mark_as_generated): Also check for -- and link to -- files in
32647         gl/.
32648
32649         2007-07-08  Jim Meyering  <jim@meyering.net>
32650
32651         Adapt to deeper hierarchy in gnulib.
32652         * build-aux/bootstrap (symlink_to_dir): If the destination
32653         directory doesn't exist, create it. This is required at least for
32654         "lib/uniwidth/cjk.h".
32655
32656         2007-05-15  Jim Meyering  <jim@meyering.net>
32657
32658         * build-aux/bootstrap: Now that generated Makefile.am files
32659         are no longer under version control, they must be created at
32660         bootstrap time.
32661
32662 2007-08-14  Ben Pfaff  <blp@gnu.org>
32663
32664         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32665
32666 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32667
32668         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32669         given the changes below.
32670         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32671         even on hosts that have padding bits beyond the supported 64.
32672
32673 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32674
32675         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32676         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32677         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32678         depends on it.
32679         (xstrtol_error): Remove.
32680         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32681         but with a different signature.
32682         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32683         * lib/xstrtol-error.c: Include exitfail.h.
32684         (xstrtol_fatal): New function, with a different signature from the
32685         old xstrtol_error, so that the caller need not worry about passing
32686         in an exit status, or about storage management of the option argument.
32687         (xstrtol_error): Now a static function.  Redo signature to
32688         implement xstrtol_fatal.  Output the correct number of hyphens in
32689         front of the option so that the caller need not worry about
32690         storage management.
32691         (N_): New macro.
32692         (_): Remove; not used now.
32693         * modules/xstrtol: Depend on getopt.
32694         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32695         of old STRTOL_FATAL_ERROR macro.
32696         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32697         of test program.
32698         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32699         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32700
32701 2007-08-08  Eric Blake  <ebb9@byu.net>
32702
32703         * lib/xstrtol-error.c: Add missing include.
32704
32705         Move xstrtol messages into gnulib domain, when --pobase is used.
32706         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32707         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32708         * modules/xstrtol (Files): Distribute new file.
32709         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32710         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32711         * tests/test-xstrtol.c: ...into new file.
32712         * tests/test-xstrtoul.c: Also test xstrtoul.
32713         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32714         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32715         * tests/test-xstrtol.sh: Drive the tests.
32716         * tests/test-xstrtoimax.sh: Likewise.
32717         * tests/test-xstrtoumax.sh: Likewise.
32718         * modules/xstrtol-tests: New module.
32719         * modules/xstrtoimax-tests: Likewise.
32720         * modules/xstrtoumax-tests: Likewise.
32721
32722 2007-08-08  Jim Meyering  <jim@meyering.net>
32723
32724         New function: mfile_name_concat.
32725         * lib/filenamecat.c (mfile_name_concat): New function, just like
32726         file_name_concat, but return NULL upon failure rather than exiting
32727         with a diagnostic.
32728         * lib/filenamecat.h: Declare it.
32729
32730 2007-08-07  Bruno Haible  <bruno@clisp.org>
32731
32732         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32733         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32734         warning from gcc.
32735         Reported by Eric Blake.
32736
32737 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32738
32739         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32740         * modules/crypto/arcfour (License): Likewise.
32741         * modules/crypto/des-tests (License): Likewise.
32742         * modules/crypto/gc-arctwo-tests (License): Likewise.
32743         * modules/crypto/gc-des-tests (License): Likewise.
32744         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32745         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32746         * modules/crypto/gc-md2-tests (License): Likewise.
32747         * modules/crypto/gc-md4-tests (License): Likewise.
32748         * modules/crypto/gc-md5-tests (License): Likewise.
32749         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32750         * modules/crypto/gc-rijndael-tests (License): Likewise.
32751         * modules/crypto/gc-sha1-tests (License): Likewise.
32752         * modules/crypto/gc-tests (License): Likewise.
32753         * modules/crypto/hmac-md5 (License): Likewise.
32754         * modules/crypto/hmac-sha1 (License): Likewise.
32755         * modules/crypto/md2-tests (License): Likewise.
32756         * modules/crypto/md4-tests (License): Likewise.
32757         * modules/crypto/md5 (License): Likewise.
32758         * modules/crypto/rijndael (License): Likewise.
32759         * modules/crypto/sha1 (License): Likewise.
32760         * modules/memxor (License): Likewise.
32761
32762 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32763         and Bruno Haible  <bruno@clisp.org>
32764
32765         * NEWS: Describe interface changes to human, xstrtol.
32766         * lib/human.h: Include <xstrtol.h>.
32767         (human_options): Return enum strtol_error, not int.  Remove
32768         bool arg; take int * instead.
32769         * lib/human.c: Don't include "gettext.h".
32770         (_): Remove; no longer used.
32771         Don't include <xstrtol.h>, since human.h does it.
32772         (human_options): Adjust to abovementioned interface changes.
32773         Do not report error to stderr; that's now the caller's
32774         responsibility.
32775         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32776         interface change.
32777         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32778         Str, Argument_type_string.  All uses changed.  Put " argument"
32779         in diagnostics to make them clearer.  Change wording of suffix
32780         message for clarity.
32781         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32782         Argument_type_string.
32783         (STRTOL_FATAL_WARN): Remove; no longer used.
32784         * modules/human (Depends-on): Remove gettext-h.
32785
32786 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32787
32788         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32789
32790 2007-07-31  Bruno Haible  <bruno@clisp.org>
32791
32792         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32793         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32794         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32795
32796 2007-07-31  Bruno Haible  <bruno@clisp.org>
32797
32798         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32799         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32800
32801 2007-07-30  Bruno Haible  <bruno@clisp.org>
32802
32803         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32804         * modules/c-ctype (License): Likewise.
32805         * modules/c-strcase (License): Likewise.
32806         * modules/check-version (License): Likewise.
32807         * modules/iconv (License): Likewise.
32808         * modules/iconv_open (License): Likewise.
32809         * modules/read-file (License): Likewise.
32810         * modules/striconv (License): Likewise.
32811         * modules/strverscmp (License): Likewise.
32812         * modules/vasprintf (License): Likewise.
32813         * modules/crypto/des (License): Likewise.
32814         * modules/crypto/gc (License): Likewise.
32815         * modules/crypto/gc-arcfour (License): Likewise.
32816         * modules/crypto/gc-arctwo (License): Likewise.
32817         * modules/crypto/gc-des (License): Likewise.
32818         * modules/crypto/gc-hmac-md5 (License): Likewise.
32819         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32820         * modules/crypto/gc-md2 (License): Likewise.
32821         * modules/crypto/gc-md4 (License): Likewise.
32822         * modules/crypto/gc-md5 (License): Likewise.
32823         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32824         * modules/crypto/gc-random (License): Likewise.
32825         * modules/crypto/gc-rijndael (License): Likewise.
32826         * modules/crypto/gc-sha1 (License): Likewise.
32827         * modules/crypto/md2 (License): Likewise.
32828         * modules/crypto/md4 (License): Likewise.
32829
32830 2007-07-30  Jim Meyering  <jim@meyering.net>
32831
32832         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32833         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32834         it has valid stat data.  This bug would cause du not to count the
32835         sizes of inaccessible directories.
32836         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32837         in <http://bugzilla.redhat.com/250077>.
32838
32839 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32840             Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32843         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32844         #include_next, gives a diagnostic about it, but reports no error in
32845         the exit code.
32846         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32847
32848 2007-07-24  Ben Pfaff  <blp@gnu.org>
32849
32850         Improve name: "count-one-bits" is better than "popcount".
32851         * MODULES.html.sh: Update name.
32852         * lib/popcount.h: Renamed lib/count-one-bits.h.
32853         (popcount): Renamed count_one_bits.
32854         (popcountl): Renamed count_one_bits_l.
32855         (popcountll): Renamed count_one_bits_ll.
32856         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32857         * modules/popcount: Renamed module/count-one-bits.
32858         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32859         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32860
32861 2007-07-23  Ben Pfaff  <blp@gnu.org>
32862
32863         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32864         better code generation, and add U to large constants to avoid
32865         warnings, in non-GCC case.
32866         Suggested by Bruno Haible.
32867
32868 2007-07-23  Ben Pfaff  <blp@gnu.org>
32869
32870         * lib/popcount.h: Use verify_true instead of if...abort.
32871         * modules/popcount: Depend on verify module.
32872         Suggested by Jim Meyering.
32873
32874 2007-07-23  Bruno Haible  <bruno@clisp.org>
32875
32876         * gnulib-tool (func_import): Create a .cvsignore file also when the
32877         directory is not yet in CVS but the toplevel directory is. When
32878         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32879         Reported by Karl Berry.
32880
32881 2007-07-22  Ben Pfaff  <blp@gnu.org>
32882
32883         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32884         case.
32885         Suggested by Eric Blake.
32886
32887 2007-07-22  Ben Pfaff  <blp@gnu.org>
32888
32889         New module: popcount.
32890         * MODULES.html.sh: Add popcount.
32891         * modules/popcount: New file.
32892         * modules/popcount-tests: New file.
32893         * tests/test-popcount.c: New file.
32894         * lib/popcount.h: New file.
32895         * m4/popcount.m4: New file.
32896
32897 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32898
32899         * build-aux/announce-gen: Update to GPLv3.
32900
32901         * build-aux/config.guess: Update from config.
32902
32903 2007-07-21  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32906         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32907
32908 2007-07-20  Jim Meyering  <jim@meyering.net>
32909
32910         * check-module: Diagnose a self-dependency.
32911
32912 2007-07-19  Bruno Haible  <bruno@clisp.org>
32913
32914         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32915         empty.
32916         Reported by Eric Blake.
32917
32918 2007-07-18  Bruno Haible  <bruno@clisp.org>
32919
32920         * gnulib-tool: New options --po-base, --po-domain.
32921         (func_usage): Document them.
32922         (pobase, po_domain): New variables.
32923         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32924         DEFAULT_TEXT_DOMAIN.
32925         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32926         (func_import): Consider pobase and po_domain. Create a po/ directory.
32927         (func_create_testdir): Set pobase and po_domain to empty.
32928         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32929         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32930
32931 2007-07-18  Bruno Haible  <bruno@clisp.org>
32932
32933         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32934         EXTRA_DIST augmentation for files in build-aux/.
32935
32936 2007-07-16  Bruno Haible  <bruno@clisp.org>
32937
32938         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32939         * modules/getdelim (License): Likewise.
32940
32941 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32942
32943         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32944         * modules/d-type (License): Likewise.
32945         * modules/extensions (License): Likewise.
32946         * modules/fnmatch (License): Likewise.
32947         * modules/fseeko (License): Likewise.
32948         * modules/getaddrinfo (License): Likewise.
32949         * modules/getline (License): Likewise.
32950         * modules/getlogin_r (License): Likewise.
32951         * modules/getpass (License): Likewise.
32952         * modules/gettimeofday (License): Likewise.
32953         * modules/glob (License): Likewise.
32954         * modules/inet_ntop (License): Likewise.
32955         * modules/malloc (License): Likewise.
32956         * modules/malloca (License): Likewise.
32957         * modules/memmem (License): Likewise.
32958         * modules/mempcpy (License): Likewise.
32959         * modules/memset (License): Likewise.
32960         * modules/minmax (License): Likewise.
32961         * modules/mktime (License): Likewise.
32962         * modules/netinet_in (License): Likewise.
32963         * modules/pathmax (License): Likewise.
32964         * modules/poll (License): Likewise.
32965         * modules/regex (License): Likewise.
32966         * modules/snprintf (License): Likewise.
32967         * modules/stdbool (License): Likewise.
32968         * modules/stdint (License): Likewise.
32969         * modules/stdio (License): Likewise.
32970         * modules/strcase (License): Likewise.
32971         * modules/strcasestr (License): Likewise.
32972         * modules/strdup (License): Likewise.
32973         * modules/string (License): Likewise.
32974         * modules/strndup (License): Likewise.
32975         * modules/strnlen (License): Likewise.
32976         * modules/strpbrk (License): Likewise.
32977         * modules/strptime (License): Likewise.
32978         * modules/strsep (License): Likewise.
32979         * modules/sys_select (License): Likewise.
32980         * modules/sys_socket (License): Likewise.
32981         * modules/sys_stat (License): Likewise.
32982         * modules/sys_time (License): Likewise.
32983         * modules/time (License): Likewise.
32984         * modules/time_r (License): Likewise.
32985         * modules/timegm (License): Likewise.
32986         * modules/unistd (License): Likewise.
32987         * modules/vsnprintf (License): Likewise.
32988         * modules/wctype (License): Likewise.
32989
32990 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32991
32992         * modules/argz (License): LGPLv2+.
32993
32994 2007-07-15  Karl Berry  <karl@gnu.org>
32995
32996         * doc/gnulib.texi: revise node structure per new fdl.texi.
32997
32998 2007-07-14  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33001         the output file.
33002         * lib/uniname/uninames.h: Regenerated.
33003
33004 2007-07-14  Karl Berry  <karl@gnu.org>
33005
33006         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33007         omitting sectioning and index commands.
33008
33009 2007-07-13  Bruno Haible  <bruno@clisp.org>
33010
33011         New gnulib-tool option --more-symlinks.
33012         * gnulib-tool (func_usage): Document --more-symlinks.
33013         (do_copyrights): New variable.
33014         Recognize option --more-symlinks.
33015         (func_import): Don't add a copyright notice transform to
33016         sed_transform_lib_file if do_copyrights is empty.
33017
33018 2007-07-13  Bruno Haible  <bruno@clisp.org>
33019
33020         * lib/vasnprintf.c (decimal_point_char): Define also if
33021         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33022         && !NEED_PRINTF_DIRECTIVE_A.
33023         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33024         Gary V. Vaughan <gary@gnu.org>.
33025
33026 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33027
33028         * lib/inttypes_.h: Undo previous change, since it was fixed
33029         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33030
33031 2007-07-13  Bruno Haible  <bruno@clisp.org>
33032
33033         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33034         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33035
33036 2007-07-13  Jim Meyering  <jim@meyering.net>
33037
33038         df: Don't fail for Tru64's "file-on-file mount".
33039         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33040         so we fall through and use statfs instead.  Details here:
33041         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33042         Reported by Albert Chin.
33043
33044 2007-07-13  Bruno Haible  <bruno@clisp.org>
33045
33046         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33047         * modules/configmake (License): Likewise.
33048         * modules/gettext (License): Likewise.
33049         * modules/gettext-h (License): Likewise.
33050         * modules/include_next (License): Likewise.
33051         * modules/link-warning (License): Likewise.
33052         * modules/localcharset (License): Likewise.
33053         * modules/localename (License): Likewise.
33054         * modules/lock (License): Likewise.
33055         * modules/relocatable-lib-lgpl (License): Likewise.
33056         * modules/size_max (License): Likewise.
33057         * modules/vasnprintf (License): Likewise.
33058         * modules/wchar (License): Likewise.
33059         * modules/xsize (License): Likewise.
33060
33061 2007-07-13  Bruno Haible  <bruno@clisp.org>
33062
33063         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33064         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33065
33066 2007-07-12  Bruno Haible  <bruno@clisp.org>
33067
33068         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33069         in the modules files.
33070
33071 2007-07-11  Karl Berry  <karl@gnu.org>
33072
33073         * MODULES.html.sh (func_module): use
33074          sed -e '\|^'"${includefile}"'$|d'
33075          instead of /.../d, to avoid errors on $includefile's containing /.
33076
33077 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33078
33079         * gnulib-tool (func_import): Avoid duplication of --avoid
33080         statements
33081         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33082         names to `_' in variable names.
33083
33084 2007-07-10  Eric Blake  <ebb9@byu.net>
33085
33086         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33087         * NEWS: Document this change.
33088
33089 2007-07-08  Bruno Haible  <bruno@clisp.org>
33090
33091         Update to Unicode 5.0.
33092         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33093         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33094         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33095         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33096         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33097         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33098         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33099         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33100         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33101         U+10A3F, U+1D242..U+1D244.
33102         (nonspacing_table_ind): Update.
33103         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33104         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33105
33106 2007-07-08  Bruno Haible  <bruno@clisp.org>
33107
33108         Update to Unicode 5.0.
33109         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33110         code transform. Extend the name index field of unicode_name_to_code and
33111         unicode_code_to_name from 16 to 24 bits.
33112         * lib/uniname/uniname.c (unicode_character_name,
33113         unicode_name_character): Add the range 0x12xxx to the code transform.
33114         * lib/uniname/uninames.h: Regenerated.
33115         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33116
33117 2007-07-07  Bruno Haible  <bruno@clisp.org>
33118
33119         * modules/wcwidth-tests: New file.
33120         * tests/test-wcwidth.c: New file.
33121
33122         Work around MacOS X wcwidth() bug.
33123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33124         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33125         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33126         original wcwidth in non-UTF-8 locales.
33127         * modules/wcwidth (Depends-on): Add localcharset, streq,
33128         uniwidth/width.
33129         * doc/functions/wcwidth.texi: Update.
33130
33131 2007-07-07  Bruno Haible  <bruno@clisp.org>
33132
33133         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33134         (wcwidth): New declaration.
33135         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33136         macros.
33137         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33138         here. Prepare for creating <wchar.h> unconditionally.
33139         * modules/wchar (Depends-on): Add link-warning.
33140         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33141         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33142         * lib/wcwidth.h: Remove file.
33143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33144         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33145         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33146         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33147         (Include): Replace wcwidth.h with <wchar.h>.
33148         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33149         * lib/mbchar.h: Don't include wcwidth.h.
33150         * lib/mbswidth.c: Likewise.
33151         * NEWS: Mention the change.
33152
33153 2007-07-07  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33156         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33157         definition with an external declaration.
33158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33159         defined as a function. Remove AC_C_INLINE requirement.
33160         * modules/wcwidth (Files): Add lib/wcwidth.c.
33161         (Makefile.am): Remove redundant statement.
33162
33163 2007-07-07  Bruno Haible  <bruno@clisp.org>
33164
33165         * MODULES.html.sh (Unicode string functions): Add the new modules.
33166
33167         * tests/uniwidth/test-u32-strwidth.c: New file.
33168         * modules/uniwidth/u32-strwidth-tests: New file.
33169
33170         * lib/uniwidth/u32-strwidth.c: New file.
33171         * modules/uniwidth/u32-strwidth: New file.
33172
33173         * tests/uniwidth/test-u16-strwidth.c: New file.
33174         * modules/uniwidth/u16-strwidth-tests: New file.
33175
33176         * lib/uniwidth/u16-strwidth.c: New file.
33177         * modules/uniwidth/u16-strwidth: New file.
33178
33179         * tests/uniwidth/test-u8-strwidth.c: New file.
33180         * modules/uniwidth/u8-strwidth-tests: New file.
33181
33182         * lib/uniwidth/u8-strwidth.c: New file.
33183         * modules/uniwidth/u8-strwidth: New file.
33184
33185         * tests/uniwidth/test-u32-width.c: New file.
33186         * modules/uniwidth/u32-width-tests: New file.
33187
33188         * lib/uniwidth/u32-width.c: New file.
33189         * modules/uniwidth/u32-width: New file.
33190
33191         * tests/uniwidth/test-u16-width.c: New file.
33192         * modules/uniwidth/u16-width-tests: New file.
33193
33194         * lib/uniwidth/u16-width.c: New file.
33195         * modules/uniwidth/u16-width: New file.
33196
33197         * tests/uniwidth/test-u8-width.c: New file.
33198         * modules/uniwidth/u8-width-tests: New file.
33199
33200         * lib/uniwidth/u8-width.c: New file.
33201         * modules/uniwidth/u8-width: New file.
33202
33203         * tests/uniwidth/test-uc_width.c: New file.
33204         * modules/uniwidth/width-tests: New file.
33205
33206         * lib/uniwidth/width.c: New file, from GNU libiconv.
33207         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33208         * modules/uniwidth/width: New file.
33209
33210         * lib/uniwidth.h: New file, from GNU libiconv.
33211         * modules/uniwidth/base: New file.
33212
33213 2007-07-07  Bruno Haible  <bruno@clisp.org>
33214
33215         * lib/uniname.h: New file, from GNU gettext.
33216         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33217         * lib/uniname/uninames.h: New file, from GNU gettext.
33218         * lib/uniname/uniname.c: New file, from GNU gettext.
33219         * tests/uniname/test-uninames.sh: New file.
33220         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33221         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33222         * modules/uniname/base: New file.
33223         * modules/uniname/uniname: New file.
33224         * modules/uniname/uniname-tests: New file.
33225         * MODULES.html.sh (Unicode string functions): Add the new modules.
33226
33227 2007-07-06  Bruno Haible  <bruno@clisp.org>
33228
33229         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33230
33231 2007-07-06  Bruno Haible  <bruno@clisp.org>
33232
33233         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33234         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33235         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33236         include <sys/time.h>.
33237         Reported by Eric Blake.
33238
33239 2007-07-06  Eric Blake  <ebb9@byu.net>
33240
33241         Fix testing canonicalize on cygwin.
33242         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33243         Revert patch from 2007-06-19.
33244         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33245         canonicalize module is also in use.
33246         * tests/test-canonicalize.c: New file.
33247         * tests/test-canonicalize.sh: Likewise.
33248         * modules/canonicalize-tests: Likewise.
33249
33250 2007-07-06  Jim Meyering  <jim@meyering.net>
33251
33252         * lib/getugroups.c (getugroups): Detect getgrent failure.
33253         Adjust comment to reflect reality: this function may return -1.
33254
33255 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33256
33257         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33258         the new TP address.
33259         (usage): Fix typo
33260         (gnulib_mk): New variable.
33261
33262 2007-07-05  Jim Meyering  <jim@meyering.net>
33263
33264         Don't let endgrent clobber errno, no matter how improbable.
33265         * lib/getugroups.c (getugroups): Save and restore errno around
33266         endgrent call.
33267
33268         Close the group DB even when failing with 2^31 or more members.
33269         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33270
33271 2007-07-04  Jim Meyering  <jim@meyering.net>
33272
33273         * lib/getugroups.h: New file.
33274         * lib/getugroups.c: Include "getugroups.h".
33275         Remove uses of "register" keyword.
33276         Move local variable, "cp", down into scope where used.
33277         Give "username" parameter the "const" attribute.
33278         * modules/getugroups (Files): Add lib/getugroups.h
33279
33280 2007-07-04  Karl Berry  <karl@gnu.org>
33281
33282         * MODULES.html.sh (func_all_modules): Complete rename of
33283         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33284
33285 2007-07-02  Bruno Haible  <bruno@clisp.org>
33286
33287         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33288         mode, when inttypes.h comes from gnulib.
33289         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33290
33291 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33292
33293         * NEWS: Mention lgpl module name change.
33294
33295         * modules/lgpl-2.1: Renamed from lgpl.
33296
33297         * NEWS: Mention gpl module name change.
33298
33299         * modules/gpl-3.0: New file, based on gpl-2.0.
33300
33301         * modules/gpl-2.0: Renamed from gpl.
33302
33303         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33304         doc/gpl-2.0.texi.
33305
33306 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33307
33308         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33309         #define __STDC_LIMIT_MACROS temporarily while including
33310         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33311         Problem reported by Joel E. Denny in
33312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33313
33314 2007-07-01  Bruno Haible  <bruno@clisp.org>
33315
33316         * lib/unistdio.h: New file.
33317         * lib/unistdio/u-asnprintf.h: New file.
33318         * lib/unistdio/u-asprintf.h: New file.
33319         * lib/unistdio/u-printf-args.c: New file.
33320         * lib/unistdio/u-printf-args.h: New file.
33321         * lib/unistdio/u-printf-parse.h: New file.
33322         * lib/unistdio/u-snprintf.h: New file.
33323         * lib/unistdio/u-sprintf.h: New file.
33324         * lib/unistdio/u-vasprintf.h: New file.
33325         * lib/unistdio/u-vsnprintf.h: New file.
33326         * lib/unistdio/u-vsprintf.h: New file.
33327         * lib/unistdio/ulc-asnprintf.c: New file.
33328         * lib/unistdio/ulc-asprintf.c: New file.
33329         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33330         * lib/unistdio/ulc-printf-parse.c: New file.
33331         * lib/unistdio/ulc-snprintf.c: New file.
33332         * lib/unistdio/ulc-sprintf.c: New file.
33333         * lib/unistdio/ulc-vasnprintf.c: New file.
33334         * lib/unistdio/ulc-vasprintf.c: New file.
33335         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33336         * lib/unistdio/ulc-vsnprintf.c: New file.
33337         * lib/unistdio/ulc-vsprintf.c: New file.
33338         * lib/unistdio/u8-asnprintf.c: New file.
33339         * lib/unistdio/u8-asprintf.c: New file.
33340         * lib/unistdio/u8-printf-parse.c: New file.
33341         * lib/unistdio/u8-snprintf.c: New file.
33342         * lib/unistdio/u8-sprintf.c: New file.
33343         * lib/unistdio/u8-vasnprintf.c: New file.
33344         * lib/unistdio/u8-vasprintf.c: New file.
33345         * lib/unistdio/u8-vsnprintf.c: New file.
33346         * lib/unistdio/u8-vsprintf.c: New file.
33347         * lib/unistdio/u8-u8-asnprintf.c: New file.
33348         * lib/unistdio/u8-u8-asprintf.c: New file.
33349         * lib/unistdio/u8-u8-snprintf.c: New file.
33350         * lib/unistdio/u8-u8-sprintf.c: New file.
33351         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33352         * lib/unistdio/u8-u8-vasprintf.c: New file.
33353         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33354         * lib/unistdio/u8-u8-vsprintf.c: New file.
33355         * lib/unistdio/u16-asnprintf.c: New file.
33356         * lib/unistdio/u16-asprintf.c: New file.
33357         * lib/unistdio/u16-printf-parse.c: New file.
33358         * lib/unistdio/u16-snprintf.c: New file.
33359         * lib/unistdio/u16-sprintf.c: New file.
33360         * lib/unistdio/u16-vasnprintf.c: New file.
33361         * lib/unistdio/u16-vasprintf.c: New file.
33362         * lib/unistdio/u16-vsnprintf.c: New file.
33363         * lib/unistdio/u16-vsprintf.c: New file.
33364         * lib/unistdio/u16-u16-asnprintf.c: New file.
33365         * lib/unistdio/u16-u16-asprintf.c: New file.
33366         * lib/unistdio/u16-u16-snprintf.c: New file.
33367         * lib/unistdio/u16-u16-sprintf.c: New file.
33368         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33369         * lib/unistdio/u16-u16-vasprintf.c: New file.
33370         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33371         * lib/unistdio/u16-u16-vsprintf.c: New file.
33372         * lib/unistdio/u32-asnprintf.c: New file.
33373         * lib/unistdio/u32-asprintf.c: New file.
33374         * lib/unistdio/u32-printf-parse.c: New file.
33375         * lib/unistdio/u32-snprintf.c: New file.
33376         * lib/unistdio/u32-sprintf.c: New file.
33377         * lib/unistdio/u32-vasnprintf.c: New file.
33378         * lib/unistdio/u32-vasprintf.c: New file.
33379         * lib/unistdio/u32-vsnprintf.c: New file.
33380         * lib/unistdio/u32-vsprintf.c: New file.
33381         * lib/unistdio/u32-u32-asnprintf.c: New file.
33382         * lib/unistdio/u32-u32-asprintf.c: New file.
33383         * lib/unistdio/u32-u32-snprintf.c: New file.
33384         * lib/unistdio/u32-u32-sprintf.c: New file.
33385         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33386         * lib/unistdio/u32-u32-vasprintf.c: New file.
33387         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33388         * lib/unistdio/u32-u32-vsprintf.c: New file.
33389         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33390         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33391         * tests/unistdio/test-ulc-printf1.h: New file.
33392         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33393         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33394         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33395         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33396         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33397         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33398         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33399         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33400         * tests/unistdio/test-u8-asnprintf1.c: New file.
33401         * tests/unistdio/test-u8-asnprintf1.h: New file.
33402         * tests/unistdio/test-u8-printf1.h: New file.
33403         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33404         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33405         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33406         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33407         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33408         * tests/unistdio/test-u8-vasprintf1.c: New file.
33409         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33410         * tests/unistdio/test-u8-vsprintf1.c: New file.
33411         * tests/unistdio/test-u16-asnprintf1.c: New file.
33412         * tests/unistdio/test-u16-asnprintf1.h: New file.
33413         * tests/unistdio/test-u16-printf1.h: New file.
33414         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33415         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33416         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33417         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33418         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33419         * tests/unistdio/test-u16-vasprintf1.c: New file.
33420         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33421         * tests/unistdio/test-u16-vsprintf1.c: New file.
33422         * tests/unistdio/test-u32-asnprintf1.c: New file.
33423         * tests/unistdio/test-u32-asnprintf1.h: New file.
33424         * tests/unistdio/test-u32-printf1.h: New file.
33425         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33426         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33427         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33428         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33429         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33430         * tests/unistdio/test-u32-vasprintf1.c: New file.
33431         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33432         * tests/unistdio/test-u32-vsprintf1.c: New file.
33433         * modules/unistdio/base: New file.
33434         * modules/unistdio/u-printf-args: New file.
33435         * modules/unistdio/ulc-asnprintf: New file.
33436         * modules/unistdio/ulc-asprintf: New file.
33437         * modules/unistdio/ulc-fprintf: New file.
33438         * modules/unistdio/ulc-printf-parse: New file.
33439         * modules/unistdio/ulc-snprintf: New file.
33440         * modules/unistdio/ulc-sprintf: New file.
33441         * modules/unistdio/ulc-vasnprintf: New file.
33442         * modules/unistdio/ulc-vasprintf: New file.
33443         * modules/unistdio/ulc-vfprintf: New file.
33444         * modules/unistdio/ulc-vsnprintf: New file.
33445         * modules/unistdio/ulc-vsprintf: New file.
33446         * modules/unistdio/u8-asnprintf: New file.
33447         * modules/unistdio/u8-asprintf: New file.
33448         * modules/unistdio/u8-printf-parse: New file.
33449         * modules/unistdio/u8-snprintf: New file.
33450         * modules/unistdio/u8-sprintf: New file.
33451         * modules/unistdio/u8-vasnprintf: New file.
33452         * modules/unistdio/u8-vasprintf: New file.
33453         * modules/unistdio/u8-vsnprintf: New file.
33454         * modules/unistdio/u8-vsprintf: New file.
33455         * modules/unistdio/u8-u8-asnprintf: New file.
33456         * modules/unistdio/u8-u8-asprintf: New file.
33457         * modules/unistdio/u8-u8-snprintf: New file.
33458         * modules/unistdio/u8-u8-sprintf: New file.
33459         * modules/unistdio/u8-u8-vasnprintf: New file.
33460         * modules/unistdio/u8-u8-vasprintf: New file.
33461         * modules/unistdio/u8-u8-vsnprintf: New file.
33462         * modules/unistdio/u8-u8-vsprintf: New file.
33463         * modules/unistdio/u16-asnprintf: New file.
33464         * modules/unistdio/u16-asprintf: New file.
33465         * modules/unistdio/u16-printf-parse: New file.
33466         * modules/unistdio/u16-snprintf: New file.
33467         * modules/unistdio/u16-sprintf: New file.
33468         * modules/unistdio/u16-vasnprintf: New file.
33469         * modules/unistdio/u16-vasprintf: New file.
33470         * modules/unistdio/u16-vsnprintf: New file.
33471         * modules/unistdio/u16-vsprintf: New file.
33472         * modules/unistdio/u16-u16-asnprintf: New file.
33473         * modules/unistdio/u16-u16-asprintf: New file.
33474         * modules/unistdio/u16-u16-snprintf: New file.
33475         * modules/unistdio/u16-u16-sprintf: New file.
33476         * modules/unistdio/u16-u16-vasnprintf: New file.
33477         * modules/unistdio/u16-u16-vasprintf: New file.
33478         * modules/unistdio/u16-u16-vsnprintf: New file.
33479         * modules/unistdio/u16-u16-vsprintf: New file.
33480         * modules/unistdio/u32-asnprintf: New file.
33481         * modules/unistdio/u32-asprintf: New file.
33482         * modules/unistdio/u32-printf-parse: New file.
33483         * modules/unistdio/u32-snprintf: New file.
33484         * modules/unistdio/u32-sprintf: New file.
33485         * modules/unistdio/u32-vasnprintf: New file.
33486         * modules/unistdio/u32-vasprintf: New file.
33487         * modules/unistdio/u32-vsnprintf: New file.
33488         * modules/unistdio/u32-vsprintf: New file.
33489         * modules/unistdio/u32-u32-asnprintf: New file.
33490         * modules/unistdio/u32-u32-asprintf: New file.
33491         * modules/unistdio/u32-u32-snprintf: New file.
33492         * modules/unistdio/u32-u32-sprintf: New file.
33493         * modules/unistdio/u32-u32-vasnprintf: New file.
33494         * modules/unistdio/u32-u32-vasprintf: New file.
33495         * modules/unistdio/u32-u32-vsnprintf: New file.
33496         * modules/unistdio/u32-u32-vsprintf: New file.
33497         * modules/unistdio/ulc-asnprintf-tests: New file.
33498         * modules/unistdio/ulc-vasnprintf-tests: New file.
33499         * modules/unistdio/ulc-vasprintf-tests: New file.
33500         * modules/unistdio/ulc-vsnprintf-tests: New file.
33501         * modules/unistdio/ulc-vsprintf-tests: New file.
33502         * modules/unistdio/u8-asnprintf-tests: New file.
33503         * modules/unistdio/u8-vasnprintf-tests: New file.
33504         * modules/unistdio/u8-vasprintf-tests: New file.
33505         * modules/unistdio/u8-vsnprintf-tests: New file.
33506         * modules/unistdio/u8-vsprintf-tests: New file.
33507         * modules/unistdio/u16-asnprintf-tests: New file.
33508         * modules/unistdio/u16-vasnprintf-tests: New file.
33509         * modules/unistdio/u16-vasprintf-tests: New file.
33510         * modules/unistdio/u16-vsnprintf-tests: New file.
33511         * modules/unistdio/u16-vsprintf-tests: New file.
33512         * modules/unistdio/u32-asnprintf-tests: New file.
33513         * modules/unistdio/u32-vasnprintf-tests: New file.
33514         * modules/unistdio/u32-vasprintf-tests: New file.
33515         * modules/unistdio/u32-vsnprintf-tests: New file.
33516         * modules/unistdio/u32-vsprintf-tests: New file.
33517         * MODULES.html.sh (Unicode string functions): Add the new modules.
33518
33519 2007-07-01  Bruno Haible  <bruno@clisp.org>
33520
33521         * lib/sprintf.c (sprintf): Limit the available length estimation,
33522         to avoid address wraparound.
33523         * lib/vsprintf.c (vsprintf): Likewise.
33524         * modules/sprintf-posix (Dependencies): Add stdint.
33525         * modules/vsprintf-posix (Dependencies): Likewise.
33526
33527 2007-07-01  Bruno Haible  <bruno@clisp.org>
33528
33529         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33530         Windows PATH as well. Conservative double-quoting. Comments.
33531
33532 2007-07-01  Bruno Haible  <bruno@clisp.org>
33533             Eric Blake  <ebb9@byu.net>
33534             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33535
33536         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33537         empty components in $PATH, denoting '.'.
33538
33539 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33540
33541         * gnulib-tool: Fix indentation.
33542         (func_create_megatestdir): Likewise.
33543         Report by Bruno Haible.
33544
33545 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33546
33547         Sync from Automake.
33548         * build-aux/gnupload: Fix shell portability issues with for loops.
33549         Report by Karl Berry.
33550
33551 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33552
33553         * build-aux/maint.mk (POURL): Use translationproject.org.
33554
33555 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33556             Bruno Haible  <bruno@clisp.org>
33557
33558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33559         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33560         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33561         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33562         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33563
33564 2007-06-27  Bruno Haible  <bruno@clisp.org>
33565
33566         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33567         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33568
33569 2007-06-26  Karl Berry  <karl@gnu.org>
33570
33571         * MODULES.html.sh: remove xreadlink-with-size.
33572
33573 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33574
33575         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33576         method that I hope also handles the double-include problem noted
33577         by Bruno Haible in
33578         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33579
33580 2007-06-23  Bruno Haible  <bruno@clisp.org>
33581
33582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33583         Don't let the 'mostlyclean' target fail if the last subdirectory could
33584         not be removed.
33585         Reported by Karl Berry.
33586
33587 2007-06-23  Bruno Haible  <bruno@clisp.org>
33588
33589         * gnulib-tool (echo): Add a speedier workaround for ksh.
33590         * tests/test-echo.sh: Likewise.
33591
33592 2007-06-23  Bruno Haible  <bruno@clisp.org>
33593
33594         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33595         * tests/test-echo.sh: Likewise.
33596
33597 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33598
33599         * gnulib-tool (IFS): Initialize early, so we don't set it to
33600         empty later.
33601         (self_abspathname): Rewrite algorithm to set it, reindent.
33602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33603         (func_create_megatestdir): Merge some sed scripts.
33604
33605 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33606
33607         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33608         exposed by Sun Studio 11 cc on Solaris 8.
33609
33610 2007-06-22  Bruno Haible  <bruno@clisp.org>
33611
33612         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33613         backslashes.
33614         * tests/test-echo.sh: New file.
33615
33616 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33617
33618         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33619         simplify `sed_replace_build_aux' scripts, they are portable but
33620         echoing them with `echo' is not.
33621         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33622
33623 2007-06-21  Karl Berry  <karl@gnu.org>
33624
33625         * config/srclist.txt: guess we can't handle the licenses via
33626         srclist at the moment.
33627
33628 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33629
33630         * MODULES.html.sh: Add include_next.
33631         * modules/include_next: New file.
33632
33633 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33634
33635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33636         INCLUDE_NEXT.
33637         (gl_CHECK_NEXT_HEADERS): New macro.
33638         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33639         the obsolescent gl_ABSOLUTE_HEADER.
33640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33641         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33642         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33643         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33644         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33645         * m4/math_h.m4 (gl_MATH_H): Likewise.
33646         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33647         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33648         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33649         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33650         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33651         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33652         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33657         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33658         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33659         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33660         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33661         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33662         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33663         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33664         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33665         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33666         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33667         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33668         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33669         * lib/float_.h: Likewise.
33670         * lib/inttypes_.h: Likewise.
33671         * lib/math_.h: Likewise.
33672         * lib/search_.h: Likewise.
33673         * lib/signal_.h: Likewise.
33674         * lib/stdint_.h: Likewise.
33675         * lib/stdio_.h: Likewise.
33676         * lib/stdlib_.h: Likewise.
33677         * lib/string_.h: Likewise.
33678         * lib/sys_stat_.h: Likewise.
33679         * lib/sys_time_.h: Likewise.
33680         * lib/time_.h: Likewise.
33681         * lib/unistd_.h: Likewise.
33682         * lib/wchar_.h: Likewise.
33683         * lib/wctype_.h: Likewise.
33684         * lib/dirent_.h: Likewise.
33685         * lib/iconv_.h: Likewise.
33686         * lib/locale_.h: Likewise.
33687         * lib/netinet_in_.h: Likewise.
33688         * lib/sys_select_.h: Likewise.
33689         * lib/sys_socket_.h: Likewise.
33690         * lib/sysexits_.h: Likewise.
33691         * modules/fcntl (Depends-on): Depend on include_next, not
33692         absolute_header.
33693         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33694         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33695         * modules/fchdir: Likewise.
33696         * modules/float: Likewise.
33697         * modules/iconv_open: Likewise.
33698         * modules/inttypes: Likewise.
33699         * modules/locale: Likewise.
33700         * modules/math: Likewise.
33701         * modules/netinet_in: Likewise.
33702         * modules/search: Likewise.
33703         * modules/signal: Likewise.
33704         * modules/stdint: Likewise.
33705         * modules/stdio: Likewise.
33706         * modules/stdlib: Likewise.
33707         * modules/string: Likewise.
33708         * modules/sys_select: Likewise.
33709         * modules/sys_socket: Likewise.
33710         * modules/sys_stat: Likewise.
33711         * modules/sys_time: Likewise.
33712         * modules/sysexits: Likewise.
33713         * modules/time: Likewise.
33714         * modules/unistd: Likewise.
33715         * modules/wchar: Likewise.
33716         * modules/wctype: Likewise.
33717         * modules/sys_stat: Change maintainer to "all".
33718         * modules/unistd: Likewise.
33719
33720 2007-06-20  Karl Berry  <karl@gnu.org>
33721
33722         * config/srclist.txt: track www changes in license files.
33723
33724 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33725
33726         * build-aux/bootstrap: Remove stray dot.
33727         Make sure build_aux settings are honored when linking
33728         gnulib_extra_files.
33729
33730 2007-06-19  Eric Blake  <ebb9@byu.net>
33731
33732         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33733         Allow compilation on cygwin.
33734
33735 2007-06-19  Jim Meyering  <jim@meyering.net>
33736
33737         xreadlink-with-size: Remove module.  No longer used.
33738         Ex-callers now use xreadlink or mreadlink-with-size.
33739         * modules/xreadlink-with-size: Remove module.
33740         * lib/xreadlink-with-size.c: Remove file.
33741         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33742         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33743         just before the function definition *is* accurate.
33744
33745         Eliminate one way canonicalize_filename_mode could exit.
33746         * lib/canonicalize.c (canonicalize_filename_mode):
33747         Use mreadlink_with_size, not xreadlink_with_size.
33748
33749 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33750
33751         Detect porting problems to FreeBSD/arm, which has time_t wider than
33752         long int.  Original problem reported for GNU diff by Xin Li in
33753         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33754         * modules/getdate (Depends-on): Add intprops, verify.
33755         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33756         is an integer type no wider than long int.
33757
33758 2007-06-18  Jim Meyering  <jim@meyering.net>
33759
33760         New module: mreadlink-with-size.
33761         * MODULES.html.sh: Add mreadlink-with-size.
33762         * modules/mreadlink-with-size: New module
33763         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33764         not xreadlink-with-size.
33765         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33766
33767 2007-06-16  Bruno Haible  <bruno@clisp.org>
33768
33769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33770         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33771         Reported by Gary V. Vaughan <gary@gnu.org>.
33772
33773 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33774
33775         Revamp lchown so that it lives in unistd.h where it belongs.
33776         * lib/lchown.h: Remove.
33777         * lib/dirchownmod.c: Don't include lib/lchown.h.
33778         * lib/fchownat.c: Likewise.
33779         * lib/openat.c: Likewise.
33780         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33781         does not follow symlinks.
33782         (EOPNOTSUPP): Define if not defined.
33783         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33784         is defined to 0.
33785         (lchown): New decl.
33786         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33787         Do not check for lchown decl.
33788         Set REPLACE_LCHOWN.
33789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33790         REPLACE_LCHOWN.
33791         * modules/chown: Make it clear it follows symlinks.
33792         * modules/lchown: Make it clear it doesn't follow symlinks.
33793         (Files): Remove lib/lchown.h
33794         (Depends-on): Add unistd.
33795         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33796         (Include): Include <unistd.h>, not "lchown.h".
33797         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33798         REPLACE_LCHOWN.
33799
33800 2007-06-15  Jim Meyering  <jim@meyering.net>
33801
33802         Change license (GPL to LGPL) of fsusage and dependents.
33803         * modules/fsusage (License): Change to LGPL.
33804         * modules/full-read (License): Likewise.
33805         * modules/full-write (License): Likewise.
33806         * modules/safe-read (License): Likewise.
33807         * modules/safe-write (License): Likewise.
33808
33809 2007-06-14  Ben Pfaff  <blp@gnu.org>
33810
33811         Missing part of allocsa -> malloca transition.
33812         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33813         gl_MALLOCA.
33814
33815 2007-06-12  Bruno Haible  <bruno@clisp.org>
33816
33817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33818         to ia64, x86_64, i386.
33819         Reported by Eric Blake.
33820
33821 2007-06-12  Bruno Haible  <bruno@clisp.org>
33822
33823         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33824         cross-compiling to x86_64.
33825
33826 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33827
33828         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33829         glitch reported by Ralf Wildenhues in
33830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33831
33832         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33833         Vin Shelton.
33834
33835 2007-06-11  Bruno Haible  <bruno@clisp.org>
33836
33837         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33838         replacement string.
33839         Reported by Eric Blake.
33840
33841 2007-06-10  Bruno Haible  <bruno@clisp.org>
33842
33843         Prepare vasnprintf code for use with Unicode strings.
33844         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33845         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33846         TYPE_U32_STRING.
33847         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33848         a_u32_string variants.
33849         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33850         * lib/printf-args.c: Don't include config.h and the specification
33851         header if PRINTF_FETCHARGS is already defined.
33852         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33853         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33854         TYPE_U16_STRING, TYPE_U32_STRING.
33855         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33856         u16_directive, u16_directives, u32_directive, u32_directives): New
33857         types.
33858         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33859         New declarations.
33860         * lib/printf-parse.c: Don't include config.h and the specification
33861         header if PRINTF_PARSE is already defined. Eliminate the set of
33862         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33863         them now. Include c-ctype.h.
33864         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33865         directive and CHAR_T_ONLY_ASCII.
33866         * lib/vasnprintf.c: Don't include config.h and the specification header
33867         if VASNPRINTF is already defined.
33868         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33869         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33870         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33871         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33872         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33873         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33874         code accordingly.
33875         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33876         pad_ourselves also in this case, with the 'c' and 's' directives, and
33877         with a different notion of "width".
33878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33879
33880 2007-06-10  Bruno Haible  <bruno@clisp.org>
33881
33882         * modules/unistr/u32-mbsnlen: New file.
33883         * lib/unistr/u32-mbsnlen.c: New file.
33884
33885         * modules/unistr/u16-mbsnlen: New file.
33886         * lib/unistr/u16-mbsnlen.c: New file.
33887
33888         * modules/unistr/u8-mbsnlen: New file.
33889         * lib/unistr/u8-mbsnlen.c: New file.
33890
33891         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33892         declarations.
33893
33894 2007-06-10  Bruno Haible  <bruno@clisp.org>
33895
33896         * lib/string_.h (mbsnlen): New declaration.
33897         * lib/mbsnlen.c: New file.
33898         * m4/mbsnlen.m4: New file.
33899         * modules/mbsnlen: New file.
33900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33901         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33902         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33903
33904 2007-06-10  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33907
33908 2007-06-10  Bruno Haible  <bruno@clisp.org>
33909
33910         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33911         * lib/mbuiter.h: Likewise.
33912
33913 2007-06-10  Bruno Haible  <bruno@clisp.org>
33914
33915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33916         declaration.
33917
33918 2007-06-10  Karl Berry  <karl@gnu.org>
33919
33920         * config/srclist.txt: remove gettext entries, Bruno prefers
33921         to update individually.
33922
33923 2007-06-10  Bruno Haible  <bruno@clisp.org>
33924
33925         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33926         'maxlen'. Ensure only length + width bytes are allocated, not
33927         length + 1 + width.
33928
33929 2007-06-09  Bruno Haible  <bruno@clisp.org>
33930
33931         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33932         (CHAR_T): Remove macro.
33933         (VASNPRINTF): Update.
33934
33935 2007-06-09  Bruno Haible  <bruno@clisp.org>
33936
33937         * MODULES.html.sh (Unicode string functions): Add the new modules.
33938
33939         * modules/uniconv/u32-conv-to-enc: New file.
33940         * lib/uniconv/u32-conv-to-enc.c: New file.
33941         * modules/uniconv/u32-conv-to-enc-tests: New file.
33942         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33943
33944         * modules/uniconv/u16-conv-to-enc: New file.
33945         * lib/uniconv/u16-conv-to-enc.c: New file.
33946         * lib/uniconv/u-conv-to-enc.h: New file.
33947         * modules/uniconv/u16-conv-to-enc-tests: New file.
33948         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33949
33950         * modules/uniconv/u8-conv-to-enc: New file.
33951         * lib/uniconv/u8-conv-to-enc.c: New file.
33952         * modules/uniconv/u8-conv-to-enc-tests: New file.
33953         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33954
33955         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33956         u32_conv_to_encoding): New declarations.
33957
33958 2007-06-09  Bruno Haible  <bruno@clisp.org>
33959
33960         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33961
33962 2007-06-09  Bruno Haible  <bruno@clisp.org>
33963
33964         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33965         * modules/malloca: Renamed from modules/allocsa, updated.
33966         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33967         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33968         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33969         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33970         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33971         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33972         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33973         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33974         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33975         * modules/c-strcasestr (Depends-on): Update.
33976         * lib/c-strcasestr.c: Update.
33977         * modules/c-strstr (Depends-on): Update.
33978         * lib/c-strstr.c: Update.
33979         * modules/canonicalize-lgpl (Depends-on): Update.
33980         * lib/canonicalize-lgpl.c: Update.
33981         * modules/clean-temp (Depends-on): Update.
33982         * lib/clean-temp.c: Update.
33983         * modules/csharpcomp (Depends-on): Update.
33984         * lib/csharpcomp.c: Update.
33985         * modules/csharpexec (Depends-on): Update.
33986         * lib/csharpexec.c: Update.
33987         * modules/javacomp (Depends-on): Update.
33988         * lib/javacomp.c: Update.
33989         * modules/javaexec (Depends-on): Update.
33990         * lib/javaexec.c: Update.
33991         * modules/mbscasestr (Depends-on): Update.
33992         * lib/mbscasestr.c: Update.
33993         * modules/mbsstr (Depends-on): Update.
33994         * lib/mbsstr.c: Update.
33995         * modules/setenv (Depends-on): Update.
33996         * lib/setenv.c: Update.
33997         * modules/strcasestr (Depends-on): Update.
33998         * lib/strcasestr.c: Update.
33999         * modules/striconveha (Depends-on): Update.
34000         * lib/striconveha.c: Update.
34001         * modules/relocatable-prog-wrapper (Files): Update.
34002         * lib/relocwrapper.c: Update.
34003         * build-aux/install-reloc: Update.
34004         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34005
34006 2007-06-08  Bruno Haible  <bruno@clisp.org>
34007
34008         Port to uClibc.
34009         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34010         * lib/fpurge.c (fpurge): Likewise.
34011         * lib/freading.c (freading): Likewise.
34012         * lib/fseeko.c (rpl_fseeko): Likewise.
34013         * lib/fseterr.c (fseterr): Likewise.
34014         * lib/fwriting.c (fwriting): Likewise.
34015         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34016
34017 2007-06-08  Bruno Haible  <bruno@clisp.org>
34018
34019         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34020         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34021         * modules/gettext (Files): Add m4/intlmacosx.m4.
34022
34023 2007-06-07  Bruno Haible  <bruno@clisp.org>
34024
34025         * modules/localename-tests: New file.
34026         * tests/test-localename.c: New file.
34027
34028         New module 'localename'.
34029         * lib/localename.h: New file.
34030         * lib/localename.c: New file, from GNU gettext.
34031         * m4/localename.m4: New file.
34032         * modules/localename: New file.
34033
34034 2007-06-07  Bruno Haible  <bruno@clisp.org>
34035
34036         Work around the lack of <wchar.h> on some builds of uClibc.
34037         * doc/headers/wchar.texi: Update.
34038         * lib/wchar_.h: Include <wchar.h> only if it exists.
34039         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34040         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34041         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34042         doesn't exist.
34043         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34044         * modules/mbfile (Depends-on): Add wchar.
34045         * modules/mbiter (Depends-on): Likewise.
34046         * modules/mbuiter (Depends-on): Likewise.
34047         Reported by Simon Josefsson.
34048
34049 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34050
34051         Work around problem reported by Steven M. Schweda in
34052         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34053         Tru64 5.1B with the Compaq compiler environment installed declares
34054         an 'isblank' function but does not define it in the C library.
34055         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34056         * lib/regex_internal.h (isblank): Likewise.
34057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34058         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34059
34060 2007-06-05  Bruno Haible  <bruno@clisp.org>
34061
34062         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34063         ia64.
34064         * modules/printf-safe: New file.
34065         * modules/fprintf-posix (Depends-on): Add printf-safe.
34066         * modules/printf-posix (Depends-on): Likewise.
34067         * modules/snprintf-posix (Depends-on): Likewise.
34068         * modules/sprintf-posix (Depends-on): Likewise.
34069         * modules/vasnprintf-posix (Depends-on): Likewise.
34070         * modules/vasprintf-posix (Depends-on): Likewise.
34071         * modules/vfprintf-posix (Depends-on): Likewise.
34072         * modules/vprintf-posix (Depends-on): Likewise.
34073         * modules/vsnprintf-posix (Depends-on): Likewise.
34074         * modules/vsprintf-posix (Depends-on): Likewise.
34075         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34076         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34077         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34078         "no" on i386, x86_64, ia64.
34079         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34080         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34081         on i386, x86_64, ia64.
34082         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34083         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34084         on i386, x86_64, ia64.
34085         * tests/test-vasnprintf-posix.c: Include float.h.
34086         (LDBL80_WORDS): New macro.
34087         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34088         on i386, x86_64, ia64.
34089         * tests/test-vasprintf-posix.c: Include float.h.
34090         (LDBL80_WORDS): New macro.
34091         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34092         on i386, x86_64, ia64.
34093         * tests/test-snprintf-posix.c: Include float.h.
34094         * tests/test-sprintf-posix.c: Likewise.
34095         * tests/test-vsnprintf-posix.c: Likewise.
34096         * tests/test-vsprintf-posix.c: Likewise.
34097
34098 2007-06-05  Bruno Haible  <bruno@clisp.org>
34099
34100         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34101         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34102         non-IEEE numbers on i386, x86_64, ia64.
34103         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34104         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34105         * tests/test-isnanl.h: Include float.h.
34106         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34107
34108 2007-06-05  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34111         also the %a / %A. Handle the %a / %A code before this extra handling.
34112
34113 2007-06-05  Bruno Haible  <bruno@clisp.org>
34114
34115         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34116         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34117
34118 2007-06-05  Bruno Haible  <bruno@clisp.org>
34119
34120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34121         typo in variable name.
34122
34123 2007-06-05  Eric Blake  <ebb9@byu.net>
34124
34125         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34126         Reported by Simon Josefsson.
34127
34128 2007-06-04  Bruno Haible  <bruno@clisp.org>
34129
34130         Avoid test failures on some PowerPC platforms.
34131         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34132         Define differently for PowerPC.
34133         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34134         Reported by Gary V. Vaughan <gary@gnu.org>.
34135
34136 2007-06-02  Bruno Haible  <bruno@clisp.org>
34137
34138         Fix test-stdint failure on FreeBSD/ia64.
34139         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34140         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34141         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34142         * doc/headers/stdint.texi: Update.
34143
34144 2007-06-01  Bruno Haible  <bruno@clisp.org>
34145
34146         * tests/test-binary-io.c (main): Pass a third argument to open().
34147         Reported by Gary V. Vaughan <gary@gnu.org>.
34148
34149 2007-06-01  Bruno Haible  <bruno@clisp.org>
34150
34151         * doc/functions/frexpl.texi: Update for mingw.
34152
34153 2007-06-01  Bruno Haible  <bruno@clisp.org>
34154
34155         * tests/test-lseek.c (main): Disable test of errno for invalid third
34156         argument.
34157         * doc/functions/lseek.texi: Update.
34158         Reported by Gary V. Vaughan <gary@gnu.org>.
34159
34160 2007-05-28  Bruno Haible  <bruno@clisp.org>
34161
34162         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34163
34164 2007-05-31  Eric Blake  <ebb9@byu.net>
34165
34166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34167         cross compiling.
34168
34169 2007-05-30  Eric Blake  <ebb9@byu.net>
34170         and Bruno Haible  <bruno@clisp.org>
34171
34172         Work around mingw test failures exposed by m4-1.4.9b.
34173         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34174         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34175         moment.
34176
34177 2007-05-30  Bruno Haible  <bruno@clisp.org>
34178
34179         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34180         assuming that they are closed. Needed on HP-UX 11.
34181
34182 2007-05-29  Bruno Haible  <bruno@clisp.org>
34183
34184         Fix a problem with #include_next.
34185         * lib/dirent_.h: Split the double-inclusion guard.
34186         * lib/fcntl_.h: Likewise.
34187         * lib/float_.h: Likewise.
34188         * lib/iconv_.h: Likewise.
34189         * lib/inttypes_.h: Likewise.
34190         * lib/locale_.h: Likewise.
34191         * lib/math_.h: Likewise.
34192         * lib/netinet_in_.h: Likewise.
34193         * lib/search_.h: Likewise.
34194         * lib/signal_.h: Likewise.
34195         * lib/stdint_.h: Likewise.
34196         * lib/stdio_.h: Likewise.
34197         * lib/stdlib_.h: Likewise.
34198         * lib/string_.h: Likewise.
34199         * lib/sys_select_.h: Likewise.
34200         * lib/sys_socket_.h: Likewise.
34201         * lib/sys_stat_.h: Likewise.
34202         * lib/sys_time_.h: Likewise.
34203         * lib/sysexits_.h: Likewise.
34204         * lib/time_.h: Likewise.
34205         * lib/unistd_.h: Likewise.
34206         * lib/wchar_.h: Likewise.
34207         * lib/wctype_.h: Likewise.
34208
34209 2007-05-29  Bruno Haible  <bruno@clisp.org>
34210
34211         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34212         for the moment.
34213
34214 2007-05-29  Bruno Haible  <bruno@clisp.org>
34215
34216         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34217         invocation.
34218         Reported by Eric Blake.
34219
34220 2007-05-29  Bruno Haible  <bruno@clisp.org>
34221
34222         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34223         compiling case.
34224
34225 2007-05-29  Eric Blake  <ebb9@byu.net>
34226             Bruno Haible  <bruno@clisp.org>
34227
34228         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34229         cross compiles.
34230
34231 2007-05-28  Eric Blake  <ebb9@byu.net>
34232
34233         * modules/closein-tests (test_closein_LDADD): Support test on
34234         cygwin with libtool.
34235
34236 2007-05-28  Bruno Haible  <bruno@clisp.org>
34237
34238         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34239         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34240         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34241         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34242         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34243         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34244         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34245         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34246         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34247
34248 2007-05-28  Eric Blake  <ebb9@byu.net>
34249
34250         Unconditionally include <config.h> in unit tests.
34251         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34252         * tests/test-allocsa.c, tests/test-arcfour.c,
34253         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34254         tests/test-array_list.c, tests/test-array_oset.c,
34255         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34256         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34257         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34258         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34259         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34260         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34261         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34262         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34263         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34264         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34265         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34266         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34267         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34268         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34269         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34270         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34271         test-md5.c, test-memmem.c, test-printf-posix.c,
34272         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34273         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34274         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34275         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34276         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34277         test-vasnprintf-posix2.c, test-vasnprintf.c,
34278         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34279         test-vfprintf-posix.c, test-vprintf-posix.c,
34280         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34281         test-xvasprintf.c: Likewise.
34282
34283 2007-05-28  Bruno Haible  <bruno@clisp.org>
34284
34285         * gnulib-tool (func_import): Remember the --with-tests command-line
34286         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34287         Reported by Eric Blake.
34288
34289 2007-05-28  Bruno Haible  <bruno@clisp.org>
34290
34291         * modules/ftell-tests: New file.
34292         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34293         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34294
34295         * lib/ftell.c: New file.
34296         * modules/ftell: New file.
34297         * m4/ftell.m4: New file.
34298         * doc/functions/ftell.texi: Update.
34299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34300         REPLACE_FTELL.
34301         * lib/stdio_.h (rpl_ftell): New declaration.
34302         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34303         REPLACE_FTELL.
34304
34305 2007-05-28  Eric Blake  <ebb9@byu.net>
34306
34307         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34308
34309 2007-05-28  Bruno Haible  <bruno@clisp.org>
34310
34311         * modules/fseek-tests: New file.
34312         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34313         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34314
34315         * lib/fseek.c: New file.
34316         * modules/fseek: New file.
34317         * m4/fseek.m4: New file.
34318         * doc/functions/fseek.texi: Update.
34319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34320         REPLACE_FSEEK.
34321         * lib/stdio_.h (rpl_fseek): New declaration.
34322         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34323         REPLACE_FSEEK.
34324
34325 2007-05-28  Bruno Haible  <bruno@clisp.org>
34326
34327         * lib/stdio_.h (fflush): More comments.
34328
34329 2007-05-28  Bruno Haible  <bruno@clisp.org>
34330
34331         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34332         runtime test.
34333
34334 2007-05-28  Eric Blake  <ebb9@byu.net>
34335
34336         Improve lseek module.
34337         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34338         * lib/unistd_.h (lseek): Scale back link warning message.
34339         * tests/test-lseek.c: Beef up test.
34340         * tests/test-lseek.sh: Exercise more facets of lseek.
34341         Reported by Bruno Haible.
34342
34343 2007-05-28  Bruno Haible  <bruno@clisp.org>
34344
34345         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34346         to define.
34347
34348 2007-05-27  Bruno Haible  <bruno@clisp.org>
34349
34350         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34351
34352 2007-05-27  Bruno Haible  <bruno@clisp.org>
34353
34354         * modules/openmp: New file.
34355         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34356         Noah Misch.
34357
34358 2007-05-26  Bruno Haible  <bruno@clisp.org>
34359
34360         * modules/chdir-long (Depends-on): Add fchdir.
34361         * modules/chdir-safer (Depends-on): Likewise.
34362         * modules/fts (Depends-on): Likewise.
34363         * modules/fts-lgpl (Depends-on): Likewise.
34364         * modules/openat (Depends-on): Likewise.
34365         * modules/savewd (Depends-on): Likewise.
34366
34367 2007-05-24  Eric Blake  <ebb9@byu.net>
34368
34369         Fix lseek on mingw.
34370         * modules/lseek: New module.
34371         * m4/lseek.m4: New file.
34372         * lib/lseek.c: New file.
34373         * modules/lseek-tests: New file.
34374         * tests/test-lseek.c: New file.
34375         * tests/test-lseek.sh: New file.
34376         * MODULES.html.sh: Document lseek module.
34377         * modules/fflush (Depends-on): Add lseek, fseeko.
34378         * modules/fseeko (Depends-on): Likewise.
34379         * modules/ftello (Depends-on): Likewise.
34380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34381         broken.
34382         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34383         broken.
34384         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34385         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34386         * lib/ftello.c (rpl_ftello): Likewise.
34387         * tests/test-fseeko.c (main): Test this.
34388         * tests/test-fseeko.sh: Likewise.
34389         * tests/test-ftello.c (main): Likewise.
34390         * tests/test-ftello.sh: Likewise.
34391         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34392         implies replacing fseek.
34393         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34394         HAVE_FTELLO.
34395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34396         * modules/unistd (Makefile.am): Likewise.
34397         * lib/unistd_.h (lseek): Declare a replacement.
34398         * doc/functions/lseek.texi (lseek): Document this fix.
34399         * doc/functions/fseek.texi (fseek): Likewise.
34400         * doc/functions/ftell.texi (ftell): Likewise.
34401
34402 2007-05-24  Bruno Haible  <bruno@clisp.org>
34403
34404         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34405         in the printed representation of a NaN.
34406         * tests/test-vasprintf-posix.c (test_function): Likewise.
34407         * tests/test-snprintf-posix.h (test_function): Likewise.
34408         * tests/test-sprintf-posix.h (test_function): Likewise.
34409         Reported by Eric Blake.
34410
34411 2007-05-23  Eric Blake  <ebb9@byu.net>
34412
34413         Fix fseeko/ftello on cygwin 1.5.24.
34414         * doc/functions/fseeko.texi (fseeko): Document the fix.
34415         * doc/functions/ftello.texi (ftello): Document the fix.
34416         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34417         * doc/functions/stdout.text (stdout): New file.
34418         * doc/functions/stderr.text (stderr): New file.
34419         * doc/gnulib.texi (Function Substitutes): Use new files.
34420         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34421         prior to 1.7.0.
34422         * tests/test-ftello.c (main): Likewise for ftello.
34423         * tests/test-fseeko.sh: New file.
34424         * tests/test-ftello.sh: New file.
34425         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34426         with seekable stdin.
34427         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34429         (gl_REPLACE_FSEEKO): New macro.
34430         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34431         * modules/fseeko (Files): Distribute fseeko.c.
34432         * modules/ftello (Files): Distribute ftello.c.
34433         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34434         mode.
34435         * lib/ftello.c (rpl_ftello): New file.
34436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34437         fseeko, ftello.
34438         (gl_STDIN_LARGE_OFFSET): New macro.
34439         * modules/stdio (Makefile.am): Perform the replacement.
34440         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34441
34442 2007-05-23  Bruno Haible  <bruno@clisp.org>
34443
34444         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34445         GNULIB_POSIXCHECK is defined.
34446
34447 2007-05-21  Bruno Haible  <bruno@clisp.org>
34448
34449         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34450         Check also the output for NaN arguments. When cross-compiling, guess
34451         no on IRIX.
34452         * lib/vasnprintf.c: Update comments.
34453         * tests/test-vasnprintf-posix.c (strisnan): New function.
34454         (test_function): Use it.
34455         * tests/test-vasprintf-posix.c (strisnan): New function.
34456         (test_function): Use it.
34457         * tests/test-snprintf-posix.h (strisnan): New function.
34458         (test_function): Use it.
34459         * tests/test-sprintf-posix.h (strisnan): New function.
34460         (test_function): Use it.
34461         Reported by Eric Blake.
34462
34463 2007-05-20  Bruno Haible  <bruno@clisp.org>
34464
34465         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34466         numbers that fails on BeOS.
34467         * doc/functions/frexpl.texi: Update.
34468
34469 2007-05-20  Jim Meyering  <jim@meyering.net>
34470
34471         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34472         forced upon us by glibc-2.6.
34473
34474 2007-05-20  Bruno Haible  <bruno@clisp.org>
34475
34476         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34477         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34478         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34479         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34480         NEED_PRINTF_INFINITE.
34481         (is_infinitel): New function.
34482         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34484         gl_PREREQ_VASNPRINTF_INFINITE.
34485         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34487         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34488         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34489         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34490         gl_PREREQ_VASNPRINTF_INFINITE.
34491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34498         * doc/functions/fprintf.texi: Update.
34499         * doc/functions/printf.texi: Update.
34500         * doc/functions/snprintf.texi: Update.
34501         * doc/functions/sprintf.texi: Update.
34502         * doc/functions/vfprintf.texi: Update.
34503         * doc/functions/vprintf.texi: Update.
34504         * doc/functions/vsnprintf.texi: Update.
34505         * doc/functions/vsprintf.texi: Update.
34506
34507 2007-05-20  Bruno Haible  <bruno@clisp.org>
34508
34509         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34510         was not found in libc.
34511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34512
34513 2007-05-20  Bruno Haible  <bruno@clisp.org>
34514
34515         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34516         printed as "-nan" instead of "nan".
34517         * tests/test-vasprintf-posix.c (test_function): Likewise.
34518         * tests/test-snprintf-posix.h (test_function): Likewise.
34519         * tests/test-sprintf-posix.h (test_function): Likewise.
34520         Needed for HP-UX 11.
34521
34522 2007-05-20  Jim Meyering  <jim@meyering.net>
34523
34524         Fix buggy test for the fchownat-deref bug.
34525         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34526         symlink required for the run-test.  Without it, this test would
34527         always declare that fchownat doesn't work, and client code would
34528         unnecessarily use the replacement function with fixed libc.
34529         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34530         Reported by Greg Schafer.
34531
34532 2007-05-19  Bruno Haible  <bruno@clisp.org>
34533
34534         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34535         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34536         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34537         Needed for IRIX 6.5 and Solaris 2.5.1.
34538
34539 2007-05-19  Bruno Haible  <bruno@clisp.org>
34540
34541         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34542         (test_function): Skip tests involving -0.0 on platforms where
34543         -0.0 = 0.0.
34544         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34545         (test_function): Skip tests involving -0.0 on platforms where
34546         -0.0 = 0.0.
34547         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34548         (test_function): Skip tests involving -0.0 on platforms where
34549         -0.0 = 0.0.
34550         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34551         (test_function): Skip tests involving -0.0 on platforms where
34552         -0.0 = 0.0.
34553         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34554         tests.
34555         * tests/test-printf-posix.h (test_function): Likewise.
34556         * tests/test-printf-posix.output: Remove all -0.0 related results.
34557         Needed for IRIX 6.5.
34558
34559 2007-05-19  Bruno Haible  <bruno@clisp.org>
34560
34561         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34562         printed as "nan0x7fffffff" instead of "nan".
34563         * tests/test-vasprintf-posix.c (test_function): Likewise.
34564         * tests/test-snprintf-posix.h (test_function): Likewise.
34565         * tests/test-sprintf-posix.h (test_function): Likewise.
34566         * tests/test-fprintf-posix.h (NaN): Remove macro.
34567         (test_function): Remove all NaN related tests.
34568         * tests/test-printf-posix.h (NaN): Remove macro.
34569         (test_function): Remove all NaN related tests.
34570         * tests/test-printf-posix.output: Remove all NaN related results.
34571         Needed for IRIX 6.5.
34572
34573 2007-05-19  Bruno Haible  <bruno@clisp.org>
34574
34575         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34577
34578 2007-05-19  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/float_.h: New file.
34581         * m4/float_h.m4: New file.
34582         * modules/float: New file.
34583         * modules/isnanl (Dependencies): Add float.
34584         * modules/isnanl-nolibm (Dependencies): Likewise.
34585         * modules/mathl (Dependencies): Likewise.
34586         * modules/printf-frexpl (Dependencies): Likewise.
34587         * modules/signbit (Dependencies): Likewise.
34588         * modules/vasnprintf (Dependencies): Likewise.
34589         * doc/headers/float.texi: Update.
34590
34591 2007-05-19  Jim Meyering  <jim@meyering.net>
34592
34593         * lib/utimens.c (gl_futimens): Rename from futimens,
34594         now that glibc-2.6 declares futimens.
34595         * lib/utimens.h: Likewise.
34596
34597 2007-05-19  Bruno Haible  <bruno@clisp.org>
34598
34599         Avoid test failures on mingw.
34600         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34601         * tests/test-printf-posix.sh: Likewise.
34602         * tests/test-vfprintf-posix.sh: Likewise.
34603         * tests/test-vprintf-posix.sh: Likewise.
34604
34605 2007-05-19  Bruno Haible  <bruno@clisp.org>
34606
34607         Fix *printf result for NaN, Inf, -0.0 on mingw.
34608         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34609         * lib/vasnprintf.c: Include math.h and isnan.h.
34610         (is_infinite_or_zero): New function.
34611         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34612         values in the %f, %F, %e, %E, %g, %G directives.
34613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34615         gl_PRINTF_INFINITE and test its result. Invoke
34616         gl_PREREQ_VASNPRINTF_INFINITE.
34617         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34620         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34621         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34624         * doc/functions/fprintf.texi: Update.
34625         * doc/functions/printf.texi: Update.
34626         * doc/functions/snprintf.texi: Update.
34627         * doc/functions/sprintf.texi: Update.
34628         * doc/functions/vfprintf.texi: Update.
34629         * doc/functions/vprintf.texi: Update.
34630         * doc/functions/vsnprintf.texi: Update.
34631         * doc/functions/vsprintf.texi: Update.
34632
34633 2007-05-19  Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34636         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34637         Instead of multiplying with 10^k, set extra_zeroes to k.
34638         (scale10_round_long_double): Remove function.
34639
34640 2007-05-18  Bruno Haible  <bruno@clisp.org>
34641
34642         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34643         introduced on 2007-05-06.
34644
34645 2007-05-18  Bruno Haible  <bruno@clisp.org>
34646
34647         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34648         %g directives.
34649         * tests/test-vasprintf-posix.c (test_function): Likewise.
34650         * tests/test-snprintf-posix.h (test_function): Likewise.
34651         * tests/test-sprintf-posix.h (test_function): Likewise.
34652
34653 2007-05-18  Bruno Haible  <bruno@clisp.org>
34654
34655         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34656         (strmatch): New function.
34657         (test_function): Test the %f directive on numbers of various exponents.
34658         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34659         (strmatch): New function.
34660         (test_function): Test the %f directive on numbers of various exponents.
34661         * tests/test-snprintf-posix.h (strmatch): New function.
34662         (test_function): Test the %f directive on numbers of various exponents.
34663         * tests/test-sprintf-posix.h (strmatch): New function.
34664         (test_function): Test the %f directive on numbers of various exponents.
34665         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34666         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34667         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34668         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34669
34670 2007-05-18  Bruno Haible  <bruno@clisp.org>
34671
34672         Add support for 'long double' number output.
34673         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34674         * lib/vasnprintf.c: Include math.h and float+.h.
34675         (mp_limb_t): New type.
34676         (GMP_LIMB_BITS): New macro.
34677         (mp_twolimb_t): New type.
34678         (GMP_TWOLIMB_BITS): New macro.
34679         (mpn_t): New type.
34680         (multiply, divide, convert_to_decimal, decode_long_double,
34681         scale10_round_long_double, scale10_round_decimal_long_double,
34682         floorlog10l): New functions.
34683         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34684         for the %f, %F, %e, %E, %g, %G directives.
34685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34686         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34687         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34688         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34689         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34690         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34691         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34695         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34696         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34697         * modules/snprintf-posix (Depends-on): Likewise.
34698         * modules/sprintf-posix (Depends-on): Likewise.
34699         * modules/vasnprintf-posix (Depends-on): Likewise.
34700         * modules/vasprintf-posix (Depends-on): Likewise.
34701         * modules/vfprintf-posix (Depends-on): Likewise.
34702         * modules/vsnprintf-posix (Depends-on): Likewise.
34703         * modules/vsprintf-posix (Depends-on): Likewise.
34704         * modules/vasnprintf (Files): Add lib/float+.h.
34705         * doc/functions/fprintf.texi: Update.
34706         * doc/functions/printf.texi: Update.
34707         * doc/functions/snprintf.texi: Update.
34708         * doc/functions/sprintf.texi: Update.
34709         * doc/functions/vfprintf.texi: Update.
34710         * doc/functions/vprintf.texi: Update.
34711         * doc/functions/vsnprintf.texi: Update.
34712         * doc/functions/vsprintf.texi: Update.
34713
34714 2007-05-18  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34717
34718 2007-05-18  Bruno Haible  <bruno@clisp.org>
34719
34720         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34721         for printing 64-bit integers. Needed for mingw.
34722
34723 2007-05-18  Bruno Haible  <bruno@clisp.org>
34724
34725         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34726         gl_FUNC_FREXPL_WORKS.
34727         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34728
34729 2007-05-18  Bruno Haible  <bruno@clisp.org>
34730
34731         * modules/frexpl-nolibm-tests: New file.
34732
34733         * modules/frexpl-nolibm: New file.
34734         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34735
34736 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34737
34738         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34739         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34740         GCC 4.2, which otherwise issues a lot of warnings.
34741         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34742         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34743         Likewise.
34744         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34745         * modules/iconv_open (iconv.h): Likewise.
34746         * modules/locale (locale.h): Likewise.
34747         * modules/netinet_in (netinet/in.h): Likewise.
34748         * modules/sys_select (sys_select.h): Likewise.
34749         * modules/sys_socket (sys/socket.h): Likewise.
34750         * modules/sys_stat (sys/stat.h): Likewise.
34751         * modules/sysexits (sysexits.h): Likewise.
34752         * modules/unistd (unistd.h): Likewise.
34753
34754 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34755
34756         * modules/closein-tests (Makefile.am): Distribute
34757         `test-closein.sh'.
34758
34759 2007-05-17  Bruno Haible  <bruno@clisp.org>
34760
34761         * tests/test-printf-posix.output: Renamed from
34762         tests/test-fprintf-posix.out.
34763         * modules/fprintf-posix-tests: Update.
34764         * modules/printf-posix-tests: Update.
34765         * modules/vfprintf-posix-tests: Update.
34766         * modules/vprintf-posix-tests: Update.
34767         * tests/test-fprintf-posix.sh: Update.
34768         * tests/test-printf-posix.sh: Update.
34769         * tests/test-vfprintf-posix.sh: Update.
34770         * tests/test-vprintf-posix.sh: Update.
34771         Reported by Ralf Wildenhues.
34772
34773 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34774
34775         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34776         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34777         GCC 4.2, which otherwise issues a lot of warnings.
34778         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34779         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34780         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34781         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34782         it should no longer be needed.
34783         * lib/string_.h: Likewise.
34784         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34785         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34786         * modules/inttypes (inttypes.h): Likewise.
34787         * modules/math (math.h): Likewise.
34788         * modules/search (search.h): Likewise.
34789         * modules/signal (signal.h): Likewise.
34790         * modules/stdint (stdint.h): Likewise.
34791         * modules/stdio (stdio.h): Likewise.
34792         * modules/stdlib (stdlib.h): Likewise.
34793         * modules/string (string.h): Likewise.
34794         * modules/sys_time (sys/time.h): Likewise.
34795         * modules/time (time.h): Likewise.
34796         * modules/wchar (wchar.h): Likewise.
34797         * modules/wctype (wtype.h): Likewise.
34798
34799 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34800
34801         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34802
34803 2007-05-13  Bruno Haible  <bruno@clisp.org>
34804
34805         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34806         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34807         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34808         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34809         (gl_PREREQ_STRTOK_R): Don't require it here.
34810
34811 2007-05-13  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34814         when used in C++ mode.
34815
34816 2007-05-12  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/linebuffer.h: Tweak doc.
34819         * lib/linebuffer.c: Likewise.
34820
34821 2007-05-12  James Youngman  <jay@gnu.org>
34822
34823         * lib/linebuffer.c (readlinebuffer_delim): New function,
34824         like readlinebuffer, but use a caller-specified delimiter.
34825         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34826         as the delimiter.
34827         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34828
34829 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34830
34831         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34832         * modules/openat (Files): Remove openat-die.c.
34833         (Depends-on): Add openat-die.
34834         * modules/openat-die: New module.
34835
34836 2007-05-06  Bruno Haible  <bruno@clisp.org>
34837
34838         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34839         Update with info about Cygwin.
34840         * doc/functions/fprintf.texi: Update.
34841         * doc/functions/printf.texi: Update.
34842         * doc/functions/snprintf.texi: Update.
34843         * doc/functions/sprintf.texi: Update.
34844         * doc/functions/vfprintf.texi: Update.
34845         * doc/functions/vprintf.texi: Update.
34846         * doc/functions/vsnprintf.texi: Update.
34847         * doc/functions/vsprintf.texi: Update.
34848         Reported by Eric Blake.
34849
34850 2007-05-06  Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34853         padding ourselves for the floating-point directives.
34854         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34857         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34858         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34859         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34863         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34864         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34865         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34866         * tests/test-snprintf-posix.h (test_function): Also check the width
34867         and some flags in the %f directive.
34868         * tests/test-sprintf-posix.h (test_function): Likewise.
34869         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34870         * tests/test-vasprintf-posix.c (test_function): Likewise.
34871         * doc/functions/fprintf.texi: Update.
34872         * doc/functions/printf.texi: Update.
34873         * doc/functions/snprintf.texi: Update.
34874         * doc/functions/sprintf.texi: Update.
34875         * doc/functions/vfprintf.texi: Update.
34876         * doc/functions/vprintf.texi: Update.
34877         * doc/functions/vsnprintf.texi: Update.
34878         * doc/functions/vsprintf.texi: Update.
34879
34880 2007-05-06  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34883         pass the ' flag character to sprintf or snprintf.
34884         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34887         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34888         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34889         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34896         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34897         flag.
34898         * tests/test-sprintf-posix.h (test_function): Likewise.
34899         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34900         * tests/test-vasprintf-posix.c (test_function): Likewise.
34901         * doc/functions/fprintf.texi: Update.
34902         * doc/functions/printf.texi: Update.
34903         * doc/functions/snprintf.texi: Update.
34904         * doc/functions/sprintf.texi: Update.
34905         * doc/functions/vfprintf.texi: Update.
34906         * doc/functions/vprintf.texi: Update.
34907         * doc/functions/vsnprintf.texi: Update.
34908         * doc/functions/vsprintf.texi: Update.
34909
34910 2007-05-01  Bruno Haible  <bruno@clisp.org>
34911
34912         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34913
34914 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34915
34916         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34917         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34918
34919 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34920
34921         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34922         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34924
34925 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34926
34927         * lib/argp-help.c (struct hol_entry): New member `ord'.
34928         (HOL_ENTRY_PTRCMP): Use ord for comparison
34929         (hol_sort): Initialize ord.
34930
34931 2007-05-01  Bruno Haible  <bruno@clisp.org>
34932
34933         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34934         Reported by Eric Blake.
34935         * doc/gnulib.texi (Function Substitutes): Update.
34936
34937 2007-05-01  Bruno Haible  <bruno@clisp.org>
34938
34939         * doc/functions.texi: Remove file, now redundant through
34940         doc/functions/*.texi.
34941
34942 2007-05-01  Bruno Haible  <bruno@clisp.org>
34943
34944         * modules/argp (Depends-on): Add sleep.
34945
34946 2007-05-01  Bruno Haible  <bruno@clisp.org>
34947
34948         * modules/sleep-tests: New file.
34949         * tests/test-sleep.c: New file.
34950
34951         * modules/sleep: New file.
34952         * lib/sleep.c: New file.
34953         * m4/sleep.m4: New file.
34954         * lib/unistd_.h (sleep): New declaration.
34955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34956         HAVE_SLEEP.
34957         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34958         * doc/functions/sleep.texi: Document the sleep module.
34959
34960 2007-05-01  Bruno Haible  <bruno@clisp.org>
34961
34962         * lib/sigprocmask.h: Remove file.
34963         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34964         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34965         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34966         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34967         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34968         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34969         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34970         HAVE_SIGSET_T as a shell variable.
34971         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34972         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34973         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34974         (Depends-on): Add signal. Remove verify.
34975         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34976         (Include): Mention <signal.h> instead of sigprocmask.h.
34977         * NEWS: Mention the change.
34978         * lib/fatal-signal.c: Don't include sigprocmask.h.
34979
34980 2007-05-01  Bruno Haible  <bruno@clisp.org>
34981
34982         * modules/signal: New file.
34983         * lib/signal_.h: New file.
34984         * m4/signal_h.m4: New file.
34985
34986 2007-05-01  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34989         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34990         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34991         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34992
34993 2007-05-01  Bruno Haible  <bruno@clisp.org>
34994
34995         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34996         configure time.
34997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34998         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34999         * modules/sys_stat (Makefile.am): Substitute their values into
35000         sys/stat.h.
35001
35002 2007-05-01  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35005         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35006         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35007
35008 2007-05-01  Bruno Haible  <bruno@clisp.org>
35009
35010         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35011         'assert' module here.
35012
35013 2007-05-01  Bruno Haible  <bruno@clisp.org>
35014
35015         * doc/functions/*.texi: New files.
35016         * doc/functions/google-ranking.txt: New file.
35017         * doc/gnulib.texi (Function Substitutes): New chapter.
35018         (ctime, inet_ntoa): Remove sections.
35019         * doc/ctime.texi: Remove file.
35020         * doc/inet_ntoa.texi: Remove file.
35021         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35022         dependencies.
35023         (%.info): New rule, specifying a --reference-limit.
35024
35025 2007-05-01  Bruno Haible  <bruno@clisp.org>
35026
35027         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35028
35029 2007-05-01  Bruno Haible  <bruno@clisp.org>
35030
35031         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35032         the portability of 'mkdir' to mingw systems.
35033
35034 2007-05-01  Bruno Haible  <bruno@clisp.org>
35035
35036         * doc/headers/google-ranking.txt: New file.
35037
35038 2007-04-30  Eric Blake  <ebb9@byu.net>
35039
35040         Prefer fseeko to fseek.
35041         * modules/getpass (Depends-on): Add fseeko.
35042         * lib/getpass.c (getpass): Use fseeko, not fseek.
35043
35044 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35045
35046         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35047         assumes the sorting is stable, while most qsort implementations
35048         are not.  Use argument addresses to ensure they never compare as
35049         equal.
35050
35051         * tests/test-argp-2.sh (usage-indent test): Fix output
35052         (func_compare): Restore diff options
35053         * tests/test-argp.c: Restore #include "progname.h"
35054
35055 2007-04-29  Bruno Haible  <bruno@clisp.org>
35056
35057         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35059         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35061         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35062         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35063         (TESTS, check_PROGRAMS): Add test-snprintf.
35064         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35065         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35066         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35067         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35068         assertions that fail on HP-UX, OSF/1, or IRIX.
35069         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35070
35071 2007-04-29  Bruno Haible  <bruno@clisp.org>
35072
35073         * MODULES.html.sh (posix_functions): Remove 'contents'.
35074
35075 2007-04-29  Karl Berry  <karl@gnu.org>
35076
35077         * config/srclist.txt (gendocs_template_min): new entry.
35078
35079 2007-04-29  Bruno Haible  <bruno@clisp.org>
35080
35081         Work around fpurge bug on BSD systems.
35082         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35083         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35084         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35085         fpurge to rpl_fpurge if the system already has this function.
35086         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35087         the case where the system already has this function. Correct invariants
35088         on BSD systems.
35089         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35090         BSD systems.
35091
35092 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35093
35094         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35095         proposed by Sven Verdoolaege.
35096
35097         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35098         options.
35099         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35100         (usage and help tests): Update
35101
35102 2007-04-29  Bruno Haible  <bruno@clisp.org>
35103
35104         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35105         Print more information in case of failure. Disable a test on BeOS.
35106
35107 2007-04-29  Bruno Haible  <bruno@clisp.org>
35108
35109         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35110         This helps debugging on systems on which no gdb is available.
35111
35112 2007-04-29  Bruno Haible  <bruno@clisp.org>
35113
35114         * lib/freading.h: Improve comments.
35115         * lib/fwriting.h: Likewise.
35116         * tests/test-freading.c (main): Don't check freading immediately after
35117         repositioning. Needed for glibc.
35118
35119 2007-04-29  Bruno Haible  <bruno@clisp.org>
35120
35121         * lib/freading.c (freading): Trivial simplification.
35122
35123 2007-04-28  Bruno Haible  <bruno@clisp.org>
35124
35125         * tests/test-fwriting.c (main): Also test the interaction between
35126         fflush and fwriting.
35127         * modules/fwriting-tests (Depends-on): Add fflush.
35128
35129         * tests/test-freading.c (main): Also test the interaction between
35130         fflush and freading.
35131         * modules/freading-tests (Depends-on): Add fflush.
35132
35133 2007-04-28  Bruno Haible  <bruno@clisp.org>
35134
35135         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35136         fseeko and ftello.
35137         Suggested by Eric Blake.
35138
35139 2007-04-28  Jim Meyering  <jim@meyering.net>
35140
35141         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35142         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35143         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35144
35145 2007-04-27  Eric Blake  <ebb9@byu.net>
35146
35147         * doc/headers/assert.texi (assert.h): Document assert module use.
35148
35149 2007-04-27  Bruno Haible  <bruno@clisp.org>
35150
35151         * doc/headers/*.texi: New files.
35152         * doc/gnulib.texi (Header File Substitutes): New chapter.
35153         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35154         dependencies.
35155         (standards.info ,standards.html, standards.dvi): Update dependencies.
35156         (mostlyclean, clean): New targets.
35157
35158 2007-04-27  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35161         * modules/sysexits (Files, Makefile.am): Update.
35162
35163         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35164         * modules/sys_socket (Files, Makefile.am): Update.
35165
35166         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35167         * modules/sys_stat (Files, Makefile.am): Update.
35168
35169 2007-04-27  Eric Blake  <ebb9@byu.net>
35170
35171         * lib/freading.h: Improve comments.
35172         * lib/fwriting.h: Likewise.
35173         * lib/fflush.c: Likewise.
35174
35175         Fix closein for mingw.
35176         * modules/closein-tests: Add tests for closein.
35177         * tests/test-closein.c: New file.
35178         * tests/test-closein.sh: Likewise.
35179         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35180         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35181
35182 2007-04-27  Bruno Haible  <bruno@clisp.org>
35183
35184         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35185         version is < 6.
35186         * lib/math_.h [__DECC]: Likewise.
35187         * lib/stdio_.h [__DECC]: Likewise.
35188         * lib/stdlib_.h [__DECC]: Likewise.
35189         * lib/string_.h [__DECC]: Likewise.
35190         * lib/time_.h [__DECC]: Likewise.
35191         * lib/wchar_.h [__DECC]: Likewise.
35192         * lib/wctype_.h [__DECC]: Likewise.
35193
35194 2007-04-27  Bruno Haible  <bruno@clisp.org>
35195
35196         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35197
35198 2007-04-27  Bruno Haible  <bruno@clisp.org>
35199
35200         * lib/fflush.c: Add comments.
35201         * modules/fpurge-tests (Depends-on): Add fflush.
35202         * modules/freadable-tests (Depends-on): Likewise.
35203         * modules/fwritable-tests (Depends-on): Likewise.
35204
35205 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35206
35207         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35208         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35209         Report by Bruno Haible <bruno@clisp.org>.
35210
35211 2007-04-26  Eric Blake  <ebb9@byu.net>
35212
35213         Fix fflush on mingw.
35214         * modules/fflush (Depends-on): Add freading.
35215         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35216         but unread data.
35217
35218 2007-04-26  Eric Blake  <ebb9@byu.net>
35219         and Bruno Haible  <bruno@clisp.org>
35220
35221         Implement freading and fwriting.
35222         * lib/freading.c: New file.
35223         * lib/freading.h: Likewise.
35224         * m4/freading.m4: Likewise.
35225         * modules/freading: Likewise.
35226         * modules/freading-tests: Likewise.
35227         * tests/test-freading.c: Likewise.
35228         * lib/fwriting.c: New file.
35229         * lib/fwriting.h: Likewise.
35230         * m4/fwriting.m4: Likewise.
35231         * modules/fwriting: Likewise.
35232         * modules/fwriting-tests: Likewise.
35233         * tests/test-fwriting.c: Likewise.
35234         * MODULES.html.sh (File stream based Input/Output): Mention them.
35235
35236 2007-04-26  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35239         'long' when we assume it.
35240         Suggested by Eric Blake.
35241
35242 2007-04-26  Bruno Haible  <bruno@clisp.org>
35243
35244         Ensure fseeko, ftello are declared on glibc systems.
35245         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35246         * modules/fseeko (configure.ac-early): Likewise.
35247         * modules/ftello (configure.ac-early): Likewise.
35248         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35249         AC_FUNC_FSEEKO for this.
35250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35251         (gl_CHECK_FSEEKO): Remove macro.
35252
35253 2007-04-26  Bruno Haible  <bruno@clisp.org>
35254
35255         * tests/test-fflush.c (main): Also check the ftell result after
35256         fflush and fseek/fseeko.
35257         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35258         file descriptor position cache in the stream.
35259         * lib/fseeko.c (rpl_fseeko): Likewise.
35260
35261 2007-04-26  Bruno Haible  <bruno@clisp.org>
35262
35263         * modules/fflush-tests (Depends-on): Add fseeko.
35264
35265 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35266             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35267
35268         * lib/argz_.h: ensure error_t definition is obtained in same
35269         mechanism system argz.h would have.
35270         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35271         argz facilities are known bad.  Err on the side of caution if
35272         cross-compiling.
35273
35274 2007-04-25  Eric Blake  <ebb9@byu.net>
35275
35276         * lib/fpurge.c (includes): Use stdlib.h for free.
35277         * tests/test-fflush.c (main): Also test fflush-fseeko.
35278
35279 2007-04-25  Bruno Haible  <bruno@clisp.org>
35280
35281         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35282         * lib/fseeko.c: New file.
35283         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35284         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35285         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35286         gl_FUNC_FSEEKO.
35287         (gl_FUNC_FSEEKO): Invoke it.
35288         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35289         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35290         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35291
35292 2007-04-25  Bruno Haible  <bruno@clisp.org>
35293
35294         * modules/fflush (Depends-on): Add ftello.
35295
35296 2007-04-25  Bruno Haible  <bruno@clisp.org>
35297
35298         * modules/ftello-tests: New file.
35299         * tests/test-ftello.c: New file.
35300
35301         * modules/ftello: New file.
35302         * m4/ftello.m4: New file.
35303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35304         HAVE_FTELLO.
35305         * lib/stdio_.h (ftello): New declaration.
35306         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35307         HAVE_FTELLO.
35308
35309 2007-04-25  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/fseeko-tests: New file.
35312         * tests/test-fseeko.c: New file.
35313
35314         * modules/fseeko: New file.
35315         * m4/fseeko.m4: New file.
35316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35317         HAVE_FSEEKO.
35318         * lib/stdio_.h (fseeko): New declaration.
35319         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35320         HAVE_FSEEKO.
35321
35322 2007-04-25  Bruno Haible  <bruno@clisp.org>
35323
35324         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35325
35326 2007-04-25  Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35329         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35330         * tests/test-unistd.c: Likewise.
35331         * tests/test-fcntl.c: Likewise.
35332
35333 2007-04-23  Eric Blake  <ebb9@byu.net>
35334
35335         * lib/fflush.c: Fix missing include.
35336         Reported by Bruno Haible.
35337
35338 2007-04-23  Bruno Haible  <bruno@clisp.org>
35339
35340         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35341         Reported by Eric Blake.
35342
35343 2007-04-23  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35346
35347 2007-04-23  Bruno Haible  <bruno@clisp.org>
35348
35349         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35350
35351 2007-04-23  Bruno Haible  <bruno@clisp.org>
35352
35353         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35354         Needed on HP-UX 11.
35355
35356 2007-04-16  Eric Blake  <ebb9@byu.net>
35357
35358         Make fflush rely on fpurge.
35359         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35360         open coding all variants.
35361         * modules/fflush (Depends-on): Add fpurge and unistd.
35362         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35363         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35364
35365         Fix --with-tests compilation on cygwin.
35366         * modules/argmatch-tests (Makefile.am): List gnulib library first
35367         in LDADD.
35368         * modules/argp-tests (Makefile.am): Likewise.
35369         * modules/array-list-tests (Makefile.am): Likewise.
35370         * modules/array-oset-tests (Makefile.am): Likewise.
35371         * modules/avltree-list-tests (Makefile.am): Likewise.
35372         * modules/avltree-oset-tests (Makefile.am): Likewise.
35373         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35374         * modules/carray-list-tests (Makefile.am): Likewise.
35375         * modules/dirname-tests (Makefile.am): Likewise.
35376         * modules/frexp-tests (Makefile.am): Likewise.
35377         * modules/isnanl-tests (Makefile.am): Likewise.
35378         * modules/linked-list-tests (Makefile.am): Likewise.
35379         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35380         * modules/lock-tests (Makefile.am): Likewise.
35381         * modules/rbtree-list-tests (Makefile.am): Likewise.
35382         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35383         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35384         * modules/tls-tests (Makefile.am): Likewise.
35385         * modules/tsearch-tests (Makefile.am): Likewise.
35386         * modules/xvasprintf-tests (Makefile.am): Likewise.
35387
35388         Fix fpurge for cygwin.
35389         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35390         value.
35391         * modules/fpurge-tests (Depends-on): Clean up trash.
35392
35393 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35394
35395         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35396
35397         * m4/autobuild.m4: Re-indent.
35398
35399 2007-04-13  Bruno Haible  <bruno@clisp.org>
35400
35401         * modules/fpurge-tests: New file.
35402         * tests/test-fpurge.c: New file.
35403
35404         * modules/fpurge: New file.
35405         * lib/fpurge.h: New file.
35406         * lib/fpurge.c: New file.
35407         * m4/fpurge.m4: New file.
35408
35409 2007-04-13  Bruno Haible  <bruno@clisp.org>
35410
35411         * modules/fbufmode-tests: New file.
35412         * tests/test-fbufmode.c: New file.
35413
35414         * modules/fbufmode: New file.
35415         * lib/fbufmode.h: New file.
35416         * lib/fbufmode.c: New file.
35417         * m4/fbufmode.m4: New file.
35418
35419 2007-04-13  Bruno Haible  <bruno@clisp.org>
35420
35421         * modules/fwritable-tests: New file.
35422         * tests/test-fwritable.c: New file.
35423
35424         * modules/fwritable: New file.
35425         * lib/fwritable.h: New file.
35426         * lib/fwritable.c: New file.
35427         * m4/fwritable.m4: New file.
35428
35429 2007-04-13  Bruno Haible  <bruno@clisp.org>
35430
35431         * modules/freadable-tests: New file.
35432         * tests/test-freadable.c: New file.
35433
35434         * modules/freadable: New file.
35435         * lib/freadable.h: New file.
35436         * lib/freadable.c: New file.
35437         * m4/freadable.m4: New file.
35438
35439 2007-04-13  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35442         MOSTLYCLEANFILES.
35443
35444 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35445
35446         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35447         gzip bootstrap.conf to avoid dragging in i18n machinery.
35448         (gnulib_tool_option): Use it.
35449
35450 2007-04-13  Bruno Haible  <bruno@clisp.org>
35451
35452         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35453         %F directives.
35454         * tests/test-vasprintf-posix.c (test_function): Likewise.
35455         * tests/test-snprintf-posix.h (test_function): Likewise.
35456         * tests/test-sprintf-posix.h (test_function): Likewise.
35457         * tests/test-fprintf-posix.h (test_function): Likewise.
35458         * tests/test-printf-posix.h (test_function): Likewise.
35459         * tests/test-fprintf-posix.out: Likewise.
35460
35461 2007-04-13  Bruno Haible  <bruno@clisp.org>
35462
35463         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35464         * modules/tls-tests (configure.ac): Likewise.
35465         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35466
35467 2007-04-13  Bruno Haible  <bruno@clisp.org>
35468
35469         * lib/tls.c (glthread_tls_get): Fix return type.
35470         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35471
35472 2007-04-12  Eric Blake  <ebb9@byu.net>
35473
35474         * modules/gettime (Depends-on): Remove gettime.
35475         Reported by Dmitry V. Levin.
35476
35477 2007-04-12  Bruno Haible  <bruno@clisp.org>
35478
35479         * modules/fflush (Include): Mention <stdio.h>.
35480         * modules/strtoimax (Include): Mention <inttypes.h>.
35481         * modules/strtoumax (Include): Likewise.
35482
35483 2007-04-12  Eric Blake  <ebb9@byu.net>
35484
35485         * .cvsignore: New file.
35486         * .gitignore: Likewise.
35487
35488 2007-04-12  Bruno Haible  <bruno@clisp.org>
35489
35490         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35491         not before, since $(LDADD) often contains libgnu.a.
35492         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35493         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35494         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35495         Needed on Cygwin.
35496
35497 2007-04-12  Eric Blake  <ebb9@byu.net>
35498
35499         Work around glibc's failure to flush stdin on fclose.
35500         * lib/closein.c (close_stdin): Flush stdin before closing.
35501
35502         Work around glibc's failure to reset seekable stdin on exit.
35503         * modules/closein: New module.
35504         * lib/closein.c: New file.
35505         * lib/closein.h: Likewise.
35506         * m4/closein.m4: Likewise.
35507         * MODULES.html.sh (File stream based Input/Output): Document it.
35508
35509 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35510
35511         * gnulib-tool: Rename generated 'autobuild' script to
35512         'do-autobuild' in --create-megatestdir output.
35513
35514         * doc/gnulib.texi (Build robot for gnulib): Fix.
35515
35516 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35517
35518         * modules/sysexits (Depends-on): Add absolute-header.
35519
35520 2007-04-12  Eric Blake  <ebb9@byu.net>
35521
35522         No need to preserve errno on success.
35523         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35524         Reported by Bruno Haible.
35525
35526 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35527
35528         * MODULES.html.sh (Support for maintaining and releasing
35529         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35530
35531 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35532
35533         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35534
35535 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35536
35537         * modules/autobuild: New module.
35538
35539         * m4/autobuild.m4: New file.
35540
35541 2007-04-11  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35544         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35548         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35549         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35551         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35552         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35553         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35554         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35555         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35557         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35558         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35560         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35561         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35563         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35564         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35566         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35567         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35569         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35570         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35571         Reported by Eric Blake.
35572
35573 2007-04-11  Bruno Haible  <bruno@clisp.org>
35574
35575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35576
35577 2007-04-10  Bruno Haible  <bruno@clisp.org>
35578
35579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35580         for NaN and Infinity. Needed on FreeBSD 6.1.
35581         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35582         regarding results for "%010a" of Infinity and NaN.
35583         * tests/test-vasprintf-posix.c (test_function): Likewise.
35584         * tests/test-snprintf-posix.h (test_function): Likewise.
35585         * tests/test-sprintf-posix.h (test_function): Likewise.
35586         * tests/test-fprintf-posix.h (test_function): Likewise.
35587         * tests/test-printf-posix.h (test_function): Likewise.
35588         * tests/test-fprintf-posix.out: Likewise.
35589
35590 2007-04-10  Bruno Haible  <bruno@clisp.org>
35591
35592         * modules/locale-tests: New file.
35593         * tests/test-locale.c: New file.
35594
35595         * modules/locale: New file.
35596         * lib/locale_.h: New file.
35597         * m4/locale_h.m4: New file.
35598
35599 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35600             Bruno Haible  <bruno@clisp.org>
35601
35602         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35603         be determined, test for availability of the copysignf, copysign,
35604         copysignl functions.
35605         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35606         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35607         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35608
35609 2007-04-09  Eric Blake  <ebb9@byu.net>
35610
35611         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35612         * modules/stdio (Makefile.am): Support fflush.
35613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35614         * modules/fflush: New file.
35615         * lib/fflush.c: Likewise.
35616         * m4/fflush.m4: Likewise.
35617         * modules/fflush-tests: New test.
35618         * tests/test-fflush.c: Likewise.
35619         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35620
35621 2007-04-06  Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35624         (VASNPRINTF): Use signbit for faster determination whether to print a
35625         minus sign.
35626         * modules/vasnprintf (Files): Remove lib/float+.h.
35627         * modules/fprintf-posix (Depends-on): Add signbit.
35628         * modules/snprintf-posix (Depends-on): Likewise.
35629         * modules/sprintf-posix (Depends-on): Likewise.
35630         * modules/vasnprintf-posix (Depends-on): Likewise.
35631         * modules/vasprintf-posix (Depends-on): Likewise.
35632         * modules/vfprintf-posix (Depends-on): Likewise.
35633         * modules/vsnprintf-posix (Depends-on): Likewise.
35634         * modules/vsprintf-posix (Depends-on): Likewise.
35635
35636 2007-04-06  Bruno Haible  <bruno@clisp.org>
35637
35638         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35639         * tests/test-frexpl.c (main): Likewise.
35640         * tests/test-ldexpl.c (main): Likewise.
35641         * modules/frexp-tests (Depends-on): Add signbit.
35642         * modules/frexpl-tests (Depdends-on): Likewise.
35643         * modules/ldexpl-tests (Depdends-on): Likewise.
35644
35645 2007-04-06  Bruno Haible  <bruno@clisp.org>
35646
35647         * modules/signbit-tests: New file.
35648         * tests/test-signbit.c: New file.
35649
35650         * modules/signbit: New file.
35651         * lib/signbitf.c: New file.
35652         * lib/signbitd.c: New file.
35653         * lib/signbitl.c: New file.
35654         * m4/signbit.m4: New file.
35655         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35656         (signbit): New macro.
35657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35658         REPLACE_SIGNBIT.
35659         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35660         REPLACE_FREXPL into math.h.
35661
35662 2007-04-06  Bruno Haible  <bruno@clisp.org>
35663
35664         * modules/isnanf-nolibm-tests: New file.
35665         * tests/test-isnanf.c: New file.
35666
35667         * modules/isnanf-nolibm: New file.
35668         * lib/isnanf.h: New file.
35669         * lib/isnanf.c: New file.
35670         * lib/isnan.c: Consider the USE_FLOAT macro.
35671         * m4/isnanf.m4: New file.
35672
35673 2007-04-06  Bruno Haible  <bruno@clisp.org>
35674
35675         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35676         (Link): New section.
35677
35678         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35679
35680 2007-04-06  Bruno Haible  <bruno@clisp.org>
35681
35682         Assume the 'long double' type.
35683         * m4/longdouble.m4: Remove file.
35684         * config/srclist.txt: Don't mention longdouble.m4.
35685         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35686         * lib/float+.h: Likewise.
35687         * lib/frexp.c: Likewise.
35688         * lib/printf-args.h: Likewise.
35689         * lib/printf-args.c: Likewise.
35690         * lib/printf-frexp.c: Likewise.
35691         * lib/printf-parse.c: Likewise.
35692         * lib/vasnprintf.c: Likewise.
35693         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35694         * m4/intl.m4: Likewise.
35695         * m4/isnanl.m4: Likewise.
35696         * m4/printf.m4: Likewise.
35697         * m4/printf-frexpl.m4: Likewise.
35698         * m4/vasnprintf.m4: Likewise.
35699         * modules/allocsa (Files): Remove m4/longdouble.m4.
35700         * modules/gettext (Files): Likewise.
35701         * modules/relocatable-prog-wrapper (Files): Likewise.
35702         * modules/vasnprintf (Files): Likewise.
35703         * modules/isnanl (Files): Likewise.
35704         (Include): Simplify.
35705         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35706         (Include): Simplify.
35707         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35708         (Include): Simplify.
35709         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35710         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35711         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35712         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35713         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35714         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35715         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35716         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35717         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35718         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35719         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35720         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35721         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35722         * tests/test-isnanl.c: Likewise.
35723         * tests/test-snprintf-posix.h: Likewise.
35724         * tests/test-sprintf-posix.h: Likewise.
35725         * tests/test-vasnprintf-posix.c: Likewise.
35726         * tests/test-vasnprintf-posix2.c: Likewise.
35727         * tests/test-vasprintf-posix.c: Likewise.
35728
35729 2007-04-06  Bruno Haible  <bruno@clisp.org>
35730
35731         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35732         * lib/math_.h [__DECC]: Include the overridden include file through
35733         #include_next, outside the double-inclusion guard.
35734         * lib/stdio_.h [__DECC]: Likewise.
35735         * lib/stdlib_.h [__DECC]: Likewise.
35736         * lib/string_.h [__DECC]: Likewise.
35737         * lib/time_.h [__DECC]: Likewise.
35738         * lib/wchar_.h [__DECC]: Likewise.
35739         * lib/wctype_.h [__DECC]: Likewise.
35740         * lib/inttypes_.h [__DECC]: Likewise.
35741         Reported by Albert Chin <china@thewrittenword.com> in
35742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35743
35744 2007-04-04  Eric Blake  <ebb9@byu.net>
35745
35746         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35747         1.5.x.
35748
35749 2007-04-04  Bruno Haible  <bruno@clisp.org>
35750
35751         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35752         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35753
35754 2007-04-04  Bruno Haible  <bruno@clisp.org>
35755
35756         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35757         results for "%010a" of Infinity and NaN.
35758         * tests/test-vasprintf-posix.c (test_function): Likewise.
35759         * tests/test-snprintf-posix.h (test_function): Likewise.
35760         * tests/test-sprintf-posix.h (test_function): Likewise.
35761         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35762         * tests/test-printf-posix.h (test_function): Likewise.
35763         * tests/test-fprintf-posix.out: Update.
35764         Needed for FreeBSD 6.1.
35765
35766 2007-04-04  Bruno Haible  <bruno@clisp.org>
35767
35768         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35769         directly used by the gnulib modules nor by gnulib-tool.
35770
35771 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35772
35773         * DEPENDENCIES: Give overall description of version dependency
35774         desirability.  Use more-typical names for apps.
35775         Add shell, coreutils, diffutils, grep, tar, gzip.
35776
35777 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35778
35779         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35780
35781 2007-04-04  Karl Berry  <karl@gnu.org>
35782
35783         * MODULES.html.sh (func_module): missing '.
35784
35785 2007-04-03  Bruno Haible  <bruno@clisp.org>
35786
35787         * modules/argmatch-tests (Makefile.am): New variable
35788         test_argmatch_LDADD.
35789         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35790         * modules/array-list-tests (Makefile.am): New variable
35791         test_array_list_LDADD.
35792         * modules/array-oset-tests (Makefile.am): New variable
35793         test_array_oset_LDADD.
35794         * modules/avltree-list-tests (Makefile.am): New variable
35795         test_avltree_list_LDADD.
35796         * modules/avltree-oset-tests (Makefile.am): New variable
35797         test_avltree_oset_LDADD.
35798         * modules/avltreehash-list-tests (Makefile.am): New variable
35799         test_avltreehash_list_LDADD.
35800         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35801         test_canonicalize_lgpl_LDADD.
35802         * modules/carray-list-tests (Makefile.am): New variable
35803         test_carray_list_LDADD.
35804         * modules/dirname-tests (Makefile.am): New variable
35805         test_dirname_LDADD.
35806         * modules/linked-list-tests (Makefile.am): New variable
35807         test_linked_list_LDADD.
35808         * modules/linkedhash-list-tests (Makefile.am): New variable
35809         test_linkedhash_list_LDADD.
35810         * modules/rbtree-list-tests (Makefile.am): New variable
35811         test_rbtree_list_LDADD.
35812         * modules/rbtree-oset-tests (Makefile.am): New variable
35813         test_rbtree_oset_LDADD.
35814         * modules/rbtreehash-list-tests (Makefile.am): New variable
35815         test_rbtreehash_list_LDADD.
35816         * modules/xvasprintf-tests (Makefile.am): New variable
35817         test_xvasprintf_LDADD.
35818         Reported by Eric Blake.
35819
35820 2007-04-03  Eric Blake  <ebb9@byu.net>
35821
35822         * DEPENDENCIES: Weaken m4 requirements.
35823
35824 2007-04-03  Bruno Haible  <bruno@clisp.org>
35825
35826         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35827         * modules/isnanl-tests (configure.ac): Likewise.
35828
35829 2007-04-03  Ben Pfaff  <blp@gnu.org>
35830
35831         * modules/iconv_open: Add $(srcdir)/ to source directory
35832         references in Makefile fragments that call gperf, to fix VPATH
35833         builds.
35834
35835 2007-04-03  Bruno Haible  <bruno@clisp.org>
35836
35837         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35838         * lib/ldexpl.c: Undo last change.
35839
35840 2007-04-03  Bruno Haible  <bruno@clisp.org>
35841
35842         * modules/printf-frexpl (Depends-on): Undo last change.
35843         (Files): Add m4/ldexpl.m4.
35844
35845 2007-04-03  Bruno Haible  <bruno@clisp.org>
35846
35847         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35848         * modules/isnanl (Link): New section.
35849
35850         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35851         * modules/frexp (Link): New section.
35852
35853         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35854         * modules/frexpl (Link): New section.
35855
35856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35857         * modules/ldexpl (Link): New section.
35858
35859 2007-04-03  Bruno Haible  <bruno@clisp.org>
35860
35861         * modules/TEMPLATE-EXTENDED: New file.
35862         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35863
35864 2007-04-03  Bruno Haible  <bruno@clisp.org>
35865
35866         * DEPENDENCIES: New file.
35867         Suggested by Simon Josefsson.
35868
35869 2007-04-03  Bruno Haible  <bruno@clisp.org>
35870
35871         * doc/gnulib.texi: Escape @.
35872
35873 2007-04-03  James Youngman  <jay@gnu.org>
35874         and Paul Eggert  <eggert@cs.ucla.edu>
35875
35876         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35877         birthtime on all systems that have birthtime, not just those which
35878         use st_birthtimensec rather than st_birthtim.  Putting zero in
35879         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35880         that the birth time is not available for files on an NFS mount.
35881
35882 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35883
35884         * modules/memxor: Move back from crypto/, suggested by Bruno.
35885         * modules/crypto/hmac-sha1: Fix memxor dependency.
35886
35887         * modules/crypto/gc: Moved from ../.
35888
35889 2007-04-02  Eric Blake  <ebb9@byu.net>
35890
35891         * lib/ldexpl.c (includes): Avoid libm.
35892
35893         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35894
35895 2007-04-02  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35898         on IRIX.
35899
35900 2007-04-02  Bruno Haible  <bruno@clisp.org>
35901
35902         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35903         x86 or x86_64 platforms running MacOS X.
35904         Reported by Ryan Schmidt <@ryandesign.com>.
35905
35906 2007-04-02  Bruno Haible  <bruno@clisp.org>
35907
35908         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35909         i386.
35910
35911 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35912
35913         * modules/crypto/arcfour: Moved from ../.
35914         * modules/crypto/arcfour-tests: Moved from ../.
35915         * modules/crypto/arctwo: Moved from ../.
35916         * modules/crypto/arctwo-tests: Moved from ../.
35917         * modules/crypto/des: Moved from ../.
35918         * modules/crypto/des-tests: Moved from ../.
35919         * modules/crypto/gc-arcfour: Moved from ../.
35920         * modules/crypto/gc-arcfour-tests: Moved from ../.
35921         * modules/crypto/gc-arctwo: Moved from ../.
35922         * modules/crypto/gc-arctwo-tests: Moved from ../.
35923         * modules/crypto/gc-des: Moved from ../.
35924         * modules/crypto/gc-des-tests: Moved from ../.
35925         * modules/crypto/gc-hmac-md5: Moved from ../.
35926         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35927         * modules/crypto/gc-hmac-sha1: Moved from ../.
35928         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35929         * modules/crypto/gc-md2: Moved from ../.
35930         * modules/crypto/gc-md2-tests: Moved from ../.
35931         * modules/crypto/gc-md4: Moved from ../.
35932         * modules/crypto/gc-md4-tests: Moved from ../.
35933         * modules/crypto/gc-md5: Moved from ../.
35934         * modules/crypto/gc-md5-tests: Moved from ../.
35935         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35936         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35937         * modules/crypto/gc-random: Moved from ../.
35938         * modules/crypto/gc-rijndael: Moved from ../.
35939         * modules/crypto/gc-rijndael-tests: Moved from ../.
35940         * modules/crypto/gc-sha1: Moved from ../.
35941         * modules/crypto/gc-sha1-tests: Moved from ../.
35942         * modules/crypto/gc-tests: Moved from ../.
35943         * modules/crypto/hmac-md5: Moved from ../.
35944         * modules/crypto/hmac-md5-tests: Moved from ../.
35945         * modules/crypto/hmac-sha1: Moved from ../.
35946         * modules/crypto/hmac-sha1-tests: Moved from ../.
35947         * modules/crypto/md2: Moved from ../.
35948         * modules/crypto/md2-tests: Moved from ../.
35949         * modules/crypto/md4: Moved from ../.
35950         * modules/crypto/md4-tests: Moved from ../.
35951         * modules/crypto/md5: Moved from ../.
35952         * modules/crypto/md5-tests: Moved from ../.
35953         * modules/crypto/memxor: Moved from ../.
35954         * modules/crypto/rijndael: Moved from ../.
35955         * modules/crypto/rijndael-tests: Moved from ../.
35956         * modules/crypto/sha1: Moved from ../.
35957
35958 2007-03-30  James Youngman  <jay@gnu.org>
35959
35960         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35961         rename() to change the ctime of a file (because ctime is unaffected
35962         by rename on jfs2 on AIX 5.1).
35963         (main): Start by doing cleanup, in case a previous run failed leaving
35964         test files behind.
35965
35966 2007-03-31  Bruno Haible  <bruno@clisp.org>
35967
35968         Support old proprietary implementations of iconv.
35969         * modules/iconv_open: New file.
35970         * lib/iconv_.h: New file.
35971         * m4/iconv_h.m4: New file.
35972         * lib/iconv_open.c: New file.
35973         * lib/iconv_open-aix.gperf: New file.
35974         * lib/iconv_open-hpux.gperf: New file.
35975         * lib/iconv_open-irix.gperf: New file.
35976         * lib/iconv_open-osf.gperf: New file.
35977         * m4/iconv_open.m4: New file.
35978         * modules/linebreak (Depends-on): Add iconv_open.
35979         * modules/striconv (Depends-on): Likewise.
35980         * modules/striconveh (Depends-on): Likewise.
35981         * modules/unicodeio (Depends-on): Likewise.
35982         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35983         (iconv_t)(-1).
35984         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35985         conversion if cd is (iconv_t)(-1).
35986         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35987         is not possible.
35988
35989 2007-03-31  Bruno Haible  <bruno@clisp.org>
35990
35991         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35992         work on Solaris either. Protect also second use of "autodetect_jp".
35993
35994 2007-03-31  Bruno Haible  <bruno@clisp.org>
35995
35996         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35997         the function is not present.
35998
35999 2007-03-31  Bruno Haible  <bruno@clisp.org>
36000
36001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36002         the function is not present.
36003
36004 2007-03-31  Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36007         a bug in HP-UX iconv_open().
36008
36009 2007-03-31  Bruno Haible  <bruno@clisp.org>
36010
36011         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36012         (Mathematics <math.h>): New section, add fpieee.
36013         (Input/output <stdio.h>): Add fseterr.
36014         (Mathematics <math.h>): New section, add printf-frexp.
36015         (Container data structures): Add sublist.
36016         (Core language properties): Add fpucw, inline.
36017         (Functions for greatest-width integer types <inttypes.h>): Add
36018         imaxabs, imaxdiv, inttypes.
36019         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36020         isnanl-nolibm, ldexp.
36021         (Mathematics <math.h>): New section, add printf-frexpl.
36022         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36023         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36024         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36025         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36026         (Unicode string functions): Add unistr/u*-mbtoucr.
36027         (Java): Add javacomp-script, javaexec-script.
36028         (C#): Add csharpcomp-script, csharpexec-script.
36029         (Support for building libraries and executables): Add havelib,
36030         relocatable-*.
36031         (Support for maintaining and releasing projects): Renamed from
36032         'Support for maintaining and release projects'. Add announce-gen.
36033
36034 2007-03-31  Bruno Haible  <bruno@clisp.org>
36035
36036         * README: Talk primarily about git.
36037         (git and CVS): Renamed from CVS.
36038         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36039         gnulib is available through git.
36040         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36041
36042 2007-03-30  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36045         * lib/poll_.h: Likewise.
36046         * lib/stat_.h: Likewise.
36047         * lib/sys_time_.h: Likewise.
36048         * lib/sysexit_.h: Likewise.
36049         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36050         * lib/stdbool_.h: Likewise.
36051         * lib/byteswap_.h: Add double-inclusion guard.
36052
36053 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36054
36055         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36056
36057 2007-03-30  Karl Berry  <karl@gnu.org>
36058
36059         * config/srclist-update: double space after USA in the license
36060         substitution, since that's how it's usually (?) written.
36061
36062 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36063
36064         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36065         reported by Bruno Haible.
36066
36067 2007-03-29  Bruno Haible  <bruno@clisp.org>
36068
36069         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36070         a bug in AIX iconv().
36071
36072 2007-03-29  Bruno Haible  <bruno@clisp.org>
36073
36074         * modules/ldexpl-tests: New file.
36075         * tests/test-ldexpl.c: New file.
36076
36077 2007-03-29  Bruno Haible  <bruno@clisp.org>
36078
36079         * lib/ldexpl.c: Include fpucw.h.
36080         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36081         multiplication.
36082         * modules/ldexpl (Depends-on): Add fpucw.
36083
36084 2007-03-29  Bruno Haible  <bruno@clisp.org>
36085
36086         * modules/ldexpl: New file.
36087         * m4/ldexpl.m4: New file.
36088         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36089         set.
36090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36091         REPLACE_LDEXPL.
36092         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36093         REPLACE_LDEXPL.
36094         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36095         gl_FUNC_LDEXPL_WORKS.
36096         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36097         * modules/mathl (Files): Remove lib/ldexpl.c.
36098         (Depends-on): Add ldexpl.
36099
36100 2007-03-29  Bruno Haible  <bruno@clisp.org>
36101
36102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36103
36104 2007-03-29  Bruno Haible  <bruno@clisp.org>
36105
36106         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36107         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36108         and possibly also HP-UX.
36109         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36110         work on AIX, IRIX, HP-UX, OSF/1.
36111         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36112         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36113         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36114         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36115         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36116         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36117
36118 2007-03-29  Bruno Haible  <bruno@clisp.org>
36119
36120         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36121
36122 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36123
36124         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36125         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36126
36127 2007-03-29  Eric Blake  <ebb9@byu.net>
36128
36129         * lib/acl-internal.h: Remove redundant include.
36130         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36131         Cygwin when a file is locked.
36132
36133 2007-03-29  Bruno Haible  <bruno@clisp.org>
36134
36135         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36136         file.
36137         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36138
36139 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36140
36141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36142         try to remove a parent directory if the child couldn't be removed
36143         (except for the first rmdir, which could fail because the child
36144         doesn't exist).  Problem reported by Jeff Blaine in
36145         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36146
36147 2007-03-28  Bruno Haible  <bruno@clisp.org>
36148
36149         * lib/striconveh.c (utf8conv_carefully): New function.
36150         (mem_cd_iconveh_internal): Invoke it.
36151
36152 2007-03-28  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36155         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36156         input.
36157         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36158         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36159         unistr/u8-uctomb.
36160
36161 2007-03-28  Bruno Haible  <bruno@clisp.org>
36162
36163         * modules/unistr/u8-mbtoucr: New file.
36164         * lib/unistr/u8-mbtoucr.c: New file.
36165         * modules/unistr/u16-mbtoucr: New file.
36166         * lib/unistr/u16-mbtoucr.c: New file.
36167         * modules/unistr/u16-mbtoucr: New file.
36168         * lib/unistr/u16-mbtoucr.c: New file.
36169         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36170
36171 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36172             Bruno Haible  <bruno@clisp.org>
36173
36174         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36175         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36176         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36177
36178         * m4/stdio_h.m4: Add stubs for vasprintf too.
36179
36180         * modules/stdio: Support vasprintf in sed command.
36181
36182         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36183         vasprintf.h.  Add stdio module indicator.
36184
36185         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36186         vasprintf.h.
36187
36188         * lib/vasprintf.h: File removed.
36189
36190         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36191         * lib/vasprintf.c: Ditto.
36192         * lib/xvasprintf.c: Ditto.
36193         * tests/test-vasprintf-posix.c: Ditto.
36194         * tests/test-vasprintf.c: Ditto.
36195
36196 2007-03-27  Bruno Haible  <bruno@clisp.org>
36197
36198         Make vasnprintf multithread-safe.
36199         * lib/vasnprintf.c (decimal_point_char): New function.
36200         (VASNPRINTF): Use it.
36201         Suggested by Simon Josefsson.
36202
36203 2007-03-27  Eric Blake  <ebb9@byu.net>
36204
36205         Support sub-second birthtime on cygwin.
36206         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36207         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36208         (get_stat_birthtime): Also work with st_birthtim.
36209
36210 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36211
36212         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36213         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36214         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36215         (get_stat_birthtime_ns): Simplify compile-time tests.
36216         (get_stat_birthtime): Change the API to look like
36217         get_stat_mtime etc., except return a negative tv_nsec on error.
36218         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36219         Don't check for "spare" fields.
36220         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36221         or for struct stat.st_birthtime, as these tests aren't used.
36222         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36223
36224 2007-03-27  Bruno Haible  <bruno@clisp.org>
36225
36226         * lib/stat-time.h: Include <sys/stat.h>.
36227
36228 2007-03-27  James Youngman  <jay@gnu.org>
36229
36230         * lib/stat-time.h (get_stat_birthtime): New function for
36231           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36232         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36233           and its variants.
36234         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36235         * modules/stat-time-test: New file.
36236         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36237
36238 2007-03-26  Bruno Haible  <bruno@clisp.org>
36239
36240         Better support of signalling NaNs.
36241         * lib/atanl.c: Include isnanl.h.
36242         (atanl): Perform test for NaN at the beginning of the function and
36243         through a call to isnanl.
36244         * lib/cosl.c: Include isnanl.h.
36245         (cosl): Perform test for NaN at the beginning of the function and
36246         through a call to isnanl.
36247         * lib/ldexpl.c: Include isnanl.h.
36248         (ldexpl): Perform test for NaN through a call to isnanl.
36249         * lib/logl.c: Include isnanl.h.
36250         (logl): Perform test for NaN at the beginning of the function and
36251         through a call to isnanl.
36252         * lib/sinl.c: Include isnanl.h.
36253         (sinl): Perform test for NaN at the beginning of the function and
36254         through a call to isnanl.
36255         * lib/sqrtl.c: Include isnanl.h.
36256         (sqrtl): Perform test for NaN at the beginning of the function and
36257         through a call to isnanl.
36258         * lib/tanl.c: Include isnanl.h.
36259         (tanl): Perform test for NaN at the beginning of the function and
36260         through a call to isnanl.
36261         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36262         * modules/mathl (Depends-on): Add isnanl.
36263
36264 2007-03-26  Eric Blake  <ebb9@byu.net>
36265
36266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36267         regression in logic sense of previous patch.
36268
36269 2007-03-26  Bruno Haible  <bruno@clisp.org>
36270
36271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36272         unportable shell command "if ! ...".
36273         Reported by Ralf Wildenhues.
36274
36275 2007-03-25  Bruno Haible  <bruno@clisp.org>
36276
36277         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36278         <sysexits.h> file, and only add EX_CONFIG.
36279         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36280         absolute file name and whether it is sufficient. Substitute also
36281         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36282         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36283         ABSOLUTE_SYSEXITS_H into sysexits.h.
36284
36285 2007-03-25  Bruno Haible  <bruno@clisp.org>
36286
36287         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36288         hints is NULL.
36289
36290 2007-03-25  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36293         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36294
36295 2007-03-25  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/vasnprintf.c: Include langinfo.h.
36298         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36299         multithread-safe.
36300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36309         Reported by Simon Josefsson.
36310
36311 2007-03-25  Bruno Haible  <bruno@clisp.org>
36312
36313         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36314         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36315         * modules/vasnprintf (Depends-on): Add stdint.
36316
36317 2007-03-25  Bruno Haible  <bruno@clisp.org>
36318
36319         * modules/fpieee: New file.
36320         * m4/fpieee.m4: New file.
36321         * modules/isnan-nolibm (Depends-on): Add fpieee.
36322         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36323         * modules/isnanl (Depends-on): Add fpieee.
36324
36325 2007-03-25  Bruno Haible  <bruno@clisp.org>
36326
36327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36328
36329 2007-03-25  Bruno Haible  <bruno@clisp.org>
36330
36331         Avoid test failures on IRIX 6.5.
36332         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36333         (main): Use it.
36334         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36335         macros.
36336         (main): Use them.
36337
36338 2007-03-25  Bruno Haible  <bruno@clisp.org>
36339
36340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36341         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36342         exists but doesn't work.
36343         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36344         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36346         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36347
36348 2007-03-25  Bruno Haible  <bruno@clisp.org>
36349
36350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36351         returns inf. Needed on IRIX 6.5.
36352
36353 2007-03-25  Bruno Haible  <bruno@clisp.org>
36354
36355         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36356         (main): Use isnanl instead of x != x idiom.
36357         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36358
36359         * tests/test-frexp.c: Include isnan.h.
36360         (main): Use isnan instead of x != x idiom.
36361         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36362
36363 2007-03-25  Bruno Haible  <bruno@clisp.org>
36364
36365         * tests/test-frexp.c (NaN): New function/macro.
36366         (main): Use it instead of 0.0 / 0.0.
36367         * tests/test-isnan.c (NaN): New function/macro.
36368         (main): Use it instead of 0.0 / 0.0.
36369         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36370         (test_function): Use it instead of 0.0 / 0.0.
36371         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36372         (test_function): Use it instead of 0.0 / 0.0.
36373         * tests/test-snprintf-posix.h (NaN): New function/macro.
36374         (test_function): Use it instead of 0.0 / 0.0.
36375         * tests/test-sprintf-posix.h (NaN): New function/macro.
36376         (test_function): Use it instead of 0.0 / 0.0.
36377         * tests/test-fprintf-posix.h (NaN): New function/macro.
36378         (test_function): Use it instead of 0.0 / 0.0.
36379         * tests/test-printf-posix.h (NaN): New function/macro.
36380         (test_function): Use it instead of 0.0 / 0.0.
36381
36382         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36383
36384 2007-03-25  Bruno Haible  <bruno@clisp.org>
36385
36386         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36387
36388 2007-03-25  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/regexec.c (merge_state_with_log): Make static.
36391
36392 2007-03-25  Bruno Haible  <bruno@clisp.org>
36393
36394         * lib/trigl.c (kernel_rem_pio2): Make static.
36395
36396 2007-03-25  Bruno Haible  <bruno@clisp.org>
36397
36398         * lib/sincosl.c (sincosl_table): Make static.
36399
36400 2007-03-25  Bruno Haible  <bruno@clisp.org>
36401
36402         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36403         if the compiler does not support C99.
36404
36405 2007-03-25  Bruno Haible  <bruno@clisp.org>
36406
36407         * modules/time (Makefile.am): Ensure all rule action lines start with a
36408         tab.
36409
36410 2007-03-24  Bruno Haible  <bruno@clisp.org>
36411
36412         * modules/tsearch-tests: New file.
36413         * tests/test-tsearch.sh: New file.
36414         * tests/test-tsearch.c: New file, mostly copied from glibc.
36415
36416         * modules/search-tests: New file.
36417         * tests/test-search.c: New file.
36418
36419         * modules/search: New file.
36420         * lib/search_.h: New file, incorporating lib/tsearch.h.
36421         * m4/search_h.m4: New file.
36422         * lib/tsearch.h: Remove file.
36423         * lib/tsearch.c: Include search.h instead of tsearch.h.
36424         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36425         HAVE_TSEARCH.
36426         * modules/tsearch (Files): Remove lib/tsearch.h.
36427         (Depends-on): Add search.
36428         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36429         (Include): Change tsearch.h into search.h.
36430
36431 2007-03-24  Bruno Haible  <bruno@clisp.org>
36432
36433         * modules/fpucw: New file.
36434         * lib/fpucw.h: New file.
36435         * lib/frexp.c: Include fpucw.h.
36436         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36437         (FUNC): Use them.
36438         * lib/printf-frexp.c: Include fpucw.h.
36439         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36440         (FUNC): Use them.
36441         * lib/vasnprintf.c: Include fpucw.h.
36442         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36443         'long double' calculations.
36444         * tests/test-frexpl.c: Include fpucw.h.
36445         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36446         * tests/test-printf-frexpl.c: Include fpucw.h.
36447         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36448         * modules/frexpl (Depends-on): Add fpucw.
36449         * modules/printf-frexpl (Depends-on): Likewise.
36450         * modules/fprintf-posix (Depends-on): Likewise.
36451         * modules/snprintf-posix (Depends-on): Likewise.
36452         * modules/sprintf-posix (Depends-on): Likewise.
36453         * modules/vasnprintf-posix (Depends-on): Likewise.
36454         * modules/vasprintf-posix (Depends-on): Likewise.
36455         * modules/vfprintf-posix (Depends-on): Likewise.
36456         * modules/vsnprintf-posix (Depends-on): Likewise.
36457         * modules/vsprintf-posix (Depends-on): Likewise.
36458         * modules/frexpl-tests (Depends-on): Likewise.
36459         * modules/printf-frexpl-tests (Depends-on): Likewise.
36460
36461 2007-03-24  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/float+.h: New file.
36464         * lib/isnan.c: Include float+.h.
36465         (SIZE): New macro.
36466         (FUNC): Compare only SIZE bytes of the value.
36467         * lib/vasnprintf.c: Include float+.h.
36468         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36469         SIZEOF_LDBL or SIZEOF_DBL bytes.
36470         * modules/isnan-nolibm (Files): Add lib/float+.h.
36471         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36472         * modules/isnanl (Files): Add lib/float+.h.
36473         * modules/vasnprintf (Files): Add lib/float+.h.
36474
36475 2007-03-24  Bruno Haible  <bruno@clisp.org>
36476
36477         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36478         include isnanl-nolibm.h.
36479
36480 2007-03-24  Bruno Haible  <bruno@clisp.org>
36481
36482         * tests/test-read-file.c (main): Don't produce spurious output for
36483         expected situations. Make the test fail if it encountered unexpected
36484         results.
36485
36486 2007-03-24  Bruno Haible  <bruno@clisp.org>
36487
36488         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36489         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36490
36491 2007-03-24  Bruno Haible  <bruno@clisp.org>
36492
36493         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36494
36495 2007-03-24  Bruno Haible  <bruno@clisp.org>
36496
36497         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36498         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36499
36500         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36501         * modules/utf8-ucs4: Turn into a symbolic link to module
36502         unistr/u8-mbtouc.
36503
36504         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36505         utf8-ucs4-unsafe.
36506         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36507         unistr/u8-mbtouc-unsafe.
36508
36509         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36510         * modules/utf16-ucs4: Turn into a symbolic link to module
36511         unistr/u16-mbtouc.
36512
36513         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36514         utf16-ucs4-unsafe.
36515         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36516         unistr/u16-mbtouc-unsafe.
36517
36518         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36519         * modules/ucs4-utf8: Turn into a symbolic link to module
36520         unistr/u8-ubtomb.
36521
36522         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36523         * modules/ucs4-utf16: Turn into a symbolic link to module
36524         unistr/u16-ubtomb.
36525
36526 2007-03-24  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36529         Enable the function only if HAVE_INLINE.
36530         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36531         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36532         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36533         Enable the function only if HAVE_INLINE.
36534         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36535         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36536         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36537         Enable the function only if HAVE_INLINE.
36538         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36539         Enable the function only if HAVE_INLINE.
36540         * modules/utf8-ucs4: Update.
36541         * modules/utf8-ucs4-unsafe: Update.
36542         * modules/utf16-ucs4: Update.
36543         * modules/utf16-ucs4-unsafe: Update.
36544         * modules/ucs4-utf8: Update.
36545         * modules/ucs4-utf16: Update.
36546
36547 2007-03-24  Bruno Haible  <bruno@clisp.org>
36548
36549         * lib/utf8-ucs4.h: Remove file.
36550         * lib/utf8-ucs4-unsafe.h: Remove file.
36551         * lib/utf16-ucs4.h: Remove file.
36552         * lib/utf16-ucs4-unsafe.h: Remove file.
36553         * lib/ucs4-utf8.h: Remove file.
36554         * lib/ucs4-utf16.h: Remove file.
36555         * lib/unistr.h: Include their previous contents.
36556         * m4/utf-ucs4.m4: Remove file.
36557         * m4/ucs4-utf.m4: Remove file.
36558         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36559         (Depends-on): Add unistr/base.
36560         (configure.ac): Remove gl_UTF_UCS4.
36561         (Makefile.am): Update.
36562         (Include): Change to unistr.h.
36563         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36564         (Depends-on): Add unistr/base.
36565         (configure.ac): Remove gl_UTF_UCS4.
36566         (Makefile.am): Update.
36567         (Include): Change to unistr.h.
36568         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36569         (Depends-on): Add unistr/base.
36570         (configure.ac): Remove gl_UTF_UCS4.
36571         (Makefile.am): Update.
36572         (Include): Change to unistr.h.
36573         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36574         (Depends-on): Add unistr/base.
36575         (configure.ac): Remove gl_UTF_UCS4.
36576         (Makefile.am): Update.
36577         (Include): Change to unistr.h.
36578         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36579         (Depends-on): Add unistr/base.
36580         (configure.ac): Remove gl_UCS4_UTF.
36581         (Makefile.am): Update.
36582         (Include): Change to unistr.h.
36583         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36584         (Depends-on): Add unistr/base.
36585         (configure.ac): Remove gl_UCS4_UTF.
36586         (Makefile.am): Update.
36587         (Include): Change to unistr.h.
36588         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36589         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36590         utf8-ucs4-unsafe.h.
36591         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36592         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36593         utf16-ucs4-unsafe.h.
36594         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36595         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36596         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36597         * lib/unistr/u8-strchr.c: Likewise.
36598         * lib/unistr/u8-strrchr.c: Likewise.
36599         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36600         * lib/unistr/u16-strchr.c: Likewise.
36601         * lib/unistr/u16-strrchr.c: Likewise.
36602         * lib/striconveh.c: Update.
36603         * lib/linebreak.c: Update.
36604
36605 2007-03-24  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36608         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36609
36610 2007-03-22  Bruno Haible  <bruno@clisp.org>
36611
36612         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36613
36614 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36615
36616         * MODULES.html.sh (File system functions): New module write-any-file.
36617         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36618         * m4/write-any-file.m4: New files.
36619
36620 2007-03-23  Eric Blake  <ebb9@byu.net>
36621
36622         * gnulib-tool: Rearrange space-tab sequences, since some editors
36623         like to eat them.
36624
36625 2007-03-23  Eric Blake  <ebb9@byu.net>
36626
36627         * lib/version-etc.c (version_etc_va): Update license wording to
36628         be more concise.  Recommended by Richard Stallman.
36629
36630 2007-03-22  Bruno Haible  <bruno@clisp.org>
36631
36632         * lib/poll.c (MSG_PEEK): New fallback definition.
36633
36634 2007-03-22  Bruno Haible  <bruno@clisp.org>
36635
36636         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36637         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36638         (main): Update.
36639         Fixes a compilation error on BeOS.
36640
36641 2007-03-22  Bruno Haible  <bruno@clisp.org>
36642
36643         * modules/frexpl-tests: New file.
36644         * tests/test-frexpl.c: New file.
36645
36646         * modules/frexpl: New file.
36647         * m4/frexpl.m4: New file.
36648         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36649         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36651         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36652         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36653         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36654
36655 2007-03-22  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/frexpl.c: Share code with lib/frexp.c.
36658         * modules/mathl (Files): Add lib/frexp.c.
36659         (Depends-on): Add isnanl-nolibm.
36660
36661 2007-03-22  Bruno Haible  <bruno@clisp.org>
36662
36663         * modules/printf-frexp (Files): Add m4/frexp.m4.
36664         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36665         only if the found frexp function actually works.
36666
36667 2007-03-22  Bruno Haible  <bruno@clisp.org>
36668
36669         * lib/frexp.c: Remove older implementation that uses divisions.
36670
36671 2007-03-21  Bruno Haible  <bruno@clisp.org>
36672
36673         * modules/frexp-tests: New file.
36674         * tests/test-frexp.c: New file.
36675
36676         * modules/frexp: New file.
36677         * lib/frexp.c: New file.
36678         * m4/frexp.m4: New file.
36679         * lib/math_.h (frexp): New declaration.
36680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36681         REPLACE_FREXP.
36682         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36683
36684 2007-03-21  Bruno Haible  <bruno@clisp.org>
36685
36686         * modules/isnanl-tests: New file.
36687         * tests/test-isnanl.c: New file.
36688
36689         * modules/isnanl: New file.
36690         * lib/isnanl.h: New file.
36691         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36692         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36693         gl_FUNC_ISNANL_WORKS.
36694         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36695         New macros.
36696
36697 2007-03-21  Bruno Haible  <bruno@clisp.org>
36698
36699         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36700         lib/isnanl.h.
36701         (Include): Update.
36702         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36703         * lib/vasnprintf.c: Update.
36704         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36705         tests/test-isnanl.h, remove tests/test-isnanl.c.
36706         (Makefile.am): Update.
36707         * tests/test-isnanl-nolibm.c: New file.
36708         * tests/test-isnanl.h: New file.
36709         * tests/test-isnanl.c: Remove file.
36710
36711 2007-03-21  Jim Meyering  <jim@meyering.net>
36712
36713         When trying to open ".", treat ESTALE like EACCES.
36714         * lib/savewd.c (savewd_save): Resort to forking not just upon
36715         failure with EACCES, but also when errno is ESTALE.
36716
36717 2007-03-20  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36720         Needed on AIX 5.1. Reported by Matthew Woehlke.
36721
36722 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36723
36724         Suggestions by Bruno Haible:
36725         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36726         our own.
36727         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36728         * modules/acl (Depends-on): Add gettext.
36729
36730 2007-03-19  Bruno Haible  <bruno@clisp.org>
36731
36732         * modules/iconvme: Remove file.
36733         * lib/iconvme.h: Remove file.
36734         * lib/iconvme.c: Remove file.
36735         * m4/iconvme.m4: Remove file.
36736
36737 2007-03-19  Bruno Haible  <bruno@clisp.org>
36738
36739         * doc/relocatable-maint.texi: Break long shell script line.
36740         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36741
36742 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36743
36744         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36745         handle file_has_acl.
36746         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36747         * lib/acl.c: Move header inclusions and related macro defns into
36748         lib/acl-internal.h.
36749         (S_ISLNK): Remove defn, since that's now done for us.
36750         (file_has_acl): Move to lib/file-has-acl.c.
36751         Call acl_trivial if available.  This is the crucial part of the fix.
36752         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36753         shared within the library.  Rewrite a bit, partly to make it compatible
36754         with the GNU coding style.
36755         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36756         Remove unnecessary double-quotes.
36757         Don't test for acl_to_text; the build will catch that.
36758         Replace acl_entries if it doesn't exist and it is needed.
36759         Check for -lsec and acl_trivial (as used on Solaris 10).
36760         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36761         lib/file-has-acl.c.
36762         (Depends-on): Add sys_stat, for S_ISLNK.
36763
36764 2007-03-19  Ben Pfaff  <blp@gnu.org>
36765
36766         * doc/gnulib.texi: Fix typos.
36767         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36768
36769 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36770
36771         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36772         If size is zero here, buf must be zero.
36773
36774 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36775
36776         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36777         <bruno@clisp.org>.
36778
36779 2007-03-18  Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36782         Suggested by Eric Blake.
36783
36784 2007-03-18  Ben Pfaff  <blp@gnu.org>
36785
36786         * doc/relocatable.texi: Recommend using as prefix a directory
36787         that does not exist and will never be created.  Based on
36788         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36789         and others.
36790
36791 2007-03-17  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/fchownat.c: Include lchown.h.
36794
36795 2007-03-17  Bruno Haible  <bruno@clisp.org>
36796
36797         Fix endless loop when the given allocated size was > INT_MAX.
36798         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36799         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36800         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36801         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36802         * lib/sprintf.c (sprintf): Likewise.
36803
36804 2007-03-17  Bruno Haible  <bruno@clisp.org>
36805
36806         * tests/test-argp-2.sh (func_compare): Output a context diff.
36807
36808 2007-03-17  Bruno Haible  <bruno@clisp.org>
36809
36810         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36811         locale's decimal-point character.
36812
36813 2007-03-17  Bruno Haible  <bruno@clisp.org>
36814
36815         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36816         before comparing it. Needed because on some platforms (e.g. x86) a
36817         'long double' occupies less bytes than sizeof (long double).
36818
36819 2007-03-17  Bruno Haible  <bruno@clisp.org>
36820
36821         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36822         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36823         * tests/test-getaddrinfo.c (simple): Likewise.
36824         * tests/test-read-file.c (main): Likewise.
36825
36826 2007-03-17  Bruno Haible  <bruno@clisp.org>
36827
36828         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36829
36830 2007-03-17  Bruno Haible  <bruno@clisp.org>
36831
36832         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36833         unused variable.
36834
36835 2007-03-17  Bruno Haible  <bruno@clisp.org>
36836
36837         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36838         * tests/test-c-strncasecmp.c: Likewise.
36839
36840 2007-03-17  Bruno Haible  <bruno@clisp.org>
36841
36842         * modules/stdlib (Depends-on): Add unistd.
36843         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36844         Needed for MacOS X 10.3.
36845
36846 2007-03-17  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36849
36850 2007-03-17  Bruno Haible  <bruno@clisp.org>
36851
36852         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36853
36854 2007-03-17  Bruno Haible  <bruno@clisp.org>
36855
36856         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36857         to reflect files copied from gnulib (with or without modifications).
36858         Suggested by Jim Meyering.
36859
36860 2007-03-17  Eric Blake  <ebb9@byu.net>
36861
36862         * NEWS: Document stdlib change from 2007-02-18.
36863
36864 2007-03-17  Jim Meyering  <jim@meyering.net>
36865
36866         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36867         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36868         someone uses a name containing shell meta-characters.
36869         Reported by Alfred M. Szmidt.
36870
36871         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36872
36873 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36874
36875         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36876         and copy gettext configuration files only if configure.ac contains
36877         a use of AM_GNU_GETTEXT_VERSION.
36878
36879 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36880
36881         * build-aux/bootstrap (gnulib_name): New variable.
36882         (gnulib_tool_options): Use it.
36883
36884 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36885
36886         * tests/test-des.c: Use new namespace.
36887
36888 2007-03-15  Bruno Haible  <bruno@clisp.org>
36889
36890         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36891         Reported by James Youngman <jay@gnu.org>.
36892
36893 2007-03-15  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36896         declared prototype. Needed with cc on OSF/1 5.1.
36897
36898 2007-03-15  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36901         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36902         (struct gl_list_implementation): Add dispose_fn argument to the
36903         'create_empty', 'create' methods.
36904         (struct gl_list_impl_base): Add field 'dispose_fn'.
36905         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36906         argument.
36907         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36908         dispose_fn argument.
36909         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36910         dispose_fn on the dropped values.
36911         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36912         dispose_fn argument.
36913         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36914         dropped values.
36915         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36916         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36917         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36918         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36919         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36920         argument.
36921         (gl_tree_list_free): Call dispose_fn on the dropped values.
36922         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36923         the dropped values.
36924         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36925         Add dispose_fn argument.
36926         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36927         Call dispose_fn on the dropped values.
36928         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36929         Add dispose_fn argument.
36930         (gl_sublist_create): Initialize the 'dispose_fn' field.
36931         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36932         * tests/test-array_list.c (main): Update.
36933         * tests/test-carray_list.c (main): Update.
36934         * tests/test-avltree_list.c (main): Update.
36935         * tests/test-rbtree_list.c (main): Update.
36936         * tests/test-avltreehash_list.c (main): Update.
36937         * tests/test-rbtreehash_list.c (main): Update.
36938         * tests/test-linked_list.c (main): Update.
36939         * tests/test-linkedhash_list.c (main): Update.
36940         * tests/test-array_oset.c (main): Update.
36941
36942 2007-03-15  Bruno Haible  <bruno@clisp.org>
36943
36944         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36945         (gl_oset_create_empty): Add dispose_fn argument.
36946         (struct gl_oset_implementation): Add dispose_fn argument to
36947         'create_empty' method.
36948         (struct gl_oset_impl_base): Add dispose_fn field.
36949         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36950         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36951         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36952         values.
36953         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36954         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36955         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36956         dropped value.
36957         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36958         dropped value.
36959         * tests/test-array_oset.c (main): Update.
36960         * tests/test-avltree_oset.c (main): Update.
36961         * tests/test-rbtree_oset.c (main): Update.
36962         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36963
36964 2007-03-13  Bruno Haible  <bruno@clisp.org>
36965
36966         * tests/test-stdbool.c (i): Update after last patch.
36967
36968 2007-03-12  Bruno Haible  <bruno@clisp.org>
36969
36970         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36971         the iswprint macro. Needed on Solaris 2.5.1.
36972
36973 2007-03-12  Bruno Haible  <bruno@clisp.org>
36974
36975         * tests/test-printf-frexp.c (main): Declare x as volatile.
36976
36977 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36978
36979         * doc/gnulib.texi (Build robot for gnulib): New section.
36980
36981 2007-03-12  Jim Meyering  <jim@meyering.net>
36982
36983         * build-aux/bootstrap: New file.
36984         * build-aux/bootstrap.conf: New file, from coreutils.
36985
36986 2007-03-11  Bruno Haible  <bruno@clisp.org>
36987
36988         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36989
36990 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36991
36992         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36993         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36994         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36995
36996 2007-03-11  Bruno Haible  <bruno@clisp.org>
36997
36998         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36999         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37000
37001 2007-03-11  Bruno Haible  <bruno@clisp.org>
37002
37003         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37004         formula. Needed for SunPRO C 5.0.
37005
37006 2007-03-11  Bruno Haible  <bruno@clisp.org>
37007
37008         * modules/long-options (Depends-on): Add getopt.
37009
37010 2007-03-11  Bruno Haible  <bruno@clisp.org>
37011
37012         * modules/modechange (Depends-on): Add stdbool.
37013
37014 2007-03-11  Bruno Haible  <bruno@clisp.org>
37015
37016         * modules/i-ring (Depends-on): Add stdbool.
37017
37018 2007-03-11  Bruno Haible  <bruno@clisp.org>
37019
37020         * modules/gc-des (Depends-on): Add stdbool.
37021
37022 2007-03-11  Bruno Haible  <bruno@clisp.org>
37023
37024         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37025
37026 2007-03-11  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37029
37030 2007-03-11  Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37033
37034 2007-03-11  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/vasnprintf.c (sprintf): Undefine.
37037
37038 2007-03-11  Bruno Haible  <bruno@clisp.org>
37039
37040         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37041         initializers in SunPRO C and Compaq C compilers.
37042
37043 2007-03-11  Bruno Haible  <bruno@clisp.org>
37044
37045         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37046         decrementing code ANSI C compliant.
37047
37048 2007-03-11  Bruno Haible  <bruno@clisp.org>
37049
37050         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37051         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37052
37053 2007-03-11  Bruno Haible  <bruno@clisp.org>
37054
37055         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37056         <stdbool.h> substitute doesn't pass.
37057
37058 2007-03-11  Bruno Haible  <bruno@clisp.org>
37059
37060         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37061
37062 2007-03-11  Bruno Haible  <bruno@clisp.org>
37063
37064         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37065         script, for submission to autobuild.josefsson.org.
37066
37067 2007-03-10  Bruno Haible  <bruno@clisp.org>
37068
37069         * modules/canonicalize-lgpl-tests: New file.
37070         * tests/test-canonicalize-lgpl.sh: New file.
37071         * tests/test-canonicalize-lgpl.c: New file.
37072
37073         * modules/c-strcase-tests: New file.
37074         * tests/test-c-strcase.sh: New file.
37075         * tests/test-c-strcasecmp.c: New file.
37076         * tests/test-c-strncasecmp.c: New file.
37077
37078         * modules/atexit-tests: New file.
37079         * tests/test-atexit.sh: New file.
37080         * tests/test-atexit.c: New file.
37081
37082 2007-03-10  Bruno Haible  <bruno@clisp.org>
37083
37084         * tests/test-binary-io.sh: Use temporary filenames that are not so
37085         likely to clash with those of other tests (in a parallel make).
37086         * tests/test-binary-io.c: Likewise.
37087
37088 2007-03-10  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37091         fallback; use #error instead.
37092         Suggested by Simon Josefsson.
37093
37094 2007-03-10  Bruno Haible  <bruno@clisp.org>
37095
37096         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37097         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37098         first and the last.
37099
37100 2007-03-10  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37103
37104 2007-03-10  Bruno Haible  <bruno@clisp.org>
37105
37106         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37107         "make distcheck".
37108         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37109         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37110         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37111
37112 2007-03-10  Bruno Haible  <bruno@clisp.org>
37113
37114         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37115         variable.
37116         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37117         variable.
37118
37119 2007-03-09  Eric Blake  <ebb9@byu.net>
37120         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37121
37122         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37123         types are not being provided by gnulib.
37124         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37125         types are supported.
37126
37127 2007-03-10  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/stdio_.h (__attribute__): New macro.
37130         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37131         vsprintf): Specify __attribute__ __format__ for GCC.
37132         Suggested by Eric Blake.
37133
37134 2007-03-09  Bruno Haible  <bruno@clisp.org>
37135
37136         * modules/printf-posix-tests: New file.
37137         * tests/test-printf-posix.sh: New file.
37138         * tests/test-printf-posix.c: New file.
37139
37140         * modules/printf-posix: New file.
37141         * lib/printf.c: New file.
37142         * m4/printf-posix-rpl.m4: New file.
37143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37144         REPLACE_PRINTF.
37145         * lib/stdio_.h (printf): New declaration.
37146         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37147         ____strfmon____): New macros.
37148         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37149         REPLACE_PRINTF.
37150
37151 2007-03-09  Bruno Haible  <bruno@clisp.org>
37152
37153         * tests/test-vasnprintf-posix2.sh: New file.
37154         * tests/test-vasnprintf-posix2.c: New file.
37155         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37156         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37157         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37158
37159         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37160         a locale dependent decimal point, rather than always '.'.
37161
37162 2007-03-09  Eric Blake  <ebb9@byu.net>
37163
37164         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37165         spite of platforms like Tandem/NSK that define it to -1.
37166
37167 2007-03-08  Bruno Haible  <bruno@clisp.org>
37168
37169         * modules/vprintf-posix-tests: New file.
37170         * tests/test-vprintf-posix.sh: New file.
37171         * tests/test-vprintf-posix.c: New file.
37172         * tests/test-printf-posix.h: New file.
37173
37174         * modules/vprintf-posix: New file.
37175         * lib/vprintf.c: New file.
37176         * m4/vprintf-posix.m4: New file.
37177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37178         REPLACE_VPRINTF.
37179         * lib/stdio_.h (vprintf): New declaration.
37180         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37181         REPLACE_VPRINTF.
37182
37183 2007-03-08  Bruno Haible  <bruno@clisp.org>
37184
37185         * modules/fprintf-posix-tests: New file.
37186         * tests/test-fprintf-posix.sh: New file.
37187         * tests/test-fprintf-posix.c: New file.
37188
37189         * modules/fprintf-posix: New file.
37190         * lib/fprintf.c: New file.
37191         * m4/fprintf-posix.m4: New file.
37192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37193         REPLACE_FPRINTF.
37194         * lib/stdio_.h (fprintf): New declaration.
37195         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37196         REPLACE_FPRINTF.
37197
37198 2007-03-08  Bruno Haible  <bruno@clisp.org>
37199
37200         * modules/vfprintf-posix-tests: New file.
37201         * tests/test-vfprintf-posix.sh: New file.
37202         * tests/test-vfprintf-posix.c: New file.
37203         * tests/test-fprintf-posix.h: New file.
37204         * tests/test-fprintf-posix.out: New file.
37205
37206         * modules/vfprintf-posix: New file.
37207         * lib/vfprintf.c: New file.
37208         * m4/vfprintf-posix.m4: New file.
37209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37210         REPLACE_VFPRINTF.
37211         * lib/stdio_.h (vfprintf): New declaration.
37212         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37213         REPLACE_VFPRINTF.
37214
37215 2007-03-08  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37218
37219 2007-03-08  Bruno Haible  <bruno@clisp.org>
37220
37221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37222         instead of 'expr' invocations.
37223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37228         Suggested by Paul Eggert.
37229
37230 2007-03-08  Bruno Haible  <bruno@clisp.org>
37231
37232         * modules/fseterr-tests: New file.
37233         * tests/test-fseterr.c: New file.
37234
37235         * modules/fseterr: New file.
37236         * lib/fseterr.h: New file.
37237         * lib/fseterr.c: New file.
37238
37239 2007-03-08  Bruno Haible  <bruno@clisp.org>
37240
37241         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37242         * lib/getopt_.h: Likewise.
37243         * lib/mbswidth.h: Likewise.
37244         * lib/setenv.h: Likewise.
37245         * lib/vasnprintf.h: Likewise.
37246         * lib/vasprintf.h: Likewise.
37247         * lib/verror.h: Likewise.
37248         * lib/xsetenv.h: Likewise.
37249         * lib/xvasprintf.h: Likewise.
37250
37251 2007-03-08  Jim Meyering  <jim@meyering.net>
37252
37253         * users.txt: Add parted.
37254
37255         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37256
37257 2007-03-07  Bruno Haible  <bruno@clisp.org>
37258
37259         * m4/printf.m4: Make the shell script snippets copy&pastable.
37260
37261 2007-03-02  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/netinet_in_.h: New file.
37264         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37265         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37266         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37267         (Depends-on): Add absolute-header.
37268         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37269         into netinet/in.h.
37270
37271 2007-03-03  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/sys_select_.h: New file.
37274         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37275         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37276         * modules/sys_select (Files): Add lib/sys_select_.h.
37277         (Depends-on): Add absolute-header.
37278         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37279         into sys/select.h.
37280
37281 2007-03-02  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37284         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37285         values.
37286         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37287         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37288         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37289         * modules/sys_socket (Depends-on): Add absolute-header.
37290         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37291         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37292         (Include): Remove requirement of inclusion of <sys/types.h>.
37293
37294 2007-03-02  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/byteswap_.h (bswap_32): Fix formula.
37297
37298 2007-03-06  Bruno Haible  <bruno@clisp.org>
37299
37300         * modules/sprintf-posix-tests: New file.
37301         * tests/test-sprintf-posix.c: New file.
37302
37303         * modules/sprintf-posix: New file.
37304         * lib/sprintf.c: New file.
37305         * m4/sprintf-posix.m4: New file.
37306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37307         REPLACE_SPRINTF.
37308         * lib/stdio_.h (sprintf): New declaration.
37309         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37310         REPLACE_SPRINTF.
37311
37312 2007-03-06  Bruno Haible  <bruno@clisp.org>
37313
37314         * modules/vsprintf-posix-tests: New file.
37315         * tests/test-vsprintf-posix.c: New file.
37316         * tests/test-sprintf-posix.h: New file.
37317
37318         * modules/vsprintf-posix: New file.
37319         * lib/vsprintf.c: New file.
37320         * m4/vsprintf-posix.m4: New file.
37321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37322         REPLACE_VSPRINTF.
37323         * lib/stdio_.h (vsprintf): New declaration.
37324         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37325         REPLACE_VSPRINTF.
37326
37327 2007-03-06  Bruno Haible  <bruno@clisp.org>
37328
37329         * modules/vsnprintf (Depend-on): Remove minmax.
37330
37331 2007-03-06  Bruno Haible  <bruno@clisp.org>
37332
37333         * modules/snprintf-posix-tests: New file.
37334         * tests/test-snprintf-posix.c: New file.
37335
37336         * modules/snprintf-posix: New file.
37337         * m4/snprintf-posix.m4: New file.
37338         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37339         gl_FUNC_SNPRINTF.
37340         (gl_FUNC_SNPRINTF): Invoke it.
37341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37342         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37343         is set.
37344         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37345
37346 2007-03-06  Bruno Haible  <bruno@clisp.org>
37347
37348         * modules/vsnprintf-posix-tests: New file.
37349         * tests/test-vsnprintf-posix.c: New file.
37350         * tests/test-snprintf-posix.h: New file.
37351
37352         * modules/vsnprintf-posix: New file.
37353         * m4/vsnprintf-posix.m4: New file.
37354         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37355         gl_FUNC_VSNPRINTF.
37356         (gl_FUNC_VSNPRINTF): Invoke it.
37357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37358         * lib/stdio_.h (vsnprintf): Define as a replacement if
37359         REPLACE_VSNPRINTF is set.
37360         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37361
37362 2007-03-06  Bruno Haible  <bruno@clisp.org>
37363
37364         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37366
37367 2007-03-06  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37370         (asinl): Declare also if HAVE_DECL_ASINL is set.
37371         (atanl): Declare also if HAVE_DECL_ATANL is set.
37372         (ceill): Declare also if HAVE_DECL_CEILL is set.
37373         (cosl): Declare also if HAVE_DECL_COSL is set.
37374         (expl): Declare also if HAVE_DECL_EXPL is set.
37375         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37376         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37377         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37378         (logl): Declare also if HAVE_DECL_LOGL is set.
37379         (sinl): Declare also if HAVE_DECL_SINL is set.
37380         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37381         (tanl): Declare also if HAVE_DECL_TANL is set.
37382         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37385         declaration of frexpl, ldexpl.
37386         * modules/printf-frexpl (Depends-on): Add math.
37387         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37388
37389 2007-03-05  Bruno Haible  <bruno@clisp.org>
37390
37391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37392         frexpl and ldexpl are declared.
37393         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37394
37395 2007-03-05  Bruno Haible  <bruno@clisp.org>
37396
37397         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37398         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37399
37400 2007-03-05  Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/stdio_.h: Include <stddef.h>.
37403
37404 2007-03-05  Bruno Haible  <bruno@clisp.org>
37405
37406         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37407
37408 2007-03-05  Bruno Haible  <bruno@clisp.org>
37409
37410         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37411         NetBSD 4, from Ralf Wildenhues.
37412
37413 2007-03-04  Bruno Haible  <bruno@clisp.org>
37414
37415         * lib/vasprintf.h: Update #if logic for the case when the functions
37416         exist but are overridden.
37417
37418 2007-03-04  Bruno Haible  <bruno@clisp.org>
37419
37420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37421         implementations: glibc-2.4 and MacOS X 10.3.
37422         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37423         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37424         * tests/test-vasprintf-posix.c (test_function): Likewise.
37425
37426 2007-03-04  Bruno Haible  <bruno@clisp.org>
37427
37428         * modules/vasprintf-posix-tests: New file.
37429         * tests/test-vasprintf-posix.c: New file.
37430
37431         * modules/vasprintf-posix: New file.
37432         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37433         defined.
37434         * m4/vasprintf-posix.m4: New file.
37435         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37436         gl_FUNC_VASPRINTF.
37437         (gl_FUNC_VASPRINTF): Invoke it.
37438         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37439         here.
37440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37441
37442 2007-03-04  Bruno Haible  <bruno@clisp.org>
37443
37444         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37445         REPLACE_GETTIMEOFDAY.
37446         * modules/sys_time (Makefile.am): Likewise.
37447         * m4/sys_time_h.m4: Likewise.
37448         * m4/gettimeofday.m4: Likewise.
37449
37450 2007-03-04  Bruno Haible  <bruno@clisp.org>
37451
37452         * modules/vasnprintf-posix-tests: New file.
37453         * tests/test-vasnprintf-posix.c: New file.
37454
37455         * modules/vasnprintf-posix: New file.
37456         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37457         printf-frexpl.h.
37458         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37459         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37460         REPLACE_VASNPRINTF is defined.
37461         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37462         gl_FUNC_VASNPRINTF.
37463         (gl_FUNC_VASNPRINTF): Invoke it.
37464         * m4/vasnprintf-posix.m4: New file.
37465         * m4/printf.m4: New file.
37466
37467 2007-03-04  Bruno Haible  <bruno@clisp.org>
37468
37469         Compile progreloc.c only if --enable-relocatable is specified.
37470         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37471         if --enable-relocatable was specified.
37472         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37473         lib_SOURCES.
37474
37475 2007-03-04  Jim Meyering  <jim@meyering.net>
37476
37477         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37478         Use it consistently, rather than enumerating errno constants.
37479
37480 2007-03-04  Bruno Haible  <bruno@clisp.org>
37481
37482         * modules/xvasprintf-tests: New file.
37483         * tests/test-xvasprintf.c: New file.
37484
37485         * modules/vasprintf-tests: New file.
37486         * tests/test-vasprintf.c: New file.
37487
37488         * modules/vasnprintf-tests: New file.
37489         * tests/test-vasnprintf.c: New file.
37490
37491         * modules/vsnprintf-tests: New file.
37492         * tests/test-vsnprintf.c: New file.
37493
37494         * modules/snprintf-tests: New file.
37495         * tests/test-snprintf.c: New file.
37496
37497 2007-03-04  Bruno Haible  <bruno@clisp.org>
37498
37499         Compile relocatable.c only if --enable-relocatable is specified.
37500         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37501         gl_RELOCATABLE_LIBRARY.
37502         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37503         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37504         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37505         gl_RELOCATABLE_LIBRARY.
37506         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37507         (Makefile.am): Remove lib_SOURCES.
37508         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37509         gl_RELOCATABLE_LIBRARY.
37510         (Makefile.am): Remove lib_SOURCES.
37511         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37512         always.
37513         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37514         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37515
37516 2007-03-04  Bruno Haible  <bruno@clisp.org>
37517
37518         * modules/argmatch-tests: New file.
37519         * tests/test-argmatch.c: New file.
37520
37521         * tests/test-allocsa.c (main): Halve the number of loop runs.
37522
37523         * modules/alloca-opt-tests: New file.
37524         * tests/test-alloca-opt.c: New file.
37525
37526 2007-03-04  Jim Meyering  <jim@meyering.net>
37527
37528         Work around difference between Linux ACLs and Solaris 10 ZFS.
37529         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37530         for EINVAL.
37531
37532 2007-03-03  Bruno Haible  <bruno@clisp.org>
37533
37534         * modules/relocatable-prog (Depends-on): Add back progreloc's
37535         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37536
37537 2007-03-03  Bruno Haible  <bruno@clisp.org>
37538
37539         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37540         * modules/relocatable-lib: New file.
37541
37542 2007-03-03  Bruno Haible  <bruno@clisp.org>
37543
37544         * modules/relocatable-prog: Renamed from modules/relocatable.
37545         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37546
37547 2007-03-03  Bruno Haible  <bruno@clisp.org>
37548
37549         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37550         m4/relocatable-lib.m4.
37551         (Depends-on): Remove 'relocatable'.
37552         (configure.ac): Add gl_RELOCATABLE_NOP.
37553
37554 2007-03-03  Bruno Haible  <bruno@clisp.org>
37555
37556         * modules/relocatable-prog-wrapper: New file.
37557         * modules/relocatable (Depends-on): Add it. Remove all other
37558         dependencies except progname.
37559         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37560
37561         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37562         (gl_FUNC_STRERROR): Nop.
37563         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37564
37565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37566         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37567
37568         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37569         (gl_FUNC_READLINK): Update.
37570
37571         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37572
37573 2007-03-03  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37576         * modules/xreadlink (Depends-on): Add unistd.
37577         * modules/xreadlink-with-size (Depends-on): Likewise.
37578
37579 2007-03-03  Bruno Haible  <bruno@clisp.org>
37580
37581         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37582         extracted from gt_FUNC_SETENV.
37583         (gt_FUNC_SETENV): Remove macro.
37584         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37585         remove gt_FUNC_SETENV.
37586
37587 2007-03-03  Bruno Haible  <bruno@clisp.org>
37588
37589         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37590         ENABLE_RELOCATABLE here.
37591         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37592
37593 2007-03-03  Bruno Haible  <bruno@clisp.org>
37594
37595         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37596         * tests/test-rbtreehash_list.c: Include progname.h.
37597         (main): Call set_program_name.
37598
37599         * modules/rbtree-oset-tests (Depends-on): Add progname.
37600         * tests/test-rbtree_oset.c: Include progname.h.
37601         (main): Call set_program_name.
37602
37603         * modules/rbtree-list-tests (Depends-on): Add progname.
37604         * tests/test-rbtree_list.c: Include progname.h.
37605         (main): Call set_program_name.
37606
37607         * modules/linked-list-tests (Depends-on): Add progname.
37608         * tests/test-linked_list.c: Include progname.h.
37609         (main): Call set_program_name.
37610
37611 2007-03-03  Bruno Haible  <bruno@clisp.org>
37612
37613         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37614         All uses of __restrict changed to _Restrict_.
37615         * lib/glob_.h (__restrict): Remove macro.
37616
37617 2007-03-02  Bruno Haible  <bruno@clisp.org>
37618
37619         * modules/gettext (configure.ac): Require gettext infrastructure
37620         from version 0.16.1.
37621
37622 2007-03-02  Bruno Haible  <bruno@clisp.org>
37623
37624         * modules/linkedhash-list-tests (Depends-on): Add progname.
37625         * tests/test-linkedhash_list.c: Include progname.h.
37626         (main): Call set_program_name.
37627
37628         * modules/carray-list-tests (Depends-on): Add progname.
37629         * tests/test-carray_list.c: Include progname.h.
37630         (main): Call set_program_name.
37631
37632         * modules/avltreehash-list-tests (Depends-on): Add progname.
37633         * tests/test-avltreehash_list.c: Include progname.h.
37634         (main): Call set_program_name.
37635
37636         * modules/avltree-oset-tests (Depends-on): Add progname.
37637         * tests/test-avltree_oset.c: Include progname.h.
37638         (main): Call set_program_name.
37639
37640         * modules/avltree-list-tests (Depends-on): Add progname.
37641         * tests/test-avltree_list.c: Include progname.h.
37642         (main): Call set_program_name.
37643
37644         * modules/array-oset-tests (Depends-on): Add progname.
37645         * tests/test-array_oset.c: Include progname.h.
37646         (main): Call set_program_name.
37647
37648         * modules/array-list-tests (Depends-on): Add progname.
37649         * tests/test-array_list.c: Include progname.h.
37650         (main): Call set_program_name.
37651
37652         * modules/argp-tests (Depends-on): Add progname.
37653         * tests/test-argp.c: Include argp.h first. Include progname.h.
37654         (main): Call set_program_name.
37655
37656 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37657
37658         * doc/gnulib-tool.texi (Initial import): Reword description of
37659         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37660         limited effect even if defined after the first system include.
37661
37662 2007-03-01  Bruno Haible  <bruno@clisp.org>
37663
37664         * build-aux/config.libpath: Update to libtool-1.5.22.
37665         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37666
37667 2007-03-01  Bruno Haible  <bruno@clisp.org>
37668
37669         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37670         foo_CFLAGS.
37671         Reported by Ralf Wildenhues.
37672
37673 2007-03-01  Bruno Haible  <bruno@clisp.org>
37674
37675         * build-aux/install-reloc: Remove object files left over by some
37676         compilers.
37677         Reported by Ralf Wildenhues.
37678
37679 2007-03-01  Bruno Haible  <bruno@clisp.org>
37680
37681         * build-aux/install-reloc: Break long lines.
37682
37683 2007-03-01  Bruno Haible  <bruno@clisp.org>
37684
37685         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37686         Reported by Ralf Wildenhues.
37687
37688 2007-03-01  Bruno Haible  <bruno@clisp.org>
37689
37690         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37691         include ordering constraints.
37692
37693 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37694
37695         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37697         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37698         as another example.
37699         * lib/time_.h: Fix misspelling.
37700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37701         Require gl_HEADER_TIME_H_DEFAULTS.
37702         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37703         * m4/time_r.m4 (gl_TIME_R): Likewise.
37704         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37705
37706 2007-03-01  Bruno Haible  <bruno@clisp.org>
37707
37708         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37709         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37710
37711 2007-03-01  Jim Meyering  <jim@meyering.net>
37712
37713         * modules/xreadlink (Maintainer): Add my name.
37714         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37715
37716 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37717             Bruno Haible  <bruno@clisp.org>
37718
37719         * build-aux/install-reloc: Compile also c-ctype.c.
37720         * build-aux/relocatable.sh.in: New file.
37721         * doc/relocatable.texi: New file.
37722         * doc/relocatable-maint.texi: New file.
37723         * doc/gnulib.texi: Include relocatable-maint.texi.
37724         * lib/progreloc.c: Include unistd.h unconditionally.
37725         * lib/relocwrapper.c: Include unistd.h unconditionally.
37726         Include c-ctype.h.
37727         (add_dotbin): Use c_tolower.
37728         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37729         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37730         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37731         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37732         to m4/relocatable-lib.m4.
37733         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37734         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37735         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37736         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37737         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37738         * modules/relocatable: New file.
37739         * modules/relocatable-lib: New file.
37740         * modules/relocatable-script: New file.
37741
37742 2007-02-28  Bruno Haible  <bruno@clisp.org>
37743
37744         Import --enable-relocatable infrastructure.
37745         * build-aux/config.libpath: New file, from GNU gettext.
37746         * build-aux/install-reloc: New file, from GNU gettext.
37747         * build-aux/reloc-ldflags: New file, from GNU gettext.
37748         * lib/relocatable.h: New file, from GNU gettext.
37749         * lib/relocatable.c: New file, from GNU gettext.
37750         * lib/relocwrapper.c: New file, from GNU gettext.
37751         * m4/relocatable.m4: New file, from GNU gettext.
37752
37753 2007-02-28  Bruno Haible  <bruno@clisp.org>
37754
37755         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37756
37757         * modules/xreadlink: New file, from GNU gettext with modifications.
37758         * lib/xreadlink.c: New file, from GNU gettext.
37759         * lib/xreadlink.h: Add comments.
37760         (xreadlink): New declaration.
37761
37762         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37763         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37764         lib/xreadlink-with-size.c.
37765         (configure.ac): Remove gl_XREADLINK invocation.
37766         (Makefile.am): Augment lib_SOURCES.
37767         * m4/xreadlink.m4: Remove file.
37768         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37769         (xreadlink_with_size): Renamed from xreadink.
37770         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37771         * modules/canonicalize (Depends-on): Replace xreadlink with
37772         xreadlink-with-size.
37773         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37774
37775 2007-02-25  Jim Meyering  <jim@meyering.net>
37776
37777         * build-aux/announce-gen: When complaining about excess arguments,
37778         list them.
37779
37780 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37781
37782         * README: Document signed integer overflow situation more
37783         accurately.
37784
37785 2007-02-25  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37788         'a' or 'A' conversion.
37789
37790 2007-02-25  Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/filename: Renamed from modules/pathname.
37793         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37794         lib/concatpath.c with lib/concat-filename.c.
37795         (Makefile.am): Update.
37796         (Include): Replace pathname.h with filename.h.
37797         * lib/filename.h: Renamed from lib/pathname.h.
37798         (concatenated_filename): Renamed from concatenated_pathname.
37799         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37800         (concatenated_filename): Renamed from concatenated_pathname.
37801         * lib/findprog.c: Include filename.h instead of pathname.h.
37802         (find_in_path): Update.
37803         * lib/javacomp.c: Include filename.h instead of pathname.h.
37804         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37805         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37806         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37807         is_oldgcj_14_13_usable, is_javac_usable): Update.
37808         * lib/javaexec.c: Include filename.h instead of pathname.h.
37809         (execute_java_class): Update.
37810         * modules/findprog: Update.
37811         * modules/javacomp: Update.
37812         * modules/javaexec: Update.
37813         * MODULES.html.sh (File system functions): Add 'filename', remove
37814         'pathname'.
37815
37816 2007-02-25  Bruno Haible  <bruno@clisp.org>
37817
37818         * modules/printf-frexpl-tests: New file.
37819         * tests/test-printf-frexpl.c: New file.
37820
37821         * modules/printf-frexpl: New file.
37822         * lib/printf-frexpl.h: New file.
37823         * lib/printf-frexpl.c: New file.
37824         * m4/printf-frexpl.m4: New file.
37825
37826 2007-02-25  Bruno Haible  <bruno@clisp.org>
37827
37828         * modules/printf-frexp-tests: New file.
37829         * tests/test-printf-frexp.c: New file.
37830
37831         * modules/printf-frexp: New file.
37832         * lib/printf-frexp.h: New file.
37833         * lib/printf-frexp.c: New file.
37834         * m4/printf-frexp.m4: New file.
37835
37836 2007-02-25  Bruno Haible  <bruno@clisp.org>
37837
37838         Assume automake >= 1.10 for the tests.
37839         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37840         * modules/arctwo-tests: Likewise.
37841         * modules/argp-tests: Likewise.
37842         * modules/avltree-list-tests: Likewise.
37843         * modules/avltree-oset-tests: Likewise.
37844         * modules/avltreehash-list-tests: Likewise.
37845         * modules/carray-list-tests: Likewise.
37846         * modules/crc-tests: Likewise.
37847         * modules/des-tests: Likewise.
37848         * modules/gc-arcfour-tests: Likewise.
37849         * modules/gc-arctwo-tests: Likewise.
37850         * modules/gc-des-tests: Likewise.
37851         * modules/gc-hmac-md5-tests: Likewise.
37852         * modules/gc-hmac-sha1-tests: Likewise.
37853         * modules/gc-md2-tests: Likewise.
37854         * modules/gc-md4-tests: Likewise.
37855         * modules/gc-md5-tests: Likewise.
37856         * modules/gc-pbkdf2-sha1-tests: Likewise.
37857         * modules/gc-rijndael-tests: Likewise.
37858         * modules/gc-sha1-tests: Likewise.
37859         * modules/gc-tests: Likewise.
37860         * modules/getaddrinfo-tests: Likewise.
37861         * modules/hmac-md5-tests: Likewise.
37862         * modules/hmac-sha1-tests: Likewise.
37863         * modules/linked-list-tests: Likewise.
37864         * modules/linkedhash-list-tests: Likewise.
37865         * modules/lock-tests: Likewise.
37866         * modules/md2-tests: Likewise.
37867         * modules/md4-tests: Likewise.
37868         * modules/md5-tests: Likewise.
37869         * modules/rbtree-list-tests: Likewise.
37870         * modules/rbtree-oset-tests: Likewise.
37871         * modules/rbtreehash-list-tests: Likewise.
37872         * modules/read-file-tests: Likewise.
37873         * modules/rijndael-tests: Likewise.
37874         * modules/stdint-tests: Likewise.
37875         * modules/tls-tests: Likewise.
37876
37877 2007-02-24  Bruno Haible  <bruno@clisp.org>
37878
37879         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37880         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37881         function; instead check whether isnan with a double argument links.
37882         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37883         function; instead check whether isnan with a 'long double' argument
37884         links.
37885         Reported by Eric Blake <ebb9@byu.net>.
37886
37887 2007-02-24  Bruno Haible  <bruno@clisp.org>
37888
37889         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37890         defined.
37891         * lib/isnanl.c: Remove all code. Just include isnan.c.
37892         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37893
37894 2007-02-25  Jim Meyering  <jim@meyering.net>
37895
37896         Avoid conflicting types for 'unsetenv' on FreeBSD.
37897         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37898         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37899         in stdlib.h.
37900
37901 2007-02-24  Bruno Haible  <bruno@clisp.org>
37902
37903         * modules/isnanl-nolibm-tests: New file.
37904         * tests/test-isnanl.c: New file.
37905
37906         * modules/isnanl-nolibm: New file.
37907         * lib/isnanl.h: New file.
37908         * lib/isnanl.c: New file.
37909         * m4/isnanl.m4: New file.
37910
37911 2007-02-24  Bruno Haible  <bruno@clisp.org>
37912
37913         * modules/isnan-nolibm-tests: New file.
37914         * tests/test-isnan.c: New file.
37915
37916         * modules/isnan-nolibm: New file.
37917         * lib/isnan.h: New file.
37918         * lib/isnan.c: New file.
37919         * m4/isnan.m4: New file.
37920
37921 2007-02-24  Bruno Haible  <bruno@clisp.org>
37922
37923         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37924         assume that an exponent fits in 20 bits.
37925
37926 2007-02-24  Jim Meyering  <jim@meyering.net>
37927
37928         * m4/regex.m4: Update the description of the configure-time option,
37929         --without-included-regex, to state accurately what the defaults are,
37930         and perhaps to give people an idea why using this option is risky.
37931
37932 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37933
37934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37935         loops on small arguments.  This attempts to avoid the problem
37936         Bruno Haible reported for AIX 4.3.2 in
37937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37938
37939 2007-02-23  Bruno Haible  <bruno@clisp.org>
37940
37941         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37942         Needed for help2man.
37943
37944 2007-02-23  Karl Berry  <karl@gnu.org>
37945
37946         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37947         exists, foo.h should be cvs-ignored, not committed.
37948
37949 2007-02-23  Eric Blake  <ebb9@byu.net>
37950
37951         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37952         * lib/stat-time.h (includes): Likewise.
37953         * lib/utimecmp.c (includes): Likewise.
37954         * lib/utimens.h (includes): Likewise.
37955         * lib/getdate.y (includes): Also include "timespec.h" for use
37956         internal to the module.
37957         * modules/utimens (Depends-on): Revert yesterday's patch.
37958         * modules/nanosleep (Depends-on): Add missing dependency.
37959
37960 2007-02-22  Bruno Haible  <bruno@clisp.org>
37961
37962         * lib/glob.c: Don't include getlogin_r.h.
37963
37964 2007-02-22  Jim Meyering  <jim@meyering.net>
37965
37966         * modules/utimens (Depends-on): Add timespec, required for
37967         utimens.h's inclusion of timespec.h.
37968
37969 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37970
37971         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37972         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37973         Schwab in
37974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37975         I'll try to think of a better way to fix the Solaris problem.
37976
37977         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37978         like glibc; on Solaris 10, it fails with errno == EINVAL.
37979         POSIX says the behavior is unspecified if the first argument is NULL,
37980         so play it safe and never pass NULL to the system getcwd.
37981
37982 2007-02-21  Jim Meyering  <jim@meyering.net>
37983
37984         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37985         of gettimeofday.  It would conflict with the one now always
37986         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37987         an IRIX 6.5 build failure.
37988
37989 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37990
37991         Minor fixups to port to Solaris 10 with Sun C 5.8.
37992         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37993         * modules/getcwd (Depends-on): Add dirfd.
37994         * lib/putenv.c (putenv): #undef it.
37995         (rpl_putenv): New decl.
37996         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37997
37998 2007-02-20  Bruno Haible  <bruno@clisp.org>
37999
38000         * modules/stdio-tests: New file.
38001         * tests/test-stdio.c: New file.
38002
38003         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38004         (Depends-on): Add stdio.
38005         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38006         (Include): Use <stdio.h> instead of vsnprintf.h.
38007         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38008         HAVE_DECL_VSNPRINTF.
38009         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38010
38011         * modules/snprintf (Files): Remove lib/snprintf.h.
38012         (Depends-on): Add stdio.
38013         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38014         (Include): Use <stdio.h> instead of snprintf.h.
38015         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38016         HAVE_DECL_SNPRINTF.
38017         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38018         * lib/getaddrinfo.c: Likewise.
38019
38020         * modules/stdio: New file.
38021         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38022         * lib/snprintf.h: Remove file.
38023         * lib/vsnprintf.h: Remove file.
38024         * lib/.cppi-disable: Remove snprintf.h.
38025         * m4/stdio_h.m4: New file.
38026         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38027
38028 2007-02-20  Jim Meyering  <jim@meyering.net>
38029
38030         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38031         used by e.g., mingw.  From Bruno Haible.
38032
38033 2007-02-19  Bruno Haible  <bruno@clisp.org>
38034
38035         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38036         warnings.
38037         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38038
38039 2007-02-19  Bruno Haible  <bruno@clisp.org>
38040
38041         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38042         from mingw users.
38043
38044 2007-02-19  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38047         warnings.
38048         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38049
38050 2007-02-19  Jim Meyering  <jim@meyering.net>
38051
38052         Don't use FD after a successful "fdopendir (fd)".
38053         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38054         Reset it by calling dirfd on the just-obtained DIR*.
38055
38056         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38057         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38058
38059 2007-02-18  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/readlink.c: Include <unistd.h>.
38062         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38063         HAVE_READLINK.
38064         * modules/readlink (Depends-on): Add unistd.
38065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38066         (Include): Add <unistd.h>.
38067
38068         * lib/getlogin_r.h: Remove file.
38069         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38070         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38071         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38072         HAVE_DECL_GETLOGIN_R.
38073         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38075         (Include): Use <unistd.h> instead of getlogin_r.h.
38076
38077         * lib/getcwd.h: Remove file.
38078         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38079         * lib/xgetcwd.c: Likewise.
38080         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38081         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38082         * modules/getcwd (Files): Remove lib/getcwd.h.
38083         (Depends-on): Add unistd.
38084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38085         (Include): Use <unistd.h> instad of getcwd.h.
38086
38087         * lib/ftruncate.c: Include <unistd.h> first.
38088         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38089         Set HAVE_FTRUNCATE.
38090         * modules/ftruncate (Depends-on): Add unistd.
38091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38092
38093         * lib/fchdir.c: Include <unistd.h> first.
38094         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38096         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38097         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38098         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38099
38100         * lib/dup2.c: Include <unistd.h> first.
38101         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38102         HAVE_DUP2.
38103         * modules/dup2 (Depends-on): Add unistd.
38104         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38105
38106         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38107         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38108         REPLACE_CHOWN. Don't define chown as a macro here.
38109         * modules/chown (Depends-on): Add unistd.
38110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38111
38112         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38113         Add definition for GL_LINK_WARNING.
38114         (chown, dup2): New declarations.
38115         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38116         link warning.
38117         (ftruncate): New declaration.
38118         (getcwd): New declaration, taken from old getcwd.h.
38119         (getlogin_r): New declaration, taken from old getlogin_r.h.
38120         (readlink): New declaration.
38121         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38122         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38123         (gl_PREREQ_UNISTD): Remove macro.
38124         (gl_UNISTD_MODULE_INDICATOR): New macro.
38125         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38126         many new variables. Don't set UNISTD_H.
38127         * modules/unistd (Description): Change.
38128         (Depends-on): Add link-warning.
38129         (configure.ac): Update.
38130         (Makefile.am): Create unistd.h always. Substitute many new variables
38131         into it.
38132
38133 2007-02-18  Bruno Haible  <bruno@clisp.org>
38134
38135         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38136         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38137         HAVE_GETSUBOPT.
38138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38139         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38140         * lib/getsubopt.h: Remove file.
38141         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38142         (Depends-on): Add stdlib.
38143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38144         (Includes): Use <stdlib.h> instead of getsubopt.h.
38145         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38146         Set HAVE_GETSUBOPT.
38147         * lib/getsubopt.c: Don't include getsubopt.h.
38148
38149 2007-02-18  Bruno Haible  <bruno@clisp.org>
38150
38151         * modules/fchdir (Depends-on): Add dup2.
38152
38153 2007-02-18  Bruno Haible  <bruno@clisp.org>
38154
38155         * lib/stdlib_.h: Handle glibc's special invocation convention
38156         specially.
38157
38158 2007-02-18  Bruno Haible  <bruno@clisp.org>
38159
38160         * modules/stdlib-tests: New file.
38161         * tests/test-stdlib.c: New file.
38162
38163         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38164         (Depends-on): Add stdlib.
38165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38166         (Includes): Use <stdlib.h> instead of mkstemp.h.
38167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38168         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38169         * lib/mkstemp.c: Don't include mkstemp.h.
38170         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38171         * lib/stdlib--.h: Don't include mkstemp.h.
38172
38173         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38174         (Depends-on): Add stdlib.
38175         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38176         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38177         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38178         HAVE_MKDTEMP.
38179         * lib/mkdtemp.c: Don't include mkdtemp.h.
38180         * lib/clean-temp.c: Don't include mkdtemp.h.
38181
38182         * modules/exit (Files): Remove lib/exit.h.
38183         (Depends-on): Add stdlib.
38184         (Makefile.am): Remove lib_SOURCES.
38185         (Include): Use <stdlib.h> instead of exit.h.
38186         * lib/argmatch.c: Don't include exit.h.
38187         * lib/execute.c: Likewise.
38188         * lib/pagealign_alloc.c: Likewise.
38189         * lib/pipe.c: Likewise.
38190         * lib/wait-process.c: Likewise.
38191         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38192         * lib/exitfail.c: Likewise.
38193         * lib/savewd.c: Likewise.
38194         * lib/xsetenv.c: Likewise.
38195
38196         * modules/stdlib: New file.
38197         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38198         and extra comments about mkstemp().
38199         * lib/exit.h: Remove file.
38200         * lib/mkdtemp.h: Remove file.
38201         * lib/mkstemp.h: Remove file.
38202         * m4/stdlib_h.m4: New file.
38203         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38204
38205 2007-02-18  Bruno Haible  <bruno@clisp.org>
38206
38207         * modules/math-tests: New file.
38208         * tests/test-math.c: New file.
38209
38210         * modules/math: New file.
38211         * modules/mathl (Files): Remove lib/mathl.h.
38212         (Depends-on): Add math.
38213         (Makefile.am): Don't mention mathl.h.
38214         (Include): Use <math.h> instead of mathl.h.
38215         * lib/math_.h: New file.
38216         * lib/mathl.h: Remove file.
38217         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38218         mathl.h.
38219         * lib/asinl.c: Likewise.
38220         * lib/atanl.c: Likewise.
38221         * lib/ceill.c: Likewise.
38222         * lib/cosl.c: Likewise.
38223         * lib/expl.c: Likewise.
38224         * lib/floorl.c: Likewise.
38225         * lib/frexpl.c: Likewise.
38226         * lib/ldexpl.c: Likewise.
38227         * lib/logl.c: Likewise.
38228         * lib/sincosl.c: Likewise.
38229         * lib/sinl.c: Likewise.
38230         * lib/sqrtl.c: Likewise.
38231         * lib/tanl.c: Likewise.
38232         * lib/trigl.c: Likewise.
38233         * m4/math_h.m4: New file.
38234         * MODULES.html.sh (Mathematics): Add math.
38235
38236 2007-02-17  Bruno Haible  <bruno@clisp.org>
38237
38238         * modules/wctype-tests: New file.
38239         * tests/test-wctype.c: New file.
38240
38241         * modules/wchar-tests: New file.
38242         * tests/test-wchar.c: New file.
38243
38244         * modules/unistd-tests: New file.
38245         * tests/test-unistd.c: New file.
38246
38247         * modules/time-tests: New file.
38248         * tests/test-time.c: New file.
38249
38250         * modules/sysexits-tests: New file.
38251         * tests/test-sysexits.c: New file.
38252
38253         * modules/sys_time-tests: New file.
38254         * tests/test-sys_time.c: New file.
38255
38256         * modules/sys_stat-tests: New file.
38257         * tests/test-sys_stat.c: New file.
38258
38259         * modules/sys_socket-tests: New file.
38260         * tests/test-sys_socket.c: New file.
38261
38262         * modules/sys_select-tests: New file.
38263         * tests/test-sys_select.c: New file.
38264
38265         * modules/string-tests: New file.
38266         * tests/test-string.c: New file.
38267
38268         * modules/stdbool-tests: New file.
38269         * tests/test-stdbool.c: New file.
38270
38271         * modules/netinet_in-tests: New file.
38272         * tests/test-netinet_in.c: New file.
38273
38274         * modules/inttypes-tests: New file.
38275         * tests/test-inttypes.c: New file.
38276
38277         * modules/fcntl-tests: New file.
38278         * tests/test-fcntl.c: New file.
38279
38280         * modules/byteswap-tests: New file.
38281         * tests/test-byteswap.c: New file.
38282
38283         * modules/arpa_inet-tests: New file.
38284         * tests/test-arpa_inet.c: New file.
38285
38286 2007-02-17  Bruno Haible  <bruno@clisp.org>
38287
38288         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38289         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38290         if the corresponding module is not enabled. Emit link warnings if
38291         the function is used nevertheless.
38292         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38293         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38294         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38295         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38296         * modules/inttypes (Depends-on): Add link-warning.
38297         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38298         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38299         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38300         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38301         * modules/imaxdiv (configure.ac): Likewise.
38302         * modules/strtoimax (configure.ac): Likewise.
38303         * modules/strtoumax (configure.ac): Likewise.
38304
38305 2007-02-17  Bruno Haible  <bruno@clisp.org>
38306
38307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38308         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38309         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38310         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38311
38312 2007-02-17  Bruno Haible  <bruno@clisp.org>
38313
38314         * modules/link-warning: New file.
38315         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38316         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38317         * modules/string (Depends-on): Add link-warning.
38318         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38319         string.h.
38320         * MODULES.html.sh (Support for building libraries and executables): Add
38321         link-warning.
38322
38323 2007-02-17  Bruno Haible  <bruno@clisp.org>
38324
38325         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38326         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38327         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38328         long lines.
38329
38330 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38331             Bruno Haible  <bruno@clisp.org>
38332
38333         * modules/tmpfile: New file.
38334         * lib/tmpfile.c: New file.
38335         * m4/tmpfile.m4: New file.
38336         * MODULES.html.sh (func_all_modules): New section "Input/output".
38337
38338 2007-02-15  Bruno Haible  <bruno@clisp.org>
38339
38340         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38341         (supports_delete_on_close): New function.
38342         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38343
38344 2007-02-14  Bruno Haible  <bruno@clisp.org>
38345
38346         * modules/mbspcasecmp-tests: New file.
38347         * tests/test-mbspcasecmp.sh: New file.
38348         * tests/test-mbspcasecmp.c: New file.
38349
38350         New module mbspcasecmp.
38351         * modules/mbspcasecmp: New file.
38352         * lib/mbspcasecmp.c: New file.
38353         * lib/string_.h (strncasecmp): Change warning message.
38354         (mbspcasecmp): New declaration.
38355         * m4/mbspcasecmp.m4: New file.
38356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38357         GNULIB_MBSPCASECMP.
38358         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38359         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38360
38361 2007-02-14  Bruno Haible  <bruno@clisp.org>
38362
38363         * modules/mbsncasecmp-tests: New file.
38364         * tests/test-mbsncasecmp.sh: New file.
38365         * tests/test-mbsncasecmp.c: New file.
38366
38367         New module mbsncasecmp.
38368         * modules/mbsncasecmp: New file.
38369         * lib/mbsncasecmp.c: New file.
38370         * lib/string_.h (mbsncasecmp): New declaration.
38371         * m4/mbsncasecmp.m4: New file.
38372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38373         GNULIB_MBSNCASECMP.
38374         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38375         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38376
38377 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38378
38379         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38380         Verify that it doesn't overlap with our flags.
38381         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38382         do not have the desired effect in multibyte locales; instead, use
38383         mbscasecmp.
38384         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38385         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38386         we don't require GNU fnmatch ourselves (if our users require it, they
38387         should do so explicitly).
38388
38389         Fix regex code so it doesn't rely on strcasecmp.
38390         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38391         Otherwise, include gnulib's langinfo.h.
38392         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38393         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38394         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38395         * modules/regex (FILES): Remove m4/codeset.m4.
38396         (Depends-on): Add localcharset.  Remove strcase.
38397
38398 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38399
38400         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38401         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38402
38403 2007-02-13  Bruno Haible  <bruno@clisp.org>
38404
38405         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38407
38408 2007-02-12  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38411         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38412         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38413         time warning rather than a link error.
38414
38415 2007-02-12  Bruno Haible  <bruno@clisp.org>
38416
38417         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38420
38421 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38422
38423         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38424         args, not 2.
38425
38426 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38427
38428         New module 'time', so that apps can include <time.h> as per
38429         POSIX and GNU instead of separate include files like time_r.h
38430         and timegm.h.  This implementation tries out a simpler approach
38431         for replacing decls in standard include files (as compared to
38432         the string module), somewhat as an experiment.
38433
38434         * config/srclist.txt: Comment out mktime.c for now.
38435         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38436         since it doesn't apply any more.  Use generic wording instead.
38437         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38438         'time'.
38439         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38440         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38441         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38442         Don't include <sys/types.h>; no longer needed since we assume C89.
38443         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38444         * lib/strftime.c: Likewise.
38445         * lib/time_r.c: Likewise.
38446         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38447         * lib/nanosleep.c: Include <time.h> first, to check interface.
38448         * lib/strptime.c: Likewise.
38449         * lib/time_r.c: Likewise.
38450         * lib/timegm.c: Likewise.
38451         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38452         needed.
38453         * lib/timegm.c: Don't include timegm.h; no longer needed.
38454         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38455         time.h now handles any problems in that area.
38456         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38457         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38458         that time.h defines struct timespec.
38459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38460         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38461         handles that.
38462         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38463         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38464         needed.  Set REPLACE_LOCALTIME.
38465         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38466         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38467         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38468         nanosleep; time_h.m4 now does that.  Don't require
38469         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38470         module handles this now.
38471         * modules/getdate (Depends-on): Remove timespec.  Add time.
38472         * modules/nanosleep (Depends-on): Likewise.
38473         * modules/stat-time (Depends-on): Likewise.
38474         * modules/nanosleep (Include): Include time.h, not timespec.h.
38475         * modules/strptime (Files): Remove lib/strptime.h.
38476         (Depends-on): Add extensions, time.
38477         (Include): Include time.h, not strptime.h.
38478         * modules/time_r (Files): Remove lib/time_r.h.
38479         (Depends-on): Add time.
38480         (Include): Include time.h, not time_r.h.
38481         * modules/timegm: Likewise.
38482         * modules/timespec (Description): Now does timespec-related decls
38483         of our own, instead of struct timespec itself.
38484         (Depends-on): Add time; remove extensions.
38485         (Maintainer): Add self.
38486         * modules/utimecmp (Depends-on): Add time; remove timespec.
38487         * modules/utimens (Depends-on): Likewise.
38488         * modules/xnanosleep (Depends-on): Likewise.
38489
38490 2007-02-11  Bruno Haible  <bruno@clisp.org>
38491
38492         * lib/c-strstr.c: Include allocsa.h.
38493         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38494         * lib/c-strcasestr.c: Include allocsa.h.
38495         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38496         * lib/strcasestr.c: Include allocsa.h.
38497         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38498         * lib/mbsstr.c: Include allocsa.h.
38499         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38500         allocsa/freesa instead of malloc/free.
38501         * lib/mbscasestr.c: Include allocsa.h.
38502         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38503         allocsa/freesa instead of malloc/free.
38504         * modules/c-strstr (Depends-on): Add allocsa.
38505         * modules/c-strcasestr (Depends-on): Likewise.
38506         * modules/strcasestr (Depends-on): Likewise.
38507         * modules/mbsstr (Depends-on): Likewise.
38508         * modules/mbscasestr (Depends-on): Likewise.
38509
38510 2007-02-11  Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38513
38514         * modules/mbsspn-tests: New file.
38515         * tests/test-mbsspn.sh: New file.
38516         * tests/test-mbsspn.c: New file.
38517
38518 2007-02-11  Bruno Haible  <bruno@clisp.org>
38519
38520         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38521
38522         * modules/mbspbrk-tests: New file.
38523         * tests/test-mbspbrk.sh: New file.
38524         * tests/test-mbspbrk.c: New file.
38525
38526 2007-02-11  Bruno Haible  <bruno@clisp.org>
38527
38528         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38529         unneeded cast.
38530
38531         * modules/mbscspn-tests: New file.
38532         * tests/test-mbscspn.sh: New file.
38533         * tests/test-mbscspn.c: New file.
38534
38535 2007-02-11  Bruno Haible  <bruno@clisp.org>
38536
38537         * modules/mbscasecmp-tests: New file.
38538         * tests/test-mbscasecmp.sh: New file.
38539         * tests/test-mbscasecmp.c: New file.
38540
38541 2007-02-11  Bruno Haible  <bruno@clisp.org>
38542
38543         Ensure O(n) worst-case complexity of mbscasestr.
38544         * lib/mbscasestr.c: Include stdbool.h.
38545         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38546         functions.
38547         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38548         the bookkeeping indicates that it's worth it.
38549         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38550
38551         * modules/mbscasestr-tests: New file.
38552         * tests/test-mbscasestr1.c: New file.
38553         * tests/test-mbscasestr2.sh: New file.
38554         * tests/test-mbscasestr2.c: New file.
38555         * tests/test-mbscasestr3.sh: New file.
38556         * tests/test-mbscasestr3.c: New file.
38557         * tests/test-mbscasestr4.sh: New file.
38558         * tests/test-mbscasestr4.c: New file.
38559         * m4/locale-tr.m4: New file.
38560
38561 2007-02-11  Bruno Haible  <bruno@clisp.org>
38562
38563         Ensure O(n) worst-case complexity of mbsstr.
38564         * lib/mbsstr.c: Include stdbool.h.
38565         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38566         functions.
38567         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38568         bookkeeping indicates that it's worth it.
38569         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38570
38571         * modules/mbsstr-tests: New file.
38572         * tests/test-mbsstr1.c: New file.
38573         * tests/test-mbsstr2.sh: New file.
38574         * tests/test-mbsstr2.c: New file.
38575         * tests/test-mbsstr3.sh: New file.
38576         * tests/test-mbsstr3.c: New file.
38577         * m4/locale-fr.m4: New file.
38578
38579 2007-02-11  Bruno Haible  <bruno@clisp.org>
38580
38581         * lib/mbsrchr.c (mbsrchr): Fix bug.
38582
38583         * modules/mbsrchr-tests: New file.
38584         * tests/test-mbsrchr.sh: New file.
38585         * tests/test-mbsrchr.c: New file.
38586
38587 2007-02-11  Bruno Haible  <bruno@clisp.org>
38588
38589         * lib/mbschr.c (mbschr): Fix bug.
38590
38591         * modules/mbschr-tests: New file.
38592         * tests/test-mbschr.sh: New file.
38593         * tests/test-mbschr.c: New file.
38594         * m4/locale-zh.m4: New file.
38595
38596 2007-02-11  Bruno Haible  <bruno@clisp.org>
38597
38598         Support for copying multibyte string iterators.
38599         * lib/mbiter.h: Include <string.h>.
38600         (mbiter_multi_copy): New function.
38601         (mbi_copy): New macro.
38602         * lib/mbuiter.h: Include <string.h>.
38603         (mbuiter_multi_copy): New function.
38604         (mbui_copy): New macro.
38605
38606 2007-02-11  Bruno Haible  <bruno@clisp.org>
38607
38608         New module mbslen.
38609         * modules/mbslen: New file.
38610         * lib/mbslen.c: New file.
38611         * lib/string_.h (mbslen): New declaration.
38612         * m4/mbslen.m4: New file.
38613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38614         GNULIB_MBSLEN.
38615         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38616         * MODULES.html.sh (Internationalization functions): Add mbslen.
38617
38618 2007-02-11  Bruno Haible  <bruno@clisp.org>
38619
38620         Ensure O(n) worst-case complexity of strcasestr substitute.
38621         * lib/strcasestr.c: Include stdbool.h.
38622         (knuth_morris_pratt): New function.
38623         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38624         bookkeeping indicates that it's worth it.
38625         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38626
38627         * modules/strcasestr-tests: New file.
38628         * tests/test-strcasestr.c: New file.
38629
38630 2007-02-11  Bruno Haible  <bruno@clisp.org>
38631
38632         Ensure O(n) worst-case complexity of c_strcasestr.
38633         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38634         (knuth_morris_pratt): New function.
38635         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38636         the bookkeeping indicates that it's worth it.
38637         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38638
38639         * modules/c-strcasestr-tests: New file.
38640         * tests/test-c-strcasestr.c: New file.
38641
38642 2007-02-11  Bruno Haible  <bruno@clisp.org>
38643
38644         Ensure O(n) worst-case complexity of c_strstr.
38645         * lib/c-strstr.c: Include stdbool.h, string.h.
38646         (knuth_morris_pratt): New function.
38647         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38648         bookkeeping indicates that it's worth it.
38649         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38650
38651         * lib/c-strstr.c: Complete rewrite for maintainability.
38652
38653         * modules/c-strstr-tests: New file.
38654         * tests/test-c-strstr.c: New file.
38655
38656 2007-02-11  Bruno Haible  <bruno@clisp.org>
38657
38658         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38659         5.2.1 and earlier, whereby \055 was treated just like the range
38660         delimiter '-'.
38661         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38662
38663 2007-02-08  Bruno Haible  <bruno@clisp.org>
38664
38665         * modules/regex (Depends-on): Add stdbool.
38666         Reported by Dalibor Topic <robilad@kaffe.org>.
38667
38668 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38669
38670         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38671         Prefer returning from main to exiting from it.
38672         Remove unnecessary parens after sizeof.
38673
38674 2007-02-05  Bruno Haible  <bruno@clisp.org>
38675
38676         New module mbssep.
38677         * modules/mbssep: New file.
38678         * lib/mbssep.c: New file.
38679         * lib/string_.h (strsep): Add a conditional link warning.
38680         (mbssep): New declaration.
38681         * m4/mbssep.m4: New file.
38682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38683         GNULIB_MBSSEP.
38684         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38685         * MODULES.html.sh (Internationalization functions): Add mbssep.
38686
38687 2007-02-05  Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38690         Optimize search in case of 1 delimiter.
38691
38692 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38693
38694         * lib/acl.h: Include sys/types.h before sys/acl.h.
38695
38696 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38697
38698         Merge upstream fix for glibc bugzilla #3957:
38699
38700         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38701
38702         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38703         bit for RE_HAT_LISTS_NOT_NEWLINE.
38704         (build_charclass_op): Remove bogus comment.
38705
38706 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38707
38708         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38709
38710 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38711
38712         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38713         * lib/memmem.c [!defined _LIBC]: Include config.h.
38714
38715 2007-02-04  Bruno Haible  <bruno@clisp.org>
38716
38717         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38718         warning message.
38719
38720 2007-02-04  Bruno Haible  <bruno@clisp.org>
38721
38722         New module mbstok_r.
38723         * modules/mbstok_r: New file.
38724         * lib/mbstok_r.c: New file.
38725         * lib/string_.h (strtok_r): Change argument names to match the
38726         comments. Add a conditional link warning.
38727         (mbstok_r): New declaration.
38728         * m4/mbstok_r.m4: New file.
38729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38730         GNULIB_MBSTOK_R.
38731         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38732         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38733
38734 2007-02-04  Bruno Haible  <bruno@clisp.org>
38735
38736         New module mbsspn.
38737         * modules/mbsspn: New file.
38738         * lib/mbsspn.c: New file.
38739         * lib/string_.h (strspn): Add a conditional link warning.
38740         (mbsspn): New declaration.
38741         * m4/mbsspn.m4: New file.
38742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38743         GNULIB_MBSSPN.
38744         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38745         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38746
38747 2007-02-04  Bruno Haible  <bruno@clisp.org>
38748
38749         New module mbspbrk.
38750         * modules/mbspbrk: New file.
38751         * lib/mbspbrk.c: New file.
38752         * lib/string_.h (strpbrk): Add a conditional link warning.
38753         (mbspbrk): New declaration.
38754         * m4/mbspbrk.m4: New file.
38755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38756         GNULIB_MBSPBRK.
38757         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38758         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38759
38760 2007-02-04  Bruno Haible  <bruno@clisp.org>
38761
38762         New module mbscspn.
38763         * modules/mbscspn: New file.
38764         * lib/mbscspn.c: New file.
38765         * lib/string_.h (strcspn): Add a conditional link warning.
38766         (mbscspn): New declaration.
38767         * m4/mbscspn.m4: New file.
38768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38769         GNULIB_MBSCSPN.
38770         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38771         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38772
38773 2007-02-04  Bruno Haible  <bruno@clisp.org>
38774
38775         New module mbscasestr, reduced goal of strcasestr.
38776         * modules/mbscasestr: New file.
38777         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38778         (mbscasestr): Renamed from strcasestr.
38779         * lib/strcasestr.c: Don't include mbuiter.h.
38780         (strcasestr): Remove support for multibyte locales.
38781         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38782         Change the conditional link warning.
38783         (mbscasestr): New declaration.
38784         * m4/mbscasestr.m4: New file.
38785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38786         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38787         REPLACE_STRCASESTR.
38788         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38790         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38791         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38792         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38793         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38794         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38795         (Depends-on): Remove mbuiter.
38796         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38797
38798 2007-02-04  Bruno Haible  <bruno@clisp.org>
38799
38800         Simplify handling of strncasecmp.
38801         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38802         the conditional link warning.
38803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38804         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38806         * modules/strcase (configure.ac): Don't invoke
38807         gl_STRING_MODULE_INDICATOR.
38808         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38809
38810 2007-02-04  Bruno Haible  <bruno@clisp.org>
38811
38812         New module mbscasecmp, reduced goal of strcasecmp.
38813         * modules/mbscasecmp: New file.
38814         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38815         (mbscasecmp): Renamed from strcasecmp.
38816         * lib/strcasecmp.c: Don't include mbuiter.h.
38817         (strcasecmp): Remove support for multibyte locales.
38818         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38819         Change the conditional link warning.
38820         (mbscasecmp): New declaration.
38821         * m4/mbscasecmp.m4: New file.
38822         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38823         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38824         REPLACE_STRCASECMP.
38825         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38827         GNULIB_MBSCASECMP.
38828         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38829         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38830         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38831         (Depends-on): Remove mbuiter.
38832         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38833
38834 2007-02-04  Bruno Haible  <bruno@clisp.org>
38835
38836         New module mbsstr. Remove module strstr.
38837         * modules/mbsstr: New file.
38838         * modules/strstr: Remove file.
38839         * lib/mbsstr.c: Renamed from lib/strstr.c.
38840         (mbsstr): Renamed from strstr.
38841         * lib/string_.h (strstr): Remove declaration. Change the conditional
38842         link warning.
38843         (mbsstr): New declaration.
38844         * m4/mbsstr.m4: New file.
38845         * m4/strstr.m4: Remove file.
38846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38847         REPLACE_STRSTR.
38848         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38849         Don't initialize GNULIB_STRSTR.
38850         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38851         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38852         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38853         (Support for systems lacking ANSI C 89): Remove strstr.
38854
38855 2007-02-04  Bruno Haible  <bruno@clisp.org>
38856
38857         New module mbsrchr.
38858         * modules/mbsrchr: New file.
38859         * lib/mbsrchr.c: New file.
38860         * lib/string_.h (strrchr): Add a conditional link warning.
38861         (mbsrchr): New declaration.
38862         * m4/mbsrchr.m4: New file.
38863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38864         GNULIB_MBSRCHR.
38865         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38866         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38867
38868 2007-02-04  Bruno Haible  <bruno@clisp.org>
38869
38870         New module mbschr.
38871         * modules/mbschr: New file.
38872         * lib/mbschr.c: New file.
38873         * lib/string_.h (strchr): Add a conditional link warning.
38874         (mbschr): New declaration.
38875         * m4/mbschr.m4: New file.
38876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38877         GNULIB_MBSCHR.
38878         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38879         * MODULES.html.sh (Internationalization functions): Add mbschr.
38880
38881 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38882
38883         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38884
38885         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38886
38887 2007-02-04  Bruno Haible  <bruno@clisp.org>
38888
38889         New module description section 'configure.ac-early'.
38890         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38891         (func_get_autoconf_early_snippet): New function.
38892         (func_import, func_create_testdir): Use it. Remove special cases for
38893         modules 'extensions' and 'lock'.
38894         * modules/extensions (configure.ac-early): Require
38895         gl_USE_SYSTEM_EXTENSIONS.
38896         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38897
38898 2007-02-04  Bruno Haible  <bruno@clisp.org>
38899
38900         Make use of gcj-4.3's -fsource and -ftarget option.
38901         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38902         and if so try the options -fsource and -ftarget.
38903         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38904         source_version, ftarget_option, target_version arguments.
38905         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38906         (is_envjavac_oldgcj_14_14_usable): Renamed from
38907         is_envjavac_gcj_14_14_usable.
38908         (is_envjavac_oldgcj_14_13_usable): Renamed from
38909         is_envjavac_gcj_14_13_usable.
38910         (is_gcj_present): Update.
38911         (is_gcj_43, is_gcj43_usable): New functions.
38912         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38913         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38914         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38915         try the options -fsource and -ftarget.
38916
38917 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38918
38919         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38920         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38921         larger value.
38922
38923 2007-02-03  Jim Meyering  <jim@meyering.net>
38924
38925         Give tools a better chance to allocate space for very large buffers.
38926         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38927
38928         Make pwd and readlink work also when run with an unreadable parent dir
38929         on systems with openat support.
38930         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38931         provided getcwd function, even when we have openat support.
38932         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38933
38934 2007-02-02  Bruno Haible  <bruno@clisp.org>
38935
38936         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38937         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38938         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38939         portability problems if one of these functions is only used on specific
38940         platforms.
38941         Reported by Paul Eggert.
38942
38943 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38944
38945         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38946         is causing more trouble than it's curing.
38947         * lib/regex_internal.h (__mempcpy): Remove.
38948         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38949         (and make the code a tad smaller to boot).
38950         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38951
38952 2007-02-02  Jim Meyering  <jim@meyering.net>
38953
38954         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38955         section, not in the Makefile.am: one.
38956
38957 2007-02-02  Eric Blake  <ebb9@byu.net>
38958
38959         * lib/strchrnul.c: Always include config.h first.
38960
38961         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38962         gnulib strstr is not necessary here.
38963
38964 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38965
38966         * m4/socklen.m4: Fix typo.
38967
38968 2007-02-02  Eric Blake  <ebb9@byu.net>
38969
38970         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38971         * modules/netinet_in (Makefile.am): Likewise.
38972
38973 2007-02-01  Bruno Haible  <bruno@clisp.org>
38974
38975         * lib/string_.h (GL_LINK_WARNING): New macro.
38976         (strcasecmp, strstr, strcasestr): If provided by the system,
38977         conditionally define as a macro that leads to a warning instead of to
38978         an error.
38979         (strncasecmp): Conditionally define as a macro that leads to a warning.
38980
38981 2007-02-01  Karl Berry  <karl@gnu.org>
38982
38983         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38984
38985 2007-02-01  Bruno Haible  <bruno@clisp.org>
38986
38987         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38988         renamings.
38989
38990 2007-02-01  Eric Blake  <ebb9@byu.net>
38991
38992         * modules/regex (Depends-on): Revert dependence on mempcpy.
38993         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38994         module's definition of mempcpy.
38995         Reported by Paul Eggert.
38996
38997 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38998
38999         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39000         the symbol XYZ before redefining it.  This fixes a problem with
39001         programs that don't use XYZ, when compiled on systems that define
39002         XYZ to something else.
39003
39004 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39005
39006         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39007         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39008         writeable to group or other and (2) is intended to have a special
39009         mode bit that is set or cleared.  In such a case, the directory
39010         should be neither group- nor other-writeable until the special
39011         mode bits are right.
39012
39013 2007-01-31  Eric Blake  <ebb9@byu.net>
39014
39015         * modules/mountlist (Depends-on): Add strstr.
39016
39017         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39018         bug.
39019         * modules/string (Makefile.am): Remove redundant replacement.
39020         * modules/regex (Depends-on): Add mempcpy.
39021
39022 2007-01-31  Bruno Haible  <bruno@clisp.org>
39023
39024         New module description field 'Link'.
39025         * gnulib-tool (func_usage): Document --extract-link-directive.
39026         (sed_extract_prog): Recognize 'Link' directive.
39027         (func_get_link_directive): New function.
39028         (func_import): Show summary of link directives.
39029         Handle --extract-link-directive option.
39030         * modules/acl (Link): New section.
39031         * modules/clock-time (Link): New section.
39032         * modules/euidaccess (Link): New section.
39033         * modules/gettext (Link): New section.
39034         * modules/iconv (Link): New section.
39035         * modules/lock (Link): New section.
39036         * modules/nanosleep (Link): New section.
39037         * modules/readline (Link): New section.
39038
39039 2007-01-27  Bruno Haible  <bruno@clisp.org>
39040
39041         Enforce the use of gnulib modules for unportable <string.h> functions.
39042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39043         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39044         (gl_HEADER_STRING_H_BODY): Require it.
39045         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39046         the symbol XYZ to one that gives a link error.
39047         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39048         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39049         * modules/mempcpy (configure.ac): Likewise.
39050         * modules/memrchr (configure.ac): Likewise.
39051         * modules/stpcpy (configure.ac): Likewise.
39052         * modules/stpncpy (configure.ac): Likewise.
39053         * modules/strcase (configure.ac): Likewise.
39054         * modules/strcasestr (configure.ac): Likewise.
39055         * modules/strchrnul (configure.ac): Likewise.
39056         * modules/strdup (configure.ac): Likewise.
39057         * modules/strndup (configure.ac): Likewise.
39058         * modules/strnlen (configure.ac): Likewise.
39059         * modules/strpbrk (configure.ac): Likewise.
39060         * modules/strsep (configure.ac): Likewise.
39061         * modules/strstr (configure.ac): Likewise.
39062         * modules/strtok_r (configure.ac): Likewise.
39063
39064 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39065
39066         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39067
39068 2007-01-30  Jim Meyering  <jim@meyering.net>
39069
39070         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39071
39072 2007-01-29  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39075         * lib/execute.c: Likewise.
39076         * lib/pipe.c: Likewise.
39077         * lib/printf-args.h: Likewise.
39078         * lib/printf-args.c: Likewise.
39079         * lib/printf-parse.c: Likewise.
39080         * lib/vasnprintf.c: Likewise.
39081
39082 2007-01-29  Eric Blake  <ebb9@byu.net>
39083
39084         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39085         declaration.
39086
39087 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39088
39089         * lib/strptime.h (strptime): Use 'restrict' for args where
39090         POSIX requires this.
39091         * lib/strptime.c (strptime): Likewise.
39092         Change license notice from LGPL to GPL, since gnulib-tool will
39093         change this as needed.
39094         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39095         defined.
39096         Include "strptime.h" first, to check interface.
39097         Do not #undef _LIBC and _NL_CURRENT.
39098         Do not include <stdlib.h>; no longer needed.
39099         Include "time_r.h" and declare ptime_locale_status
39100         only if _LIBC is not defined.
39101         (__P): Remove unused macro.
39102         (match_string): Bring back glibc version, but use it only if _LIBC
39103         is defined.
39104         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39105         Remove unnecessary assertion and abort() call.
39106         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39107         * m4/strptime.m4: Fix serial number comment.
39108         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39109         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39110         (Depends-on): Add time_r.
39111
39112 2007-01-29  Bruno Haible  <bruno@clisp.org>
39113
39114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39115         strptime.
39116         * modules/strptime (Depends-on): Add stdbool.
39117         * lib/strptime.h: Include <time.h> always. Add comments.
39118
39119 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39120
39121         * modules/strptime: New file.
39122         * lib/strptime.h: New file.
39123         * lib/strptime.c: New file.
39124         * m4/strptime.m4: New file.
39125
39126 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39127
39128         * MODULES.html.sh: New module mpsort.
39129         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39130
39131         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39132         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39133         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39134         All uses changed.
39135         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39136         All uses changed.
39137         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39138         to _Restrict_.
39139         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39140         the parameter matches the prototype.
39141
39142 2007-01-28  Jim Meyering  <jim@meyering.net>
39143
39144         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39145         sys/time.h here, reverting that part of the previous patch:
39146         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39147
39148 2007-01-28  Bruno Haible  <bruno@clisp.org>
39149
39150         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39151         value of $(SYS_TIME_H).
39152         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39153         remove it conditionally, too. [added by Jim Meyering]
39154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39156         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39157         GETTIMEOFDAY_REPLACEMENT to 1.
39158
39159 2007-01-28  Bruno Haible  <bruno@clisp.org>
39160
39161         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39162         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39164         Set UNISTD_H instead of UNISTD_H2.
39165         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39166
39167 2007-01-28  Bruno Haible  <bruno@clisp.org>
39168
39169         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39170         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39171
39172 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39173
39174         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39175         (func_create_testdir): Ensure C locale for `grep' and `tr'
39176         character ranges.
39177         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39178         ACLOCAL_AMFLAGS parsing state machine.
39179
39180 2007-01-27  Bruno Haible  <bruno@clisp.org>
39181
39182         * modules/unistr/base: Update.
39183
39184 2007-01-27  Bruno Haible  <bruno@clisp.org>
39185
39186         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39187         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39188         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39189         modules/unistr/u32-mbtouc.
39190         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39191         * lib/unistr.h: Update.
39192         * lib/linebreak.c: Update.
39193         * modules/unistr/u32-mbtouc: Renamed from
39194         modules/unistr/u32-mbtouc-safe.
39195         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39196         * lib/unistr.h: Update.
39197         * lib/unistr/u32-to-u8.c: Update.
39198         * lib/unistr/u32-to-u16.c: Update.
39199
39200 2007-01-27  Bruno Haible  <bruno@clisp.org>
39201
39202         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39203         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39204         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39205         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39206         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39207         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39208         modules/unistr/u16-mbtouc.
39209         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39210         * lib/unistr.h: Update.
39211         * lib/linebreak.c: Update.
39212         * modules/linebreak: Update.
39213         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39214         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39215         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39216         * modules/unistr/u16-mbtouc: Renamed from
39217         modules/unistr/u16-mbtouc-safe.
39218         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39219         * lib/unistr.h: Update.
39220         * lib/unistr/u16-to-u8.c: Update.
39221         * modules/unistr/u16-to-u8: Update.
39222         * lib/unistr/u16-to-u32.c: Update.
39223         * modules/unistr/u16-to-u32: Update.
39224
39225 2007-01-27  Bruno Haible  <bruno@clisp.org>
39226
39227         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39228         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39229         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39230         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39231         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39232         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39233         modules/unistr/u8-mbtouc.
39234         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39235         * lib/unistr.h: Update.
39236         * lib/striconveh.c: Update.
39237         * modules/striconveh: Update.
39238         * lib/linebreak.c: Update.
39239         * modules/linebreak: Update.
39240         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39241         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39242         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39243         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39244         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39245         * lib/unistr.h: Update.
39246         * lib/striconveh.c: Update.
39247         * modules/striconveh: Update.
39248         * lib/unistr/u8-to-u16.c: Update.
39249         * modules/unistr/u8-to-u16: Update.
39250         * lib/unistr/u8-to-u32.c: Update.
39251         * modules/unistr/u8-to-u32: Update.
39252
39253 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39254
39255         Sync from Libtool.
39256         * lib/argz.c: Do not include strings.h nor memory.h, include
39257         string.h unconditionally.  Patch by Simon Josefsson.
39258
39259 2007-01-27  Bruno Haible  <bruno@clisp.org>
39260
39261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39262         from gl_HEADER_STRING_H_BODY.
39263         (gl_HEADER_STRING_H_BODY): Require it.
39264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39267         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39269         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39271         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39272         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39273         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39274         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39275         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39276         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39277         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39279
39280 2007-01-27  Bruno Haible  <bruno@clisp.org>
39281
39282         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39283         check_PROGRAMS into noinst_PROGRAMS.
39284         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39285         check_PROGRAMS in this case.
39286         (func_import): Set for_test to false.
39287         (func_create_testdir): Set for_test to true.
39288
39289 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39290             Bruno Haible  <bruno@clisp.org>
39291
39292         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39293         (Depends-on): Add string.
39294         (Includes): Use <string.h> instead of strcasestr.h.
39295         * modules/string (Makefile.am): Also substitute the value of
39296         REPLACE_STRCASESTR.
39297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39298         assume strcasestr is declared in <string.h> not <strings.h>. Also
39299         set REPLACE_STRCASESTR.
39300         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39301         REPLACE_STRCASESTR.
39302         * lib/strcasestr.h: Remove file.
39303         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39304         * lib/string_.h (strcasestr): New declaration.
39305
39306 2007-01-27  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/string_.h: Use 'extern'.
39309
39310 2007-01-27  Jim Meyering  <jim@meyering.net>
39311
39312         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39313         of set-but-not-used local, "q".
39314
39315         * lib/mempcpy.c: Include <config.h> before <string.h>.
39316         This fixes a compilation error on HP-UX, due to the system's
39317         "restrict"-using mempcpy prototype.
39318
39319 2007-01-26  Bruno Haible  <bruno@clisp.org>
39320
39321         Small optimization.
39322         * lib/javacomp.c: Include c-strstr.h.
39323          (is_envjavac_gcj): Use c_strstr instead of strstr.
39324         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39325
39326 2007-01-26  Bruno Haible  <bruno@clisp.org>
39327
39328         * MODULES.html.sh (Unicode string functions): Add the new modules.
39329
39330         * modules/uniconv/u32-strconv-to-locale: New file.
39331         * lib/uniconv/u32-strconv-to-locale.c: New file.
39332
39333         * modules/uniconv/u16-strconv-to-locale: New file.
39334         * lib/uniconv/u16-strconv-to-locale.c: New file.
39335
39336         * modules/uniconv/u8-strconv-to-locale: New file.
39337         * lib/uniconv/u8-strconv-to-locale.c: New file.
39338
39339         * modules/uniconv/u32-strconv-from-locale: New file.
39340         * lib/uniconv/u32-strconv-from-locale.c: New file.
39341
39342         * modules/uniconv/u16-strconv-from-locale: New file.
39343         * lib/uniconv/u16-strconv-from-locale.c: New file.
39344
39345         * modules/uniconv/u8-strconv-from-locale: New file.
39346         * lib/uniconv/u8-strconv-from-locale.c: New file.
39347
39348         * modules/uniconv/u32-strconv-to-enc: New file.
39349         * lib/uniconv/u32-strconv-to-enc.c: New file.
39350         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39351         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39352
39353         * modules/uniconv/u16-strconv-to-enc: New file.
39354         * lib/uniconv/u16-strconv-to-enc.c: New file.
39355         * lib/uniconv/u-strconv-to-enc.h: New file.
39356         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39357         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39358
39359         * modules/uniconv/u8-strconv-to-enc: New file.
39360         * lib/uniconv/u8-strconv-to-enc.c: New file.
39361         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39362         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39363
39364         * modules/uniconv/u32-strconv-from-enc: New file.
39365         * lib/uniconv/u32-strconv-from-enc.c: New file.
39366         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39367         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39368
39369         * modules/uniconv/u16-strconv-from-enc: New file.
39370         * lib/uniconv/u16-strconv-from-enc.c: New file.
39371         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39372         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39373
39374         * modules/uniconv/u8-strconv-from-enc: New file.
39375         * lib/uniconv/u8-strconv-from-enc.c: New file.
39376         * lib/uniconv/u-strconv-from-enc.h: New file.
39377         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39378         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39379
39380         * modules/uniconv/u32-conv-from-enc: New file.
39381         * lib/uniconv/u32-conv-from-enc.c: New file.
39382         * modules/uniconv/u32-conv-from-enc-tests: New file.
39383         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39384
39385         * modules/uniconv/u16-conv-from-enc: New file.
39386         * lib/uniconv/u16-conv-from-enc.c: New file.
39387         * lib/uniconv/u-conv-from-enc.h: New file.
39388         * modules/uniconv/u16-conv-from-enc-tests: New file.
39389         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39390
39391         * modules/uniconv/u8-conv-from-enc: New file.
39392         * lib/uniconv/u8-conv-from-enc.c: New file.
39393         * modules/uniconv/u8-conv-from-enc-tests: New file.
39394         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39395
39396         * modules/uniconv/base: New file.
39397         * lib/uniconv.h: New file.
39398
39399 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39400
39401         * doc/gnulib-tool.texi (Initial import): Update to match current
39402         behavior with strdup module.
39403         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39404         * lib/memmem.h: Remove; all uses removed.  This is now done
39405         by <string.h>.
39406         * lib/mempcpy.h: Likewise.
39407         * lib/memrchr.h: Likewise.
39408         * lib/stpcpy.h: Likewise.
39409         * lib/stpncpy.h: Likewise.
39410         * lib/strcase.h: Likewise.
39411         * lib/strchrnul.h: Likewise.
39412         * lib/strdup.h: Likewise.
39413         * lib/strndup.h: Likewise.
39414         * lib/strnlen.h: Likewise.
39415         * lib/strpbrk.h: Likewise.
39416         * lib/strsep.h: Likewise.
39417         * lib/strstr.h: Likewise.
39418         * lib/strtok_r.h: Likewise.
39419         * lib/string_.h: New file.
39420         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39421         Rely on <string.h> instead.
39422         * lib/canon-host.c: Likewise.
39423         * lib/chdir-long.c: Likewise.
39424         * lib/concatpath.c: Likewise.
39425         * lib/exclude.c: Likewise.
39426         * lib/fchdir.c: Likewise.
39427         * lib/getaddrinfo.c: Likewise.
39428         * lib/getcwd.c: Likewise.
39429         * lib/getsubopt.c: Likewise.
39430         * lib/glob.c: Likewise.
39431         * lib/hard-locale.c: Likewise.
39432         * lib/iconvme.c: Likewise.
39433         * lib/javacomp.c: Likewise.
39434         * lib/mempcpy.c: Likewise.
39435         * lib/memrchr.c: Likewise.
39436         * lib/regex_internal.h: Likewise.
39437         * lib/stpncpy.c: Likewise.
39438         * lib/strcasecmp.c: Likewise.
39439         * lib/strchrnul.c: Likewise.
39440         * lib/strdup.c: Likewise.
39441         * lib/striconv.c: Likewise.
39442         * lib/striconveh.c: Likewise.
39443         * lib/striconveha.c: Likewise.
39444         * lib/strncasecmp.c: Likewise.
39445         * lib/strndup.c: Likewise.
39446         * lib/strnlen.c: Likewise.
39447         * lib/strsep.c: Likewise.
39448         * lib/strstr.c: Likewise.
39449         * lib/strtok_r.c: Likewise.
39450         * lib/userspec.c: Likewise.
39451         * lib/w32spawn.h: Likewise.
39452         * lib/xstrndup.c: Likewise.
39453         * lib/mountlist.c (strstr): Remove decl.
39454         * m4/string_h.m4: New file.
39455         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39456         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39457         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39458         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39459         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39460         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39461         Set REPLACE_STRCASECMP if necessary.
39462         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39463         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39464         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39465         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39466         HAVE_DECL_STRDUP if necessary.
39467         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39468         since gl_FUNC_STRNDUP does that now.
39469         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39470         Check for decl here...
39471         (gl_PREREQ_STRNLEN): ... not here.
39472         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39473         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39474         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39475         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39476         necessary.
39477         * modules/string: New file.
39478         * modules/memmem (Files): Remove special-purpose include file.
39479         (Depends-on): Add string.
39480         (Include): Include <string.h>, not the removed file.
39481         * modules/mempcpy: Likewise.
39482         * modules/memrchr: Likewise.
39483         * modules/stpcpy: Likewise.
39484         * modules/stpncpy: Likewise.
39485         * modules/strcase: Likewise.
39486         * modules/strchrnul: Likewise.
39487         * modules/strdup: Likewise.
39488         * modules/strndup: Likewise.
39489         * modules/strnlen: Likewise.
39490         * modules/strpbrk: Likewise.
39491         * modules/strsep: Likewise.
39492         * modules/strstr: Likewise.
39493         * modules/strtok_r: Likewise.
39494         * tests/test-dirname.c: Don't include "strdup.h", since
39495         <string.h> now suffices.
39496         * tests/test-memmem.c: Don't include "memmem.h", since
39497         <string.h> now suffices.
39498
39499 2007-01-25  Bruno Haible  <bruno@clisp.org>
39500
39501         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39502         *resultp is 0.
39503
39504         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39505         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39506         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39507         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39508
39509         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39510         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39511         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39512         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39513         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39514         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39515
39516 2007-01-24  Bruno Haible  <bruno@clisp.org>
39517
39518         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39519         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39520         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39521         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39522         gl_FUNC_FTS_CORE.
39523         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39524         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39525         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39526         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39527         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39528         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39529         gl_FUNC_FCHOWNAT.
39530         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39531         gl_FUNC_STRFTIME.
39532         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39533         Reported by Ralf Wildenhues.
39534
39535 2007-01-24  Bruno Haible  <bruno@clisp.org>
39536
39537         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39538         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39539         gl_GETADDRINFO.
39540         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39541         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39542         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39543
39544 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39545
39546         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39547         Don't use 'exit'; just return from 'main'.
39548         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39549
39550         * lib/fnmatch_.h: Readjust white space and comments to match
39551         glibc, to avoid spurious diffs.
39552
39553 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39554
39555         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39556         2004-12-01 change by Jakub Jelinek, since this code won't compile
39557         if !LIBC.  Problem reported by Bob Proulx.
39558
39559 2007-01-23  Bruno Haible  <bruno@clisp.org>
39560
39561         * lib/striconveh.c: Include c-strcaseeq.h.
39562         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39563         * modules/striconveh (Depends-on): Add c-strcaseeq.
39564
39565 2007-01-23  Bruno Haible  <bruno@clisp.org>
39566
39567         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39568
39569         * modules/c-strcaseeq: New file.
39570         * lib/c-strcaseeq.h: New file.
39571
39572         * modules/streq: New file.
39573         * lib/streq.h: New file.
39574
39575 2007-01-23  Bruno Haible  <bruno@clisp.org>
39576
39577         * modules/striconveha-tests: New file.
39578         * tests/test-striconveha.c: New file.
39579
39580         * lib/striconveha.h: Include <stdbool.h>.
39581         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39582         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39583         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39584         (mem_iconveha): New function.
39585         (str_iconveha_notranslit): Renamed from str_iconveha.
39586         (str_iconveha): New function.
39587         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39588         c-strcase.
39589
39590 2007-01-23  Bruno Haible  <bruno@clisp.org>
39591
39592         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39593         encodings without forgiving before trying any encoding with handler.
39594         (str_iconveha): Try all encodings without forgiving before trying any
39595         encoding with handler.
39596
39597 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39598
39599         Import the following changes from libc.
39600
39601         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39602
39603         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39604
39605         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39606
39607         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39608         normal_bracket label.
39609
39610         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39611
39612         [BZ #361]
39613         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39614         to normal_bracket after fetching the next character.
39615
39616 2007-01-22  Bruno Haible  <bruno@clisp.org>
39617
39618         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39619         argument.
39620         * lib/striconveh.c (iconv_carefully_1): New function.
39621         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39622         argument.
39623         (str_cd_iconveh): Update.
39624         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39625         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39626         * tests/test-striconveh.c (MAGIC): New macro.
39627         (new_offsets): New function.
39628         (main): Test call with and without offsets.
39629
39630 2007-01-22  Bruno Haible  <bruno@clisp.org>
39631
39632         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39633         * modules/sys_select (Makefile.am): Likewise.
39634         * modules/sys_socket (Makefile.am): Likewise.
39635         * modules/sys_time (Makefile.am): Likewise.
39636
39637 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39638
39639         * modules/gettimeofday (License): Change from GPL to LGPL, since
39640         gettimeofday is a library function.
39641
39642 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39643
39644         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39645
39646 2007-01-21  Bruno Haible  <bruno@clisp.org>
39647
39648         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39649
39650 2007-01-21  Bruno Haible  <bruno@clisp.org>
39651
39652         * modules/striconveha: New file.
39653         * lib/striconveha.h: New file.
39654         * lib/striconveha.c: New file.
39655         * MODULES.html.sh (Internationalization functions): Add striconveha.
39656         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39657         string.
39658         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39659
39660 2007-01-21  Bruno Haible  <bruno@clisp.org>
39661
39662         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39663         * lib/striconveh.c (str_iconveh): Likewise.
39664
39665 2007-01-21  Bruno Haible  <bruno@clisp.org>
39666
39667         * lib/striconveh.h (mem_iconveh): New declaration.
39668         * lib/striconveh.c (mem_iconveh): New function.
39669         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39670
39671 2007-01-21  Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39674
39675         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39676         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39677         original result buffer.
39678         (str_cd_iconveh): Update.
39679         * tests/test-striconveh.c (main): Update.
39680
39681         * lib/striconv.h (mem_cd_iconv): Change specification.
39682         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39683         result buffer.
39684         (str_cd_iconv): Update.
39685         * tests/test-striconv.c (main): Update.
39686
39687 2007-01-21  Bruno Haible  <bruno@clisp.org>
39688
39689         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39690
39691 2007-01-20  Jim Meyering  <jim@meyering.net>
39692
39693         * lib/userspec.c (parse_with_separator): If a user or group string
39694         starts with "+", skip the corresponding name-to-ID look-up, since
39695         such a look-up must fail: user and group names may not include "+".
39696
39697 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39698
39699         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39700         since we now assume the sys_time module.
39701         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39702         check for sys/time.h; no longer needed.
39703         * modules/poll (Depends-on): Depend on sys_time.
39704
39705 2007-01-18  Bruno Haible  <bruno@clisp.org>
39706
39707         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39708         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39709
39710         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39711         gettimeofday.
39712
39713         * tests/test-gettimeofday.c: Include <time.h>.
39714         (dummy): Remove variable.
39715
39716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39717         gl_HEADER_SYS_TIME_H.
39718         (gl_HEADER_SYS_TIME_H): New macro.
39719
39720         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39721         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39723         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39724         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39726         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39727         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39728         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39729         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39730         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39731
39732         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39733         last change; it caused a compilation error when cross-compiling to
39734         Cygwin.
39735
39736 2007-01-18  Jim Meyering  <jim@meyering.net>
39737
39738         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39739         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39740         than the race-prone "test -d sys || mkdir sys".
39741         (configure.ac): Use AC_PROG_MKDIR_P.
39742         * modules/sys_select: Likewise.
39743         * modules/sys_socket: Likewise.
39744         * modules/sys_time: Likewise.
39745
39746 2007-01-18  Eric Blake  <ebb9@byu.net>
39747
39748         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39749         replace gettimeofday.
39750         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39751         name, to avoid infinite recursion.
39752
39753 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39754
39755         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39756         module sys_time.
39757         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39758         assume timespec.h defines struct timeval.
39759         * lib/settime.c: Likewise.
39760         * lib/utimens.c: Likewise.
39761         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39762         since we now assume the gettimeofday module.
39763         * lib/tempname.c (__gen_tempname): Likewise.
39764         * lib/gettimeofday.h: Remove.
39765         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39766         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39767         Include <time.h>, for 'time()'.
39768         (localtime_buffer_addr): Also use this workaround if
39769         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39770         to simplify the uses.  All uses changed.
39771         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39772         that #undef is inside {}, and 'const' follows type name consistently.
39773         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39774         (gettimeofday): Do not use the maximum possible value for
39775         tv->tv_usec, since that might break usages other than ls.c.
39776         Instead, we'll leave ls.c alone.  This undoes today's patch
39777         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39778         we've never observed the problem but might as well keep the
39779         canary.
39780         * lib/nanosleep.c: Include timespec.h first, for interface check.
39781         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39782         now assume the sys_time module.
39783         * lib/tempname.c: Likewise.
39784         * lib/timespec.h: Likewise.
39785         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39786         needed.
39787         * lib/strftime.c: Likewise.
39788         * lib/timespec.h: Likewise.
39789         * lib/posixtm.c: Include posixtm.h first, for interface check.
39790         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39791         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39792         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39793         * lib/sys_time_.h: New file.
39794         * lib/timespec.h (struct timespec): Use long int, not long.
39795         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39796         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39797         Remove obsolescent call to AC_HEADER_TIME.
39798         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39800         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39801         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39802         Likewise.
39803         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39804         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39806         into the sys_time module.  Check for gettimeofday just once.
39807         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39808         for gettimeofday signature to just check the signature.  Merely
39809         compile it, since linking doesn't test signature.  Improve test for
39810         whether gettimeofday.o is actually needed.
39811         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39812         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39813         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39814         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39815         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39816         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39817         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39818         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39819         than worrying about sys/time.h.
39820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39821         Don't bother worrying about TIME_WITH_SYS_TIME.
39822         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39823         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39824         * m4/sys_time_h.m4: New file.
39825         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39826         Don't include sys/time.h.  Return from main rather than exiting.
39827         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39828         all uses changed.
39829         * modules/gethrxtime (Depends-on): Add sys_time.
39830         * modules/gettime (Depends-on): Likewise.
39831         * modules/gettimeofday (Depends-on): Likewise.
39832         * modules/nanosleep (Depends-on): Likewise.
39833         * modules/settime (Depends-on): Likewise.
39834         * modules/tempname (Depends-on): Likewise.
39835         * modules/utimens (Depends-on): Likewise.
39836         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39837         (Include:) Change back to <sys/time.h>.
39838         (Maintainer:) Add self.
39839         * modules/sys_time: New file.
39840         * modules/tempname (Depends-on): Add gettimeofday.
39841         * tests/test-gettimeofday.c: Include <sys/time.h>
39842         rather than gettimeofday.h.
39843
39844 2007-01-17  Bruno Haible  <bruno@clisp.org>
39845
39846         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39847         the license default to GPL.
39848         (func_create_testdir): Don't complain if a module is LGPL and its
39849         tests module depends on GPLed modules.
39850
39851 2007-01-17  Bruno Haible  <bruno@clisp.org>
39852
39853         * lib/gettimeofday.c (gettimeofday): Add code for the case
39854         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39855         maximum possible value for tv->tv_usec, rather than the minimum one.
39856
39857 2005-10-08  Martin Lambers  <marlam@marlam.de>
39858 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39859 2007-01-16  Bruno Haible  <bruno@clisp.org>
39860
39861         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39862         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39863         gl_FUNC_GETTIMEOFDAY.
39864         (Include): Add gettimeofday.h.
39865         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39866         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39867         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39868         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39869         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39870         * lib/gettimeofday.h: New file.
39871         * lib/gettimeofday.c: Include <sys/timeb.h>.
39872         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39873         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39874         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39875         fall back on time().
39876
39877         * tests/test-gettimeofday.c: New file.
39878         * modules/gettimeofday-tests: New file.
39879
39880 2007-01-16  Eric Blake  <ebb9@byu.net>
39881
39882         * modules/fnmatch (Depends-on): Depend on wchar.
39883         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39884         * m4/fnmatch.m4: Likewise.
39885         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39886         * m4/mbchar.m4: Likewise.
39887         * modules/mbswidth (Depends-on): Depend on wchar.
39888         * lib/mbswidth.c: Assume <wchar.h>.
39889         * m4/mbswidth.m4: Likewise.
39890         * modules/quotearg (Depends-on): Depend on wchar.
39891         * lib/quotearg.c: Assume <wchar.h>.
39892         * m4/quotearg.m4: Likewise.
39893         * modules/regex (Depends-on): Depend on wchar.
39894         * lib/regex_internal.h: Assume <wchar.h>.
39895         * m4/regex.m4: Likewise.
39896         * modules/stdint (Depends-on): Depend on wchar.
39897         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39898         * m4/stdint.m4: Likewise.
39899         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39900         * modules/strftime (Depends-on): Depend on wchar.
39901         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39902         * modules/strtol (Depends-on): Depend on wchar.
39903         * lib/strtol.c: Assume <wchar.h>.
39904         * modules/wcwidth (Depends-on): Depend on wchar.
39905         * lib/wcwidth.h: Assume <wchar.h>.
39906         * m4/wcwidth.m4: Likewise.
39907
39908 2007-01-16  Bruno Haible  <bruno@clisp.org>
39909
39910         * modules/csharpexec-script: New, created from...
39911         * modules/csharpexec: ... this.
39912
39913 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39914
39915         * modules/javaexec-script: New, created from...
39916         * modules/javaexec: ... this.
39917
39918 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39919
39920         * modules/poll (Dependencies): Add sys_select.
39921
39922 2007-01-15  Jim Meyering  <jim@meyering.net>
39923
39924         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39925         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39926         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39927         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39928
39929 2007-01-15  Bruno Haible  <bruno@clisp.org>
39930
39931         * modules/striconveh: New file.
39932         * lib/striconveh.h: New file.
39933         * lib/striconveh.c: New file.
39934         * MODULES.html.sh (Internationalization functions): Add striconveh.
39935
39936         * modules/striconveh-tests: New file.
39937         * tests/test-striconveh.c: New file.
39938
39939 2007-01-15  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39942         not from GNU libiconv or GNU libc.
39943
39944 2007-01-15  Bruno Haible  <bruno@clisp.org>
39945
39946         * doc/gnulib-intro.texi (Copyright): Explain the different license
39947         terms for module descriptions, autoconf macros, tests, documentation.
39948
39949 2007-01-14  Bruno Haible  <bruno@clisp.org>
39950
39951         * modules/striconv-tests: New file.
39952         * tests/test-striconv.c: New file.
39953
39954 2007-01-14  Bruno Haible  <bruno@clisp.org>
39955
39956         * modules/iconv-tests: New file.
39957         * tests/test-iconv.c: New file.
39958
39959 2007-01-14  Bruno Haible  <bruno@clisp.org>
39960
39961         * gnulib-tool (func_get_license): For test modules, use the license of
39962         the main module.
39963
39964 2007-01-14  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39967         if iconv is found to exist.
39968
39969 2007-01-14  Bruno Haible  <bruno@clisp.org>
39970
39971         * modules/c-ctype-tests: New file.
39972         * tests/test-c-ctype.c: New file.
39973
39974 2007-01-14  Bruno Haible  <bruno@clisp.org>
39975
39976         * modules/binary-io-tests: New file.
39977         * tests/test-binary-io.sh: New file.
39978         * tests/test-binary-io.c: New file.
39979
39980 2007-01-14  Bruno Haible  <bruno@clisp.org>
39981
39982         * modules/array-oset-tests: New file.
39983         * tests/test-array_oset.c: New file.
39984
39985 2007-01-14  Bruno Haible  <bruno@clisp.org>
39986
39987         * modules/array-list-tests: New file.
39988         * tests/test-array_list.c: New file.
39989
39990 2007-01-14  Bruno Haible  <bruno@clisp.org>
39991
39992         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39993         and make.
39994         Reported by Simon Josefsson in
39995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39996
39997 2007-01-14  Bruno Haible  <bruno@clisp.org>
39998
39999         * modules/allocsa-tests: New file.
40000         * tests/test-allocsa.c: New file.
40001
40002 2007-01-14  Bruno Haible  <bruno@clisp.org>
40003
40004         * modules/fchdir (Depends-on): Add absolute-header.
40005         * modules/unistd (Depends-on): Likewise.
40006
40007 2006-12-30  Bruno Haible  <bruno@clisp.org>
40008
40009         * modules/fchdir: New file.
40010         * modules/unistd (Files): Add lib/unistd_.h.
40011         (Makefile.am): Generate unistd.h from unistd_.h.
40012         * lib/fchdir.c: New file.
40013         * lib/dirent_.h: New file.
40014         * lib/unistd_.h: New file.
40015         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40016         * m4/fchdir.m4: New file.
40017         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40018         (gl_HEADER_UNISTD): Invoke it.
40019         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40020         function.
40021         * lib/backupfile.c (opendir, closedir): Undefine.
40022         * lib/chown.c (open, close): Undefine.
40023         * lib/clean-temp.c (open, close): Undefine.
40024         * lib/copy-file.c (open, close): Undefine.
40025         * lib/execute.c (open, close): Undefine.
40026         * lib/fsusage.c (open, close): Undefine.
40027         * lib/gc-gnulib.c (open, close): Undefine.
40028         * lib/getcwd.c (opendir, closedir): Undefine.
40029         * lib/glob.c (opendir, closedir): Undefine.
40030         * lib/javacomp.c (open, close): Undefine.
40031         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40032         * lib/openat-proc.c (open, close): Undefine.
40033         * lib/pagealign_alloc.c (open, close): Undefine.
40034         * lib/pipe.c (open, close): Undefine.
40035         * lib/progreloc.c (open, close): Undefine.
40036         * lib/savedir.c (opendir, closedir): Undefine.
40037         * lib/utime.c (open, close): Undefine.
40038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40039
40040 2007-01-10  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40043
40044 2007-01-12  Eric Blake  <ebb9@byu.net>
40045
40046         Provide a robust <wchar.h>.  Further simplifications are now
40047         possible in other modules, but not included here.
40048         * modules/wchar: New module.
40049         * m4/wchar.m4: New file.
40050         * lib/wchar_.h: Likewise.
40051         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40052         of the new module.
40053         * MODULES.html.sh (Extended multibyte and wide character utilities):
40054         New section.
40055
40056 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40057
40058         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40059         to a reasonable default for memory allocation.
40060         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40061         file system that reports garbage st_size values for symlinks.
40062         Problem reported by Liyang Hu.
40063
40064 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40065
40066         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40067         Emacs .#* auto-save files).
40068
40069 2007-01-11  Bruno Haible  <bruno@clisp.org>
40070
40071         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40072         directory.
40073
40074 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40075
40076         Use @...@ consistently in lib/wctype_.h.
40077         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40078         on it being set to 1 or 0.
40079         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40080         go back to AC_SUBSTing it.
40081         * modules/wctype (Makefile.am): Undo previous change.
40082
40083 2007-01-10  Eric Blake  <ebb9@byu.net>
40084
40085         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40086         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40087         * modules/wctype (Makefile.am): Likewise.
40088         Reported by Chris McGuire.
40089
40090 2007-01-10  Jim Meyering  <jim@meyering.net>
40091
40092         fts.c: a small readability/maintainability improvement
40093         * lib/fts.c (fts_read): Make this code slightly more readable and
40094         maintainable by hoisting the "sp->fts_cur = p" assignments to
40095         immediately follow the statements that set P.  Derived from
40096         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40097
40098 2007-01-10  Eric Blake  <ebb9@byu.net>
40099
40100         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40101         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40103         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40104         Reported by Chris McGuire.
40105
40106 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40107
40108         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40109         in sed script.
40110
40111 2007-01-09  Bruno Haible  <bruno@clisp.org>
40112
40113         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40114         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40115         variables.
40116         (func_module): Use them.
40117
40118 2007-01-09  Bruno Haible  <bruno@clisp.org>
40119
40120         * modules/unistr/base: New file.
40121         * lib/unistr.h: New file.
40122
40123         * modules/unistr/u8-to-u16: New file.
40124         * lib/unistr/u8-to-u16.c: New file.
40125
40126         * modules/unistr/u8-to-u32: New file.
40127         * lib/unistr/u8-to-u32.c: New file.
40128
40129         * modules/unistr/u16-to-u8: New file.
40130         * lib/unistr/u16-to-u8.c: New file.
40131
40132         * modules/unistr/u16-to-u32: New file.
40133         * lib/unistr/u16-to-u32.c: New file.
40134
40135         * modules/unistr/u32-to-u8: New file.
40136         * lib/unistr/u32-to-u8.c: New file.
40137
40138         * modules/unistr/u32-to-u16: New file.
40139         * lib/unistr/u32-to-u16.c: New file.
40140
40141         * modules/unistr/u8-check: New file.
40142         * modules/unistr/u16-check: New file.
40143         * modules/unistr/u32-check: New file.
40144         * lib/unistr/u8-check.c: New file.
40145         * lib/unistr/u16-check.c: New file.
40146         * lib/unistr/u32-check.c: New file.
40147
40148         * modules/unistr/u8-chr: New file.
40149         * modules/unistr/u16-chr: New file.
40150         * modules/unistr/u32-chr: New file.
40151         * lib/unistr/u8-chr.c: New file.
40152         * lib/unistr/u16-chr.c: New file.
40153         * lib/unistr/u32-chr.c: New file.
40154
40155         * modules/unistr/u8-cmp: New file.
40156         * modules/unistr/u16-cmp: New file.
40157         * modules/unistr/u32-cmp: New file.
40158         * lib/unistr/u8-cmp.c: New file.
40159         * lib/unistr/u16-cmp.c: New file.
40160         * lib/unistr/u32-cmp.c: New file.
40161
40162         * modules/unistr/u8-cpy: New file.
40163         * modules/unistr/u16-cpy: New file.
40164         * modules/unistr/u32-cpy: New file.
40165         * lib/unistr/u8-cpy.c: New file.
40166         * lib/unistr/u16-cpy.c: New file.
40167         * lib/unistr/u32-cpy.c: New file.
40168         * lib/unistr/u-cpy.h: New file.
40169
40170         * modules/unistr/u8-cpy-alloc: New file.
40171         * modules/unistr/u16-cpy-alloc: New file.
40172         * modules/unistr/u32-cpy-alloc: New file.
40173         * lib/unistr/u8-cpy-alloc.c: New file.
40174         * lib/unistr/u16-cpy-alloc.c: New file.
40175         * lib/unistr/u32-cpy-alloc.c: New file.
40176         * lib/unistr/u-cpy-alloc.h: New file.
40177
40178         * modules/unistr/u8-endswith: New file.
40179         * modules/unistr/u16-endswith: New file.
40180         * modules/unistr/u32-endswith: New file.
40181         * lib/unistr/u8-endswith.c: New file.
40182         * lib/unistr/u16-endswith.c: New file.
40183         * lib/unistr/u32-endswith.c: New file.
40184         * lib/unistr/u-endswith.h: New file.
40185
40186         * modules/unistr/u8-mblen: New file.
40187         * modules/unistr/u16-mblen: New file.
40188         * modules/unistr/u32-mblen: New file.
40189         * lib/unistr/u8-mblen.c: New file.
40190         * lib/unistr/u16-mblen.c: New file.
40191         * lib/unistr/u32-mblen.c: New file.
40192
40193         * modules/unistr/u8-mbtouc: New file.
40194         * modules/unistr/u16-mbtouc: New file.
40195         * modules/unistr/u32-mbtouc: New file.
40196         * lib/unistr/u8-mbtouc.c: New file.
40197         * lib/unistr/u16-mbtouc.c: New file.
40198         * lib/unistr/u32-mbtouc.c: New file.
40199
40200         * modules/unistr/u8-mbtouc-safe: New file.
40201         * modules/unistr/u16-mbtouc-safe: New file.
40202         * modules/unistr/u32-mbtouc-safe: New file.
40203         * lib/unistr/u8-mbtouc-safe.c: New file.
40204         * lib/unistr/u16-mbtouc-safe.c: New file.
40205         * lib/unistr/u32-mbtouc-safe.c: New file.
40206
40207         * modules/unistr/u8-move: New file.
40208         * modules/unistr/u16-move: New file.
40209         * modules/unistr/u32-move: New file.
40210         * lib/unistr/u8-move.c: New file.
40211         * lib/unistr/u16-move.c: New file.
40212         * lib/unistr/u32-move.c: New file.
40213         * lib/unistr/u-move.h: New file.
40214
40215         * modules/unistr/u8-next: New file.
40216         * modules/unistr/u16-next: New file.
40217         * modules/unistr/u32-next: New file.
40218         * lib/unistr/u8-next.c: New file.
40219         * lib/unistr/u16-next.c: New file.
40220         * lib/unistr/u32-next.c: New file.
40221
40222         * modules/unistr/u8-prev: New file.
40223         * modules/unistr/u16-prev: New file.
40224         * modules/unistr/u32-prev: New file.
40225         * lib/unistr/u8-prev.c: New file.
40226         * lib/unistr/u16-prev.c: New file.
40227         * lib/unistr/u32-prev.c: New file.
40228
40229         * modules/unistr/u8-set: New file.
40230         * modules/unistr/u16-set: New file.
40231         * modules/unistr/u32-set: New file.
40232         * lib/unistr/u8-set.c: New file.
40233         * lib/unistr/u16-set.c: New file.
40234         * lib/unistr/u32-set.c: New file.
40235         * lib/unistr/u-set.h: New file.
40236
40237         * modules/unistr/u8-startswith: New file.
40238         * modules/unistr/u16-startswith: New file.
40239         * modules/unistr/u32-startswith: New file.
40240         * lib/unistr/u8-startswith.c: New file.
40241         * lib/unistr/u16-startswith.c: New file.
40242         * lib/unistr/u32-startswith.c: New file.
40243         * lib/unistr/u-startswith.h: New file.
40244
40245         * modules/unistr/u8-stpcpy: New file.
40246         * modules/unistr/u16-stpcpy: New file.
40247         * modules/unistr/u32-stpcpy: New file.
40248         * lib/unistr/u8-stpcpy.c: New file.
40249         * lib/unistr/u16-stpcpy.c: New file.
40250         * lib/unistr/u32-stpcpy.c: New file.
40251         * lib/unistr/u-stpcpy.h: New file.
40252
40253         * modules/unistr/u8-stpncpy: New file.
40254         * modules/unistr/u16-stpncpy: New file.
40255         * modules/unistr/u32-stpncpy: New file.
40256         * lib/unistr/u8-stpncpy.c: New file.
40257         * lib/unistr/u16-stpncpy.c: New file.
40258         * lib/unistr/u32-stpncpy.c: New file.
40259         * lib/unistr/u-stpncpy.h: New file.
40260
40261         * modules/unistr/u8-strcat: New file.
40262         * modules/unistr/u16-strcat: New file.
40263         * modules/unistr/u32-strcat: New file.
40264         * lib/unistr/u8-strcat.c: New file.
40265         * lib/unistr/u16-strcat.c: New file.
40266         * lib/unistr/u32-strcat.c: New file.
40267         * lib/unistr/u-strcat.h: New file.
40268
40269         * modules/unistr/u8-strchr: New file.
40270         * modules/unistr/u16-strchr: New file.
40271         * modules/unistr/u32-strchr: New file.
40272         * lib/unistr/u8-strchr.c: New file.
40273         * lib/unistr/u16-strchr.c: New file.
40274         * lib/unistr/u32-strchr.c: New file.
40275
40276         * modules/unistr/u8-strcmp: New file.
40277         * modules/unistr/u16-strcmp: New file.
40278         * modules/unistr/u32-strcmp: New file.
40279         * lib/unistr/u8-strcmp.c: New file.
40280         * lib/unistr/u16-strcmp.c: New file.
40281         * lib/unistr/u32-strcmp.c: New file.
40282
40283         * modules/unistr/u8-strcpy: New file.
40284         * modules/unistr/u16-strcpy: New file.
40285         * modules/unistr/u32-strcpy: New file.
40286         * lib/unistr/u8-strcpy.c: New file.
40287         * lib/unistr/u16-strcpy.c: New file.
40288         * lib/unistr/u32-strcpy.c: New file.
40289         * lib/unistr/u-strcpy.h: New file.
40290
40291         * modules/unistr/u8-strcspn: New file.
40292         * modules/unistr/u16-strcspn: New file.
40293         * modules/unistr/u32-strcspn: New file.
40294         * lib/unistr/u8-strcspn.c: New file.
40295         * lib/unistr/u16-strcspn.c: New file.
40296         * lib/unistr/u32-strcspn.c: New file.
40297         * lib/unistr/u-strcspn.h: New file.
40298
40299         * modules/unistr/u8-strdup: New file.
40300         * modules/unistr/u16-strdup: New file.
40301         * modules/unistr/u32-strdup: New file.
40302         * lib/unistr/u8-strdup.c: New file.
40303         * lib/unistr/u16-strdup.c: New file.
40304         * lib/unistr/u32-strdup.c: New file.
40305         * lib/unistr/u-strdup.h: New file.
40306
40307         * modules/unistr/u8-strlen: New file.
40308         * modules/unistr/u16-strlen: New file.
40309         * modules/unistr/u32-strlen: New file.
40310         * lib/unistr/u8-strlen.c: New file.
40311         * lib/unistr/u16-strlen.c: New file.
40312         * lib/unistr/u32-strlen.c: New file.
40313         * lib/unistr/u-strlen.h: New file.
40314
40315         * modules/unistr/u8-strmblen: New file.
40316         * modules/unistr/u16-strmblen: New file.
40317         * modules/unistr/u32-strmblen: New file.
40318         * lib/unistr/u8-strmblen.c: New file.
40319         * lib/unistr/u16-strmblen.c: New file.
40320         * lib/unistr/u32-strmblen.c: New file.
40321
40322         * modules/unistr/u8-strmbtouc: New file.
40323         * modules/unistr/u16-strmbtouc: New file.
40324         * modules/unistr/u32-strmbtouc: New file.
40325         * lib/unistr/u8-strmbtouc.c: New file.
40326         * lib/unistr/u16-strmbtouc.c: New file.
40327         * lib/unistr/u32-strmbtouc.c: New file.
40328
40329         * modules/unistr/u8-strncat: New file.
40330         * modules/unistr/u16-strncat: New file.
40331         * modules/unistr/u32-strncat: New file.
40332         * lib/unistr/u8-strncat.c: New file.
40333         * lib/unistr/u16-strncat.c: New file.
40334         * lib/unistr/u32-strncat.c: New file.
40335         * lib/unistr/u-strncat.h: New file.
40336
40337         * modules/unistr/u8-strncmp: New file.
40338         * modules/unistr/u16-strncmp: New file.
40339         * modules/unistr/u32-strncmp: New file.
40340         * lib/unistr/u8-strncmp.c: New file.
40341         * lib/unistr/u16-strncmp.c: New file.
40342         * lib/unistr/u32-strncmp.c: New file.
40343
40344         * modules/unistr/u8-strncpy: New file.
40345         * modules/unistr/u16-strncpy: New file.
40346         * modules/unistr/u32-strncpy: New file.
40347         * lib/unistr/u8-strncpy.c: New file.
40348         * lib/unistr/u16-strncpy.c: New file.
40349         * lib/unistr/u32-strncpy.c: New file.
40350         * lib/unistr/u-strncpy.h: New file.
40351
40352         * modules/unistr/u8-strnlen: New file.
40353         * modules/unistr/u16-strnlen: New file.
40354         * modules/unistr/u32-strnlen: New file.
40355         * lib/unistr/u8-strnlen.c: New file.
40356         * lib/unistr/u16-strnlen.c: New file.
40357         * lib/unistr/u32-strnlen.c: New file.
40358         * lib/unistr/u-strnlen.h: New file.
40359
40360         * modules/unistr/u8-strpbrk: New file.
40361         * modules/unistr/u16-strpbrk: New file.
40362         * modules/unistr/u32-strpbrk: New file.
40363         * lib/unistr/u8-strpbrk.c: New file.
40364         * lib/unistr/u16-strpbrk.c: New file.
40365         * lib/unistr/u32-strpbrk.c: New file.
40366         * lib/unistr/u-strpbrk.h: New file.
40367
40368         * modules/unistr/u8-strrchr: New file.
40369         * modules/unistr/u16-strrchr: New file.
40370         * modules/unistr/u32-strrchr: New file.
40371         * lib/unistr/u8-strrchr.c: New file.
40372         * lib/unistr/u16-strrchr.c: New file.
40373         * lib/unistr/u32-strrchr.c: New file.
40374
40375         * modules/unistr/u8-strspn: New file.
40376         * modules/unistr/u16-strspn: New file.
40377         * modules/unistr/u32-strspn: New file.
40378         * lib/unistr/u8-strspn.c: New file.
40379         * lib/unistr/u16-strspn.c: New file.
40380         * lib/unistr/u32-strspn.c: New file.
40381         * lib/unistr/u-strspn.h: New file.
40382
40383         * modules/unistr/u8-strstr: New file.
40384         * modules/unistr/u16-strstr: New file.
40385         * modules/unistr/u32-strstr: New file.
40386         * lib/unistr/u8-strstr.c: New file.
40387         * lib/unistr/u16-strstr.c: New file.
40388         * lib/unistr/u32-strstr.c: New file.
40389         * lib/unistr/u-strstr.h: New file.
40390
40391         * modules/unistr/u8-strtok: New file.
40392         * modules/unistr/u16-strtok: New file.
40393         * modules/unistr/u32-strtok: New file.
40394         * lib/unistr/u8-strtok.c: New file.
40395         * lib/unistr/u16-strtok.c: New file.
40396         * lib/unistr/u32-strtok.c: New file.
40397         * lib/unistr/u-strtok.h: New file.
40398
40399         * modules/unistr/u8-uctomb: New file.
40400         * modules/unistr/u16-uctomb: New file.
40401         * modules/unistr/u32-uctomb: New file.
40402         * lib/unistr/u8-uctomb.c: New file.
40403         * lib/unistr/u16-uctomb.c: New file.
40404         * lib/unistr/u32-uctomb.c: New file.
40405
40406         * MODULES.html.sh (Unicode string functions): Add the new modules.
40407
40408 2007-01-08  Bruno Haible  <bruno@clisp.org>
40409
40410         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40411         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40412         subdirectories.
40413
40414 2007-01-08  Karl Berry  <karl@gnu.org>
40415
40416         * doc/error.texi: mention that main() fns must set program_name
40417         when progname is used.
40418
40419 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40420
40421         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40422         WCTYPE_H is empty, for the benefit of builds from non-distclean
40423         directories.  Problem reported by Eric Blake in
40424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40425
40426 2007-01-08  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40429         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40430         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40431         PROVIDE_CANONICALIZE_FILENAME_MODE.
40432         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40433
40434 2007-01-08  Bruno Haible  <bruno@clisp.org>
40435
40436         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40437         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40438         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40439         * lib/fts.c: Likewise.
40440         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40441
40442 2006-12-25  Bruno Haible  <bruno@clisp.org>
40443
40444         * modules/utf8-ucs4-safe: New file.
40445         * lib/utf8-ucs4-safe.h: New file.
40446         * lib/unistr/utf8-ucs4-safe.c: New file.
40447
40448         * modules/utf16-ucs4-safe: New file.
40449         * lib/utf16-ucs4-safe.h: New file.
40450         * lib/unistr/utf16-ucs4-safe.c: New file.
40451
40452         * MODULES.html.sh (Unicode string functions): Add the new modules.
40453
40454 2007-01-08  Bruno Haible  <bruno@clisp.org>
40455
40456         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40457         (Depends-on): Add unitypes.
40458         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40459         (u8_mbtouc_aux): Move out to separate file.
40460         (u8_mbtouc): Use ucs4_t, uint8_t types.
40461         * lib/unistr/utf8-ucs4.c: New file.
40462
40463         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40464         (Depends-on): Add unitypes.
40465         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40466         (u16_mbtouc_aux): Move out to separate file.
40467         (u16_mbtouc): Use ucs4_t, uint16_t types.
40468         * lib/unistr/utf16-ucs4.c: New file.
40469
40470         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40471         (Depends-on): Add unitypes.
40472         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40473         (u8_uctomb_aux): Move out to separate file.
40474         (u8_uctomb): Use ucs4_t, uint8_t types.
40475         * lib/unistr/ucs4-utf8.c: New file.
40476
40477         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40478         (Depends-on): Add unitypes.
40479         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40480         (u16_uctomb_aux): Move out to separate file.
40481         (u16_uctomb): Use ucs4_t, uint16_t types.
40482         * lib/unistr/ucs4-utf16.c: New file.
40483
40484 2006-12-25  Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/unitypes: New file.
40487         * lib/unitypes.h: New file.
40488         * MODULES.html.sh (func_all_modules): New section "Unicode string
40489         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40490         this section. Add unitypes.
40491
40492 2007-01-08  Bruno Haible  <bruno@clisp.org>
40493
40494         Avoid variable names that conflict with those from libtool.
40495         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40496         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40497         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40498         library_names_spec to acl_library_names_spec, hardcode_* to
40499         acl_hardcode_*.
40500         Reported by Ralf Wildenhues.
40501
40502 2007-01-08  Bruno Haible  <bruno@clisp.org>
40503
40504         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40505         definition.
40506         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40507         definition.
40508         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40509         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40510         definition.
40511         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40512         definition.
40513         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40514         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40515         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40516         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40517         definition.
40518         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40519         definition.
40520         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40521         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40522         GC_USE_<algorithm>.
40523         * lib/gc-libgcrypt.c: Likewise.
40524         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40525         * modules/gc-arctwo (configure.ac): Likewise.
40526         * modules/gc-des (configure.ac): Likewise.
40527         * modules/gc-hmac-md5 (configure.ac): Likewise.
40528         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40529         * modules/gc-md2 (configure.ac): Likewise.
40530         * modules/gc-md4 (configure.ac): Likewise.
40531         * modules/gc-md5 (configure.ac): Likewise.
40532         * modules/gc-random (configure.ac): Likewise.
40533         * modules/gc-rijndael (configure.ac): Likewise.
40534         * modules/gc-sha1 (configure.ac): Likewise.
40535
40536 2007-01-08  Bruno Haible  <bruno@clisp.org>
40537
40538         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40539         macro definition.
40540         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40541         definition.
40542         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40543         definition.
40544         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40545         * modules/fcntl-safer (configure.ac): Likewise.
40546         * modules/fopen-safer (configure.ac): Likewise.
40547         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40548         GNULIB_FWRITEERROR macro definition.
40549
40550 2007-01-08  Bruno Haible  <bruno@clisp.org>
40551
40552         * m4/gnulib-common.m4: New file.
40553         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40554         (func_get_filelist): Add m4/gnulib-common.m4.
40555
40556 2007-01-08  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40559         command.
40560
40561 2007-01-08  Jim Meyering  <jim@meyering.net>
40562
40563         Use a more robust test for a "can't happen" condition.
40564         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40565         narrowed the st_size value.  Presuming the "can't happen" condition
40566         is true, that narrowing could conceivably convert an invalid st_size
40567         value into a valid one.  Instead, use a change based on Matthew
40568         Woehlke's original patch.
40569
40570         Slight readability improvement: use an assert-like macro
40571         in place of literal "abort ()" uses.
40572         * lib/fts.c (fts_assert): Define.
40573         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40574         Use this macro instead of a bare 'abort'.
40575
40576 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40577
40578         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40579         simply work around them.
40580         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40581         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40582         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40583         declaring.
40584         Don't bother to define as macros, since the standard doesn't require it.
40585         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40586         longer worry about IRIX 5.3.
40587         (HAVE_WCTYPE_CTMP_BUG): Remove.
40588
40589 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40590
40591         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40592         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40593         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40594         Problems reported by Georg Schwarz for IRIX 5.3.
40595
40596         * gnulib-tool (autoconf_minversion): Take the maximum version number
40597         found, not the minimum.  Problem reported by James Youngman.
40598
40599 2007-01-03  Karl Berry  <karl@gnu.org>
40600
40601         * doc/error.texi: new file, explaining interaction with progname.
40602         * doc/gnulib.texi: include it.  Update copyright.
40603
40604 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40605
40606         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40607         AC_CANONICAL_HOST, to improve autobuild outputs.
40608
40609 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40610             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40611
40612         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40613         sockets, server sockets, and other file descriptors.  Count errors
40614         to compute the return value.  Reorder the code a bit to be easier
40615         to follow.  Don't set event bits that were not requested (except
40616         POLLERR and POLLHUP).
40617
40618 2007-01-01  Bruno Haible  <bruno@clisp.org>
40619
40620         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40621
40622 2007-01-03  Jim Meyering  <jim@meyering.net>
40623
40624         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40625
40626 2007-01-02  Bruno Haible  <bruno@clisp.org>
40627
40628         * modules/settime (Include): Require timespec.h.
40629         * modules/nanosleep (Include): Likewise.
40630
40631 2007-01-01  Bruno Haible  <bruno@clisp.org>
40632
40633         * gnulib-tool (func_emit_copyright_notice): Bump year.
40634         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40635
40636 2007-01-01  Bruno Haible  <bruno@clisp.org>
40637
40638         Improve support for OpenBSD.
40639         * build-aux/config.rpath (libname_spec): Export.
40640         (library_names_spec): New variable. Export.
40641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40642         library_names_spec from the config.rpath output. Locate shared library
40643         through the name pattern in library_names_spec.
40644
40645 2007-01-01  Eric Blake  <ebb9@byu.net>
40646
40647         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40648
40649 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40650
40651         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40652         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40653         assume the C locale, and avoid an "eval" that could cause trouble.
40654         Problem with SORT reported by Bob Proulx.
40655
40656         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40657         Define.  Trivial patch from Henning Nielsen Lund, originally
40658         sent to bug-grep@gnu.org today.
40659
40660 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40661
40662         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40663         struct stat.  Problem reported by Henning Nielsen Lund.
40664         * lib/acl.c: Include acl.h first, to check interface.  Don't
40665         bother to include sys/types.h and sys/stat.h again.
40666
40667 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40668
40669         Import the following change from libc; problem reported by
40670         Sven Verdoolaege.
40671
40672         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40673
40674         [BZ #1373]
40675         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40676
40677 2006-12-28  Jim Meyering  <jim@meyering.net>
40678
40679         * build-aux/announce-gen: Do not assume that the package
40680         builds any of tar.gz, tar.bz2, and .xdelta files.
40681         Suggestion from Simon Josefsson.
40682
40683 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40684
40685         * modules/announce-gen: New file.
40686
40687 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40688
40689         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40690         handles its gotchas now.
40691         * lib/mbswidth.c: Likewise.
40692         * lib/wcwidth.h: Likewise.
40693         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40694         and iswcntrl; the wctype module does this stuff now.
40695         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40697         * modules/mbchar (Depends-on): Add wctype.
40698         * modules/mbswidth (Depends-on): Likewise.
40699         * modules/wcwidth (Depends-on): Likewise.
40700
40701 2006-12-27  Eric Blake  <ebb9@byu.net>
40702
40703         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40704         module uses more than what <wctype.h> is required to provide.
40705
40706 2006-12-26  Eric Blake  <ebb9@byu.net>
40707
40708         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40709
40710 2006-12-26  Eric Blake  <ebb9@byu.net>
40711
40712         * modules/absolute-header: New module.
40713         * modules/fcntl (Depends-on): Depend on it.
40714         * modules/inttypes (Depends-on): Likewise.
40715         * modules/stdint (Depends-on): Likewise.
40716         * modules/sys_stat (Depends-on): Likewise.
40717         * modules/wctype (Depends-on): Likewise.
40718         * MODULES.html.sh (Support for building libraries and
40719         executables): Document it.
40720
40721 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40722
40723         * gnulib-tool (SED): Remove, undoing previous change.
40724         The problem was that it broke coreutils on Solaris, because
40725         "sed --posix" leaked into a makefile.
40726         (sed): New alias, if 'alias' and GNU sed.
40727
40728 2006-12-24  Jim Meyering  <jim@meyering.net>
40729
40730         Work around an fchownat bug in glibc-2.4:
40731         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40732         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40733         in spite of the -P option.
40734         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40735         New macros.
40736         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40737         * modules/openat (Files): Add lib/fchownat.c.
40738         * lib/openat.c (fchownat): Don't define here.  Move to...
40739         * lib/fchownat.c: ...this new file.
40740
40741 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40742
40743         Fix bug reported by Bruno Haible in
40744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40745         where quotearg.c didn't compile on Mac OS X 10.2 because it
40746         lacks <wchar.h> and wint_t.
40747         * lib/wctype_.h (__wctype_wint_t): New type.
40748         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40749         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40750         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40751         Arg is now of type __wctype_wint_t, not wint_t.
40752         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40753         substitute HAVE_WINT_T.
40754         * modules/wctype (Files): Add m4/wint_t.m4.
40755         (wctype.h): Substitute HAVE_WINT_T.
40756
40757 2006-12-23  Bruno Haible  <bruno@clisp.org>
40758
40759         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40760
40761 2006-12-23  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40764         S_ISLNK.
40765         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40766         mingw.
40767
40768 2006-12-22  Bruno Haible  <bruno@clisp.org>
40769
40770         * lib/copy-file.c: Include acl.h.
40771         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40772         Close the file descriptors only after being done with copy_acl.
40773         * modules/copy-file (Depends-on): Add acl.
40774
40775 2006-12-22  Bruno Haible  <bruno@clisp.org>
40776
40777         * gnulib-tool (SED): New variable.
40778         Use $SED instead of sed everywhere.
40779
40780 2006-12-22  Bruno Haible  <bruno@clisp.org>
40781
40782         * modules/no-c++: New file.
40783         * m4/no-c++.m4: New file.
40784         * MODULES.html.sh (Support for building libraries and executables):
40785         Add no-c++.
40786
40787 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40788
40789         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40790         Include <limits.h>, and use its INT_MAX to rewrite the
40791         j loop so that it does not overflow 'int'.  Problem reported by
40792         Ralf Wildenhues in
40793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40794         Play it safe by shifting left by 1 rather than multiplying by 2,
40795         as GCC is less likely to optimize this away when the value
40796         is signed (when it assumes overflow leads to undefined behavior).
40797         Also, don't assume time_t uses two's complement.
40798
40799 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40800
40801         * MODULES.html.sh: New module wctype.
40802         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40803         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40804         <wctype.h>, since the new wctype module should fix this.
40805         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40806         the wctype module should arrange for it.
40807         * lib/regex_internal.h: Likewise.
40808         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40809         since the wctype module should handle this now.
40810         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40811         * modules/fnmatch (Depends-on): Add wctype.
40812         * modules/quotearg (Depends-on): Likewise.
40813         * modules/regex (Depends-on): Likewise.
40814
40815 2006-12-19  Bruno Haible  <bruno@clisp.org>
40816
40817         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40818         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40819
40820 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40821
40822         * modules/savewd (Depends-on): Fix dependency on fcntl.
40823
40824 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40825
40826         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40827         conforms to C99, rather than relying on the user's environment
40828         setting of STDINT_H.
40829
40830 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40831         and Eric Blake  <ebb9@byu.net>
40832
40833         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40834         This is more consistent with the other defines here.
40835         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40836         Port to z/OS.  Problem reported by Paul Gilmartin.
40837         Change local vars to use gl_ prefix rather than ac_.
40838         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40839         with other defines.
40840         * modules/double-slash-root: New module.
40841         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40842         (Depends-on): Add double-slash-root.
40843         * MODULES.html.sh (File system functions): Mention new module.
40844
40845 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40846
40847         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40848         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40849         This is for the benefit of gzip, which doesn't do i18n.
40850
40851 2006-12-12  Jim Meyering  <jim@meyering.net>
40852
40853         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40854         Reported by Andreas Schwab <schwab@suse.de>.
40855
40856 2006-12-12  Bruno Haible  <bruno@clisp.org>
40857
40858         Merge these changes.
40859         2006-09-05  Bruno Haible  <bruno@clisp.org>
40860         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40861         iconv_alloc succeeded.
40862         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40863         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40864         test for " && dest " at the end - dest is always != NULL there. Call
40865         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40866         with 2xNULL arguments, also to flush the state storage. Handle the
40867         IRIX iconv behaviour. Realloc the final result, to throw away unused
40868         memory.
40869
40870 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40871
40872         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40873         and fchmodat unconditionally, since glibc 2.4 has them.
40874         Problem reported by Arkadiusz Miskiewicz.
40875
40876 2006-12-10  Bruno Haible  <bruno@clisp.org>
40877
40878         * gnulib-tool (func_import): Show the include files only for those
40879         modules that are copied and specified.
40880         Reported by Karl Berry.
40881
40882 2006-12-08  Jim Meyering  <jim@meyering.net>
40883
40884         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40885         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40886
40887         * build-aux/announce-gen: Add two new options, both optional:
40888         --bootstrap-tools=TOOL_LIST
40889               a comma-separated list of tools, e.g.,
40890               autoconf,automake,bison,gnulib
40891         --gnulib-snapshot-date=DATE
40892               if gnulib is in the bootstrap tool list,
40893               then report this as the snapshot date.
40894               If not specified, use the current date/time.
40895               If you specify a date here, be sure it's UTC.
40896
40897 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40898
40899         * tests/test-argp-2.sh: Fix test to match actual output.
40900         (func_compare): Fix sed script to be portable.
40901
40902 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40903
40904         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40905         workaround for this case.  It is not autoconfigured now; offhand
40906         it's hard to see how to autoconfigure it.
40907
40908 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40909
40910         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40911         a directory that is about to be chowned.  Such a directory's
40912         initial file permissions should permit the owner only and this
40913         should not be changed until after the chown, since the group and
40914         other bits would be incorrect if they granted permission before
40915         the chown.
40916
40917         Fix porting problem for iswctype reported by Georg Schwarz in:
40918         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40919         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40920         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40922         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40923
40924 2006-12-03  Jim Meyering  <jim@meyering.net>
40925
40926         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40927         p->fts_statp may not yet be defined.
40928         (fts_read): Instead, set it in the caller, once p->fts_statp is
40929         sure to be defined, and corresponds to a top-level directory.
40930         This bug made du -x fail.  Here's the coreutils test case:
40931         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40932         Reported by Mike Frysinger.
40933
40934 2006-12-01  Jim Meyering  <jim@meyering.net>
40935
40936         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40937         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40938         Reported by Simon Josefsson.
40939
40940 2006-11-30  Jim Meyering  <jim@meyering.net>
40941
40942         * m4/warning.m4: Use the all-permissive copyright notice
40943         recommended by RMS (rather than LGPL).
40944         * m4/vararrays.m4: Likewise.
40945         * m4/flexmember.m4: Likewise.
40946
40947 2006-11-29  Bruno Haible  <bruno@clisp.org>
40948
40949         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40950         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40951         using +=.
40952         Reported by Simon Josefsson <simon@josefsson.org>.
40953
40954 2006-11-28  James Youngman <jay@gnu.org>
40955
40956         * README: Advise users that they might find the bug-gnulib@gnu.org
40957         and autotools-announce@gnu.org mailing lists useful.
40958
40959 2006-11-28  Bruno Haible  <bruno@clisp.org>
40960
40961         * m4/ptrdiff_max.m4: Remove file.
40962
40963 2006-11-21  Bruno Haible  <bruno@clisp.org>
40964
40965         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40966         _AC_COMPUTE_INT.
40967         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40968         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40969         _AC_COMPUTE_INT.
40970         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40971         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40972         _AC_COMPUTE_INT.
40973         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40974
40975 2006-11-28  Jim Meyering  <jim@meyering.net>
40976
40977         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40978         warning from "gcc -Wshadow" about shadowing the builtin.
40979
40980 2006-11-27  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40983         _AC_COMPUTE_INT.
40984         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40985
40986 2006-11-27  Bruno Haible  <bruno@clisp.org>
40987             Paul Eggert  <eggert@cs.ucla.edu>
40988
40989         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40990
40991 2006-11-26  Bruno Haible  <bruno@clisp.org>
40992
40993         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40994         noinst_LTLIBRARIES.
40995
40996 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40997             Bruno Haible  <bruno@clisp.org>
40998
40999         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41000         if compiling with "gcc -ansi".
41001
41002 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41003
41004         Fix some incompatibilities with gcc -ansi -pedantic.
41005         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41006         if compiling pedantically with GCC, unless it's C99 or later.
41007         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41008         it mishandles gcc -ansi -pedantic as well.
41009         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41010         if gcc -pedantic.
41011         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41012         initializers for struct if -pedantic, unless it's C99 or later.
41013
41014 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41015
41016         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41017         Don't close an fd more than once. Identical atimes indicate
41018         success, not failure.
41019
41020 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41021
41022         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41023
41024 2006-11-23  Jim Meyering  <jim@meyering.net>
41025
41026         * build-aux/announce-gen: New file.  From coreutils.
41027
41028 2006-11-22  Jim Meyering  <jim@meyering.net>
41029
41030         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41031         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41032         (fts_read): Use a temporary to narrow the overused st_size member
41033         before using it in a switch statement.  Reported by Matthew Woehlke.
41034
41035         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41036         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41037
41038 2006-11-20  Bruno Haible  <bruno@clisp.org>
41039
41040         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41041         changequote instead of pairs of brackets.
41042         Reported by Andreas Schwab <schwab@suse.de>.
41043
41044 2006-11-21  Jim Meyering  <jim@meyering.net>
41045
41046         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41047         so as to remain compatible with older compilers.
41048         Patch from Michael Deutschmann.
41049
41050 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41051
41052         * MODULES.html.sh (File system functions): Add openat.
41053
41054         * lib/openat.h (rpl_fstatat): New macro, if
41055         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41056         (fstatat): Define to rpl_fstatat under the same conditions,
41057         unless COMPILING_FSTATAT.
41058         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41059         seems to have the bug.
41060         * lib/fstatat.c: New file.
41061         * modules/openat (Files): Add it.
41062
41063 2006-11-20  Bruno Haible  <bruno@clisp.org>
41064
41065         * Makefile: New file.
41066
41067 2006-11-20  Jim Meyering  <jim@meyering.net>
41068
41069         The beginnings of syntax-related checks for gnulib.
41070         * lib/Makefile: New file.
41071         * lib/t-idcache: New script.  Ensure that the two halves of
41072         idcache.c stay in sync.
41073
41074         * lib/idcache.c: Adjust comments in user- and group- portions to
41075         be more accurate, and to be consistent with one another.
41076
41077 2006-11-20  Jim Meyering  <jim@meyering.net>
41078
41079         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41080         continue using the flexible array member (thus, this module performs
41081         half as many malloc calls), with the addition that...
41082         (getgroup, getuser): Consistently record a non-match via an empty
41083         "name" string, and map an empty string match to a NULL return value.
41084         * modules/idcache (Depends-on): Re-add flexmember.
41085
41086         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41087         (getuidbyname, getgroup, getgidbyname): Likewise.
41088
41089         Use cleaner syntax: NULL rather than 0.
41090         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41091
41092 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41093
41094         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41095         It mishandled the case where the group was missing.
41096         Problem reported by Greg Schafer.
41097         * modules/idcache: Likewise.
41098
41099 2006-11-18  Jim Meyering  <jim@meyering.net>
41100
41101         * check-module (%exempt_header): Add exception for some
41102         conditionally-included headers.
41103
41104         * modules/i-ring (Depends-on): Add verify.
41105         (License): Change to LGPL.
41106
41107 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41108
41109         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41110         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41111         and inttostr.h.  Use snprintf rather than uinttostr, so that
41112         LGPLed code doesn't depend on GPLed.
41113
41114 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41115
41116         * modules/inline (License): Change from GPL to LGPL.
41117
41118 2006-11-17  Jim Meyering  <jim@meyering.net>
41119
41120         * modules/d-type (License): Switch to LGPL.
41121
41122 2006-11-15  Bruno Haible  <bruno@clisp.org>
41123
41124         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41125
41126 2006-11-15  Eric Blake  <ebb9@byu.net>
41127
41128         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41129         the module dependency.
41130
41131 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41132             Bruno Haible  <bruno@clisp.org>
41133
41134         * gnulib-tool (func_create_testdir): Add license consistency check.
41135
41136 2006-11-15  Eric Blake  <ebb9@byu.net>
41137
41138         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41139         random "(cached)" in configure output.
41140
41141 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41142
41143         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41144         test for conforming inttypes.h is both announced and cached.
41145
41146         * MODULES.html.sh (seen_modules, seen_files): New variables.
41147         (func_module): Rewrite to use a few less gnulib-tool and sed
41148         invocations.  Avoid a couple of quadratic algorithms for ...
41149         (missed_modules, missed_files): ... these, with ...
41150         (func_append, func_tmpdir): ... these new functions, from
41151         gnulib-tool.  Analogously, install traps for cleanup.
41152
41153         * tests/test-gc.c (main): Remove unused variables.
41154         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41155
41156 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41157
41158         * modules/inttostr (License): Change to LGPL.
41159
41160 2006-11-14  Eric Blake  <ebb9@byu.net>
41161
41162         * modules/tempname (License): Change to LGPL.
41163
41164 2006-11-14  Eric Blake  <ebb9@byu.net>
41165
41166         * doc/functions.texi (Function Portability): *printf functions on
41167         Cygwin now understand all POSIX size specifiers.
41168
41169 2006-11-14  Bruno Haible  <bruno@clisp.org>
41170
41171         * modules/c-ctype (License): Change to LGPL.
41172
41173 2006-11-12  Bruno Haible  <bruno@clisp.org>
41174
41175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41176         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41177         for GNOME libraries, for which the include files are installed in
41178         subdirectories of $prefix/include.
41179
41180 2006-11-12  Bruno Haible  <bruno@clisp.org>
41181
41182         * m4/lib-link.m4: Require at least autoconf-2.54.
41183         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41184         name to underscores for the --with option.
41185
41186 2006-11-13  Bruno Haible  <bruno@clisp.org>
41187
41188         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41189         the tests directory.
41190         Reported by Ralf Wildenhues.
41191
41192 2006-11-13  Bruno Haible  <bruno@clisp.org>
41193
41194         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41195         (func_emit_initmacro_end): Undo the override here.
41196         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41197         Works around the famous automake error in coreutils.
41198
41199 2006-11-13  Eric Blake  <ebb9@byu.net>
41200
41201         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41202         element, not its node.
41203
41204 2006-11-12  Bruno Haible  <bruno@clisp.org>
41205
41206         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41207         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41208
41209 2006-11-12  Bruno Haible  <bruno@clisp.org>
41210
41211         * gnulib-tool: New option --local-symlink.
41212         (func_usage): Document it.
41213         (lsymbolic): New variable.
41214         (func_import, func_create_testdir): If --symlink was not specified,
41215         test whether --local-symlink was specified and the file comes from
41216         the local_gnulib_dir.
41217
41218 2006-11-12  Bruno Haible  <bruno@clisp.org>
41219
41220         * gnulib-tool (func_ln): New function.
41221         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41222
41223 2006-11-12  Bruno Haible  <bruno@clisp.org>
41224
41225         Finish support for source files in subdirectories.
41226         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41227         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41228         AUTOMAKE_OPTIONS.
41229         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41230
41231 2006-11-12  Bruno Haible  <bruno@clisp.org>
41232
41233         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41234         EXTRA_lib_SOURCES augmentation.
41235         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41236
41237 2006-11-12  Jim Meyering  <jim@meyering.net>
41238
41239         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41240         file descriptors.  This also averts a failure on systems with
41241         native openat support when a traversed directory lacks "x" access.
41242         * lib/fts_.h: Include "i-ring.h"
41243         (struct FTS) [fts_fd_ring]: New member.
41244         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41245         (FCHDIR): Add parentheses.
41246         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41247         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41248         When descending, rather than simply closing the previous
41249         fts_cwd_fd value, push that file descriptor onto the ring.
41250         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41251         (fts_open): Initialize the new fd_ring member.
41252         (fts_close): Clear the ring.
41253         (fts_safe_changedir): When possible, use our new fd_ring to skip
41254         the diropen and fstat and dev/ino comparison that would normally
41255         accompany a virtual `chdir ("..")'.
41256
41257         * modules/fts (Depends-on): Add i-ring.
41258         * modules/i-ring: New module.
41259         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41260         * m4/i-ring.m4: New file.
41261
41262 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41263
41264         * gnulib-tool (func_create_testdir): Fix replacement of
41265         `build-aux' in configure.ac.  Run autotools in gltests
41266         subdirectory.
41267         (func_create_testdir, func_create_megatestdir, test): There is
41268         no need for '--force' in most autotool invocations in a new
41269         tree.  Actually fail the whole test if any of the tools, or the
41270         configure or make stages fail.
41271
41272         Sync from Automake.
41273         * build-aux/gnupload: Revert last change.  Add pointer to upload
41274         instructions of the GNU Maintenance Instructions.
41275         Suggestion by Karl Berry.
41276
41277 2006-11-10  Jim Meyering  <jim@meyering.net>
41278
41279         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41280
41281 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41284         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41285         (bind_textdomain_codeset) [! ENABLE_NLS]:
41286         Evaluate all the arguments.  That way, callers get compatible behavior
41287         if the arguments have side effects.  Also, it avoids some GCC
41288         diagnostics in some cases; Joel E. Denny reported problems when Bison
41289         was configured with --enable-gcc-warnigs.
41290
41291 2006-11-10  Jim Meyering  <jim@meyering.net>
41292
41293         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41294         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41295         account.
41296
41297 2006-11-10  Jim Meyering  <jim@meyering.net>
41298
41299         * modules/inline: New file/module.
41300         * modules/xalloc (Files): Remove m4/inline.m4.
41301         (Depends-on): Add inline, instead.
41302         * modules/oset: Likewise.
41303         * modules/list: Likewise.
41304
41305 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41306
41307         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41308         Problem reported by Matthew Woehlke.
41309
41310 2006-11-09  Bruno Haible  <bruno@clisp.org>
41311
41312         * lib/tempname.c (gen_tempname): Remove variant that invokes
41313         __gen_tempname.
41314         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41315         __gen_tempname.
41316
41317 2006-11-08  Bruno Haible  <bruno@clisp.org>
41318
41319         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41320         to 'yes' instead of 'cross-compiling'.
41321
41322 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41323
41324         * lib/quotearg.h (quotearg_free): New decl.
41325         * lib/quotearg.c (quotearg_free): New function.
41326         (slot0, nslots, slotvec0, slotvec):
41327         Now file-scope so that quotearg_free can get at them.
41328
41329 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41330
41331         Sync from Automake.
41332         * build-aux/gnupload: Add missing 'gnu' to example URL.
41333         Report by Karl Berry.
41334
41335 2006-11-08  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41338         Suggested by Paul Eggert.
41339
41340 2006-11-08  Jim Meyering  <jim@meyering.net>
41341
41342         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41343         It's already included if !_LIBC.
41344         (fts_safe_changedir): Add a comment.
41345
41346 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41347
41348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41349         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41350         Matthew Woehlke.
41351
41352         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41353         definitions up, to avoid colliding with change below.
41354         (static_inline) [HAVE_INLINE]: New macro.
41355         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41356         Provide extern decls when !HAVE_INLINE.  Do not define unless
41357         static_inline is defined, either by us or by xmalloc.c.  Use
41358         static_inline rather than static inline.
41359         (XCALLOC): Optimize sizeof(T) = 1 case.
41360         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41361
41362 2006-11-07  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41365         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41366         AC_C_INLINE.
41367         * modules/xalloc (Files): Add m4/inline.m4.
41368
41369 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41370
41371         * README: Fix typo.
41372         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41373         (Miscellanous Notes): ...from this.
41374
41375 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41376
41377         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41378         Mention that offsetof should be used instead of sizeof.
41379         From Bruno Haible.
41380
41381 2006-11-07  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41384
41385 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41386
41387         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41388         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41389         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41390         (gl_tree_add_before, gl_tree_add_after):
41391         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41392         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41393         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41394         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41395         (gl_linked_add_after, gl_linked_add_at): Likewise.
41396         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41397         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41398         (gl_tree_add_before, gl_tree_add_after): Likewise.
41399         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41400         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41401         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41402
41403 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41404
41405         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41406
41407 2006-11-06  Bruno Haible  <bruno@clisp.org>
41408
41409         * m4/inline.m4: New file.
41410         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41411         * modules/list (Files): Add m4/inline.m4.
41412         * modules/oset (Files): Likewise.
41413
41414 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41415
41416         * lib/idcache.c: Include <stddef.h>, for offsetof.
41417         (struct userid.name): Change from char * to a flexible array member.
41418         All uses changed.
41419         * modules/idcache (Depends-on): Add flexmember.
41420
41421         * MODULES.html.sh (Core language properties): New module flexmember.
41422         * modules/flexmember, m4/flexmember.m4: New files.
41423
41424         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41425         inline functions that are identical with the old xnmalloc_inline,
41426         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41427         that we can avoid some unnecessary integer multiplications and
41428         divisions in the common case where the element size is known at
41429         compile time.
41430         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41431         needed.
41432         (xnboundedmalloc): Remove.
41433         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41434         arguments, for consistency with rest of this header.
41435         (xcharalloc): Rewrite using XNMALLOC.
41436         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41437         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41438         versions have been moved to lib/xalloc.h and renamed to be the
41439         non-*_inline versions.
41440         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41441         and xnrealloc functions, since those functions are now inline and
41442         now call us.
41443         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41444         renaming described above.
41445         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41446         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41447         captures the dependency in AC_C_INLINE.
41448
41449         New module canonicalize-lgpl, proposed by Charles Wilson in
41450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41451         with a few small changes afterwards.
41452         * MODULES.html.sh (File system functions): New module
41453         canonicalize-lgpl.
41454         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41455         and canonicalize_file_name.
41456         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41457         * modules/canonicalize-lgpl: New files.
41458
41459 2006-11-05  Bruno Haible  <bruno@clisp.org>
41460
41461         * gnulib-tool (func_import, func_create_testdir): Create directories
41462         also for files in subdirectories of lib/.
41463
41464 2006-11-05  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41467         ANSI C compliant.
41468
41469 2006-11-03  Bruno Haible  <bruno@clisp.org>
41470
41471         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41472         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41473         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41474         (xnboundedmalloc): New inline function.
41475         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41476         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41477         xmalloc.
41478         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41479         xmalloc.
41480         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41481         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41482         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41483         xmalloc.
41484         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41485         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41486         xmalloc.
41487         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41488         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41489         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41490         xmalloc.
41491         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41492         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41493         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41494         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41495         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41496         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41497         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41498
41499 2006-11-03  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/c-ctype.h [C++]: Define functions without name mangling.
41502         * lib/fwriteerror.h [C++]: Likewise.
41503         * lib/gcd.h [C++]: Likewise.
41504         * lib/linebreak.h [C++]: Likewise.
41505
41506 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41507
41508         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41509         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41510         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41512         Check for functions and headers just once.
41513         Check for declaration of canonicalize_file_name.
41514         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41515
41516 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41517
41518         * gnulib-tool (func_import): Fix typo in actioncmd.
41519
41520 2006-11-02  Bruno Haible  <bruno@clisp.org>
41521
41522         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41523         newline sequence in the Makefile.am snippet as a space, like "make"
41524         does.
41525         Reported by Roger Persson <perrog@gmail.com>.
41526
41527 2006-11-01  Bruno Haible  <bruno@clisp.org>
41528
41529         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41530         already declared in <string.h>.
41531         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41532
41533 2006-11-01  Bruno Haible  <bruno@clisp.org>
41534
41535         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41536         * lib/strcase.h: Include <string.h>.
41537         (strcasecmp): Define to rpl_strcasecmp here.
41538
41539 2006-11-01  Bruno Haible  <bruno@clisp.org>
41540
41541         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41542
41543 2006-11-01  Eric Blake  <ebb9@byu.net>
41544
41545         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41546
41547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41548
41549 2006-10-29  Bruno Haible  <bruno@clisp.org>
41550
41551         Make it compile in C++ mode.
41552         * lib/full-write.c (full_rw): Add a cast.
41553
41554 2006-11-01  Bruno Haible  <bruno@clisp.org>
41555
41556         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41557         be POSIX compliant.
41558         Reported by Roger Persson <perrog@gmail.com>.
41559
41560 2006-11-01  Eric Blake  <ebb9@byu.net>
41561
41562         * lib/getopt_.h: Fix comments.
41563
41564 2006-10-31  Eric Blake  <ebb9@byu.net>
41565
41566         * modules/tmpdir (Depends-on): Add sys_stat.
41567         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41568         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41569         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41570         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41571         tempname.
41572
41573 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41574
41575         Avoid some C++ diagnostics reported by Bruno Haible.
41576         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41577         xmalloc.
41578         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41579         (struct slotvec): Move to top level.
41580         (quotearg_n_options): Rewrite to avoid xmalloc.
41581         * lib/xalloc.h (xcharalloc): New function.
41582         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41583         [defined __cplusplus]: Add function template that provides result
41584         type propagation.  This part of the change is from Bruno Haible.
41585
41586 2006-10-29  Bruno Haible  <bruno@clisp.org>
41587
41588         Make it compile in C++ mode.
41589         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41590         * lib/strnlen1.c (strnlen1): Cast memchr result.
41591         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41592         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41593         (create_temp_dir): Rename local variable 'template'.
41594         (compile_csharp_using_sscli): Add cast.
41595         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41596         * lib/findprog.c (find_in_path): Likewise.
41597         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41598         * lib/wait-process.c (register_slave_subprocess): Likewise.
41599
41600 2006-10-22  Bruno Haible  <bruno@clisp.org>
41601
41602         * modules/tsearch: New file.
41603         * lib/tsearch.h: New file.
41604         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41605         * m4/tsearch.m4: New file.
41606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41607
41608 2006-10-29  Eric Blake  <ebb9@byu.net>
41609
41610         * lib/arcfour.c: Assume config.h.
41611         * lib/arctwo.c: Likewise.
41612         * lib/base64.c: Likewise.
41613         * lib/check-version.c: Likewise.
41614         * lib/crc.c: Likewise.
41615         * lib/des.c: Likewise.
41616         * lib/gc-gnulib.c: Likewise.
41617         * lib/gc-libgcrypt.c: Likewise.
41618         * lib/gc-pbkdf2-sha1.c: Likewise.
41619         * lib/getaddrinfo.c: Likewise.
41620         * lib/getdelim.c: Likewise.
41621         * lib/getline.c: Likewise.
41622         * lib/hmac-md5.c: Likewise.
41623         * lib/hmac-sha1.c: Likewise.
41624         * lib/iconvme.c: Likewise.
41625         * lib/md2.c: Likewise.
41626         * lib/md4.c: Likewise.
41627         * lib/memxor.c: Likewise.
41628         * lib/read-file.c: Likewise.
41629         * lib/readline.c: Likewise.
41630         * lib/rijndael-alg-fst.c: Likewise.
41631         * lib/rijndael-api-fst.c: Likewise.
41632         * lib/xgetdomainname.c: Likewise.
41633
41634 2006-10-28  Eric Blake  <ebb9@byu.net>
41635
41636         * lib/xstrndup.c: Assume config.h.
41637
41638 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41639
41640         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41641         stat-macros.h is now for our own macros, whereas stat_h is for
41642         macros in the <sys/stat.h> name space.
41643         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41644         (STAT_MACROS_H): Remove.
41645         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41646         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41647         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41648         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41649         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41650         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41651         Move these macros to ...
41652         * lib/stat_.h: here.  Don't include stat-macros.h.
41653         * lib/canonicalize.c: Don't include stat-macros.h.
41654         * lib/chown.c: Likewise.
41655         * lib/euidaccess.c: Likewise.
41656         * lib/file-type.c: Likewise.
41657         * lib/filemode.c: Likewise.
41658         * lib/glob.c: Likewise.
41659         * lib/isapipe.c: Likewise.
41660         * lib/lchown.c: Likewise.
41661         * lib/lstat.c: Likewise.
41662         * lib/mkdir-p.c: Likewise.
41663         * lib/rmdir.c: Likewise.
41664         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41666         unless mkdir isn't declared, to speed up 'configure'.
41667         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41668         would define all the S_* symbols.
41669         * modules/canonicalize (Depends-on):
41670         Depend on sys_stat, not stat-macros.
41671         * modules/chown: Likewise.
41672         * modules/euidaccess: Likewise.
41673         * modules/filemode: Likewise.
41674         * modules/file-type: Likewise.
41675         * modules/glob: Likewise.
41676         * modules/isapipe: Likewise.
41677         * modules/lchown: Likewise.
41678         * modules/lstat: Likewise.
41679         * modules/mkancesdirs: Likewise.
41680         * modules/rmdir: Likewise.
41681         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41682         * modules/modechange: Likewise.
41683         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41684         (configure.ac): Remove gl_STAT_MACROS.
41685         * modules/sys_stat (Depends-on): Remove stat-macros.
41686
41687 2006-10-27  Bruno Haible  <bruno@clisp.org>
41688
41689         * m4/signed.m4: Remove file.
41690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41691         invocation.
41692         * modules/vasnprintf (Files): Remove m4/signed.m4.
41693
41694 2006-10-27  Bruno Haible  <bruno@clisp.org>
41695
41696         Update to GNU gettext 0.16.
41697         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41698         m4/inttypes-h.m4, m4/signed.m4.
41699         * m4/gettext.m4: Update to GNU gettext 0.16.
41700         * m4/intl.m4: New file, from GNU gettext.
41701         * m4/intldir.m4: New file, from GNU gettext.
41702         * config/srclist.txt: Update
41703
41704 2006-10-27  Eric Blake  <ebb9@byu.net>
41705
41706         * MODULES.html.sh: Document tempname.
41707         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41708         dependencies.
41709         (Files): Move lib/tempname.c...
41710         * modules/tempname: ...to this new module.
41711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41712         (gl_PREREQ_TEMPNAME): Move...
41713         * m4/tempname.m4: ...to this new file.
41714         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41715         * modules/sys_stat (Depends-on): Add stat-macros.
41716         * lib/stat_.h (includes): Pick up stat macros.
41717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41718         if stat macros are broken.
41719         * lib/tempname.c (includes): No need to include "stat-macros.h".
41720         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41721         (direxists, __path_search) [!_LIBC]: Don't compile these in
41722         gnulib; the tmpdir module covers that.
41723         * lib/tempname.h: New file.
41724
41725 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41726
41727         * COPYING: Explain how gnulib-tool converts licence headers.
41728         Almost all wording by Eric Blake.
41729
41730 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41731
41732         * lib/mbchar.h (is_basic_table): Make read-only.
41733         * lib/mbchar.c (is_basic_table): Likewise.
41734         Reported by John Darrington.
41735
41736 2006-10-25  Bruno Haible  <bruno@clisp.org>
41737
41738         * lib/progname.h (set_program_name): Undefine before defining.
41739
41740 2006-10-25  Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41743         false for non-gcc C++ compilers.
41744         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41745
41746 2006-10-24  Bruno Haible  <bruno@clisp.org>
41747
41748         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41749         iconv implementations like Irix iconv.
41750
41751 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41752
41753         * modules/vararrays: New file.
41754         * m4/vararrays.m4: New file, taken from diffutils.
41755         * MODULES.html.sh: New module vararrays.
41756
41757 2006-10-24  Karl Berry  <karl@gnu.org>
41758
41759         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41760         Don't call GNU Unix.
41761
41762 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41763
41764         * users.txt: Add Libtool.
41765
41766         Sync from Libtool:
41767
41768         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41769
41770         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41771         to gnulib's policy of including config.h unconditionally.
41772
41773 2006-10-24  Bruno Haible  <bruno@clisp.org>
41774
41775         * modules/wcwidth (Files): Add m4/wint_t.m4.
41776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41777         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41778
41779 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41780
41781         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41782         to pacify GCC with some -W flags enabled.  Problem reported by
41783         Bruno Haible.
41784
41785 2006-10-24  Jim Meyering  <jim@meyering.net>
41786
41787         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41788         Reported by Karl Berry.
41789
41790 2006-10-23  Bruno Haible  <bruno@clisp.org>
41791
41792         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41793
41794 2006-10-24  Bruno Haible  <bruno@clisp.org>
41795
41796         * lib/gl_list.h: Use C comment style, not C++ comment style.
41797
41798 2006-10-23  Eric Blake  <ebb9@byu.net>
41799
41800         * lib/getaddrinfo.c (includes): Add missing include.
41801
41802 2006-10-23  Bruno Haible  <bruno@clisp.org>
41803             Paul Eggert  <eggert@cs.ucla.edu>
41804
41805         Ability to rename obstack_free.
41806         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41807         obstack_free.
41808         (obstack_free): Invoke the __obstack_free macro.
41809         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41810
41811 2006-10-23  Bruno Haible  <bruno@clisp.org>
41812             Paul Eggert  <eggert@cs.ucla.edu>
41813
41814         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41815         __argc, __argv from the declaration. (They are defined as macros on
41816         mingw.)
41817
41818 2006-10-22  Bruno Haible  <bruno@clisp.org>
41819
41820         * doc/gnulib-intro.texi: New file.
41821         * doc/gnulib.texi: Include it.
41822
41823 2006-10-21  Bruno Haible  <bruno@clisp.org>
41824
41825         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41826         "Introduction", "Miscellanous Notes", "Particular Modules".
41827
41828 2006-10-21  Bruno Haible  <bruno@clisp.org>
41829
41830         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41831         Change mostlyclean-local rule to avoid sh syntax error from bash
41832         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41833
41834 2006-10-23  Jim Meyering  <jim@meyering.net>
41835
41836         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41837         in place of snprintf.
41838
41839         * modules/inttostr (Files): Add lib/uinttostr.c.
41840         * lib/uinttostr.c (inttostr): New file/function.
41841         * lib/inttostr.h (uinttostr): Declare.
41842         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41843         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41844         Add uinttostr.
41845         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41846
41847 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41848
41849         * lib/canonicalize.c (ELOOP): Define if not already defined.
41850         Problem reported by Bruno Haible in
41851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41852
41853 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41854
41855         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41856         Problem reported by Perry Smith and Ville Laurikari.
41857
41858         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41859         uses.
41860
41861 2006-10-19  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41864         for mingw.
41865
41866 2006-10-19  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41869         Needed for mingw.
41870
41871 2006-10-19  Bruno Haible  <bruno@clisp.org>
41872
41873         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41874
41875 2006-10-19  Bruno Haible  <bruno@clisp.org>
41876
41877         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41878         it.
41879
41880 2006-10-19  Bruno Haible  <bruno@clisp.org>
41881
41882         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41883         invocation.
41884
41885 2006-10-19  Bruno Haible  <bruno@clisp.org>
41886
41887         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41888         mountlist by default.
41889
41890 2006-10-16  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/c-strstr.c: Include c-strstr.h.
41893
41894 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41895
41896         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41897         in a slash.
41898
41899 2006-10-18  Bruno Haible  <bruno@clisp.org>
41900
41901         * lib/lock.h [C++]: Wrap definitions in extern "C".
41902
41903 2006-10-18  Bruno Haible  <bruno@clisp.org>
41904
41905         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41906         gl_LIBOBJS list.
41907
41908 2006-10-18  Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41911
41912 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41913
41914         * lib/xstrtol.h: Include gettext.h.
41915         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41916         Problem reported by Eric Blake.
41917         * modules/xstrtol (Depends-on): Add gettext-h.
41918
41919 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41920
41921         * lib/strftime.c (advance): New macro.
41922         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41923         incomplete type, so you can't add 0 to it.  Problem and patch
41924         reported by Eelco Dolstra for dietlibc.
41925
41926 2006-10-18  Jim Meyering  <jim@meyering.net>
41927
41928         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41929         type for a local, and rename it: s/up/user_proc/.
41930
41931 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41932
41933         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41934         READ_UTMP_USER_PROCESS.
41935         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41936
41937 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41938
41939         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41940         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41941
41942 2006-10-17  Eric Blake  <ebb9@byu.net>
41943
41944         * lib/sigprocmask.c (sigprocmask): Fix typo.
41945
41946         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41947
41948         * modules/clean-temp (Makefile.am): Don't add to make output...
41949         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41950         config.h.
41951
41952 2006-10-17  Bruno Haible  <bruno@clisp.org>
41953
41954         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41955         differently if DEFAULT_TEXT_DOMAIN is set.
41956
41957 2006-10-16  Bruno Haible  <bruno@clisp.org>
41958
41959         * lib/clean-temp.c: Include fwriteerror.h.
41960
41961 2006-10-16  Bruno Haible  <bruno@clisp.org>
41962
41963         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41964
41965 2006-10-16  Bruno Haible  <bruno@clisp.org>
41966
41967         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41968         * lib/sigprocmask.h: Include <sys/types.h>.
41969         (sigset_t): Use the system's definition if present.
41970
41971 2006-10-17  Eric Blake  <ebb9@byu.net>
41972
41973         * lib/xvasprintf.c (includes): Assume config.h.
41974         * lib/xasprintf.c (includes): Likewise.
41975
41976 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41977
41978         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41979         at least as wide as intmax_t.
41980
41981 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41982
41983         (Imported from Automake.)
41984         * build-aux/gnupload: Update to version 1.1 of directive file.
41985
41986 2006-10-16  Eric Blake  <ebb9@byu.net>
41987
41988         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41989         match Automake 1.10a.
41990
41991 2006-10-14  Bruno Haible  <bruno@clisp.org>
41992
41993         * modules/sigprocmask: New file.
41994         * lib/sigprocmask.h: New file.
41995         * lib/sigprocmask.c: New file.
41996         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41997         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41998         request sigprocmask.o.
41999         (gl_PREREQ_SIGPROCMASK): New macro.
42000         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42001         (Depends-on): Add sigprocmask.
42002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42003         gt_SIGNALBLOCKING. Test for 'raise' only once.
42004         * lib/fatal-signal.c: Include sigprocmask.h.
42005         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42006         unblock_fatal_signals): Define always.
42007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42008         sigprocmask.
42009
42010 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42011
42012         Sync from Automake.
42013         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42014         which incorrectly sets the mode of an existing destination
42015         directory.  In some cases the unpatched install-sh could do the
42016         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42017         system.  We hope this is rare in practice, but it's clearly worth
42018         fixing.  Problem reported by Alex Unleashed in
42019         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42020         Also, don't bother to check for -m bugs unless we're using -m;
42021         suggested by Stepan Kasal.
42022
42023 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42024
42025         Sync from Automake.
42026         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42027         `-c' flag, so they appear at the same position as in %FASTDEP%
42028         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42029         which ignores unknown options only after the first non-option.
42030         Bug report against M4 by Nelson H. F. Beebe.
42031
42032 2006-10-13  Jim Meyering  <jim@meyering.net>
42033
42034         Fix a bug in yesterday's change.
42035         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42036         p->fts_statp->st_dev would be used uninitialized.
42037         Ensures that we always call fts_stat on the very first entry.
42038         Miklos Szeredi reported that find -xdev stopped working.
42039
42040 2006-10-12  Bruno Haible  <bruno@clisp.org>
42041
42042         * gnulib-tool (func_get_automake_snippet): Append an automatically
42043         computed EXTRA_DIST augmentation.
42044         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42045         * modules/alloca-opt (Makefile.am): Likewise.
42046         * modules/allocsa (Makefile.am): Likewise.
42047         * modules/arcfour (Makefile.am): Likewise.
42048         * modules/arctwo (Makefile.am): Likewise.
42049         * modules/argmatch (Makefile.am): Likewise.
42050         * modules/argz (Makefile.am): Likewise.
42051         * modules/atexit (Makefile.am): Likewise.
42052         * modules/backupfile (Makefile.am): Likewise.
42053         * modules/byteswap (Makefile.am): Likewise.
42054         * modules/c-strtod (Makefile.am): Likewise.
42055         * modules/c-strtold (Makefile.am): Likewise.
42056         * modules/calloc (Makefile.am): Likewise.
42057         * modules/canon-host (Makefile.am): Likewise.
42058         * modules/canonicalize (Makefile.am): Likewise.
42059         * modules/chdir-long (Makefile.am): Likewise.
42060         * modules/chdir-safer (Makefile.am): Likewise.
42061         * modules/check-version (Makefile.am): Likewise.
42062         * modules/chown (Makefile.am): Likewise.
42063         * modules/cloexec (Makefile.am): Likewise.
42064         * modules/close-stream (Makefile.am): Likewise.
42065         * modules/closeout (Makefile.am): Likewise.
42066         * modules/crc (Makefile.am): Likewise.
42067         * modules/csharpexec (Makefile.am): Likewise.
42068         * modules/cycle-check (Makefile.am): Likewise.
42069         * modules/des (Makefile.am): Likewise.
42070         * modules/dev-ino (Makefile.am): Likewise.
42071         * modules/dirfd (Makefile.am): Likewise.
42072         * modules/dirname (Makefile.am): Likewise.
42073         * modules/dup2 (Makefile.am): Likewise.
42074         * modules/eealloc (Makefile.am): Likewise.
42075         * modules/error (Makefile.am): Likewise.
42076         * modules/euidaccess (Makefile.am): Likewise.
42077         * modules/exclude (Makefile.am): Likewise.
42078         * modules/exitfail (Makefile.am): Likewise.
42079         * modules/fcntl-safer (Makefile.am): Likewise.
42080         * modules/fcntl (Makefile.am): Likewise.
42081         * modules/file-type (Makefile.am): Likewise.
42082         * modules/fileblocks (Makefile.am): Likewise.
42083         * modules/filemode (Makefile.am): Likewise.
42084         * modules/filenamecat (Makefile.am): Likewise.
42085         * modules/fnmatch (Makefile.am): Likewise.
42086         * modules/fopen-safer (Makefile.am): Likewise.
42087         * modules/fpending (Makefile.am): Likewise.
42088         * modules/fprintftime (Makefile.am): Likewise.
42089         * modules/free (Makefile.am): Likewise.
42090         * modules/fsusage (Makefile.am): Likewise.
42091         * modules/ftruncate (Makefile.am): Likewise.
42092         * modules/fts (Makefile.am): Likewise.
42093         * modules/gc-arcfour (Makefile.am): Likewise.
42094         * modules/gc-des (Makefile.am): Likewise.
42095         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42096         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42097         * modules/gc-md4 (Makefile.am): Likewise.
42098         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42099         * modules/gc-sha1 (Makefile.am): Likewise.
42100         * modules/gc (Makefile.am): Likewise.
42101         * modules/getaddrinfo (Makefile.am): Likewise.
42102         * modules/getcwd (Makefile.am): Likewise.
42103         * modules/getdelim (Makefile.am): Likewise.
42104         * modules/getdomainname (Makefile.am): Likewise.
42105         * modules/getgroups (Makefile.am): Likewise.
42106         * modules/gethostname (Makefile.am): Likewise.
42107         * modules/gethrxtime (Makefile.am): Likewise.
42108         * modules/getline (Makefile.am): Likewise.
42109         * modules/getloadavg (Makefile.am): Likewise.
42110         * modules/getlogin_r (Makefile.am): Likewise.
42111         * modules/getndelim2 (Makefile.am): Likewise.
42112         * modules/getopt (Makefile.am): Likewise.
42113         * modules/getpagesize (Makefile.am): Likewise.
42114         * modules/getpass-gnu (Makefile.am): Likewise.
42115         * modules/getpass (Makefile.am): Likewise.
42116         * modules/getsubopt (Makefile.am): Likewise.
42117         * modules/gettime (Makefile.am): Likewise.
42118         * modules/gettimeofday (Makefile.am): Likewise.
42119         * modules/getugroups (Makefile.am): Likewise.
42120         * modules/getusershell (Makefile.am): Likewise.
42121         * modules/glob (Makefile.am): Likewise.
42122         * modules/group-member (Makefile.am): Likewise.
42123         * modules/hard-locale (Makefile.am): Likewise.
42124         * modules/hash (Makefile.am): Likewise.
42125         * modules/hmac-md5 (Makefile.am): Likewise.
42126         * modules/hmac-sha1 (Makefile.am): Likewise.
42127         * modules/human (Makefile.am): Likewise.
42128         * modules/idcache (Makefile.am): Likewise.
42129         * modules/imaxabs (Makefile.am): Likewise.
42130         * modules/imaxdiv (Makefile.am): Likewise.
42131         * modules/inet_ntop (Makefile.am): Likewise.
42132         * modules/inet_pton (Makefile.am): Likewise.
42133         * modules/intprops (Makefile.am): Likewise.
42134         * modules/inttostr (Makefile.am): Likewise.
42135         * modules/inttypes (Makefile.am): Likewise.
42136         * modules/isapipe (Makefile.am): Likewise.
42137         * modules/javaversion (Makefile.am): Likewise.
42138         * modules/lchmod (Makefile.am): Likewise.
42139         * modules/lchown (Makefile.am): Likewise.
42140         * modules/localcharset (Makefile.am): Likewise.
42141         * modules/long-options (Makefile.am): Likewise.
42142         * modules/lstat (Makefile.am): Likewise.
42143         * modules/malloc (Makefile.am): Likewise.
42144         * modules/mathl (Makefile.am): Likewise.
42145         * modules/mbchar (Makefile.am): Likewise.
42146         * modules/md2 (Makefile.am): Likewise.
42147         * modules/md4 (Makefile.am): Likewise.
42148         * modules/md5 (Makefile.am): Likewise.
42149         * modules/memcasecmp (Makefile.am): Likewise.
42150         * modules/memchr (Makefile.am): Likewise.
42151         * modules/memcmp (Makefile.am): Likewise.
42152         * modules/memcoll (Makefile.am): Likewise.
42153         * modules/memcpy (Makefile.am): Likewise.
42154         * modules/memmem (Makefile.am): Likewise.
42155         * modules/memmove (Makefile.am): Likewise.
42156         * modules/mempcpy (Makefile.am): Likewise.
42157         * modules/memrchr (Makefile.am): Likewise.
42158         * modules/memset (Makefile.am): Likewise.
42159         * modules/memxor (Makefile.am): Likewise.
42160         * modules/mkancesdirs (Makefile.am): Likewise.
42161         * modules/mkdir-p (Makefile.am): Likewise.
42162         * modules/mkdir (Makefile.am): Likewise.
42163         * modules/mkdtemp (Makefile.am): Likewise.
42164         * modules/mkstemp (Makefile.am): Likewise.
42165         * modules/mktime (Makefile.am): Likewise.
42166         * modules/modechange (Makefile.am): Likewise.
42167         * modules/mountlist (Makefile.am): Likewise.
42168         * modules/nanosleep (Makefile.am): Likewise.
42169         * modules/obstack (Makefile.am): Likewise.
42170         * modules/openat (Makefile.am): Likewise.
42171         * modules/pagealign_alloc (Makefile.am): Likewise.
42172         * modules/pathmax (Makefile.am): Likewise.
42173         * modules/physmem (Makefile.am): Likewise.
42174         * modules/poll (Makefile.am): Likewise.
42175         * modules/posixtm (Makefile.am): Likewise.
42176         * modules/posixver (Makefile.am): Likewise.
42177         * modules/putenv (Makefile.am): Likewise.
42178         * modules/quote (Makefile.am): Likewise.
42179         * modules/quotearg (Makefile.am): Likewise.
42180         * modules/raise (Makefile.am): Likewise.
42181         * modules/read-file (Makefile.am): Likewise.
42182         * modules/readline (Makefile.am): Likewise.
42183         * modules/readlink (Makefile.am): Likewise.
42184         * modules/readtokens (Makefile.am): Likewise.
42185         * modules/readutmp (Makefile.am): Likewise.
42186         * modules/realloc (Makefile.am): Likewise.
42187         * modules/regex (Makefile.am): Likewise.
42188         * modules/rename-dest-slash (Makefile.am): Likewise.
42189         * modules/rename (Makefile.am): Likewise.
42190         * modules/rijndael (Makefile.am): Likewise.
42191         * modules/rmdir (Makefile.am): Likewise.
42192         * modules/rpmatch (Makefile.am): Likewise.
42193         * modules/safe-read (Makefile.am): Likewise.
42194         * modules/safe-write (Makefile.am): Likewise.
42195         * modules/same-inode (Makefile.am): Likewise.
42196         * modules/same (Makefile.am): Likewise.
42197         * modules/save-cwd (Makefile.am): Likewise.
42198         * modules/savedir (Makefile.am): Likewise.
42199         * modules/setenv (Makefile.am): Likewise.
42200         * modules/settime (Makefile.am): Likewise.
42201         * modules/sha1 (Makefile.am): Likewise.
42202         * modules/sig2str (Makefile.am): Likewise.
42203         * modules/snprintf (Makefile.am): Likewise.
42204         * modules/stat-macros (Makefile.am): Likewise.
42205         * modules/stat-time (Makefile.am): Likewise.
42206         * modules/stdbool (Makefile.am): Likewise.
42207         * modules/stdint (Makefile.am): Likewise.
42208         * modules/stdlib-safer (Makefile.am): Likewise.
42209         * modules/stpcpy (Makefile.am): Likewise.
42210         * modules/stpncpy (Makefile.am): Likewise.
42211         * modules/strcase (Makefile.am): Likewise.
42212         * modules/strcasestr (Makefile.am): Likewise.
42213         * modules/strchrnul (Makefile.am): Likewise.
42214         * modules/strcspn (Makefile.am): Likewise.
42215         * modules/strdup (Makefile.am): Likewise.
42216         * modules/strerror (Makefile.am): Likewise.
42217         * modules/strftime (Makefile.am): Likewise.
42218         * modules/strndup (Makefile.am): Likewise.
42219         * modules/strnlen (Makefile.am): Likewise.
42220         * modules/strpbrk (Makefile.am): Likewise.
42221         * modules/strsep (Makefile.am): Likewise.
42222         * modules/strstr (Makefile.am): Likewise.
42223         * modules/strtod (Makefile.am): Likewise.
42224         * modules/strtoimax (Makefile.am): Likewise.
42225         * modules/strtok_r (Makefile.am): Likewise.
42226         * modules/strtol (Makefile.am): Likewise.
42227         * modules/strtoll (Makefile.am): Likewise.
42228         * modules/strtoul (Makefile.am): Likewise.
42229         * modules/strtoull (Makefile.am): Likewise.
42230         * modules/strtoumax (Makefile.am): Likewise.
42231         * modules/strverscmp (Makefile.am): Likewise.
42232         * modules/sys_socket (Makefile.am): Likewise.
42233         * modules/sys_stat (Makefile.am): Likewise.
42234         * modules/sysexits (Makefile.am): Likewise.
42235         * modules/time_r (Makefile.am): Likewise.
42236         * modules/timegm (Makefile.am): Likewise.
42237         * modules/timespec (Makefile.am): Likewise.
42238         * modules/tmpfile-safer (Makefile.am): Likewise.
42239         * modules/trim (Makefile.am): Likewise.
42240         * modules/unistd-safer (Makefile.am): Likewise.
42241         * modules/unlinkdir (Makefile.am): Likewise.
42242         * modules/unlocked-io (Makefile.am): Likewise.
42243         * modules/userspec (Makefile.am): Likewise.
42244         * modules/utime (Makefile.am): Likewise.
42245         * modules/utimecmp (Makefile.am): Likewise.
42246         * modules/utimens (Makefile.am): Likewise.
42247         * modules/vasnprintf (Makefile.am): Likewise.
42248         * modules/vasprintf (Makefile.am): Likewise.
42249         * modules/vsnprintf (Makefile.am): Likewise.
42250         * modules/xalloc (Makefile.am): Likewise.
42251         * modules/xgetcwd (Makefile.am): Likewise.
42252         * modules/xnanosleep (Makefile.am): Likewise.
42253         * modules/xreadlink (Makefile.am): Likewise.
42254         * modules/xstrtod (Makefile.am): Likewise.
42255         * modules/xstrtol (Makefile.am): Likewise.
42256         * modules/xstrtold (Makefile.am): Likewise.
42257         * modules/yesno (Makefile.am): Likewise.
42258         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42259
42260 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42261
42262         * modules/error (Makefile.am): Distribute files through
42263         EXTRA_DIST, not lib_SOURCES.
42264
42265 2006-10-12  Eric Blake  <ebb9@byu.net>
42266
42267         * modules/error (Makefile.am): Distribute files in /lib.
42268         * modules/obstack (Makefile.am): Likewise.
42269
42270 2006-10-12  Bruno Haible  <bruno@clisp.org>
42271
42272         * modules/acl (Makefile.am): Distribute all files in lib/ through
42273         EXTRA_DIST.
42274         * modules/arcfour (Makefile.am): Likewise.
42275         * modules/arctwo (Makefile.am): Likewise.
42276         * modules/argmatch (Makefile.am): Likewise.
42277         * modules/argz (Makefile.am): Likewise.
42278         * modules/atexit (Makefile.am): Likewise.
42279         * modules/backupfile (Makefile.am): Likewise.
42280         * modules/c-strtod (Makefile.am): Likewise.
42281         * modules/c-strtold (Makefile.am): Likewise.
42282         * modules/calloc (Makefile.am): Likewise.
42283         * modules/canon-host (Makefile.am): Likewise.
42284         * modules/canonicalize (Makefile.am): Likewise.
42285         * modules/chdir-long (Makefile.am): Likewise.
42286         * modules/chdir-safer (Makefile.am): Likewise.
42287         * modules/check-version (Makefile.am): Likewise.
42288         * modules/chown (Makefile.am): Likewise.
42289         * modules/cloexec (Makefile.am): Likewise.
42290         * modules/close-stream (Makefile.am): Likewise.
42291         * modules/closeout (Makefile.am): Likewise.
42292         * modules/crc (Makefile.am): Likewise.
42293         * modules/cycle-check (Makefile.am): Likewise.
42294         * modules/des (Makefile.am): Likewise.
42295         * modules/dirfd (Makefile.am): Likewise.
42296         * modules/dirname (Makefile.am): Likewise.
42297         * modules/dup2 (Makefile.am): Likewise.
42298         * modules/euidaccess (Makefile.am): Likewise.
42299         * modules/exclude (Makefile.am): Likewise.
42300         * modules/exitfail (Makefile.am): Likewise.
42301         * modules/fcntl-safer (Makefile.am): Likewise.
42302         * modules/file-type (Makefile.am): Likewise.
42303         * modules/fileblocks (Makefile.am): Likewise.
42304         * modules/filemode (Makefile.am): Likewise.
42305         * modules/filenamecat (Makefile.am): Likewise.
42306         * modules/fnmatch (Makefile.am): Likewise.
42307         * modules/fopen-safer (Makefile.am): Likewise.
42308         * modules/fpending (Makefile.am): Likewise.
42309         * modules/fprintftime (Makefile.am): Likewise.
42310         * modules/free (Makefile.am): Likewise.
42311         * modules/fsusage (Makefile.am): Likewise.
42312         * modules/ftruncate (Makefile.am): Likewise.
42313         * modules/fts (Makefile.am): Likewise.
42314         * modules/gc (Makefile.am): Likewise.
42315         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42316         * modules/getaddrinfo (Makefile.am): Likewise.
42317         * modules/getcwd (Makefile.am): Likewise.
42318         * modules/getdelim (Makefile.am): Likewise.
42319         * modules/getdomainname (Makefile.am): Likewise.
42320         * modules/getgroups (Makefile.am): Likewise.
42321         * modules/gethostname (Makefile.am): Likewise.
42322         * modules/gethrxtime (Makefile.am): Likewise.
42323         * modules/getline (Makefile.am): Likewise.
42324         * modules/getloadavg (Makefile.am): Likewise.
42325         * modules/getlogin_r (Makefile.am): Likewise.
42326         * modules/getopt (Makefile.am): Likewise.
42327         * modules/getpass (Makefile.am): Likewise.
42328         * modules/getpass-gnu (Makefile.am): Likewise.
42329         * modules/getsubopt (Makefile.am): Likewise.
42330         * modules/gettime (Makefile.am): Likewise.
42331         * modules/gettimeofday (Makefile.am): Likewise.
42332         * modules/getugroups (Makefile.am): Likewise.
42333         * modules/getusershell (Makefile.am): Likewise.
42334         * modules/glob (Makefile.am): Likewise.
42335         * modules/group-member (Makefile.am): Likewise.
42336         * modules/hard-locale (Makefile.am): Likewise.
42337         * modules/hash (Makefile.am): Likewise.
42338         * modules/hmac-md5 (Makefile.am): Likewise.
42339         * modules/hmac-sha1 (Makefile.am): Likewise.
42340         * modules/human (Makefile.am): Likewise.
42341         * modules/idcache (Makefile.am): Likewise.
42342         * modules/imaxabs (Makefile.am): Likewise.
42343         * modules/imaxdiv (Makefile.am): Likewise.
42344         * modules/inet_ntop (Makefile.am): Likewise.
42345         * modules/inet_pton (Makefile.am): Likewise.
42346         * modules/inttostr (Makefile.am): Likewise.
42347         * modules/isapipe (Makefile.am): Likewise.
42348         * modules/lchown (Makefile.am): Likewise.
42349         * modules/long-options (Makefile.am): Likewise.
42350         * modules/lstat (Makefile.am): Likewise.
42351         * modules/malloc (Makefile.am): Likewise.
42352         * modules/mathl (Makefile.am): Likewise.
42353         * modules/mbchar (Makefile.am): Likewise.
42354         * modules/md2 (Makefile.am): Likewise.
42355         * modules/md4 (Makefile.am): Likewise.
42356         * modules/md5 (Makefile.am): Likewise.
42357         * modules/memcasecmp (Makefile.am): Likewise.
42358         * modules/memchr (Makefile.am): Likewise.
42359         * modules/memcmp (Makefile.am): Likewise.
42360         * modules/memcoll (Makefile.am): Likewise.
42361         * modules/memcpy (Makefile.am): Likewise.
42362         * modules/memmem (Makefile.am): Likewise.
42363         * modules/memmove (Makefile.am): Likewise.
42364         * modules/mempcpy (Makefile.am): Likewise.
42365         * modules/memrchr (Makefile.am): Likewise.
42366         * modules/memset (Makefile.am): Likewise.
42367         * modules/memxor (Makefile.am): Likewise.
42368         * modules/mkancesdirs (Makefile.am): Likewise.
42369         * modules/mkdir (Makefile.am): Likewise.
42370         * modules/mkdir-p (Makefile.am): Likewise.
42371         * modules/mkdtemp (Makefile.am): Likewise.
42372         * modules/mkstemp (Makefile.am): Likewise.
42373         * modules/mktime (Makefile.am): Likewise.
42374         * modules/modechange (Makefile.am): Likewise.
42375         * modules/mountlist (Makefile.am): Likewise.
42376         * modules/nanosleep (Makefile.am): Likewise.
42377         * modules/openat (Makefile.am): Likewise.
42378         * modules/pagealign_alloc (Makefile.am): Likewise.
42379         * modules/physmem (Makefile.am): Likewise.
42380         * modules/poll (Makefile.am): Likewise.
42381         * modules/posixtm (Makefile.am): Likewise.
42382         * modules/posixver (Makefile.am): Likewise.
42383         * modules/putenv (Makefile.am): Likewise.
42384         * modules/quote (Makefile.am): Likewise.
42385         * modules/quotearg (Makefile.am): Likewise.
42386         * modules/raise (Makefile.am): Likewise.
42387         * modules/read-file (Makefile.am): Likewise.
42388         * modules/readline (Makefile.am): Likewise.
42389         * modules/readlink (Makefile.am): Likewise.
42390         * modules/readtokens (Makefile.am): Likewise.
42391         * modules/readutmp (Makefile.am): Likewise.
42392         * modules/realloc (Makefile.am): Likewise.
42393         * modules/regex (Makefile.am): Likewise.
42394         * modules/rename (Makefile.am): Likewise.
42395         * modules/rename-dest-slash (Makefile.am): Likewise.
42396         * modules/rijndael (Makefile.am): Likewise.
42397         * modules/rmdir (Makefile.am): Likewise.
42398         * modules/rpmatch (Makefile.am): Likewise.
42399         * modules/safe-read (Makefile.am): Likewise.
42400         * modules/safe-write (Makefile.am): Likewise.
42401         * modules/same (Makefile.am): Likewise.
42402         * modules/save-cwd (Makefile.am): Likewise.
42403         * modules/savedir (Makefile.am): Likewise.
42404         * modules/setenv (Makefile.am): Likewise.
42405         * modules/settime (Makefile.am): Likewise.
42406         * modules/sha1 (Makefile.am): Likewise.
42407         * modules/sig2str (Makefile.am): Likewise.
42408         * modules/snprintf (Makefile.am): Likewise.
42409         * modules/stdlib-safer (Makefile.am): Likewise.
42410         * modules/stpcpy (Makefile.am): Likewise.
42411         * modules/stpncpy (Makefile.am): Likewise.
42412         * modules/strcase (Makefile.am): Likewise.
42413         * modules/strcasestr (Makefile.am): Likewise.
42414         * modules/strchrnul (Makefile.am): Likewise.
42415         * modules/strcspn (Makefile.am): Likewise.
42416         * modules/strdup (Makefile.am): Likewise.
42417         * modules/strerror (Makefile.am): Likewise.
42418         * modules/strftime (Makefile.am): Likewise.
42419         * modules/strndup (Makefile.am): Likewise.
42420         * modules/strnlen (Makefile.am): Likewise.
42421         * modules/strpbrk (Makefile.am): Likewise.
42422         * modules/strsep (Makefile.am): Likewise.
42423         * modules/strstr (Makefile.am): Likewise.
42424         * modules/strtod (Makefile.am): Likewise.
42425         * modules/strtoimax (Makefile.am): Likewise.
42426         * modules/strtok_r (Makefile.am): Likewise.
42427         * modules/strtol (Makefile.am): Likewise.
42428         * modules/strtoll (Makefile.am): Likewise.
42429         * modules/strtoul (Makefile.am): Likewise.
42430         * modules/strtoull (Makefile.am): Likewise.
42431         * modules/strtoumax (Makefile.am): Likewise.
42432         * modules/strverscmp (Makefile.am): Likewise.
42433         * modules/time_r (Makefile.am): Likewise.
42434         * modules/timegm (Makefile.am): Likewise.
42435         * modules/tmpfile-safer (Makefile.am): Likewise.
42436         * modules/unistd-safer (Makefile.am): Likewise.
42437         * modules/unlinkdir (Makefile.am): Likewise.
42438         * modules/userspec (Makefile.am): Likewise.
42439         * modules/utime (Makefile.am): Likewise.
42440         * modules/utimecmp (Makefile.am): Likewise.
42441         * modules/utimens (Makefile.am): Likewise.
42442         * modules/vasnprintf (Makefile.am): Likewise.
42443         * modules/vasprintf (Makefile.am): Likewise.
42444         * modules/vsnprintf (Makefile.am): Likewise.
42445         * modules/xalloc (Makefile.am): Likewise.
42446         * modules/xgetcwd (Makefile.am): Likewise.
42447         * modules/xnanosleep (Makefile.am): Likewise.
42448         * modules/xreadlink (Makefile.am): Likewise.
42449         * modules/xstrtod (Makefile.am): Likewise.
42450         * modules/xstrtol (Makefile.am): Likewise.
42451         * modules/xstrtold (Makefile.am): Likewise.
42452         * modules/yesno (Makefile.am): Likewise.
42453
42454 2006-10-12  Jim Meyering  <jim@meyering.net>
42455
42456         * m4/getloadavg.m4: Revert the change below.
42457
42458         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42459         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42460         fail with a symlink, which is what coreutils' ./bootstrap now
42461         creates by default.
42462
42463 2006-10-12  Bruno Haible  <bruno@clisp.org>
42464
42465         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42466         mingw.
42467         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42468         MSVC and mingw explicitly.
42469
42470 2006-10-11  Simon Josefsson  <jas@extundo.com>
42471             Bruno Haible  <bruno@clisp.org>
42472
42473         Add support for multiple gnulib-tool invocations in the scope of a
42474         single configure.ac file.
42475         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42476         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42477         with the same contents as the _LIBADD variable.
42478         (func_emit_initmacro_start, func_emit_initmacro_end,
42479         func_emit_initmacro_done): New functions.
42480         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42481         gl_LIBOBJS and gl_LTLIBOBJS.
42482
42483 2006-10-11  Bruno Haible  <bruno@clisp.org>
42484
42485         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42486         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42487         autoreconf. Instead, invoke autopoint explicitly but move back the
42488         *.m4 files from gnulib.
42489
42490 2006-10-11  Bruno Haible  <bruno@clisp.org>
42491
42492         * gnulib-tool (func_usage): Make module names after --create-testdir
42493         optional.
42494         (func_create_testdir): If no module was specified, use nearly all
42495         modules.
42496
42497 2006-10-12  Jim Meyering  <jim@meyering.net>
42498
42499         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42500         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42501         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42502         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42503         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42504         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42505         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42506         (fts_set_stat_required): New function.
42507         (fts_open): Defer the calls to fts_stat, if possible or requested.
42508         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42509         into fts_stat itself.
42510         (fts_read): Perform any required (deferred) fts_stat call.
42511         (fts_build): Likewise, for the directory we're about to open and read.
42512         In the readdir loop, carefully decide whether each entry will require
42513         an eventual call to fts_stat, using dirent.d_type info if available.
42514         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42515         a command line argument into this function.  Update all callers.
42516         Map a return value of FTS_DOT to FTS_D for a command line argument.
42517         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42518         Thanks to Miklos Szeredi for his tenacity and for the initial
42519         bug report about "find" failing on a FUSE-based file system.
42520
42521         * lib/fts.c (fts_open): Use consistent indentation.
42522
42523 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42524
42525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42526         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42527         reported by Jim Meyering.  All uses of cache variables renamed
42528         to match Autoconf's.
42529         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42530         the other one.
42531
42532         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42533         Fix misspelling in diagnostic.
42534
42535 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42536
42537         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42538         defined.  Problem reported by Matthew Woehlke.
42539
42540         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42541         Add support for Tandem NonStop R series.
42542         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42543         Use new macro.
42544
42545         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42546         (has_trailing_slash): Omit size arg; all callers changed.
42547         Omit 'inline', since it doesn't help performance and we'd
42548         need to configure it.
42549         Don't count //, ///, etc. as having a trailing slash.
42550         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42551         (rpl_rename_dest_slash): On failure, use rename's errno rather
42552         than (in some cases) an incorrect or junk errno.
42553         Simplify code by removing need to compute length; this does
42554         cause it to make two passes instead of one over the file name,
42555         but it's worth it.
42556
42557         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42558         change, since Autoconf's version may no longer be appropriate now
42559         that we are using CVS Autoconf's version.  Add support for Tandem.
42560
42561 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42562             Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42565         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42566         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42567         gl_AC_TYPE_LONG_LONG.
42568
42569         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42570         instead of HAVE_LONG_LONG.
42571         * lib/printf-args.c (printf_fetchargs): Likewise.
42572         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42573         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42574         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42575         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42576         gl_AC_TYPE_LONG_LONG.
42577
42578 2006-10-11  Bruno Haible  <bruno@clisp.org>
42579
42580         * m4/longlong.m4: Add comments.
42581         * m4/ulonglong.m4: Likewise.
42582
42583 2006-10-10  Bruno Haible  <bruno@clisp.org>
42584
42585         Make it possible to #define stpcpy, strdup to aliases.
42586         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42587         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42588
42589 2006-10-10  Bruno Haible  <bruno@clisp.org>
42590
42591         Make it possible to #define gcd to an alias.
42592         * lib/gcd.c: Include config.h.
42593
42594 2006-10-10  Bruno Haible  <bruno@clisp.org>
42595
42596         Make it possible to #define c_isascii to an alias.
42597         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42598         defined. Undefine the macros before defining them, to avoid gcc
42599         warnings.
42600         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42601         define NO_C_CTYPE_MACROS early.
42602
42603 2006-10-10  Bruno Haible  <bruno@clisp.org>
42604
42605         Make it possible to #define set_program_name to an alias.
42606         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42607         ENABLE_RELOCATABLE early.
42608
42609 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42610
42611         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42612         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42613         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42614         More generally, don't assume that 64-bit signed int is available
42615         if unsigned int is, and vice versa.
42616         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42617         unsigned symbols, not on their signed counterparts.
42618         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42619         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42620         (UINT64_C, UINTMAX_C):
42621         Likewise.
42622         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42623         unsigned counterparts.
42624         (Have_long_long, Unsigned): New macros.
42625         (Int): Renamed from INT.
42626         (strtoimax): Use the new macros.
42627         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42628         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42629         * modules/inttypes (inttypes.h): Substitute
42630         HAVE_UNSIGNED_LONG_LONG_INT.
42631         * modules/stdint (stdint.h): Likewise.
42632         (Files): Add m4/ulonglong.m4.
42633
42634 2006-10-10  Bruno Haible  <bruno@clisp.org>
42635
42636         Fix a gcc -Wshadow warning.
42637         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42638         to 'bucket'.
42639         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42640         gl_linked_indexof_from_to): Likewise.
42641         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42642         Likewise.
42643         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42644         Likewise.
42645         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42646         Reported by Eric Blake.
42647
42648 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42649
42650         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42651         for NetBSD.  Problem reported by Bruno Haible.
42652
42653 2006-10-09  Jim Meyering  <jim@meyering.net>
42654
42655         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42656         Patch from Bruno Haible.
42657
42658 2006-10-09  Jim Meyering  <jim@meyering.net>
42659
42660         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42661         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42662         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42663
42664 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42665
42666         Don't include <config.h> twice; this doesn't work in some cases,
42667         e.g., when config.h has "#define intmax_t long long int" and
42668         we include <config.h>, <inttypes.h>, <config.h> in that order.
42669         Problem reported by Matthew Woehlke in:
42670         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42671         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42672         * lib/fts-cycle.c: Don't include config.h.
42673         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42674         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42675         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42676         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42677         inttypes.h.
42678         * lib/xstrtoumax.c: Likewise.
42679         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42680         __strtol and the like, so that this module is more like its siblings.
42681         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42682         Remove; no longer needed now that we assume gnulib inttypes.h.
42683
42684 2006-10-08  Bruno Haible  <bruno@clisp.org>
42685
42686         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42687         option.
42688
42689 2006-10-07  Jim Meyering  <jim@meyering.net>
42690
42691         * modules/inttypes (inttypes.h): Revert what seems to have been
42692         an inadvertent part of today's change: use "|", not "/" in the
42693         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42694
42695 2006-10-07  Bruno Haible  <bruno@clisp.org>
42696
42697         * modules/sublist: New file.
42698
42699 2006-10-07  Bruno Haible  <bruno@clisp.org>
42700
42701         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42702         * modules/argz (argz.h): Likewise.
42703         * modules/arpa_inet (arpa/inet.h): Likewise.
42704         * modules/byteswap (byteswap.h): Likewise.
42705         * modules/configmake (configmake.h): Likewise.
42706         * modules/fcntl (fcntl.h): Likewise.
42707         * modules/fnmatch (fnmatch.h): Likewise.
42708         * modules/getopt (getopt.h): Likewise.
42709         * modules/glob (glob.h): Likewise.
42710         * modules/inttypes (inttypes.h): Likewise.
42711         * modules/netinet_in (netinet/in.h): Likewise.
42712         * modules/poll (poll.h): Likewise.
42713         * modules/stdbool (stdbool.h): Likewise.
42714         * modules/stdint (stdint.h): Likewise.
42715         * modules/sys_select (sys/select.h): Likewise.
42716         * modules/sys_socket (sys/socket.h): Likewise.
42717         * modules/sys_stat (sys/stat.h): Likewise.
42718         * modules/sysexits (sysexits.h): Likewise.
42719         * modules/unistd (unistd.h): Likewise.
42720         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42721         Add a "DO NOT EDIT" comment to the generated file.
42722         (func_import): Likewise for gnulib-comp.m4.
42723
42724 2006-10-07  Bruno Haible  <bruno@clisp.org>
42725
42726         * lib/gl_sublist.h: New file.
42727         * lib/gl_sublist.c: New file.
42728
42729 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42732         name (relative to the original working directory) and the file
42733         name component (relative to the temporary working directory).  All
42734         callers changed.
42735         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42736         * lib/mkdir-p.c (make_dir_parents): Likewise.
42737         * lib/mkdir-p.h (make_dir_parents): Likewise.
42738
42739 2006-10-06  Eric Blake  <ebb9@byu.net>
42740
42741         Define several macros for use by the clean-temp module.
42742         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42743         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42745
42746         * lib/clean-temp.h (close_stream_temp): New declaration.
42747         * lib/clean-temp.c (includes): Pull in headers according to what
42748         other modules are in use.
42749         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42750
42751 2006-10-06  Bruno Haible  <bruno@clisp.org>
42752
42753         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42754         instead of fopen, fwriteerror.
42755
42756 2006-10-06  Bruno Haible  <bruno@clisp.org>
42757
42758         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42759         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42760         int.
42761         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42762         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42763         Return an error indicator.
42764         Suggested by Eric Blake.
42765
42766 2006-10-06  Bruno Haible  <bruno@clisp.org>
42767
42768         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42769         Reported by Eric Blake.
42770
42771 2006-10-06  Bruno Haible  <bruno@clisp.org>
42772
42773         * modules/closeout (Description): Mention stderr too.
42774
42775 2006-10-06  Bruno Haible  <bruno@clisp.org>
42776         and Paul Eggert  <eggert@cs.ucla.edu>
42777
42778         * lib/closeout.c (close_stdout): Also close stderr.
42779         * lib/closeout.h: Update comment.
42780
42781 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42782
42783         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42784         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42785         * lib/dirchownmod.c: Include lchown.h.
42786         * lib/lchown.c: Don't include files that lchown.h now includes.
42787         Don't declare chown, since lchown.h now does that.
42788         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42789         (lchown): Define to rpl_chown if lchown is declared but
42790         does not exist.  Declare using a prototype if lchown is not
42791         declared.  Add a copyright notice.
42792         * lib/mkstemp.h: Include <unistd.h>.
42793         * lib/openat.c: Include lchown.h.
42794
42795         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42796         we now test for that separately.
42797         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42798         rather than O_NOFOLLOW, when testing whether it's possible to
42799         avoid a race condition reliably.
42800         * lib/savewd.c (savewd_chdir): Likewise.
42801
42802         Remove macros that are no longer needed now that stdint.h is
42803         reliable.
42804         * lib/fsusage.c (UINTMAX_MAX): Remove.
42805         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42806         * lib/utimecmp.c (SIZE_MAX): Remove.
42807
42808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42809
42810         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42811         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42812         O_NOATIME works.
42813
42814 2006-10-05  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/gl_list.h (gl_sortedlist_search_from_to,
42817         gl_sortedlist_indexof_from_to): New declarations.
42818         (gl_list_implementation): New fields sortedlist_search_from_to,
42819         sortedlist_indexof_from_to.
42820         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42821         inline functions.
42822         * lib/gl_list.c (gl_sortedlist_search_from_to,
42823         gl_sortedlist_indexof_from_to): New functions.
42824         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42825         function.
42826         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42827         (gl_array_sortedlist_search_from_to): New function.
42828         (gl_array_list_implementation): Update.
42829         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42830         function.
42831         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42832         (gl_carray_sortedlist_search_from_to): New function.
42833         (gl_carray_list_implementation): Update.
42834         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42835         gl_linked_sortedlist_indexof_from_to): New functions.
42836         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42837         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42838         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42839         gl_tree_sortedlist_indexof_from_to): New functions.
42840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42841         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42842         Update.
42843         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42844         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42845         Update.
42846
42847 2006-10-05  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42850         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42851         (struct gl_list_implementation): Add fields search_from_to,
42852         indexof_from_to. Remove fields search, indexof.
42853         (gl_list_search): Use the search_from_to method.
42854         (gl_list_search_from, gl_list_search_from_to): New functions.
42855         (gl_list_indexof): Use the indexof_from_to method.
42856         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42857         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42858         (gl_list_search_from, gl_list_search_from_to): New functions.
42859         (gl_list_indexof): Use the indexof_from_to method.
42860         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42861         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42862         gl_array_indexof. Add start_index, end_index arguments.
42863         (gl_array_search_from_to): Renamed from gl_array_search. Add
42864         start_index, end_index arguments.
42865         (gl_array_remove, gl_array_list_implementation): Update.
42866         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42867         gl_carray_indexof. Add start_index, end_index arguments.
42868         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42869         start_index, end_index arguments.
42870         (gl_carray_remove, gl_carray_list_implementation): Update.
42871         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42872         gl_linked_search. Add start_index, end_index arguments.
42873         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42874         start_index, end_index arguments.
42875         (gl_linked_remove): Update.
42876         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42877         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42878         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42879         field to 'size_t'.
42880         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42881         gl_tree_search. Add start_index, end_index arguments.
42882         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42883         start_index, end_index arguments.
42884         (gl_tree_remove): Update.
42885         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42886         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42887         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42888         function.
42889         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42890         gl_tree_search. Add start_index, end_index arguments.
42891         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42892         start_index, end_index arguments.
42893         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42894         Update.
42895         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42896
42897 2006-10-05  Bruno Haible  <bruno@clisp.org>
42898
42899         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42900
42901         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42902         fwriteerror_temp): New declarations.
42903         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42904         (descriptors): New variable.
42905         (cleanup): First, close the descriptors.
42906         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42907         fclose_temp, fwriteerror_temp): New functions.
42908
42909 2006-10-04  Jim Meyering  <jim@meyering.net>
42910
42911         * lib/fts.c (fts_open): Tiny comment change.
42912
42913 2006-10-04  Bruno Haible  <bruno@clisp.org>
42914
42915         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42916         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42917         gl_LOCK_BODY.
42918         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42919         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42920         gl_LOCK_EARLY_BODY.
42921         (gl_LOCK): Require gl_LOCK_BODY.
42922
42923 2006-10-04  Bruno Haible  <bruno@clisp.org>
42924
42925         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42926         (gl_oset_search_atleast): New declaration.
42927         (struct gl_oset_implementation): Add field 'search_atleast'.
42928         (gl_oset_search_atleast): New inline function.
42929         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42930         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42931         (gl_array_oset_implementation): Update.
42932         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42933         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42934         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42935
42936 2006-10-04  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42939
42940 2006-10-03  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42943         from gl_avltreehash_list_implementation.
42944
42945 2006-10-03  Bruno Haible  <bruno@clisp.org>
42946
42947         * lib/gl_oset.c (gl_oset_add): Fix return type.
42948
42949 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42950
42951         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42952
42953 2006-10-02  Eric Blake  <ebb9@byu.net>
42954
42955         * modules/strnlen (Depends-on): Add extensions.
42956
42957 2006-10-02  Eric Blake  <ebb9@byu.net>
42958
42959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42960         definition in 2.60+.
42961
42962 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42963
42964         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42965         checks.
42966
42967 2006-10-02  Bruno Haible  <bruno@clisp.org>
42968
42969         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42970         to the AUTOMAKE_OPTIONS.
42971         Reported by Jim Meyering.
42972
42973 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42974
42975         Work around bug in Solaris 10 /proc file system:
42976         /proc/self/fd/NNN/.. isn't the parent directory of
42977         the directory whose file descriptor is NNN.  This needs to
42978         be worked around at run time, not compile time, since a
42979         program might be built on Solaris 8, where things work, and
42980         run on Solaris 10.
42981         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42982         to use the following interface instead:
42983         (OPENAT_BUFFER_SIZE): New macro.
42984         (openat_proc_name): New function.
42985         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42986         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42987         Likewise.
42988         * lib/openat-proc.c: New file.
42989         * modules/openat (Files): Add lib/openat-proc.c.
42990         (Depends-on): Add same-inode, stdbool.
42991         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42992
42993 2006-09-29  Bruno Haible  <bruno@clisp.org>
42994
42995         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42996         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42997         argument. Set stdout_closed before testing for ferror, not after.
42998         (fwriteerror, fwriteerror_no_ebadf): New functions.
42999
43000 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43001
43002         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43003
43004 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43005
43006         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43007         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43008
43009 2006-09-28  Jim Meyering  <jim@meyering.net>
43010
43011         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43012         Include <unistd.h>.
43013
43014 2006-09-28  Bruno Haible  <bruno@clisp.org>
43015
43016         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43017         * modules/linkedhash-list (Depends-on): Likewise.
43018         * modules/rbtreehash-list (Depends-on): Likewise.
43019
43020 2006-09-28  Bruno Haible  <bruno@clisp.org>
43021
43022         * lib/strndup.h: Simplify the redefinition of strndup.
43023         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43025
43026 2006-09-28  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43029         * lib/gl_linkedhash_list.c: Likewise.
43030         * lib/gl_rbtreehash_list.c: Likewise.
43031
43032 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43033
43034         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43035         getaddrinfo.
43036
43037         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43038         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43039         it causes <stdio_ext.h> to cause a compile-time error.
43040         Problem reported by Nelson H. F. Beebe.
43041         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43042         of HAVE_DECL___PENDING.
43043
43044         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43046         declaration.
43047
43048 2006-09-27  Jim Meyering  <jim@meyering.net>
43049
43050         This file could end up with a definition for a function
43051         named __strndup, rather than rpl_strndup on a system with
43052         incomplete weak_alias support.
43053         * lib/strndup.c (strndup): Rename from __strndup.
43054         Remove #defines that used to map __strndup to strndup.
43055         Don't use K&R prototypes.
43056         Remove LIBC-related code, since this file is not sync'd with glibc.
43057         * lib/strndup.h: Revamp, accordingly.
43058         * m4/strndup.m4: Modernize.
43059
43060 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43061
43062         * modules/savewd (Depends-on): Add 'raise'.
43063         * lib/savewd.c: Include <signal.h>, for 'raise'.
43064
43065 2006-09-26  Jim Meyering  <jim@meyering.net>
43066
43067         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43068         when we detect Darwin 8.7.0's acl_get_file bug.
43069         Rearrange to perform the new (below) run-test while $LIBS
43070         contains any acl-related library.  Set USE_ACL at the end.
43071         (gl_ACL_GET_FILE): New function.
43072
43073 2006-09-26  Eric Blake  <ebb9@byu.net>
43074
43075         * lib/verror.c: Include <config.h> unconditionally.
43076
43077 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43078
43079         * modules/clock-time (Maintainer): Add self.
43080         * modules/getlogin_r (Depends-on): Add extensions.
43081
43082 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43083
43084         * modules/clock-time: New module.
43085         * modules/nanosleep (Depends-on): Add clock-time.
43086         * modules/gethrxtime (Depends-on): Likewise.
43087         * modules/gettime (Depends-on): Likewise.
43088         * modules/settime (Depends-on): Likewise.
43089
43090         * modules/fts-lgpl: Depend on openat.
43091         * modules/mkancesdirs: Depend on savewd.
43092         * modules/mkdir-p: Likewise.
43093
43094 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43095
43096         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43097
43098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43099         `gl_have_arbitrary_file_name_length_limit' to
43100         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43101         actually works between configure runs.
43102
43103 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43104             Bruno Haible  <bruno@clisp.org>
43105
43106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43107
43108 2006-09-25  Jim Meyering  <jim@meyering.net>
43109
43110         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43111         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43112
43113 2006-09-25  Eric Blake  <ebb9@byu.net>
43114
43115         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43116         exec's in 2006-09-18 patch when shuffling fds.
43117
43118 2006-09-25  Bruno Haible  <bruno@clisp.org>
43119
43120         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43121         Reported by Jim Meyering.
43122
43123 2006-09-24  Jim Meyering  <jim@meyering.net>
43124
43125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43126         compare a pointer against a literal "0".  That caused failures with
43127         at least HP-UX's hpcc.
43128
43129 2006-09-22  Simon Josefsson  <jas@extundo.com>
43130
43131         * modules/gc-sha1:
43132         * modules/gc-md4:
43133         * modules/gc-hmac-sha1:
43134         * modules/gc-hmac-md5:
43135         * modules/gc-des:
43136         * modules/gc-arcfour: Distribute more files.
43137
43138 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43139
43140         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43141         (gl_linked_iterator_from_to): Initialize struct completely.
43142         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43143         (gl_tree_iterator_from_to): Likewise
43144         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43145         * lib/gl_array_list.c [lint] (gl_array_iterator)
43146         (gl_array_iterator_from_to): Likewise.
43147         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43148         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43149         (gl_carray_iterator_from_to): Likewise.
43150
43151         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43152         * lib/md4.c (md4_process_block): Remove unused variable.
43153         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43154         parentheses for clarity.
43155
43156 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43157
43158         * modules/bison-i18n (Depends-on): Add gettext.
43159
43160 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43161
43162         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43163         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43164         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43165         also add missing comma that caused broken test.
43166         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43167         stdlib.h, for `abort'.
43168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43169         variables.
43170         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43171         include unistd.h if present, for `rmdir'.
43172         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43173         variables.
43174         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43175         in the process include standard headers for prototypes.
43176         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43177         gets declared on GNU/Linux.
43178         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43179         unistd.h, for `rmdir'.
43180         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43181
43182         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43183         always true.
43184         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43185
43186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43187
43188 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43189
43190         * gnulib-tool (func_version): Create output all at once.  This
43191         may help avoid triggering unnecessary SIGPIPEs, and at any
43192         rate it doesn't hurt.
43193
43194 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43195             Bruno Haible  <bruno@clisp.org>
43196
43197         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43198         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43199         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43200
43201         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43202         (gl_FUNC_VASPRINTF): Invoke it.
43203
43204 2006-09-22  Bruno Haible  <bruno@clisp.org>
43205
43206         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43207         getloadavg.c as first argument.
43208
43209 2006-09-22  Bruno Haible  <bruno@clisp.org>
43210
43211         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43212         at the beginning of the gl_INIT macro.
43213         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43214         gl_GETLOADAVG.
43215
43216 2006-09-22  Bruno Haible  <bruno@clisp.org>
43217
43218         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43219         module.
43220         Suggested by Ralf Wildenhues.
43221
43222 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43223
43224         Import this patch from libc:
43225
43226         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43227
43228         * lib/regex_internal.c (re_string_reconstruct): Handle
43229         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43230         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43231         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43232         re_string_context_at.
43233
43234         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43235         now requires it.
43236         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43237         gl_REGEX now does it for us.
43238         (gl_REGEX): Add test taken from
43239         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43240
43241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43242         Check that large offsets work.  Modernize Autoconf usages.
43243         Prefer "yes" to mean a good thing rather than a bad.
43244         Don't put "#define mkstemp" in config.h, as this might interfere
43245         with standard system headers that "#define mkstemp mkstemp64".
43246
43247         * modules/mkstemp (Depends-on): Add extensions, so that
43248         mkstemp is visible on some platforms.
43249         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43250         (Include): Change to "mkstemp.h" from <stdlib.h>.
43251         (Files): Add mkstemp.h.
43252
43253         * lib/mkstemp.h: New file, since some standard headers
43254         #define mkstemp.
43255         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43256         Include "mkstemp.h".
43257         Make the _LIBC code resemble glibc original more,
43258         e.g., use K&R style.
43259         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43260         (mkstemp): Remove, since mkstemp.h does this for us.
43261         * lib/stdlib--.h: Include mkstemp.h.
43262
43263         Import this patch from libc:
43264
43265         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43266
43267         * lib/tempname.c (__gen_tempname): Change attempts_min
43268         into a macro.  Use preprocessor to decide how to initialize
43269         attempts [Coverity CID 67].
43270
43271 2006-09-20  Bruno Haible  <bruno@clisp.org>
43272
43273         * lib/mkdtemp.c: Import from libc.
43274         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43275                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43276                 attempts_min into a macro.  Use preprocessor to decide how to
43277                 initialize attempts [Coverity CID 67].
43278         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43279                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43280                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43281
43282 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43283
43284         * gnulib-tool (func_exit): New function, to allow to pass the
43285         exit status portably through the trap.  Use everywhere.
43286         (--help, --version): Signal a write error.
43287         (trap): catch SIGPIPE, for write errors.
43288         Exit at the end of the trap, with the correct exit status.
43289
43290 2006-09-19  Karl Berry  <karl@gnu.org>
43291
43292         * doc/gnulib.texi: note about the license texinfo files.
43293
43294 2006-09-19  Eric Blake  <ebb9@byu.net>
43295
43296         * gnulib-tool: Avoid space-tab.
43297
43298 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43299
43300         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43301         that prevented coreutils 6.1 from building.  Problem reported
43302         by Petter Reinholdtsen.
43303
43304 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43305
43306         * gnulib-tool (avoidlist): Fix typo that broke options like
43307         --avoid=lock that are used by coreutils bootstrap.
43308
43309 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43310
43311         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43312         more systematically.
43313
43314 2006-09-18  Jim Meyering  <jim@meyering.net>
43315
43316         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43317
43318 2006-09-18  Bruno Haible  <bruno@clisp.org>
43319
43320         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43321
43322 2006-09-18  Bruno Haible  <bruno@clisp.org>
43323
43324         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43325         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43326         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43327         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43328         * m4/gettext.m4: Require autoconf >= 2.52.
43329         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43330         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43331         of gl_cv_header_inttypes_h.
43332
43333 2006-09-18  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/javaversion.c: Include configmake.h.
43336
43337 2006-09-18  Bruno Haible  <bruno@clisp.org>
43338
43339         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43340         avoid that the while loops be executed in a subshell.
43341
43342 2006-09-18  Bruno Haible  <bruno@clisp.org>
43343
43344         * MODULES.html.sh (func_module): Break long lines.
43345         Suggested by Bruce Korb <bkorb@gnu.org>.
43346
43347 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43348
43349         Speed up by a factor of 1.12.
43350         * gnulib-tool (nl): New variable.
43351         (func_import): Rewrite include directive extraction to only read each
43352         directive once.
43353
43354 2006-09-17  Bruno Haible  <bruno@clisp.org>
43355
43356         * modules/javaversion (Makefile.am): Remove DEFS setting.
43357         (Depends-on): Add configmake, for PKGDATADIR definition.
43358
43359 2006-09-17  Bruno Haible  <bruno@clisp.org>
43360
43361         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43362
43363 2006-09-17  Bruno Haible  <bruno@clisp.org>
43364
43365         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43366         (func_modules_transitive_closure, func_modules_add_dummy,
43367         func_modules_to_filelist, func_import, func_create_testdir,
43368         func_create_megatestdir, ...): Use it wherever possible.
43369         Suggested by Ralf Wildenhues.
43370
43371 2006-09-16  Karl Berry  <karl@gnu.org>
43372
43373         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43374         to avoid sectioning errors.
43375         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43376         [ifinfo]: blank line after @center-ed titles.
43377         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43378         Spell FSF address consistently with others.
43379         (These changes approved by rms.)
43380
43381 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43382
43383         Speed up by a factor of 1.61.
43384         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43385         already checked module names again.
43386
43387 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43388
43389         Speed up by a factor of 1.13.
43390         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43391         for new_files, and the input to func_add_or_update.
43392
43393 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43394
43395         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43396         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43397
43398 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43399
43400         * modules/mkancesdirs (Depends-on): Add fcntl.
43401         * modules/savewd: New file.
43402         * MODULES.html.sh (File system functions): Add savewd.
43403
43404         * modules/configmake (Makefile.am): Add support for the
43405         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43406
43407 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43408
43409         * m4/savewd.m4: New file.
43410
43411 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43412
43413         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43414         (dirchownmod): New arg FD.  All callers changed.
43415         Use FD rather than opening the directory ourself, as opening is
43416         now the caller's responsibility.
43417         * lib/dirchownmod.h: Likewise.
43418         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43419         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43420         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43421         (test_dir): Remove.
43422         (mkancesdirs): Return length of prefix of FILE that has already
43423         been made, or -2 if there is a child doing the work.  Redo
43424         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43425         ".", and treat ".." specially since it might stray back into
43426         already-created areas.  Use a subprocess if necessary.  New arg
43427         WD; all users changed.  MAKE_DIR function should now return 1
43428         if it creates a directory that is not readable.  Return -2 if
43429         a child process is spun off.
43430         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43431         Adjust signature to match code.
43432         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43433         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43434         all users changed.
43435         * lib/savewd.c, lib/savewd.h: New files.
43436
43437 2006-09-15  Jim Meyering  <jim@meyering.net>
43438
43439         * modules/rename-dest-slash: New module.
43440         * MODULES.html.sh (posix_compat): Add it here.
43441
43442         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43443
43444 2006-09-15  Jim Meyering  <jim@meyering.net>
43445
43446         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43447         file.
43448
43449         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43450
43451 2006-09-15  Jim Meyering  <jim@meyering.net>
43452
43453         * lib/rename-dest-slash.c (has_trailing_slash): Use
43454         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43455         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43456         test before testing whether SRC is a directory.
43457         Suggestions from Bruno Haible.
43458
43459         Avoid a warning about an unused variable.
43460         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43461         into the #ifdef block where it's used.
43462
43463         * lib/rename-dest-slash.c: New file.
43464
43465 2006-09-14  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/allocsa.c: Include <config.h> unconditionally.
43468         * lib/asnprintf.c: Likewise.
43469         * lib/asprintf.c: Likewise.
43470         * lib/c-strcasecmp.c: Likewise.
43471         * lib/c-strcasestr.c: Likewise.
43472         * lib/c-strncasecmp.c: Likewise.
43473         * lib/c-strstr.c: Likewise.
43474         * lib/classpath.c: Likewise.
43475         * lib/clean-temp.c: Likewise.
43476         * lib/concatpath.c: Likewise.
43477         * lib/copy-file.c: Likewise.
43478         * lib/csharpcomp.c: Likewise.
43479         * lib/csharpexec.c: Likewise.
43480         * lib/execute.c: Likewise.
43481         * lib/fatal-signal.c: Likewise.
43482         * lib/findprog.c: Likewise.
43483         * lib/fwriteerror.c: Likewise.
43484         * lib/gl_array_list.c: Likewise.
43485         * lib/gl_array_oset.c: Likewise.
43486         * lib/gl_avltree_list.c: Likewise.
43487         * lib/gl_avltree_oset.c: Likewise.
43488         * lib/gl_avltreehash_list.c: Likewise.
43489         * lib/gl_carray_list.c: Likewise.
43490         * lib/gl_linked_list.c: Likewise.
43491         * lib/gl_linkedhash_list.c: Likewise.
43492         * lib/gl_list.c: Likewise.
43493         * lib/gl_oset.c: Likewise.
43494         * lib/gl_rbtree_list.c: Likewise.
43495         * lib/gl_rbtree_oset.c: Likewise.
43496         * lib/gl_rbtreehash_list.c: Likewise.
43497         * lib/imaxabs.c: Likewise.
43498         * lib/imaxdiv.c: Likewise.
43499         * lib/javacomp.c: Likewise.
43500         * lib/javaexec.c: Likewise.
43501         * lib/javaversion.c: Likewise.
43502         * lib/linebreak.c: Likewise.
43503         * lib/localcharset.c: Likewise.
43504         * lib/lock.c: Likewise.
43505         * lib/mbchar.c: Likewise.
43506         * lib/mbswidth.c: Likewise.
43507         * lib/mkdtemp.c: Likewise.
43508         * lib/pipe.c: Likewise.
43509         * lib/printf-args.c: Likewise.
43510         * lib/printf-parse.c: Likewise.
43511         * lib/progname.c: Likewise.
43512         * lib/progreloc.c: Likewise.
43513         * lib/readlink.c: Likewise.
43514         * lib/sh-quote.c: Likewise.
43515         * lib/stpcpy.c: Likewise.
43516         * lib/stpncpy.c: Likewise.
43517         * lib/strcasecmp.c: Likewise.
43518         * lib/strcasestr.c: Likewise.
43519         * lib/strcspn.c: Likewise.
43520         * lib/striconv.c: Likewise.
43521         * lib/strncasecmp.c: Likewise.
43522         * lib/strnlen1.c: Likewise.
43523         * lib/strstr.c: Likewise.
43524         * lib/strtok_r.c: Likewise.
43525         * lib/tls.c: Likewise.
43526         * lib/tmpdir.c: Likewise.
43527         * lib/unicodeio.c: Likewise.
43528         * lib/unsetenv.c: Likewise.
43529         * lib/vasnprintf.c: Likewise.
43530         * lib/vasprintf.c: Likewise.
43531         * lib/wait-process.c: Likewise.
43532         * lib/xallocsa.c: Likewise.
43533         * lib/xsetenv.c: Likewise.
43534         * lib/xstriconv.c: Likewise.
43535
43536 2006-09-13  Simon Josefsson  <jas@extundo.com>
43537
43538         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43539         that internally, suggested by Ralf Wildenhues
43540         <Ralf.Wildenhues@gmx.de>.
43541
43542 2006-09-13  Simon Josefsson  <jas@extundo.com>
43543
43544         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43545         @LIBOBJS@.
43546         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43547
43548 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43549
43550         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43551         longer worry about uses that don't define HAVE_CONFIG_H.
43552         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43553         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43554         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43555         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43556         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43557         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43558         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43559         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43560         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43561         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43562         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43563         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43564         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43565         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43566         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43567         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43568         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43569         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43570         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43571         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43572         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43573         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43574         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43575         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43576         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43577         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43578         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43579         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43580         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43581         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43582         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43583         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43584         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43585         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43586         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43587         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43588         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43589         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43590         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43591         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43592         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43593         Likewise.
43594
43595 2006-09-13  Eric Blake  <ebb9@byu.net>
43596
43597         * lib/getopt.c: Fix typo in last commit.
43598
43599 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43600
43601         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43602         dgettext.
43603
43604 2006-09-12  Jim Meyering  <jim@meyering.net>
43605
43606         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43607         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43608         Reported by Nelson H. F. Beebe.
43609
43610 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43611
43612         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43613         program_invocation_name and program_invocation_short_name are
43614         initialized.
43615         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43616         and program_invocation_short_name to argp.h, so they are visible
43617         to user programs.
43618         * lib/argp.h: Likewise
43619
43620 2006-09-10  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43623         m4/inttypes_h.m4, m4/uintmax_t.m4.
43624
43625 2006-09-10  Bruno Haible  <bruno@clisp.org>
43626
43627         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43628         gl_AC_TYPE_UINTMAX_T.
43629
43630 2006-09-10  Bruno Haible  <bruno@clisp.org>
43631
43632         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43633
43634 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43635
43636         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43637         convention.  Text proposed by Bruno Haible.
43638         (struct argp_option): Document the use of N_() wrappers.
43639
43640         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43641         '\v', and translate the two parts separately, instead of feeding
43642         the whole string to gettext.  This allows to exclude
43643         '\v' from the strings visible to the translator by writing doc
43644         strings as N_("..") "\v" N_("..").
43645
43646 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43647
43648         * config/srclist.txt: Undo latest change; the bug was fixed.
43649
43650 2006-09-09  Bruno Haible  <bruno@clisp.org>
43651
43652         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43653         assignments if building a library without libtool.
43654         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43655         in func_emit_lib_Makefile_am.
43656         (func_import): When building a static library libfoo.a, arrange to
43657         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43658         (func_create_testdir): Likewise.
43659         * modules/gc (configure.ac, Makefile.am): If building statically,
43660         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43661         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43662         * modules/striconv (configure.ac, Makefile.am): Likewise.
43663         Based on a suggestion by Ralf Wildenhues.
43664
43665 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43666
43667         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43668         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43669         Also:
43670
43671         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43672         Add year_2050_test to catch glibc bug 2821
43673         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43674
43675         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43676         Prefer #ifdef to #if.
43677
43678         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43679         Return from 'main' instead of calling 'exit'.
43680
43681 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43682
43683         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43684         returned the maximum time_t value rather than (time_t) -1.
43685         Problem originally reported by William Bardwell
43686         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43687
43688         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43689         Moved to here ...
43690         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43691         ... from here.
43692
43693 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43696         2821 is fixed.
43697
43698 2006-09-08  Jim Meyering  <jim@meyering.net>
43699
43700         Don't make generated files read-only.  That would bother too many
43701         people.  However, do retain the ability to work when targets are
43702         read-only: remove the destination and temporary files before writing
43703         them (when generated via sed or echo), or by using the -f option for
43704         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43705         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43706         * modules/byteswap, modules/configmake, modules/fcntl:
43707         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43708         * modules/localcharset, modules/netinet_in, modules/poll:
43709         * modules/stdbool, modules/stdint, modules/sys_select:
43710         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43711
43712 2006-09-08  Jim Meyering  <jim@meyering.net>
43713
43714         Avoid new build failure on FreeBSD 6.0.
43715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43716         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43717         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43718
43719 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43720
43721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43722
43723 2006-09-07  Jim Meyering  <jim@meyering.net>
43724
43725         Fix global typo in last change: use chmod u-w, not chmod u-x.
43726         Spotted by Paul Eggert and Bruce Korb.
43727         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43728         * modules/byteswap, modules/configmake, modules/fcntl:
43729         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43730         * modules/localcharset, modules/netinet_in, modules/poll:
43731         * modules/stdbool, modules/stdint, modules/sys_select:
43732         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43733
43734 2006-09-06  Jim Meyering  <jim@meyering.net>
43735
43736         Make generated files be read-only.
43737         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43738         Ensure that each generated file is now read-only.
43739         * modules/argz: Likewise.
43740         * modules/arpa_inet: Likewise.
43741         * modules/byteswap: Likewise.
43742         * modules/configmake: Likewise.
43743         * modules/fcntl: Likewise.
43744         * modules/fnmatch: Likewise.
43745         * modules/getopt: Likewise.
43746         * modules/glob: Likewise.
43747         * modules/inttypes: Likewise.
43748         * modules/netinet_in: Likewise.
43749         * modules/poll: Likewise.
43750         * modules/stdbool: Likewise.
43751         * modules/stdint: Likewise.
43752         * modules/sys_select: Likewise.
43753         * modules/sys_socket: Likewise.
43754         * modules/sys_stat: Likewise.
43755         * modules/sysexits: Likewise.
43756         * modules/localcharset: Same as above, but continue using temporary
43757         file named "t-$@" (why different?) rather than the "$@-t" used
43758         everywhere else.
43759
43760         * modules/sysexits (Makefile.am): Replace literal occurrences
43761         of "sysexit.h" more readable, and more consistent, "$@".
43762
43763 2006-09-06  Bruno Haible  <bruno@clisp.org>
43764
43765         * modules/striconv: New file.
43766         * modules/xstriconv: New file.
43767         * MODULES.html.sh (Internationalization functions): Add striconv,
43768         xstriconv.
43769
43770 2006-09-06  Bruno Haible  <bruno@clisp.org>
43771
43772         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43773         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43774         not using libtool correctly.
43775
43776 2006-09-06  Bruno Haible  <bruno@clisp.org>
43777
43778         * lib/striconv.h: New file.
43779         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43780         iconvstring.c.
43781         * lib/xstriconv.h: New file.
43782         * lib/xstriconv.c: New file.
43783
43784 2006-09-06  Bruno Haible  <bruno@clisp.org>
43785
43786         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43787         lib_..._LDFLAGS.
43788
43789 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43790
43791         * lib/argz_.h: Sync from Libtool.
43792
43793         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43794                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43795
43796         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43797
43798 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43799
43800         * modules/trim: New file.
43801
43802 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43803
43804         * lib/trim.h: New file.
43805         * lib/trim.c: New file.
43806
43807 2006-09-05  Bruno Haible  <bruno@clisp.org>
43808
43809         * MODULES.html.sh (String handling): Add trim.
43810
43811 2006-09-04  Karl Berry  <karl@gnu.org>
43812
43813         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43814         until next release.
43815
43816 2006-09-03  Bruno Haible  <bruno@clisp.org>
43817
43818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43819         correctly.
43820
43821 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43822
43823         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43824         not gl_GETLOADAVG.  Omit unneeded semicolons.
43825         Problems reported by Ralf Wildenhues in
43826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43827         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43828         at the end, which is the usual gnulib style.
43829
43830         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43831         of doing all the work ourselves.
43832         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43833         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43834
43835 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43836
43837         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43838         Problem reported by Ralf Wildenhues in
43839         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43840
43841         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43842         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43843
43844 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43845
43846         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43847         yesterday's patch by changing test -n to test -z.
43848
43849 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43850
43851         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43852         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43853         the former is now obsolescent.
43854
43855         * modules/chdir-long (Depends-on): Add fcntl.
43856
43857 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43858
43859         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43860         obsolescent, and programs should use gnulib instead.
43861         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43862         but with prefixes changed.
43863
43864 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43865
43866         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43867         or stdbool.h, because they might not exist while configuring.
43868
43869         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43870         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43871         does that for us.
43872         (O_DIRECTORY): Remove.
43873
43874 2006-08-31  Eric Blake  <ebb9@byu.net>
43875
43876         * gnulib-tool: Don't let emacs change spaces to TAB.
43877
43878 2006-08-31  Bruno Haible  <bruno@clisp.org>
43879
43880         * gnulib-tool: When calling func_import more than once, do it in a
43881         subshell.
43882         Reported by Eric Blake <ebb9@byu.net>.
43883
43884 2006-08-31  Bruno Haible  <bruno@clisp.org>
43885
43886         * gnulib-tool (nl): Remove variable.
43887         (sed_transform_lib_file): Use more robust test for config-h module.
43888         (func_import): Fix typo in 2006-08-25 patch.
43889
43890 2006-08-31  Bruno Haible  <bruno@clisp.org>
43891
43892         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43893         specified, augment Makefile.am variables instead of assigning them.
43894
43895 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43896
43897         Work around a bug in both the Linux and SunOS 64-bit kernels:
43898         nanosleep mishandles sleeps for longer than 2**31 seconds.
43899         Problem reported by Frank v Waveren in
43900         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43902         Check for nanosleep bug.
43903         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43904
43905 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43906
43907         Work around a bug in both the Linux and SunOS 64-bit kernels:
43908         nanosleep mishandles sleeps for longer than 2**31 seconds.
43909         Problem reported by Frank v Waveren in
43910         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43911         * lib/nanosleep.c (BILLION): New constant.
43912         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43913         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43914         implementation.
43915
43916 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43917
43918         * modules/nanosleep (Depends-on): Add gettime.
43919
43920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43921         and Simon Josefsson  <jas@extundo.com>
43922         and Oskar Liljeblad  <oskar@osk.mine.nu>
43923
43924         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43925         * gnulib-tool (func_import): New license type 'unmodifiable license
43926         text'.
43927         * modules/fdl: Use it.  Longer description.
43928         * module/gpl, module/lgpl: New files.
43929
43930 2006-08-30  Jim Meyering  <jim@meyering.net>
43931
43932         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43933         shadowing the parameter.
43934
43935 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43936
43937         Sync from Libtool:
43938
43939         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43940
43941         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43942         sharing with gnulib.  Report by Eric Blake.
43943
43944 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43945
43946         * modules/isapipe: New file.
43947         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43948
43949 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43950
43951         * modules/configmake (Makefile.am): Add a comment, and omit
43952         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43953         by Bruno Haible.
43954
43955 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43956
43957         * m4/isapipe.m4: New file.
43958
43959 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43960
43961         * lib/isapipe.c, lib/isapipe.h: New files.
43962
43963 2006-08-29  Jim Meyering  <jim@meyering.net>
43964
43965         * modules/configmake (Makefile.am): Make configmake.h depend on
43966         Makefile.  Otherwise, a stale configmake.h could hang around.
43967
43968 2006-08-29  Eric Blake  <ebb9@byu.net>
43969
43970         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43971         resolution of upstream bug 3044.
43972
43973 2006-08-29  Bruno Haible  <bruno@clisp.org>
43974
43975         * modules/localcharset (Depends-on): Add configmake.
43976         (Makefile.am): Remove setting of LIBDIR through DEFS.
43977
43978 2006-08-29  Bruno Haible  <bruno@clisp.org>
43979
43980         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43981         defined.
43982
43983 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43984
43985         * modules/fcntl: New file.
43986         * modules/chdir-safer (Depends-on): Add fcntl.
43987         * modules/fts: Likewise.
43988         * modules/mkdir-p: Likewise.
43989
43990         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43991         This undoes the most recent change, since we're now addressing the
43992         problem in a different way.
43993
43994         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43995         into output, since the output might be called Makefile.am even
43996         if $makefile_name is something different.
43997         (func_import): Use $makefile_am rather than
43998         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43999         empty.
44000
44001         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44002
44003 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44004
44005         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44006         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44007         recent change to stdint.m4, since we're now addressing the problem in a
44008         different way.
44009
44010 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44011
44012         * m4/fcntl_h.m4: New file.
44013
44014 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44015
44016         * lib/fcntl_.h: New file.
44017         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44018         the fcntl module.
44019         * lib/dirchownmod.c: Likewise.
44020         * lib/fts.c: Likewise.
44021
44022         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44023         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44024         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44025         just before including <inttypes.h>, to avoid circular inclusion.
44026
44027 2006-08-28  Jim Meyering  <jim@meyering.net>
44028
44029         * doc/visibility.texi: Actually read and correct the grammar of the
44030         sentence affected by yesterday's change.
44031
44032 2006-08-28  Eric Blake  <ebb9@byu.net>
44033
44034         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44035         needs wrapper.
44036
44037 2006-08-28  Eric Blake  <ebb9@byu.net>
44038
44039         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44040
44041 2006-08-28  Eric Blake  <ebb9@byu.net>
44042
44043         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44044
44045 2006-08-28  Bruno Haible  <bruno@clisp.org>
44046
44047         * modules/c-strstr: New file, from GNU gettext.
44048         * MODULES.html.sh (String handling): Add c-strstr.
44049
44050 2006-08-28  Bruno Haible  <bruno@clisp.org>
44051
44052         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44053         macros.
44054         Reported by Eric Blake.
44055
44056 2006-08-28  Bruno Haible  <bruno@clisp.org>
44057
44058         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44059         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44060         * lib/vasprintf.c: Include errno.h, limits.h.
44061         (EOVERFLOW): New fallback definition.
44062         (vasprintf): Test here whether the string length is > INT_MAX.
44063         * lib/vsnprintf.c: Include errno.h, limits.h.
44064         (EOVERFLOW): New fallback definition.
44065         (vsnprintf): Fix bug when generated string was too long for the buffer.
44066         Test here whether the string length is > INT_MAX.
44067
44068 2006-08-28  Bruno Haible  <bruno@clisp.org>
44069
44070         * lib/inttypes_.h (SCNX*): Remove definitions.
44071         Reported by Eric Blake.
44072
44073 2006-08-28  Bruno Haible  <bruno@clisp.org>
44074
44075         * lib/c-strstr.h: New file, from GNU gettext.
44076         * lib/c-strstr.c: New file, from GNU gettext.
44077
44078 2006-08-28  Bruno Haible  <bruno@clisp.org>
44079
44080         * gnulib-tool: Reorder some statements.
44081
44082 2006-08-28  Bruno Haible  <bruno@clisp.org>
44083
44084         * gnulib-tool: New option --makefile-name.
44085         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44086         $makefile_name.
44087         (func_import): Write $makefile_name to the cache file, and read it from
44088         there unless explicitly specified. Use $makefile_name as file name
44089         instead of Makefile.am. Adjust the recommendations accordingly.
44090
44091 2006-08-28  Bruno Haible  <bruno@clisp.org>
44092
44093         * gnulib-tool (func_verify_module): Check against misapplying patch.
44094
44095 2006-08-28  Bruno Haible  <bruno@clisp.org>
44096
44097         * gnulib-tool (func_relativize, func_relconcat): New functions.
44098         Give an error if --local-dir is given with --update.
44099         Remove trailing slashes from $local_gnulib_dir.
44100         (func_import): Store the relativized $local_gnulib_dir in
44101         gnulib-cache.m4, and read it from there if not specified explicitly.
44102
44103 2006-08-28  Bruno Haible  <bruno@clisp.org>
44104
44105         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44106         is the current directory. Respect also $local_gnulib_dir.
44107
44108 2006-08-28  Bruno Haible  <bruno@clisp.org>
44109             Simon Josefsson  <jas@extundo.com>
44110
44111         BeOS portability.
44112         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44113
44114 2006-08-27  Jim Meyering  <jim@meyering.net>
44115
44116         * doc/visibility.texi: Remove duplicate word: "pointer".
44117
44118 2006-08-26  Bruno Haible  <bruno@clisp.org>
44119
44120         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44121         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44122         (Makefile.am): Create inttypes.h from inttypes_.h.
44123         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44124
44125         * modules/imaxabs: New file.
44126
44127         * modules/imaxdiv: New file.
44128
44129 2006-08-26  Bruno Haible  <bruno@clisp.org>
44130
44131         * m4/inttypes.m4: New file.
44132         * m4/_inttypes_h.m4: Remove file.
44133         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44134         PRI_MACROS_BROKEN.
44135         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44136
44137         * m4/imaxabs.m4: New file.
44138
44139         * m4/imaxdiv.m4: New file.
44140
44141 2006-08-26  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/inttypes_.h: New file.
44144         * lib/inttypes.h: Remove file.
44145         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44146
44147         * lib/imaxabs.c: New file.
44148
44149         * lib/imaxdiv.c: New file.
44150
44151 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44152
44153         New config-h module, so that "make" output needn't be cluttered
44154         by -DHAVE_CONFIG_H.
44155         * MODULES.html.sh (Support for building libraries and executables):
44156         Add config-h.
44157         * modules/config-h: New file.
44158         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44159         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44160         the config-h module is used.
44161
44162         New configmake module, so that "make" output needn't be cluttered
44163         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44164         * MODULES.html.sh (Support for building libraries and executables):
44165         Add configmake.
44166         * modules/configmake: New file.
44167
44168 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44169
44170         * m4/config-h.m4: New file.
44171
44172 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44173
44174         * config/srclist.txt: Add elisp-comp.
44175
44176 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44177
44178         * MODULES.html.sh (Support for building libraries and executables):
44179         Add elisp-comp.
44180         * build-aux/elisp-comp: New file.
44181         * modules/elisp-comp: New file.
44182
44183 2006-08-24  Bruno Haible  <bruno@clisp.org>
44184
44185         * gnulib-tool (func_create_testdir): Use non-default values of
44186         sourcebase and m4base.
44187
44188 2006-08-24  Bruno Haible  <bruno@clisp.org>
44189
44190         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44191         HTML structure.
44192
44193 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44194
44195         * modules/openat (Depends-on): Add lchown.
44196
44197 2006-08-23  Bruno Haible  <bruno@clisp.org>
44198
44199         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44200         of gl_LOCK_EARLY instead of gl_LOCK.
44201
44202 2006-08-23  Bruno Haible  <bruno@clisp.org>
44203
44204         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44205         on OSF/1 to no.
44206         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44207
44208 2006-08-23  Bruno Haible  <bruno@clisp.org>
44209
44210         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44211         as unusable.
44212
44213         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44214         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44215         (gl_LOCK): New macro.
44216
44217 2006-08-22  Simon Josefsson  <jas@extundo.com>
44218
44219         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44220         to md5 module.
44221
44222 2006-08-22  Simon Josefsson  <jas@extundo.com>
44223
44224         * MODULES.html.sh: Add "Support for maintaining and release
44225         projects".
44226
44227         * build-aux/gnupload: New file, from coreutils.
44228
44229 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         Avoid the need for AC_LIBSOURCES in m4 macros.
44232         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44233         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44234         * modules/check-version (EXTRA_DIST): Add check-version.h.
44235         * modules/crc (EXTRA_DIST): Add crc.h.
44236         * modules/des (EXTRA_DIST): Add des.h.
44237         * modules/gc (EXTRA_DIST): Add gc.h.
44238         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44239         * modules/getline (EXTRA_DIST): Add getline.h.
44240         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44241         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44242         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44243         * modules/md2 (EXTRA_DIST): Add md2.h.
44244         * modules/md4 (EXTRA_DIST): Add md4.h.
44245         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44246         * modules/read-file (EXTRA_DIST): Add read-file.h.
44247         * modules/readline (EXTRA_DIST): Add readline.h.
44248         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44249         rijndael-api-fst.h.
44250
44251 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44252
44253         * m4/rijndael.m4 (gl_ARCFOUR):
44254         * m4/arctwo.m4 (gl_ARCTWO):
44255         * m4/check-version.m4 (gl_CHECK_VERSION):
44256         * m4/crc.m4 (gl_CRC):
44257         * m4/des.m4 (gl_DES):
44258         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44259         * m4/gc.m4 (gl_GC):
44260         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44261         * m4/getline.m4 (gl_FUNC_GETLINE):
44262         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44263         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44264         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44265         * m4/md2.m4 (gl_MD2):
44266         * m4/md4.m4 (gl_MD4):
44267         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44268         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44269         * m4/readline.m4 (gl_FUNC_READLINE):
44270         * m4/rijndael.m4 (gl_RIJNDAEL):
44271         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44272         to get the necessary .h files and whatnot.
44273
44274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44275
44276         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44277         gnulib rather than the other way around.
44278         * config/srclistvars.sh (COREUTILS): Remove.
44279
44280 2006-08-22  Jim Meyering  <jim@meyering.net>
44281
44282         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44283
44284         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44285
44286 2006-08-22  Eric Blake  <ebb9@byu.net>
44287
44288         * modules/regexprops-generic: New file.
44289         * MODULES.html.sh (Support for building documentation): List it.
44290
44291 2006-08-22  Eric Blake  <ebb9@byu.net>
44292
44293         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44294         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44295         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44296         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44297
44298 2006-08-22  Bruno Haible  <bruno@clisp.org>
44299
44300         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44301         and lib_LTLIBRARIES like the other lib_* variables.
44302
44303 2006-08-22  Bruno Haible  <bruno@clisp.org>
44304
44305         * build-aux/x-to-1.in: New file, from GNU gettext.
44306
44307 2006-08-22  Bruno Haible  <bruno@clisp.org>
44308
44309         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44310         <utmpx.h> exists.
44311
44312 2006-08-22  Bruno Haible  <bruno@clisp.org>
44313
44314         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44315         <utmpx.h> exists.
44316
44317 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44318
44319         BeOS portability.
44320         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44321         exist.
44322         Problem reported by Bruno Haible.
44323
44324 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         Avoid the need for AC_LIBSOURCES in m4 macros.
44327         * modules/acl (EXTRA_DIST): Add acl.h.
44328         * modules/argmatch (Files): Add m4/argmatch.m4.
44329         (configure.ac): Add gl_ARGMATCH.
44330         (EXTRA_DIST): Renamed from lib_SOURCES, for
44331         consistency with the other modules.  Remove argmatch.c.
44332         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44333         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44334         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44335         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44336         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44337         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44338         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44339         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44340         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44341         * modules/closeout (EXTRA_DIST): Add closeout.h.
44342         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44343         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44344         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44345         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44346         dirname.h; remove basename.c and stripslash.c.
44347         * modules/exclude (EXTRA_DIST): Add exclude.h.
44348         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44349         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44350         * modules/file-type (EXTRA_DIST): Add file-type.h.
44351         * modules/filemode (EXTRA_DIST): Add filemode.h.
44352         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44353         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44354         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44355         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44356         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44357         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44358         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44359         * modules/getdate (EXTRA_DIST): Add getdate.c.
44360         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44361         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44362         * modules/getpass (EXTRA_DIST): Add getpass.h.
44363         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44364         * modules/group-member (EXTRA_DIST): Add group-member.h.
44365         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44366         * modules/hash (EXTRA_DIST): Add hash.h.
44367         * modules/human (EXTRA_DIST): Add human.h.
44368         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44369         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44370         * modules/lchown (EXTRA_DIST): Add lchown.h.
44371         * modules/long-options (EXTRA_DIST): Add long-options.h.
44372         * modules/lstat (EXTRA_DIST): Add lstat.h.
44373         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44374         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44375         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44376         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44377         * modules/memxor (EXTRA_DIST): Add memxor.h.
44378         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44379         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44380         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44381         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44382         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44383         * modules/physmem (EXTRA_DIST): Add physmem.h.
44384         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44385         * modules/posixver (EXTRA_DIST): Add posixver.h.
44386         * modules/quote (EXTRA_DIST): Add quote.h.
44387         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44388         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44389         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44390         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44391         regex_internal.h regexec.c.
44392         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44393         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44394         * modules/same (EXTRA_DIST): Add same.h.
44395         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44396         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44397         * modules/savedir (EXTRA_DIST): Add savedir.h.
44398         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44399         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44400         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44401         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44402         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44403         * modules/strdup (EXTRA_DIST): Add strdup.h.
44404         * modules/strftime (EXTRA_DIST): Add strftime.h.
44405         * modules/strndup (EXTRA_DIST): Add strndup.h.
44406         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44407         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44408         * modules/time_r (EXTRA_DIST): Add time_r.h.
44409         * modules/timespec (EXTRA_DIST): Add timespec.h.
44410         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44411         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44412         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44413         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44414         * modules/userspec (EXTRA_DIST): Add userspec.h.
44415         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44416         * modules/utimens (EXTRA_DIST): Add utimens.h.
44417         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44418         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44419         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44420         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44421         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44422         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44423         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44424         * modules/yesno (EXTRA_DIST): Add yesno.h.
44425
44426 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44427
44428         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44429
44430         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44431         * m4/dev-ino.m4, same-inode.m4: Remove.
44432
44433         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44434         * m4/acl.m4 (AC_FUNC_ACL):
44435         * m4/backupfile.m4 (gl_BACKUPFILE):
44436         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44437         * m4/canon-host.m4 (gl_CANON_HOST):
44438         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44440         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44441         * m4/cloexec.m4 (gl_CLOEXEC):
44442         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44443         * m4/closeout.m4 (gl_CLOSEOUT):
44444         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44445         * m4/dirname.m4 (gl_DIRNAME):
44446         * m4/exclude.m4 (gl_EXCLUDE):
44447         * m4/exitfail.m4 (gl_EXITFAIL):
44448         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44449         * m4/file-type.m4 (gl_FILE_TYPE):
44450         * m4/filemode.m4 (gl_FILEMODE):
44451         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44452         * m4/fpending.m4 (gl_FUNC_FPENDING):
44453         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44454         * m4/fts.m4 (gl_FUNC_FTS):
44455         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44456         * m4/getdate.m4 (gl_GETDATE):
44457         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44458         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44459         * m4/getpass.m4 (gl_FUNC_GETPASS):
44460         * m4/gettime.m4 (gl_GETTIME):
44461         * m4/getugroups.m4 (gl_GETUGROUPS):
44462         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44463         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44464         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44465         * m4/hash.m4 (gl_HASH):
44466         * m4/idcache.m4 (gl_IDCACHE):
44467         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44468         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44469         * m4/long-options.m4 (gl_LONG_OPTIONS):
44470         * m4/lstat.m4 (gl_FUNC_LSTAT):
44471         * m4/md5.m4 (gl_MD5):
44472         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44473         * m4/memcoll.m4 (gl_MEMCOLL):
44474         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44476         * m4/memxor.m4 (gl_MEMXOR):
44477         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44479         * m4/modechange.m4 (gl_MODECHANGE):
44480         * m4/mountlist.m4 (gl_MOUNTLIST):
44481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44482         * m4/openat.m4 (gl_FUNC_OPENAT):
44483         * m4/pathmax.m4 (gl_PATHMAX):
44484         * m4/physmem.m4 (gl_PHYSMEM):
44485         * m4/posixtm.m4 (gl_POSIXTM):
44486         * m4/posixver.m4 (gl_POSIXVER):
44487         * m4/quote.m4 (gl_QUOTE):
44488         * m4/quotearg.m4 (gl_QUOTEARG):
44489         * m4/readtokens.m4 (gl_READTOKENS):
44490         * m4/readutmp.m4 (gl_READUTMP):
44491         * m4/regex.m4 (gl_REGEX):
44492         * m4/safe-read.m4 (gl_SAFE_READ):
44493         * m4/safe-write.m4 (gl_SAFE_WRITE):
44494         * m4/same.m4 (gl_SAME):
44495         * m4/save-cwd.m4 (gl_SAVE_CWD):
44496         * m4/savedir.m4 (gl_SAVEDIR):
44497         * m4/settime.m4 (gl_SETTIME):
44498         * m4/sha1.m4 (gl_SHA1):
44499         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44500         * m4/stat-macros.m4 (gl_STAT_MACROS):
44501         * m4/stat-time.m4 (gl_STAT_TIME):
44502         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44503         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44504         * m4/strdup.m4 (gl_FUNC_STRDUP):
44505         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44506         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44507         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44508         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44509         * m4/time_r.m4 (gl_TIME_R):
44510         * m4/timespec.m4 (gl_TIMESPEC):
44511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44512         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44513         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44514         * m4/userspec.m4 (gl_USERSPEC):
44515         * m4/utimecmp.m4 (gl_UTIMECMP):
44516         * m4/utimens.m4 (gl_UTIMENS):
44517         * m4/xalloc.m4 (gl_XALLOC):
44518         * m4/xgetcwd.m4 (gl_XGETCWD):
44519         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44520         * m4/xreadlink.m4 (gl_XREADLINK):
44521         * m4/xstrtod.m4 (gl_XSTRTOD):
44522         * m4/yesno.m4 (gl_YESNO):
44523         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44524         to get the necessary .h files and whatnot.
44525
44526 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44527             Bruno Haible  <bruno@clisp.org>
44528
44529         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44530         /bin/sh understanding of '!' conditional negation.
44531
44532 2006-08-21  Jim Meyering  <jim@meyering.net>
44533
44534         * modules/openat (Depends-on): Really alphabetize.
44535
44536         * modules/acl (Depends-on): Add error and quote.
44537
44538         * check-module (find_included_lib_files): Add at-func.c to the
44539         ok-to-include-more-than-once white list.
44540
44541         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44542
44543 2006-08-21  Bruno Haible  <bruno@clisp.org>
44544
44545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44546         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44547         Reported by Martin Lambers <marlam@marlam.de>.
44548
44549 2006-08-21  Bruno Haible  <bruno@clisp.org>
44550
44551         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44552         specify an installation location, don't emit a noinst_LIBRARIES or
44553         noinst_LTLIBRARIES assignment.
44554
44555 2006-08-21  Bruno Haible  <bruno@clisp.org>
44556
44557         BeOS portability.
44558         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44559         BeOS has mbrtowc() but no <wctype.h>.
44560
44561 2006-08-21  Bruno Haible  <bruno@clisp.org>
44562
44563         BeOS portability.
44564         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44565         exist.
44566
44567 2006-08-21  Bruno Haible  <bruno@clisp.org>
44568
44569         BeOS portability.
44570         * lib/mbchar.h: Include <wctype.h> only if it exists.
44571
44572 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44573
44574         Remove files that are no longer needed by their respective modules.
44575         * m4/obstack.m4: Remove.
44576         * m4/strerror_r.m4: Remove.
44577         * m4/uint32_t.m4: Remove.
44578         * m4/uintptr_t.m4: Remove.
44579         * m4/ullong_max.m4: Remove.
44580         * m4/xstrtoimax.m4: Remove.
44581         * m4/xstrtoumax.m4: Remove.
44582
44583         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44584         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44585         dependencies now capture this.
44586
44587         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44588         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44589         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44590         * m4/human.m4 (gl_HUMAN): Likewise.
44591         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44592         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44593
44594         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44595
44596         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44597         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44598         stdint.
44599         * m4/human.m4 (gl_HUMAN): Likewise.
44600         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44601         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44602         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44603         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44604         * m4/xstrtol (gl_XSTRTOL): Likewise.
44605
44606         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44607         AC_TYPE_LONG_LONG_INT.
44608         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44609         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44610         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44611         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44612
44613         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44614         on stdbool.
44615
44616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44617         (gl_PREREQ_XSTRTOUL): Remove.
44618
44619         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44620
44621         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44622         mode.
44623
44624 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44625
44626         Add and change modules to make it easier for coreutils to use
44627         gnulib-tool.
44628         * modules/backupfile (Files): Remove m4/d-ino.m4.
44629         (Depends-on): Add d-ino.
44630         * modules/cycle-check (Depends-on): Add stdint.
44631         (lib_SOURCES): Add cycle-check.h.
44632         * modules/d-ino: New module.
44633         * modules/d-type: New module.
44634         * modules/error (Files): Remove m4/strerror_r.m4.
44635         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44636         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44637         m4/inttypes_h.m4, m4/uintmax_t.m4.
44638         (Depends-on): Add stdint.
44639         (lib_SOURCES): Add fsusage.h.
44640         * modules/getcwd (Files): Remove d-ino.m4.
44641         (Depends-on): Add d-ino.
44642         * modules/getndelim2 (Depends-on): Add stdint.
44643         * modules/glob (Files): Remove m4/d-type.m4.
44644         (Depends-on): Add d-type.
44645         * modules/host-os: New module.
44646         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44647         m4/inttypes_h.m4, m4/uintmax_t.m4.
44648         * Depends-on: Add stdint.
44649         (lib_SOURCES): Add human.h.
44650         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44651         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44652         m4/uintmax_t.m4, m4/ulonglong.m4.
44653         (Depends-on): Add stdint.
44654         (EXTRA_DIST): Add inttostr.h.
44655         * modules/lchmod: New module.
44656         * modules/link-follow: New module.
44657         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44658         (Depends-on): Add lchmod.
44659         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44660         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44661         (Depends-on): Add stdint.
44662         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44663         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44664         (Depends-on): Add stdint.
44665         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44666         * modules/perl: New module.
44667         * modules/regex (Depends-on): Add stdint.
44668         * modules/rmdir-errno: New module.
44669         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44670         m4/intmax_t.m4.
44671         (Depends-on): Add stdint.
44672         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44673         m4/uintmax_t.m4.
44674         (Depends-on): Add stdint.
44675         * modules/unlink-busy: New module.
44676         * modules/utimecmp (Depends-on): Add stdint.
44677         * modules/uptime: New module.
44678         * modules/winsz-ioctl: New module.
44679         * modules/winsz-termios: New module.
44680         * modules/xnanosleep (Depends-on): Add nanosleep.
44681         * modules/ullong_max: Remove.
44682         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44683         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44684         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44685         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44686         (Depends-on): Add inttypes.
44687         (lib_SOURCES): Add xstrtol.h.
44688         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44689         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44690         * MODULES.html.sh: Move 'assert' into the assert section.
44691         Move 'dummy' into the linking section.
44692         Remove ullong_max.
44693         Add section for compatibility checks for POSIX:2001 functions,
44694         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44695         winsz-ioctl, and winsz-termios into it.
44696         Add lchmod.
44697         Add top-level Misc section and put host-os, perl, and uptime
44698         into it.
44699
44700 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44701
44702         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44703         now assume the stdint module.  Do not include inttypes.h.
44704         * lib/fsusage.h: Likewise.
44705         * lib/getndelim2.c: Likewise.
44706         * lib/human.h: Likewise.
44707         * lib/inttostr.h: Likewise.
44708         * lib/obstack.c: Likewise.
44709         * lib/regex_internal.h: Likewise.
44710         * lib/tempname.c: Likewise.
44711         * lib/utimecmp.c: Likewise.
44712         * lib/xstrtol.h: Likewise.
44713
44714         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44715
44716         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44717         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44718         * lib/xtime.h: Likewise.
44719
44720 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44721
44722         * modules/openat (Files): Add lib/fchmodat.c.
44723         Fixes problem reported by Jay Youngman.
44724
44725 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44726
44727         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44728         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44729
44730 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44731             Bruno Haible  <bruno@clisp.org>
44732
44733         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44734         and is a script that invokes bison. Tighten the code. Add comments.
44735
44736 2006-08-18  Jim Meyering  <jim@meyering.net>
44737
44738         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44739         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44740         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44741         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44742
44743 2006-08-18  Bruno Haible  <bruno@clisp.org>
44744
44745         * modules/bison-i18n: New file.
44746         * MODULES.html.sh (Internationalization functions): Add it.
44747
44748 2006-08-18  Bruno Haible  <bruno@clisp.org>
44749
44750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44751         sys/statvfs.h. When getmntinfo was found, check its declaration and
44752         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44753
44754 2006-08-18  Bruno Haible  <bruno@clisp.org>
44755
44756         * m4/bison-i18n.m4: New file, from bison.
44757
44758 2006-08-18  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44761         (ME_DUMMY): Treat "kernfs" as a dummy.
44762         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44763
44764 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44765
44766         Update from coreutils.
44767
44768         2006-08-15  Jim Meyering  <jim@meyering.net>
44769
44770         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44771
44772         2006-01-17  Jim Meyering  <jim@meyering.net>
44773
44774         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44775
44776         2006-01-11  Jim Meyering  <jim@meyering.net>
44777
44778         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44779         Check for the lchmod function.
44780
44781 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44782
44783         Update from coreutils.
44784
44785         * lib/__fpending.h: Add copyright notice.
44786         * lib/fprintftime.h: Likewise.
44787         * lib/savedir.c: Use (C) in copyright notice.
44788         * lib/savedir.h: Likewise.
44789
44790         2006-08-15  Jim Meyering  <jim@meyering.net>
44791
44792         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44793         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44794         in support of the EXPECTED_ERRNO macro.
44795         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44796         definitions.  Instead, define the appropriate symbols and include
44797         "at-func.c".
44798         * lib/mkdirat.c (mkdirat): Likewise.
44799         * lib/fchmodat.c (fchmodat): Likewise.
44800         (ENOSYS): Remove definition.
44801         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44802         it.  Don't include "unistd--.h" -- it wasn't ever used.
44803
44804         2006-01-17  Jim Meyering  <jim@meyering.net>
44805
44806         Rewrite fts.c not to change the current working directory,
44807         by using openat, fstatat, fdopendir, etc..
44808
44809         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44810         (HAVE_OPENAT_SUPPORT): Define.
44811         [_LIBC] (fchdir): Don't undef or define; no longer used.
44812         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44813         Now, this `function' always succeeds, and consumes its file descriptor
44814         parameter -- so callers must not close such FDs.  Update callers.
44815         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44816         (diropen): Add parameter, SP.  Adjust all callers.
44817         Implement using diropen_fd, rather than open.
44818         (fts_open): Initialize new member, fts_cwd_fd.
44819         Remove fts_rft-setting code.
44820         (fts_close): Close fts_cwd_fd, if necessary.
44821         (__opendir2): Define in terms of opendir or opendirat,
44822         depending on whether the FST_NOCHDIR flag is set.
44823         (fts_build): Since fts_safe_changedir consumes its FD, and since
44824         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44825         and close the dup'd file descriptor upon failure.
44826         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44827         (fts_safe_changedir): Tweak semantics to reflect that this function
44828         now calls cwd_advance_fd and hence consumes its FD argument.
44829         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44830         [struct FTS] (fts_rft): Remove now-unused member.
44831         [struct FTS] (fts_cycle.state): Improve comment.
44832
44833         * lib/openat.c (openat_needs_fchdir): New function.
44834         * lib/openat.h (openat_needs_fchdir): Declare it.
44835
44836 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44837
44838         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44839         Problem and fix reported by Pádraig Brady in
44840         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44841
44842 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44843
44844         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44845
44846 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44847
44848         * lib/memcoll.c (memcoll): Optimize for the common case where the
44849         arguments are bytewise equal.
44850
44851 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44852
44853         * doc/regexprops-generic.texi: Add a copyright notice.
44854
44855 2006-08-15  Bruno Haible  <bruno@clisp.org>
44856
44857         * modules/tmpdir (License): Change to LGPL.
44858
44859 2006-08-15  Bruno Haible  <bruno@clisp.org>
44860
44861         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44862         module.
44863
44864 2006-08-14  Simon Josefsson  <jas@extundo.com>
44865
44866         * config/srclist.txt: Add gnupload.
44867
44868 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         Change copyright notice from LGPL 2 to GPL 2, since that's the
44871         standard form used in the gnulib repository.
44872         * tests/test-lock.c: Likewise.
44873         * tests/test-stdint.c: Likewise.
44874         * tests/test-tls.c: Likewise.
44875
44876         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44877         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44878         Add copyright notice.
44879
44880         * check-module: Add copyright notice.  Output a copyright
44881         notice if "--version" is specified.
44882         * modules/COPYING: New file.
44883         * tests/test-getaddrinfo.c: Add copyright notice.
44884         * tests/test-verify.c: Likewise.
44885
44886 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44887
44888         Change copyright notice from LGPL 2 to GPL 2, since that's the
44889         standard form used in the gnulib repository.
44890         * lib/lock.c: LGPL -> GPL.
44891         * lib/lock.h: Likewise.
44892         * lib/strnlen1.c: Likewise.
44893         * lib/strnlen1.h: Likewise.
44894         * lib/tls.c: Likewise.
44895         * lib/tls.h: Likewise.
44896         * lib/tmpdir.c: Likewise.
44897
44898         * lib/TODO: Remove; this belongs only in coreutils.
44899
44900 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         Add copyright notices to long-enough files that lack them, since
44903         otherwise the files aren't clearly free.  Use the same notice that
44904         getdate.texi already uses.
44905         * doc/alloca-opt.texi: Add copyright notice.
44906         * doc/alloca.texi: Likewise.
44907         * doc/ctime.texi: Likewise.
44908         * doc/functions.texi: Likewise.
44909         * doc/gcd.texi: Likewise.
44910         * doc/gnulib-tool.texi: Likewise.
44911         * doc/inet_ntoa.texi: Likewise.
44912         * doc/visibility.texi: Likewise.
44913
44914         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44915         * doc/quote.texi: Add copyright notice.
44916
44917         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44918         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44919         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44920         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44921         is now obsolete, and give a pointer to the Sun list.
44922         Add copyright notice.
44923
44924 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44925
44926         * config/srclistvars.sh: Add copyright notice.
44927
44928 2006-08-14  Eric Blake  <ebb9@byu.net>
44929
44930         Import the following change from libc:
44931
44932         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44933
44934         Upstream bug 2997.
44935         * lib/misc/error.c: Add space between program name and message if file
44936         name is missing.
44937
44938 2006-08-12  Karl Berry  <karl@gnu.org>
44939
44940         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44941         remove, these originate in gnulib now.
44942
44943 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44944
44945         * doc/Makefile (standards.info standards.html standards.dvi):
44946         Also depend on make-stds.texi.
44947
44948 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44949
44950         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44951         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44952
44953         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44954         in wchar_t.  Problem reported by Eric Blake.
44955
44956         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44957         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44958         Also, help the compiler to keep LEN in a register.
44959
44960 2006-08-11  Eric Blake  <ebb9@byu.net>
44961
44962         * users.txt: Sort.  Add tar.
44963
44964 2006-08-11  Bruno Haible  <bruno@clisp.org>
44965
44966         * users.txt: New file.
44967
44968 2006-08-11  Bruno Haible  <bruno@clisp.org>
44969
44970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44971         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44972
44973 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44974
44975         * modules/snprintf (Depends-on): Remove minmax.
44976         (Maintainer): Add self and Bruno.
44977
44978 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44979
44980         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44981         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44982         (EOVERFLOW): Define if the system does not.
44983         Do not include "minmax.h"; it wasn't used.
44984         (snprintf): Don't assume size_t promotes to an unsigned type.
44985         Fix bug when generated string was too long for the buffer: the
44986         buffer's contents are supposed to be the initial prefix of the
44987         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44988         exceeds INT_MAX; do the check ourselves.
44989
44990         Import the following changes from libc:
44991
44992         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44993
44994         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44995         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44996         set wc to the byte which couldn't be converted.
44997         (re_string_reconstruct): Don't clear valid_raw_len before calling
44998         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44999         tip_context using re_string_context_at.
45000
45001         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45002
45003         * lib/posix/regex.h: g++ still cannot handled [restrict].
45004
45005         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45006
45007         * lib/posix/regex.h: Remove special handling for VMS.
45008
45009 2006-08-10  Jim Meyering  <jim@meyering.net>
45010
45011         * modules/same-inode: New module.
45012         * modules/dev-ino: New module.
45013         * modules/cycle-check: Depend on these modules, rather than simply
45014         including their .h files.
45015         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45016         required via m4/cycle-check.m4.
45017         * modules/same: Depend on new same-inode module, rather than
45018         including same-inode.h.
45019         * modules/chdir-safer: New file.
45020
45021         * modules/chown (Depends-on): Add stat-macros.
45022
45023 2006-08-10  Jim Meyering  <jim@meyering.net>
45024
45025         * m4/cycle-check.m4: New file.
45026         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45027         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45028
45029 2006-08-10  Eric Blake  <ebb9@byu.net>
45030
45031         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45032         in from original proposal.
45033
45034 2006-08-10  Eric Blake  <ebb9@byu.net>
45035         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45036
45037         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45038         namespace.
45039
45040 2006-08-10  Bruno Haible  <bruno@clisp.org>
45041
45042         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45043         as well.
45044
45045 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45046
45047         Sync from coreutils.
45048
45049         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45050
45051         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45052         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45053
45054 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45055
45056         * modules/restrict: Remove; no longer needed now that we assume
45057         Autoconf 2.59 or later.
45058         * MODULES.html.sh: Remove 'restrict'.
45059         * modules/argp (Depends-on): Remove 'restrict'.
45060         * modules/base64 (Depends-on): Likewise.
45061         * modules/gc (Depends-on): Likewise.
45062         * modules/getaddrinfo (Depends-on): Likewise.
45063         * modules/glob (Depends-on): Likewise.
45064         * modules/inet_ntop (Depends-on): Likewise.
45065         * modules/inet_pton (Depends-on): Likewise.
45066         * modules/memxor (Depends-on): Likewise.
45067         * modules/regex (Depends-on): Likewise.
45068         * modules/strtok_r (Depends-on): Likewise.
45069         * modules/time_r (Depends-on): Likewise.
45070
45071 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45072
45073         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45074         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45075         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45076         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45077         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45078         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45079         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45080         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45081
45082         Merge from coreutils.
45083         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45084         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45086         * m4/time_r.m4 (gl_TIME_R): Likewise.
45087
45088 2006-08-09  Karl Berry  <karl@gnu.org>
45089
45090         * config/srclist.txt: no more gettext-tools, per Bruno.
45091
45092 2006-08-08  Eric Blake  <ebb9@byu.net>
45093
45094         * modules/verror: New module.
45095         * MODULES.html.sh: Document it.
45096
45097 2006-08-08  Eric Blake  <ebb9@byu.net>
45098
45099         * lib/verror.h, lib/verror.c: New files.
45100
45101 2006-08-08  Eric Blake  <ebb9@byu.net>
45102
45103         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45104         verror_at_line output complies with GNU Coding Standards even when
45105         file is NULL.
45106
45107 2006-08-07  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45110         versions of AIX.
45111         Reported by Ralf Wildenhues.
45112
45113 2006-08-07  Bruno Haible  <bruno@clisp.org>
45114
45115         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45116         in an AC_DEFUN. Needed so that the autoconf snippets can use
45117         AC_REQUIRE.
45118
45119 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45120
45121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45122         Initialize pkgdata_DATA.
45123         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45124         overriding it.
45125
45126 2006-08-06  Eric Blake  <ebb9@byu.net>
45127
45128         * lib/error.h: Fold in some upstream changes from glibc.
45129         * lib/error.c: Likewise.
45130
45131 2006-08-04  Bruno Haible  <bruno@clisp.org>
45132
45133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45134         Make the mostlyclean-local rule depend on mostlyclean-generic.
45135         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45136
45137 2006-07-31  Bruno Haible  <bruno@clisp.org>
45138
45139         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45140         <stdlib.h>, <string.h>.
45141
45142 2006-07-30  Bruno Haible  <bruno@clisp.org>
45143
45144         * modules/readlink (License): Change to LGPL.
45145
45146 2006-07-30  Bruno Haible  <bruno@clisp.org>
45147
45148         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45149         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45150         set PKGDATADIR to point to it.
45151
45152 2006-07-30  Bruno Haible  <bruno@clisp.org>
45153
45154         * modules/csharpexec (configure.ac): Comment out macro invocation.
45155         * modules/javaexec (configure.ac): Likewise.
45156         * modules/javacomp-script (configure.ac): Likewise.
45157
45158         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45159
45160 2006-07-30  Bruno Haible  <bruno@clisp.org>
45161
45162         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45163         linked-list.
45164
45165 2006-07-30  Bruno Haible  <bruno@clisp.org>
45166
45167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45168
45169 2006-07-30  Bruno Haible  <bruno@clisp.org>
45170
45171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45172         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45173         get removed.
45174
45175 2006-07-29  Bruno Haible  <bruno@clisp.org>
45176
45177         Make it possible for gnulib-tool to work with locally modified or
45178         augmented gnulib repositories.
45179         * gnulib-tool (func_usage): Document --local-dir option.
45180         (local_gnulib_dir): New variable.
45181         Handle --local-dir option.
45182         (func_lookup_file): New function.
45183         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45184         (func_get_description, func_get_filelist, func_get_description,
45185         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45186         func_get_automake_snippet, func_get_include_directive,
45187         func_get_license, func_get_maintainer): Use func_lookup_file.
45188         (func_import, func_create_testdir): Use func_lookup_file.
45189
45190 2006-07-29  Bruno Haible  <bruno@clisp.org>
45191
45192         * modules/setenv (Depends-on): Add unistd.
45193
45194 2006-07-29  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45197
45198 2006-07-29  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45201
45202 2006-07-29  Bruno Haible  <bruno@clisp.org>
45203
45204         * gnulib-tool (import, update): If there is no Makefile.am, look at
45205         aclocal.m4, instead of bailing out.
45206
45207 2006-07-29  Bruno Haible  <bruno@clisp.org>
45208
45209         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45210         Categorize the options by when they are useful.
45211
45212 2006-07-29  Bruno Haible  <bruno@clisp.org>
45213
45214         * gnulib-tool (func_usage): Document option --no-libtool.
45215         Handle option --no-libtool.
45216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45217         for changed semantics of $libtool variable.
45218         (func_import): Likewise. If libtool is not used, show this through
45219         an option --no-libtool.
45220         (func_create_testdir): Update.
45221
45222 2006-07-29  Bruno Haible  <bruno@clisp.org>
45223
45224         * gnulib-tool (func_import): Extend error message about missing
45225         --doc-base.
45226
45227 2006-07-29  Bruno Haible  <bruno@clisp.org>
45228
45229         * gnulib-tool (func_import): Don't create the $docbase directory if
45230         there is no file to store there.
45231
45232 2006-07-29  Bruno Haible  <bruno@clisp.org>
45233
45234         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45235         relevant, look for configure.ac there, not in the current directory.
45236         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45237
45238 2006-07-29  Bruno Haible  <bruno@clisp.org>
45239
45240         * gnulib-tool (SORT): New variable.
45241         (func_usage): Undocument --assume-autoconf option.
45242         Remove --assume-autoconf option handling.
45243         (autoconf_minversion): Determine from the contents of configure.ac.
45244         (func_import): Remove autoconf_minversion handling.
45245         Suggested by Eric Blake.
45246
45247 2006-07-29  Bruno Haible  <bruno@clisp.org>
45248
45249         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45250
45251 2006-07-29  Bruno Haible  <bruno@clisp.org>
45252
45253         * config/srclist.txt (*setenv.[ch]): Remove rules.
45254
45255 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45256
45257         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45258
45259 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45260
45261         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45262         arpa/inet.h.
45263
45264 2006-07-28  Simon Josefsson  <jas@extundo.com>
45265
45266         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45267         * modules/inet_pton (Depends-on): Likewise.
45268
45269 2006-07-28  Simon Josefsson  <jas@extundo.com>
45270
45271         * m4/netinet_in_h.m4: New file.
45272
45273 2006-07-28  Simon Josefsson  <jas@extundo.com>
45274
45275         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45276         #include's.
45277
45278 2006-07-28  Simon Josefsson  <jas@extundo.com>
45279
45280         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45281         #include's.
45282
45283 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45284
45285         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45286         setgid on directories only if they set these bits.
45287         * lib/modechange.h: Remove obsolete comment about masks.
45288
45289 2006-07-28  Eric Blake  <ebb9@byu.net>
45290
45291         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45292         macro expansion.
45293
45294 2006-07-28  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45297
45298 2006-07-28  Bruno Haible  <bruno@clisp.org>
45299
45300         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45301
45302 2006-07-28  Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45305         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45306         Define fallbacks.
45307         Avoids link error on FreeBSD 4.x.
45308         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45309
45310         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45311         encoding.
45312         * lib/mbswidth.c (iswcntrl): Likewise.
45313
45314 2006-07-27  Bruno Haible  <bruno@clisp.org>
45315
45316         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45317         test.
45318
45319 2006-07-27  Bruno Haible  <bruno@clisp.org>
45320
45321         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45322         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45323         defined.
45324
45325 2006-07-26  Eric Blake  <ebb9@byu.net>
45326
45327         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45328
45329 2006-07-26  Eric Blake  <ebb9@byu.net>
45330
45331         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45332         like mingw that lack mkstemp.
45333         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45334         avoid compilation warning on mingw.
45335
45336 2006-07-26  Bruno Haible  <bruno@clisp.org>
45337
45338         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45339         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45340         INT_FAST*_MIN, INTPTR_MIN.
45341
45342 2006-07-25  Bruno Haible  <bruno@clisp.org>
45343
45344         * modules/version-etc (Depends-on): Add stdarg.
45345
45346 2006-07-25  Bruno Haible  <bruno@clisp.org>
45347
45348         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45349         complex commands.
45350
45351 2006-07-25  Bruno Haible  <bruno@clisp.org>
45352
45353         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45354         defined in <stdarg.h> or config.h.
45355
45356 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45357
45358         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45359         (gl_STDIO_SAFER): Remove.
45360
45361 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45362
45363         * MODULES.html.sh (File stream based Input/Output):
45364         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45365         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45366         * modules/fopen-safer, modules/tmpfile-safer: New files.
45367         * modules/stdio-safer: Remove.
45368
45369 2006-07-24  Bruno Haible  <bruno@clisp.org>
45370
45371         * modules/tmpdir: New file.
45372         * MODULES.html.sh (File system functions): Add it.
45373
45374 2006-07-24  Bruno Haible  <bruno@clisp.org>
45375
45376         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45377         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45378
45379 2006-07-24  Bruno Haible  <bruno@clisp.org>
45380
45381         * modules/clean-temp: New file.
45382
45383 2006-07-24  Bruno Haible  <bruno@clisp.org>
45384
45385         * m4/tmpdir.m4: New file, from GNU gettext.
45386
45387 2006-07-24  Bruno Haible  <bruno@clisp.org>
45388
45389         * lib/tmpdir.h: New file, from GNU gettext.
45390         * lib/tmpdir.c: New file, from GNU gettext.
45391
45392 2006-07-24  Bruno Haible  <bruno@clisp.org>
45393
45394         * lib/clean-temp.h: New file, from GNU gettext.
45395         * lib/clean-temp.c: New file, from GNU gettext.
45396
45397 2006-07-23  Eric Blake  <ebb9@byu.net>
45398
45399         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45400         (Depends-on): Add binary-io.
45401
45402 2006-07-23  Eric Blake  <ebb9@byu.net>
45403
45404         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45405
45406 2006-07-23  Eric Blake  <ebb9@byu.net>
45407
45408         * lib/tmpfile-safer.c: New file.
45409         * lib/stdio-safer.h (fopen_safer): Add prototype.
45410         * lib/stdio--.h (tmpfile): Make safer.
45411
45412 2006-07-23  Bruno Haible  <bruno@clisp.org>
45413
45414         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45415         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45416         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45417         gl_linked_remove_at): Use it.
45418
45419 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45420         and Simon Josefsson <jas@extundo.com>
45421
45422         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45423
45424         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45425
45426 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45427
45428         * modules/close-stream: New file.
45429         * modules/closeout (Description): Make it clear that it exits
45430         with a diagnostic on error.
45431         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45432         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45433
45434 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45435
45436         * m4/close-stream.m4: New file.
45437
45438 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45439
45440         * lib/close-stream.c, lib/close-stream.h: New files.
45441
45442 2006-07-22  Bruno Haible  <bruno@clisp.org>
45443
45444         Merge from GNU gettext 0.15.
45445
45446         2006-05-01  Bruno Haible  <bruno@clisp.org>
45447
45448                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45449
45450         2006-07-22  Bruno Haible  <bruno@clisp.org>
45451
45452                 * modules/javaversion: New file.
45453                 * MODULES.html.sh (Java): Add javaversion.
45454
45455         2006-03-12  Bruno Haible  <bruno@clisp.org>
45456
45457                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45458
45459         2005-12-04  Bruno Haible  <bruno@clisp.org>
45460
45461                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45462                 (untested).
45463
45464         2006-06-21  Bruno Haible  <bruno@clisp.org>
45465
45466                 Avoid warnings from recent versions of mcs.
45467                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45468                 -o, -L, -r any more. Use options documented since mcs-1.0
45469                 instead. Similarly for -g.
45470
45471         2005-12-04  Bruno Haible  <bruno@clisp.org>
45472
45473                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45474                 .resources, not .resource.
45475
45476         2005-07-09  Bruno Haible  <bruno@clisp.org>
45477
45478                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45479                 add a .dll suffix.
45480                 Reported by Mark Junker <mjscod@gmx.de>.
45481
45482         2006-07-22  Bruno Haible  <bruno@clisp.org>
45483
45484                 * modules/gettext: Upgrade to gettext-0.15.
45485                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45486                 m4/visibility.m4.
45487                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45488
45489 2006-07-22  Bruno Haible  <bruno@clisp.org>
45490
45491         Merge from GNU gettext 0.15.
45492
45493         2006-03-25  Bruno Haible  <bruno@clisp.org>
45494
45495                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45496
45497         2006-07-21  Bruno Haible  <bruno@clisp.org>
45498
45499                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45500                 "1.1".
45501
45502         2006-05-09  Bruno Haible  <bruno@clisp.org>
45503
45504                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45505                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45506                 for the conftestver execution.
45507
45508         2006-05-01  Bruno Haible  <bruno@clisp.org>
45509
45510                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45511                 optional target-version argument. Verify that the compiler
45512                 groks source of the specified source-version, or add -source
45513                 option as necessary. Verify that the compiler produces
45514                 bytecode in the specified target-version, or add -target and
45515                 -source options as necessary. Make the result of the test
45516                 available as variable CONF_JAVAC. Also log error output in
45517                 config.log.
45518
45519         2006-03-11  Bruno Haible  <bruno@clisp.org>
45520
45521                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45522
45523         2006-05-09  Bruno Haible  <bruno@clisp.org>
45524
45525                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45526                 CLASSPATH_SEPARATOR to a semicolon.
45527
45528         2006-03-12  Bruno Haible  <bruno@clisp.org>
45529
45530                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45531                 available as variable CONF_JAVA, for subsequent autoconf
45532                 tests. Also log error output in config.log.
45533
45534         2006-07-19  Bruno Haible  <bruno@clisp.org>
45535
45536                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45537                 that getline works on glibc2 systems. Needed to avoid trouble
45538                 in relocatable.c.
45539                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45540
45541         2005-12-04  Bruno Haible  <bruno@clisp.org>
45542
45543                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45544                 launcher (untested).
45545
45546         2005-12-04  Bruno Haible  <bruno@clisp.org>
45547
45548                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45549
45550         2006-07-22  Bruno Haible  <bruno@clisp.org>
45551
45552                 * gettext.m4: Update from GNU gettext-0.15.
45553                 * nls.m4: Likewise.
45554                 * po.m4: Likewise.
45555                 * inttypes-pri.m4: Likewise.
45556                 * inttypes-h.m4: Renamed from inttypes.m4.
45557                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45558
45559 2006-07-22  Bruno Haible  <bruno@clisp.org>
45560
45561         Merge from GNU gettext 0.15.
45562
45563         2005-07-05  Bruno Haible  <bruno@clisp.org>
45564
45565                 * printf-args.c (printf_fetchargs): Work around broken
45566                 definition of wint_t on mingw.
45567
45568         2005-02-12  Bruno Haible  <bruno@clisp.org>
45569
45570                 * xallocsa.h: Add extern "C" for C++.
45571
45572         2006-05-17  Bruno Haible  <bruno@clisp.org>
45573
45574                 Cygwin portability.
45575                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45576
45577         2006-04-30  Bruno Haible  <bruno@clisp.org>
45578
45579                 * progreloc.c: Include <mach-o/dyld.h> if available.
45580                 (find_executable): Use _NSGetExecutablePath when possible.
45581
45582         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45583
45584                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45585                 function.
45586
45587         2005-12-29  Bruno Haible  <bruno@clisp.org>
45588
45589                 * progreloc.c (set_program_name_and_installdir): Fix
45590                 compilation error.
45591
45592         2005-12-04  Bruno Haible  <bruno@clisp.org>
45593
45594                 Cygwin portability.
45595                 * progreloc.c: Include <windows.h> also on Cygwin.
45596                 (find_executable): Add support for Cygwin.
45597                 (set_program_name_and_installdir): Handle also platforms with
45598                 nonempty EXEEXT.
45599
45600         2006-07-11  Bruno Haible  <bruno@clisp.org>
45601
45602                 * javacomp.c: Fix a comment.
45603                 Reported by Jim Meyering.
45604
45605         2006-04-30  Bruno Haible  <bruno@clisp.org>
45606
45607                 * javacomp.h (compile_java_class): Add source_version,
45608                 target_version arguments.
45609                 * javacomp.c: Rewritten to choose only a compiler that
45610                 respects the specified source_version and target_version.
45611
45612         2006-06-27  Bruno Haible  <bruno@clisp.org>
45613
45614                 Assume correct S_ISDIR macro.
45615                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45616
45617         2006-07-22  Bruno Haible  <bruno@clisp.org>
45618
45619                 * javaversion.h: New file, from GNU gettext.
45620                 * javaversion.c: New file, from GNU gettext.
45621                 * javaversion.java: New file, from GNU gettext.
45622                 * javaversion.class: New file, from GNU gettext.
45623
45624         2006-05-17  Bruno Haible  <bruno@clisp.org>
45625
45626                 Cygwin portability.
45627                 * javaexec.c (execute_java_class): Test for jview program
45628                 also on Cygwin.
45629
45630         2006-04-09  Bruno Haible  <bruno@clisp.org>
45631
45632                 * fatal-signal.c: Don't include string.h.
45633                 (at_fatal_signal): Use a copying loop instead of memcpy.
45634
45635         2005-12-04  Bruno Haible  <bruno@clisp.org>
45636
45637                 * csharpexec.c: Add support for 'clix' launcher (untested).
45638                 (execute_csharp_using_sscli): New function.
45639                 (execute_csharp_program): Call it.
45640
45641         2006-06-21  Bruno Haible  <bruno@clisp.org>
45642
45643                 Avoid warnings from recent versions of mcs.
45644                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45645                 -o, -L, -r any more. Use options documented since mcs-1.0
45646                 instead. Similarly for -g.
45647
45648         2005-07-09  Bruno Haible  <bruno@clisp.org>
45649
45650                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45651                 add a .dll suffix.
45652                 Reported by Mark Junker <mjscod@gmx.de>.
45653
45654         2006-06-17  Bruno Haible  <bruno@clisp.org>
45655
45656                 * config.charset: Update for NetBSD 3.0.
45657
45658         2006-05-17  Bruno Haible  <bruno@clisp.org>
45659
45660                 Cygwin portability.
45661                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45662
45663         2006-05-16  Bruno Haible  <bruno@clisp.org>
45664
45665                 * localcharset.c [CYGWIN]: Include <windows.h>.
45666                 (get_charset_aliases): For Cygwin, return the same CPxxx
45667                 aliases list as under WIN32.
45668                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45669                 the environment variables. Fall back to GetACP().
45670
45671         2006-04-05  Bruno Haible  <bruno@clisp.org>
45672
45673                 * config.charset: Update Juan Manuel Guerrero's address.
45674
45675         2005-02-12  Bruno Haible  <bruno@clisp.org>
45676
45677                 * allocsa.h: Add extern "C" for C++.
45678
45679         2005-02-10  Bruno Haible  <bruno@clisp.org>
45680
45681                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45682                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45683
45684         2006-07-22  Bruno Haible  <bruno@clisp.org>
45685
45686                 * gettext.h: Update to GNU gettext-0.15.
45687
45688 2006-07-22  Bruno Haible  <bruno@clisp.org>
45689
45690         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45691         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45692         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45693
45694 2006-07-21  Eric Blake  <ebb9@byu.net>
45695
45696         * modules/stdlib-safer: New file.
45697         * MODULES.html.sh (File stream based Input/Output): Add
45698         stdlib-safer.
45699
45700 2006-07-21  Eric Blake  <ebb9@byu.net>
45701
45702         * lib/stdlib-safer.h: New file from coreutils, required by
45703         stdlib--.h.
45704
45705 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45706
45707         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45708
45709 2006-07-20  Bruno Haible  <bruno@clisp.org>
45710
45711         * gnulib-tool: Recognize new option --assume-autoconf.
45712         (autoconf_minversion): New variable.
45713         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45714
45715 2006-07-20  Bruno Haible  <bruno@clisp.org>
45716
45717         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45718
45719 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45720
45721         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45722         Reindent and repaginate.
45723
45724 2006-07-19  Derek Price  <derek@ximbiot.com>
45725
45726         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45727         Correct grammar.
45728
45729 2006-07-17  Bruno Haible  <bruno@clisp.org>
45730
45731         * modules/list: New file.
45732         * modules/array-list: New file.
45733         * modules/carray-list, modules/carray-list-tests: New files.
45734         * modules/linked-list, modules/linked-list-tests: New files.
45735         * modules/avltree-list, modules/avltree-list-tests: New files.
45736         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45737         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45738         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45739         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45740         * modules/oset: New file.
45741         * modules/array-oset: New file.
45742         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45743         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45744         * tests/test-carray_list.c: New file.
45745         * tests/test-linked_list.c: New file.
45746         * tests/test-avltree_list.c: New file.
45747         * tests/test-rbtree_list.c: New file.
45748         * tests/test-linkedhash_list.c: New file.
45749         * tests/test-avltreehash_list.c: New file.
45750         * tests/test-rbtreehash_list.c: New file.
45751         * tests/test-avltree_oset.c: New file.
45752         * tests/test-rbtree_oset.c: New file.
45753         * MODULES.html.sh (Container data structures): New section.
45754
45755 2006-07-17  Bruno Haible  <bruno@clisp.org>
45756
45757         * m4/gl_list.m4: New file.
45758
45759 2006-07-17  Bruno Haible  <bruno@clisp.org>
45760
45761         * lib/gl_list.h: New file.
45762         * lib/gl_list.c: New file.
45763         * lib/gl_array_list.h: New file.
45764         * lib/gl_array_list.c: New file.
45765         * lib/gl_carray_list.h: New file.
45766         * lib/gl_carray_list.c: New file.
45767         * lib/gl_linked_list.h: New file.
45768         * lib/gl_linked_list.c: New file.
45769         * lib/gl_anylinked_list1.h: New file.
45770         * lib/gl_anylinked_list2.h: New file.
45771         * lib/gl_avltree_list.h: New file.
45772         * lib/gl_avltree_list.c: New file.
45773         * lib/gl_anyavltree_list1.h: New file.
45774         * lib/gl_anyavltree_list2.h: New file.
45775         * lib/gl_rbtree_list.h: New file.
45776         * lib/gl_rbtree_list.c: New file.
45777         * lib/gl_anyrbtree_list1.h: New file.
45778         * lib/gl_anyrbtree_list2.h: New file.
45779         * lib/gl_anytree_list1.h: New file.
45780         * lib/gl_anytree_list2.h: New file.
45781         * lib/gl_linkedhash_list.h: New file.
45782         * lib/gl_linkedhash_list.c: New file.
45783         * lib/gl_anyhash_list1.h: New file.
45784         * lib/gl_anyhash_list2.h: New file.
45785         * lib/gl_avltreehash_list.h: New file.
45786         * lib/gl_avltreehash_list.c: New file.
45787         * lib/gl_rbtreehash_list.h: New file.
45788         * lib/gl_rbtreehash_list.c: New file.
45789         * lib/gl_anytreehash_list1.h: New file.
45790         * lib/gl_anytreehash_list2.h: New file.
45791
45792         * lib/gl_oset.h: New file.
45793         * lib/gl_oset.c: New file.
45794         * lib/gl_array_oset.h: New file.
45795         * lib/gl_array_oset.c: New file.
45796         * lib/gl_avltree_oset.h: New file.
45797         * lib/gl_avltree_oset.c: New file.
45798         * lib/gl_rbtree_oset.h: New file.
45799         * lib/gl_rbtree_oset.c: New file.
45800         * lib/gl_anytree_oset.h: New file.
45801
45802 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45803
45804         * m4/mkancesdirs.m4: New file.
45805         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45806         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45807         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45808         it.
45809
45810 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45811
45812         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45813         * lib/mkancesdirs.h: New files.
45814         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45815         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45816         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45817         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45818         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45819         callers changed.  Revamp internals significantly, by not
45820         attempting to create directories that are temporarily more
45821         permissive than the final results.  Do not attempt to use
45822         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45823         This removes some race conditions, fixes some bugs, and simplifies
45824         things.  Use new dirchownmod function to do owner and mode changes.
45825         * lib/mkdir-p.h: Likewise.
45826         * lib/modechange.c (octal_to_mode): New function.
45827         (struct mode_change): New member mentioned.
45828         (make_node_op_equals): New arg mentioned.  All callers changed.
45829         (mode_compile): Keep track of which mode bits the user has explicitly
45830         mentioned.
45831         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45832         New arg PMODE_BITS, to keep track of which mode bits the user
45833         mentioned; it treats S_ISUID and S_ISGID speciall.
45834         All callers changed.
45835         * lib/modechange.h: Likewise.
45836
45837 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45838
45839         * MODULES.html.sh: Add mkancestors.
45840         * modules/mkancesdirs: New module.
45841         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45842         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45843         The chdir-safer and afs files are now orphans; I'll remove them
45844         unless someone speaks up.
45845         Add lib/dirchownmod.c, lib/dirchownmod.h.
45846         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45847         Add lchown, mkancesdirs.
45848         (Maintainer): Add self.
45849
45850 2006-07-15  Karl Berry  <karl@gnu.org>
45851
45852         * gnulib-tool: help message wording/arrangement.
45853
45854 2006-07-14  Simon Josefsson  <jas@extundo.com>
45855
45856         * doc/gnulib.texi (Libtool and Windows): New section.
45857
45858 2006-07-12  Simon Josefsson  <jas@extundo.com>
45859
45860         * modules/gendocs (License): Fix license, approved by Karl.
45861
45862 2006-07-12  Eric Blake  <ebb9@byu.net>
45863
45864         * MODULES.html.sh: Add gendocs.
45865
45866 2006-07-11  Eric Blake  <ebb9@byu.net>
45867
45868         * modules/fdl: New module, to install doc/fdl.texi.
45869         * MODULES.html.sh: Add new section for documentation modules.
45870         * gnulib-tool: Avoid space-tab.
45871         (--doc-base): New option, to manage files from doc.
45872
45873 2006-07-11  Eric Blake  <ebb9@byu.net>
45874
45875         * m4/absolute-header.m4: Fix comments to match recent change.
45876
45877 2006-07-11  Eric Blake  <ebb9@byu.net>
45878
45879         * gnulib-tool: List --doc-base before --tests-base.
45880
45881 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45882
45883         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45884
45885 2006-07-11  Bruno Haible  <bruno@clisp.org>
45886
45887         * README: Mention where to put documentation.
45888
45889 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45890
45891         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45892
45893 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45894
45895         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45896         to stdint.m4.
45897
45898 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45899
45900         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45901         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45902         "no/such/file/stdint.h" when there is no such file, so that
45903         the resulting C code can be parsed by dodgy compilers.
45904         Problems reported by Bob Proulx.
45905
45906 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45907
45908         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45909         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45910         macros into the GNU _D_EXACT_NAMLEN.
45911         * lib/savedir.c:  Likewise.
45912         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45913
45914 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45915         and Paul Eggert  <eggert@cs.ucla.edu>
45916
45917         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45918         * m4/savedir.m4:
45919         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45920         macros into the GNU _D_EXACT_NAMLEN.
45921
45922 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45923
45924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45925         around the absolute name, to work around a problem with the HP-UX
45926         11.23 native C compiler, reported by Bob Proulx.
45927
45928 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45929
45930         * doc/maintain.texi, make-stds.texi: Sync from
45931         <http://savannah.gnu.org/projects/gnustandards>.
45932
45933 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45934
45935         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45936
45937 2006-07-09  Jim Meyering  <jim@meyering.net>
45938
45939         * m4/glob.m4: Remove a doubled word in a comment.
45940
45941 2006-07-09  Jim Meyering  <jim@meyering.net>
45942
45943         * lib/argp-pv.c: Remove a doubled word in a comment.
45944         * lib/check-version.c (check_version): Likewise.
45945         * lib/javacomp.c (compile_java_class): Likewise.
45946
45947 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45948
45949         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45950         for the benefit of people using Autoconf 2.60.  If you want to
45951         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45952         (or m4/onceonly.m4, if pre-2.57) manually.
45953
45954 2006-07-08  Jim Meyering  <jim@meyering.net>
45955
45956         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45957         comment.
45958         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45959         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45960         comment.
45961
45962 2006-07-08  Jim Meyering  <jim@meyering.net>
45963
45964         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45965
45966 2006-07-07  Simon Josefsson  <jas@extundo.com>
45967
45968         * tests/test-crc.c: Change expected crc value, the test vector
45969         were probably computed using the old broken crc.c?
45970
45971 2006-07-06  Simon Josefsson  <jas@extundo.com>
45972
45973         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45974         now the canonical place for the M4 file).
45975
45976         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45977         from the sys_socket dependency now.
45978
45979         * modules/inet_pton (Files): Ditto.
45980
45981         * modules/inet_ntop (Files): Ditto.
45982
45983 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45984
45985         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45986         not gl_PREREQ_GETUSERSHELL.
45987
45988 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45989
45990         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45991         with only one argument, for Autoconf 2.60.
45992         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45993         expand to nothing, so add a shell command to avoid syntax error.
45994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45995
45996 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45997
45998         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45999
46000 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46001
46002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46003         no longer needed.  Check for isblank decl.
46004         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46005         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46006         of existence.
46007
46008 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46009
46010         * lib/getloadavg.c: Use __VMS, not VMS.
46011         * lib/getopt.c: Likewise.
46012         * lib/getpagesize.h: Likewise.
46013         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46014         and probably does not work.
46015
46016 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46017
46018         * lib/.cppi-disable: Add wcwidth.
46019         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46020         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46021         (ISGRAPH): Remove.  All uses changed to isgraph.
46022         (FOLD) [!defined _LIBC]: Remove special case.
46023         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46024         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46025         HAVE_ISBLANK.
46026         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46027         case.
46028
46029 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46030
46031         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46032         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46033         brackets.  Other minor changes to suppress some compiler
46034         warnings.
46035
46036 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46037         and Paul Eggert  <eggert@cs.ucla.edu>
46038
46039         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46040         of invoking obsolescent AC_HEADER_DIRENT macro.
46041         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46042         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46043         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46045         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46046         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46047         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46048         * m4/readdir.m4: Remove; no longer needed.
46049
46050 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46051         and Paul Eggert  <eggert@cs.ucla.edu>
46052
46053         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46054         Don't worry about this obsolete case any more.
46055         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46056         directories.
46057         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46058         worry about this obsolete case any more.
46059         * lib/fts.c: Likewise.
46060         * lib/getcwd.c: Likewise.
46061         * lib/glob.h: Likewise.
46062         * lib/savedir.c: Likewise.
46063
46064 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46065
46066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46067         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46069         needed.
46070         All uses removed.
46071         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46072         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46073         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46074         needed.
46075         * m4/getdate.m4 (gl_GETDATE): Likewise.
46076         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46077         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46078         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46079         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46080         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46081         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46082         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46083         needed.
46084
46085 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46086
46087         * lib/memcasecmp.c: Include <limits.h>.
46088         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46089         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46090         Don't assume isdigit succeeds only on '0' through '9'.
46091
46092 2006-07-05  Eric Blake  <ebb9@byu.net>
46093
46094         * modules/getaddrinfo (Depends-on): Add snprintf.
46095
46096 2006-07-05  Eric Blake  <ebb9@byu.net>
46097
46098         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46099         to avoid 'header present but could not be compiled' on cygwin.
46100
46101 2006-07-05  Eric Blake  <ebb9@byu.net>
46102
46103         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46104         missing from netdb.h.
46105         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46106
46107 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46108
46109         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46110         no longer needed.
46111         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46112         * m4/getdate.m4 (gl_GETDATE): Likewise.
46113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46114         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46115         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46116         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46118
46119 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46120
46121         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46122         All uses of is_space replaced by isspace.
46123         * lib/exit.h: Don't talk about STDC_HEADERS.
46124         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46125         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46126         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46127         replaced by isprint etc.
46128         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46129         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46130         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46131         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46132         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46133         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46134
46135 2006-07-05  Bruno Haible  <bruno@clisp.org>
46136
46137         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46138         the function exists, before testing against AIX.
46139         Reported by Martin Lambers <marlam@marlam.de>.
46140
46141 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46142
46143         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46144         From Mark D. Baushke.
46145
46146 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46147
46148         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46149         to the absolute name, not just one, to bypass Sun C 5.8's
46150         "warning: #include of /usr/include/... may be non-portable".
46151
46152 2006-07-04  Eric Blake  <ebb9@byu.net>
46153
46154         * modules/dirname-tests: New test module.
46155         * tests/test-dirname.c: New file, replacing dirname.c
46156         TEST_DIRNAME section that was recently deleted.
46157
46158 2006-07-04  Bruno Haible  <bruno@clisp.org>
46159
46160         Assume ANSI C header files and <ctype.h> functions.
46161         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46162         (mbsnwidth): Use isprint, iscntrl instead.
46163
46164 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46165
46166         Merge from coreutils.
46167         * MODULES.html.sh: Add xstrtold.
46168         * modules/xstrtold: New file.
46169         * modules/cycle-check (Files): Add lib/same-inode.h.
46170         * modules/dirname (Files): Add m4/double-slash-root.m4.
46171         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46172         * modules/mkdir-p (Files): Add lib/same-inode.h.
46173         * modules/same (Files): Add lib/same-inode.h.
46174
46175 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46178         This is to keep the terminology clean; POSIX talks about
46179         "absolute pathnames", not "full pathnames", but the GNU
46180         Coding Standards say to use "path" for something else;
46181         so use "absolute" to keep both sides happy.
46182         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46183         Set gl_absolute_header, not gl_full_header_path.
46184         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46185         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46186         All uses changed.
46187
46188         Merge from coreutils.
46189
46190         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46191
46192         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46193         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46194         want to require the building of c-strtod.o.
46195         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46196         needs -lm directly.
46197         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46198
46199         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46200
46201         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46202         --as-needed option if available.  Problem reported by Albert Chin in
46203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46204         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46205         cc merely issues a bunch of annoying warnings for --as-needed
46206         (this problem was reported by Bob Proulx).  Also, try linking with
46207         -lm to detect a bug in binutils 2.16 (this problem was reported
46208         by Ralf Wildenhues).
46209
46210         2006-06-18  Jim Meyering  <jim@meyering.net>
46211
46212         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46213         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46214         macro.
46215         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46216         also check for glibc-2.4's abort-inducing bug.
46217
46218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46219         Low-probability clean-up should be to use rmdir to get rid of
46220         the just-created directory, not unlink.
46221
46222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46223         configure fail, and request a bug report to inform us about it.
46224         Add a comment that, barring reports to the contrary, in 2007 we'll
46225         assume ftruncate is universally available.
46226
46227         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46228
46229         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46230
46231         2006-03-12  Jim Meyering  <jim@meyering.net>
46232
46233         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46235         * m4/same.m4 (gl_SAME): Likewise.
46236         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46237
46238         2006-03-11  Eric Blake  <ebb9@byu.net>
46239
46240         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46241         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46242         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46243         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46244
46245 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46246
46247         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46248         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46249         reported by Mark D. Baushke, one in
46250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46251
46252         Merge from coreutils.
46253
46254         * lib/.cppi-disable: Add stdint_.h.
46255         * lib/.cvsignore: Add stdint.h.
46256
46257         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46258
46259         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46260         both double and long double versions.
46261         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46262         * lib/xstrtold.c: New file.
46263         * lib/xstrtod.h (xstrtold): New decl.
46264
46265         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46266
46267         * lib/filemode.c (setst): Remove.
46268         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46269         (arguably) clearer, and the generated code is a bit smaller on my
46270         Debian GNU/Linux stable x86 host.
46271
46272         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46273
46274         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46275         Assume that filemode.h includes sys/types.h and sys/stat.h.
46276         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46277         (ftypelet): Reorder to put common cases first, for efficiency.
46278         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46279         to do 'M'.
46280         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46281         of 10, for compatibility with FreeBSD.  All callers changed.
46282         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46283         types that can't be deduced solely from st_mode.  First arg is now a
46284         const pointer.
46285         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46286         (strmode): Renamed from mode_string.
46287         (filemodestring): New decl.
46288         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46289         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46290         needed.
46291         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46292
46293         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46294
46295         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46296         fsusage.h now does that.  Include fsusage.h first, to test interface.
46297         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46298         at most one method (the old code could have generated decls that
46299         didn't conform to C89, not that this was ever exercised).
46300         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46301
46302         2006-03-19  Jim Meyering  <jim@meyering.net>
46303
46304         Work even in a chroot where d_ino values for entries in "/"
46305         don't match the stat.st_ino values for the same names.
46306         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46307         number, iterate through all entries again, using lstat instead.
46308         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46309         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46310
46311         * lib/getcwd.c (__getcwd): Clarify a comment.
46312         Use memcpy in place of a call to strcpy.
46313
46314         2006-03-12  Jim Meyering  <jim@meyering.net>
46315
46316         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46317         matches that of the current directory (which we're about to chdir ".."
46318         out of), then save the dev-ino of the parent, instead.
46319
46320         * lib/same-inode.h (SAME_INODE): New file/macro.
46321         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46322         Include "same-inode.h", instead.
46323         * lib/same.c: Likewise.
46324         * lib/cycle-check.h: Include "same-inode.h".
46325         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46326         * lib/cycle-check.c (SAME_INODE): Remove definition.
46327         * lib/root-dev-ino.h: Include "same-inode.h".
46328
46329         2006-03-11  Eric Blake  <ebb9@byu.net>
46330
46331         * lib/same.c (same_name): s/base_name/last_component/
46332         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46333         * lib/filenamecat.c (file_name_concat): Likewise.
46334
46335         2006-03-11  Eric Blake  <ebb9@byu.net>,
46336                     Paul Eggert  <eggert@cs.ucla.edu>
46337
46338         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46339         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46340         drive prefix.
46341         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46342         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46343         (last_component): New method.
46344         * lib/dirname.c (dir_len): Determine when drive letters need a
46345         subsequent slash.  Preserve // when it is special.
46346         (dir_name): Don't append dot when drive letter is absolute.
46347         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46348         * lib/basename.c (base_name): New semantics - malloc the result.
46349         Preserve // when it is special.  Preserve relative files that look
46350         like drive letters.
46351         (base_len): Preserve // when it is special.
46352         (last_component): New method, similar to old base_name semantics.
46353         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46354         base_name.  Strip redundant slashes from ///.
46355
46356 2006-07-03  Jim Meyering  <jim@meyering.net>
46357
46358         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46359         macro is used before the first cycle_check call.
46360
46361 2006-07-03  Eric Blake  <ebb9@byu.net>
46362
46363         * modules/dirname (Depends-on): Add xstrndup.
46364
46365 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46366
46367         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46368         test cases, so that config.log is a bit easier to follow.
46369
46370 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46371
46372         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46373         both are 64 bits, since this seems to be the tradition, and this
46374         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46375         we ever run into a host that prefers long long to long in this
46376         case, we'll need another configure-time test.  Problem reported by
46377         Jim Meyering.
46378
46379 2006-07-02  Eric Blake  <ebb9@byu.net>
46380
46381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46382
46383 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46384
46385         * modules/inttypes (Depends-on): No longer depends on stdint.
46386         * modules/stdint (Description): Say more about assumptions.
46387         Say that the fast types might differ.  Say macros are used.
46388         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46389         (Makefile.am): Revise list of substituted symbols to match
46390         new stdint.m4.
46391         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46392         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46393         * tests/test-stdint.c (verify_same_types)
46394         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46395         the code conforms to C99/C89.
46396         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46397         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46398
46399 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46400
46401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46402         but fix a bug, by requiring at least 64 bits.
46403         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46404         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46405         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46406         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46407
46408         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46409         changes.  Make 2.59 a prerequisite.  Check and substitute for
46410         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46411         inttypes.h.  Do not use special include files; just use the
46412         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46413         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46414         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46415         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46416         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46417         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46418         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46419         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46420         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46421         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46422         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46423         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46424         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46425         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46426         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46427         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46428         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46429         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46430         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46431         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46432         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46433         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46434         not check for things that C99 does not require, e.g., int8_t.  If
46435         a test isn't needed unless <stdint.h> isn't working, and is
46436         unlikely to be needed for any other reason, then don't do it
46437         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46438         size_t, since we assume C89 freestanding at least.  Do not check
46439         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46440         the right thing even if the types are not defined.  Instead use:
46441         (gl_STDINT_TYPE_PROPERTIES): New macro.
46442         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46443         testing whether <sys/types.h> clashes, as Autoconf does this for
46444         us now.  All uses removed.
46445         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46446         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46447         (gl_CHECK_TYPE_SAME):
46448         Remove; no longer needed.
46449         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46450         exists, since we'll return 0 anyway in that case.
46451         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46452
46453 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46454
46455         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46456         possible collision with system files.
46457         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46458         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46459         WCHAR_MIN and WCHAR_MAX in this case.
46460         (<stddef.h>): Do not include; no longer needed.
46461         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46462         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46463         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46464         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46465         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46466         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46467         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46468         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46469         !defined(__c99))]: Include in this case too, since it's harmless
46470         now.
46471         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46472         dangerous to do so.
46473         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46474         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46475         (_STDINT_MIN, _STDINT_MAX): New macros.
46476         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46477         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46478         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46479         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46480         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46481         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46482         macros, not typedefs; this simplifies things quite a bit.
46483         Use long int for all types narrower than int64_t.
46484         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46485         Define in terms of long long int or int64_t or long int,
46486         not int64_t or int32_t.  This saves some compile-time testing.
46487         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46488         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46489         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46490         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46491         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46492         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46493         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46494         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46495         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46496         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46497         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46498         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46499         undef any previous version and define our own version, for
46500         simplicity and consistency with the new macros for types.
46501         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46502         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46503         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46504         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46505         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46506         @WINT_T_SUFFIX@ to keep things simple here.
46507         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46508         Simplify by assuming typical 8/16/32/64 host, since we're
46509         already doing that elsewhere anyway.
46510         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46511         and assume long long int is 64 bits if available.  This
46512         speeds up 'configure'.
46513
46514 2006-07-01  Eric Blake  <ebb9@byu.net>
46515
46516         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46517         Reported by Andreas Buening.
46518
46519 2006-07-01  Eric Blake  <ebb9@byu.net>
46520
46521         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46522
46523 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46524
46525         * lib/getaddrinfo.c: fixed typo
46526
46527 2006-06-29  Jim Meyering  <jim@meyering.net>
46528
46529         * modules/strftime (Maintainer): Add my name, since with the
46530         FPRINTFTIME changes strftime.c has forked from glibc.
46531
46532 2006-06-29  Eric Blake  <ebb9@byu.net>
46533
46534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46535
46536 2006-06-29  Eric Blake  <ebb9@byu.net>
46537
46538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46539
46540 2006-06-29  Eric Blake  <ebb9@byu.net>
46541
46542         * lib/stat_.h: New file.
46543
46544 2006-06-29  Eric Blake  <ebb9@byu.net>
46545
46546         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46547         unused static function.
46548
46549 2006-06-29  Eric Blake  <ebb9@byu.net>
46550
46551         * doc/functions.texi (Function Portability): Document missing lstat
46552         on mingw.
46553
46554 2006-06-29  Eric Blake  <ebb9@byu.net>
46555
46556         * MODULES.html.sh: Add sys_stat.
46557         * modules/sys_stat: New module.
46558         * modules/mkstemp (Depends-on): Add sys_stat.
46559
46560 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46561
46562         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46563
46564 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46565
46566         * m4/c-bs-a.m4: Removed.
46567
46568 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46569
46570         * lib/strftime.c: Assume strftime() exists.
46571
46572 2006-06-29  Derek Price  <derek@ximbiot.com>
46573
46574         * modules/c-bs-a: Removed - \a is C89.
46575         * MODULES.html.sh: Remove c-bs-a.
46576
46577 2006-06-29  Bruno Haible  <bruno@clisp.org>
46578
46579         * modules/wcwidth (License): Change to LGPL.
46580
46581 2006-06-28  Simon Josefsson  <jas@extundo.com>
46582
46583         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46584         on _WIN32.
46585
46586         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46587         getnameinfo.
46588
46589 2006-06-28  Simon Josefsson  <jas@extundo.com>
46590
46591         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46592
46593 2006-06-28  Simon Josefsson  <jas@extundo.com>
46594
46595         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46596         functions there.  It will succeed on Windows XP, but on Windows
46597         2000 and (presumably) earlier, it will fail, and use the internal
46598         re-implementation.
46599         (use_win32_p): New function.
46600         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46601         Support AI_NUMERICSERV to disable getservbyname.
46602         (getnameinfo): New function, only supports
46603         NI_NUMERICHOST|NI_NUMERICSERV for now.
46604
46605         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46606         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46607         getnameinfo.
46608
46609 2006-06-28  Eric Blake  <ebb9@byu.net>
46610
46611         * modules/wcwidth: New file.
46612         * modules/mbchar (Depends-on): Add wcwidth.
46613         * modules/mbswidth (Depends-on): Add wcwidth.
46614         * MODULES.html.sh: Add wcwidth.
46615
46616 2006-06-28  Eric Blake  <ebb9@byu.net>
46617
46618         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46620
46621 2006-06-28  Eric Blake  <ebb9@byu.net>
46622
46623         * lib/xvasprintf.h: Fix comments.
46624
46625 2006-06-28  Eric Blake  <ebb9@byu.net>
46626
46627         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46628         * lib/mbswidth.c (wcwidth): Move from here...
46629         * lib/wcwidth.h: ...to this new file.
46630
46631 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46632
46633         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46634
46635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46636         it's obsolete.
46637         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46638
46639 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46640
46641         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46642         Autoconf 2.60 says this stuff was obsolete.
46643
46644 2006-06-28  Bruno Haible  <bruno@clisp.org>
46645
46646         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46647
46648 2006-06-28  Bruno Haible  <bruno@clisp.org>
46649
46650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46651         gt_TYPE_WCHAR_T.
46652
46653 2006-06-28  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46656         declaration for wcwidth.
46657         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46658
46659 2006-06-28  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46662         (mkdir): Define using _mkdir.
46663
46664 2006-06-28  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/getaddrinfo.h: Fix POSIX URL.
46667         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46668         _WIN32.
46669         (use_win32_p): Make static.
46670         (getaddrinfo): Reject service name if it is empty or does not consist
46671         solely of decimal digits, or if its value is > 65535.
46672         (getnameinfo): Remove useless casts.
46673
46674 2006-06-27  Simon Josefsson  <jas@extundo.com>
46675
46676         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46677         Eggert and Martin Lambers.
46678
46679 2006-06-27  Simon Josefsson  <jas@extundo.com>
46680
46681         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46682         Eggert and Martin Lambers.
46683
46684 2006-06-27  Bruno Haible  <bruno@clisp.org>
46685
46686         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46687         result to 0, not to empty.
46688         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46689
46690 2006-06-27  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46693
46694 2006-06-26  Simon Josefsson  <jas@extundo.com>
46695
46696         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46697         present.
46698
46699 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46700
46701         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46702         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46704
46705 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46706
46707         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46708
46709 2006-06-26  Bruno Haible  <bruno@clisp.org>
46710
46711         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46712
46713 2006-06-26  Bruno Haible  <bruno@clisp.org>
46714
46715         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46716
46717 2006-06-26  Bruno Haible  <bruno@clisp.org>
46718
46719         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46720         SGI C compiler in pre-C99 mode.
46721         Suggested by Mark D. Baushke and Larry Jones.
46722
46723 2006-06-26  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46726         WCHAR_MAX.
46727         Reported by Mark D. Baushke and Larry Jones.
46728
46729 2006-06-26  Bruno Haible  <bruno@clisp.org>
46730
46731         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46732         in pre-C99 mode.
46733         Suggested by Mark D. Baushke and Larry Jones.
46734
46735 2006-06-23  Simon Josefsson  <jas@extundo.com>
46736             Bruno Haible  <bruno@clisp.org>
46737
46738         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46739         Emit mostlyclean-local rule.
46740         (func_emit_tests_Makefile_am): Likewise.
46741         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46742
46743 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46744
46745         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46746
46747 2006-06-23  Bruno Haible  <bruno@clisp.org>
46748
46749         * tests/test-stdint.c: Update to match ISO C 99 Technical
46750         Corrigendum 1.
46751
46752 2006-06-23  Bruno Haible  <bruno@clisp.org>
46753
46754         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46755
46756 2006-06-23  Bruno Haible  <bruno@clisp.org>
46757
46758         * lib/stdint_.h: Treat IRIX like OpenBSD.
46759
46760 2006-06-23  Bruno Haible  <bruno@clisp.org>
46761
46762         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46763         ISO C 99 Technical Corrigendum 1.
46764
46765 2006-06-22  Simon Josefsson  <jas@extundo.com>
46766
46767         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46768         MinGW.
46769
46770 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46771
46772         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46773         needed.  Some compiler complained about some of them.  Problem reported
46774         by Larry Jones in
46775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46776
46777 2006-06-21  Simon Josefsson  <jas@extundo.com>
46778
46779         * tests/test-getaddrinfo.c: New file.
46780
46781         * modules/getaddrinfo-tests: New file.
46782
46783         * MODULES.html.sh: Add inet_pton.
46784
46785         * modules/inet_pton: New file.
46786
46787 2006-06-21  Simon Josefsson  <jas@extundo.com>
46788
46789         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46790         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46791         of using the (limited) gnulib implementation on Windows XP.
46792
46793         * m4/inet_pton.m4: New file.
46794
46795 2006-06-21  Simon Josefsson  <jas@extundo.com>
46796
46797         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46798         variable.
46799
46800         * lib/socket_.h: Don't define WINVER.
46801
46802         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46803         slightly modified to work in gnulib.
46804
46805 2006-06-21  Simon Josefsson  <jas@extundo.com>
46806
46807         * doc/gnulib.texi (Windows sockets): Add.
46808
46809 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * lib/read-file.c (fread_file): Start with buffer allocation of
46812         0 bytes rather than 1 byte; this simplifies the code.
46813         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46814         code to free buffer and save/restore errno.
46815         (internal_read_file): Remove unused local.
46816
46817 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46818
46819         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46820         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46821         Problem reported by Denis Excoffier in
46822         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46823
46824 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46825
46826         * modules/sys_socket, modules/socklen: Include sys/types since
46827         FreeBSD 4.x's sys/socket.h needs it.
46828
46829 2006-06-19  Simon Josefsson  <jas@extundo.com>
46830
46831         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46832
46833 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46834
46835         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46836
46837 2006-06-19  Bruno Haible  <bruno@clisp.org>
46838
46839         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46840         and FULL_PATH_INTTYPES_H in angle brackets.
46841         Reported by Mark D. Baushke <mdb@gnu.org>.
46842
46843 2006-06-17  Eric Blake  <ebb9@byu.net>
46844
46845         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46846         errno.
46847
46848 2006-06-17  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46851         <sys/inttypes.h>.
46852
46853 2006-06-17  Bruno Haible  <bruno@clisp.org>
46854
46855         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46856         whether errno is declared. Assume <errno.h> declares errno.
46857
46858 2006-06-17  Bruno Haible  <bruno@clisp.org>
46859
46860         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46861
46862 2006-06-17  Bruno Haible  <bruno@clisp.org>
46863
46864         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46865         problem on Solaris 2.5.1.
46866
46867 2006-06-16  Eric Blake  <ebb9@byu.net>
46868
46869         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46870         * lib/unicodeio.c [!defined errno]: Likewise.
46871         * lib/strtol.c [!defined errno]: Likewise.
46872         * lib/strtod.c [!defined errno]: Likewise.
46873
46874 2006-06-15  Eric Blake  <ebb9@byu.net>
46875
46876         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46877
46878 2006-06-15  Eric Blake  <ebb9@byu.net>
46879
46880         * config/srclist.txt (ssize_t.m4): Lose sync.
46881
46882 2006-06-15  Bruno Haible  <bruno@clisp.org>
46883
46884         * modules/stdint (Files): Include m4/full-header-path.m4,
46885         m4/size_max.m4, m4/wchar_t.m4.
46886         (Makefile.am): Many more substitutions.
46887         * modules/stdint-tests: New file.
46888         * tests/test-stdint.c: New file.
46889
46890 2006-06-15  Bruno Haible  <bruno@clisp.org>
46891
46892         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46893         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46894         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46895         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46896         gl_CHECK_TYPE_SAME): New macros.
46897
46898 2006-06-15  Bruno Haible  <bruno@clisp.org>
46899
46900         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46901
46902 2006-06-15  Bruno Haible  <bruno@clisp.org>
46903
46904         * lib/stdint_.h: Rewritten to be fully auto-configured.
46905         Fixes bug on HP-UX/IA64.
46906
46907 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46908
46909         * lib/getdate.y (__attribute__): Don't define if already defined.
46910         Problem reported by Larry Jones.
46911         * lib/utimens.c (__attribute__): Likewise.
46912
46913 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46914
46915         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46916         reported by Andreas Schwab.
46917
46918 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46919             Bruno Haible  <bruno@clisp.org>
46920
46921         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46922         check for the declaration of strnlen and a run test that exposes the
46923         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46924         rpl_strndup.
46925
46926 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46927             Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46930
46931 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46932
46933         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46934         compile test, for Tru64 4.0D.
46935
46936 2006-05-28  Karl Berry  <karl@gnu.org>
46937
46938         * config/srclist.txt (printf-args.c): lose sync.
46939
46940 2006-05-26  Martin Lambers  <marlam@marlam.de>
46941
46942         * lib/getpass.c: Updates the test for the native W32 API, and adds
46943         missing includes, thus fixing compilation warnings.
46944
46945 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46946
46947         * lib/exclude.c (exclude_fnmatch): New function.
46948         (excluded_file_name): Call exclude_fnmatch.
46949         * lib/exclude.h (excluded_file_name): New prototype
46950
46951 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46952
46953         * lib/tempname.c (small_open, large_open): New macros.
46954         (__open, __open64) [!_LIBC]: Remove.
46955         (__gen_tempname): Use small_open and large_open instead of __open
46956         and __open64.  This fixes a portability bug on HP-UX 11.11i
46957         reported by Simon Wing-Tang in
46958         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46959
46960 2006-05-24  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46963         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46964         Reported by Thorsten Maerz <torte@netztorte.de> via
46965         Aaron Stone <aaron@serendipity.cx>.
46966
46967 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46968
46969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46970         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46971         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46972         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46973         not really conditional on the cache.
46974         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46975
46976 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46977
46978         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46979         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46980         (my_usleep): Don't mishandle maximum value.
46981
46982 2006-05-19  Jim Meyering  <jim@meyering.net>
46983
46984         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46985
46986 2006-05-17  Bruno Haible  <bruno@clisp.org>
46987
46988         Cygwin portability.
46989         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46990
46991 2006-05-17  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/stdint_.h: Fix recognition of Cygwin.
46994
46995 2006-05-15  Bruno Haible  <bruno@clisp.org>
46996
46997         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46998         on libtool patch by Ralf Wildenhues.
46999
47000 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47001
47002         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47003         test for C99 conformance; (bool) 0.5 is an integer constant
47004         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47005         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47006
47007 2006-05-11  Simon Josefsson  <jas@extundo.com>
47008
47009         * m4/xvasprintf.m4: Fix obvious typo.
47010
47011 2006-05-11  Jim Meyering  <jim@meyering.net>
47012
47013         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47014         James Lemley.
47015
47016 2006-05-10  Simon Josefsson  <jas@extundo.com>
47017
47018         * lib/md4.c: Typo fix, update copyright years.
47019         (K1, K2): Don't use L because it turn computations into 64-bit on
47020         64-bit platforms.
47021
47022 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47023
47024         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47025         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47026         unwanted sign propagation, e.g., on hosts with 64-bit int.
47027         There still are some problems with reeelly weird theoretical hosts
47028         (e.g., 33-bit int) but it's not worth worrying about now.
47029         * lib/sha1.c (rol): Likewise.
47030         (K1, K2, K3, K4): Remove unnecessary L suffix.
47031
47032 2006-05-10  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/des.c: Cast to avoid warnings.
47035
47036 2006-05-09  Bruno Haible  <bruno@clisp.org>
47037
47038         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47039         (Depends-on): Depend also on xsize, stdarg.
47040         (configure.ac): Add gl_XVASPRINTF.
47041
47042 2006-05-09  Bruno Haible  <bruno@clisp.org>
47043
47044         * m4/xvasprintf.m4: New file.
47045
47046 2006-05-09  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47049         (EOVERFLOW): Define fallback value.
47050         (xstrcat): New function.
47051         (xvasprintf): Recognize the special case of a string concatenation.
47052
47053 2006-05-08  Eric Blake  <ebb9@byu.net>
47054
47055         * gnulib-tool (func_version): Base copyright year on CVS date.
47056         (func_emit_copyright_notice): New function.
47057         (func_emit_lib_Makefile_am): Use it.
47058         (func_emit_tests_Makefile_am): Likewise.
47059         (func_import): Likewise.
47060
47061 2006-05-08  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/stdarg: New file.
47064         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47065
47066 2006-05-08  Bruno Haible  <bruno@clisp.org>
47067
47068         * m4/stdarg.m4: New file, from GNU gettext.
47069
47070 2006-05-08  Bruno Haible  <bruno@clisp.org>
47071
47072         * config/srclist.txt (build-aux/config.rpath): different from latest
47073         release.
47074
47075 2006-05-08  Bruno Haible  <bruno@clisp.org>
47076
47077         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47078
47079 2006-05-05  Jim Meyering  <jim@meyering.net>
47080
47081         * m4/warning.m4: New file, derived from bison's file by the same name.
47082
47083 2006-05-03  Bruno Haible  <bruno@clisp.org>
47084
47085         * lib/stdint_.h: Shorter URL.
47086         * lib/inttypes.h: Likewise.
47087
47088 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47089
47090         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47091
47092 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47093
47094         * lib/verify.h: Document the internals better.  Most of this change
47095         was written by Bruno Haible.
47096
47097 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47098
47099         * doc/verify.texi: New file, partly based on a proposal by
47100         Bruno Haible.
47101
47102 2006-05-02  Bruno Haible  <bruno@clisp.org>
47103
47104         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47105         test from here...
47106         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47107
47108 2006-04-29  Bruno Haible  <bruno@clisp.org>
47109
47110         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47111         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47112
47113 2006-04-29  Bruno Haible  <bruno@clisp.org>
47114
47115         * gnulib-tool: Make --update option actually work.
47116
47117 2006-04-29  Bruno Haible  <bruno@clisp.org>
47118
47119         * doc/gcd.texi: New file.
47120         * doc/gnulib.texi: Include it.
47121
47122 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47123
47124         * lib/getdate.y (get_date): When adding relative date, start with the
47125         initial time, not with the result of the first mktime call.
47126
47127 2006-04-25  Bruno Haible  <bruno@clisp.org>
47128
47129         * gnulib-tool (func_import): Output the include directives in three
47130         blocks, sorted separately.
47131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47132
47133 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47134
47135         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47136         to define main with arguments, for C++.  Reported by Eric Blake.
47137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47138         Prefer 'int main ()' to 'int main (void)', for C++.
47139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47141         for 'main', for C99 and C++.
47142
47143 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47144
47145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47146         Don't assume that exit status -1 is valid.
47147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47148         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47149         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47150         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47151         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47152         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47153         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47154         functions can be used without declaring them, or that you can
47155         exit with status -1.
47156         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47157
47158 2006-04-24  Karl Berry  <karl@gnu.org>
47159
47160         * config/srclist.txt (longdouble.m4): sync lost.
47161
47162 2006-04-24  Eric Blake  <ebb9@byu.net>
47163
47164         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47165
47166 2006-04-24  Bruno Haible  <bruno@clisp.org>
47167
47168         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47169         poll() implementation in AIX.
47170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47171
47172 2006-04-24  Bruno Haible  <bruno@clisp.org>
47173
47174         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47175         assigned exactly once.
47176
47177 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47178             Bruno Haible  <bruno@clisp.org>
47179
47180         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47181         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47182         for AM_CPPFLAGS.
47183
47184 2006-04-23  Bruno Haible  <bruno@clisp.org>
47185
47186         * modules/copy-file: Depend on unistd.
47187         * modules/execute: Likewise.
47188         * modules/fatal-signal: Likewise.
47189         * modules/findprog: Likewise.
47190         * modules/mkdtemp : Likewise.
47191         * modules/pipe: Likewise.
47192         * modules/wait-process: Likewise.
47193
47194 2006-04-23  Bruno Haible  <bruno@clisp.org>
47195
47196         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47197         condition was already detected.
47198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47199
47200 2006-04-23  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/copy-file.c: Include <unistd.h> unconditionally.
47203         * lib/execute.c: Likewise.
47204         * lib/fatal-signal.c: Likewise.
47205         * lib/findprog.c: Likewise.
47206         * lib/mkdtemp.c: Likewise.
47207         * lib/pipe.h: Likewise.
47208         * lib/pipe.c: Likewise.
47209         * lib/wait-process.h: Likewise.
47210
47211 2006-04-23  Bruno Haible  <bruno@clisp.org>
47212
47213         * gnulib-tool (func_usage): Fix --import description. Document
47214         --update.
47215         (func_import): Create temporary file in a temporary directory, if
47216         --dry-run is specified. Silence errors from 'grep' when there are no
47217         m4 files in $m4dir.
47218         (func_create_testdir): Silence errors from 'grep' when there are no
47219         m4 files in $m4dir.
47220         Reported by Karl Berry <karl@freefriends.org>.
47221
47222 2006-04-20  Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47225         one argument, so that the code will be portable to Autoconf 2.60.
47226         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47227         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47228         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47229
47230 2006-04-19  Derek Price  <derek@ximbiot.com>
47231             Eric Blake  <ebb9@byu.net>
47232
47233         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47234         rather than "/full/path.h".  Update comment to match.  Shorten &
47235         generalize m4_translit call via AS_TR_CPP.
47236
47237 2006-04-19  Derek Price  <derek@ximbiot.com>
47238             Eric Blake  <ebb9@byu.net>
47239
47240         * lib/inttypes.h: Correct grammar in comment.
47241
47242 2006-04-18  Derek Price  <derek@ximbiot.com>
47243             Paul Eggert  <eggert@cs.ucla.edu>
47244
47245         * modules/inttypes: New file.
47246         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47247
47248 2006-04-18  Derek Price  <derek@ximbiot.com>
47249             Paul Eggert  <eggert@cs.ucla.edu>
47250
47251         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47252         New files.
47253
47254 2006-04-18  Derek Price  <derek@ximbiot.com>
47255             Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * lib/inttypes.h: New file.
47258         * lib/strtoimax.c: Assume <inttypes.h>.
47259
47260 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47261
47262         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47263         isn't mounted.  Problem reported by Kir Kolyshkin.
47264
47265 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47266
47267         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47268         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47269         Derek R. Price.
47270         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47271         implementation.
47272
47273 2006-04-12  Eric Blake  <ebb9@byu.net>
47274
47275         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47276         is now done automatically by the corresponding Autoconf macro.
47277
47278 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47279
47280         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47281         time_r.h.
47282
47283 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47284
47285         Merge regex changes from libc, removing some of our
47286         POSIX-conformance changes that were rejected and redoing them in a
47287         less-intrusive way.
47288
47289         * lib/regcomp.c (re_compile_internal, init_dfa):
47290         Length arg is now size_t, not Idx.  All uses changed.
47291         (peek_token): Forward decl now says internal_function.
47292         (__re_error_msgid, __re_error_msgid_idx):
47293         Now static rather than extern with attribute_hidden.
47294         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47295         For some reason libc prefers K&R style defns for external functions.
47296         (regerror) [!defined _LIBC]: Likewise.
47297         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47298         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47299         (build_range_exp, build_collating_symbol):
47300         Use K&R-style defn.
47301         (re_compile_fastmap): Use '\0' to memset, not 0.
47302         (utf8_sb_map): Make the calculations more obvious.
47303         (init_dfa, parse_bracket_exp, build_charclass_op):
47304         Call calloc and cast result, as glibc does.
47305         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47306         (build_range_exp, build_collating_symbol):
47307         Now internal functions.
47308
47309         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47310
47311         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47312         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47313         Don't depend on VMS; depend on __VMS instead, for POSIX
47314         namespace cleanness.
47315         (regoff_t): Define to ssize_t, not long int.
47316
47317         Remove the REG_ macros named below.  Instead, make the old names
47318         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47319         __USE_GNU_REGEX.
47320         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47321         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47322         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47323         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47324         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47325         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47326         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47327         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47328         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47329         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47330         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47331         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47332         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47333         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47334         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47335         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47336         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47337         (REG_NREGS):
47338         Remove.  All uses replaced by the old RE_* names.
47339         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47340         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47341         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47342         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47343         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47344         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47345         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47346         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47347         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47348         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47349         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47350         Don't bother having these macros be independent of each others'
47351         values, since they no longer exist in the POSIX name space.
47352
47353         Rename the following member names back to their old names,
47354         unless !__USE_GNU_REGEX.  All uses changed back.
47355         (buffer): Renamed from re_buffer.
47356         (allocated): Renamed from re_allocated.
47357         (used): Renamed from re_used.
47358         (syntax): Renamed from re_syntax.
47359         (fastmap): Renamed from re_fastmap.
47360         (translate): Renamed from re_translate.
47361         (can_be_null): Renamed from re_can_be_null.
47362         (regs_allocated): Renamed from re_regs_allocated.
47363         (fastmap_accurate): Renamed from re_fastmap_accurate.
47364         (no_sub): Renamed from re_no_sub.
47365         (not_bol): Renamed from re_not_bol.
47366         (not_eol): Renamed from re_not_eol.
47367         (newline_anchor): Renamed from re_newline_anchor.
47368         (num_regs): Renamed from rm_num_regs.
47369         (start): Renamed from rm_start.
47370         (end): Renamed from rm_end.
47371
47372         (free_state): Move up a bit.
47373
47374         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47375         #define to be empty.
47376         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47377         when that is what is intended.
47378         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47379         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47380         (MAX): New macro.
47381         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47382         All uses changed back to re_malloc, etc.  It's now the caller's
47383         responsibility to check for overflow; all callers changed.
47384         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47385         (re_x2nrealloc): Remove.
47386         (free_state): Remove decl.
47387
47388         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47389         (re_set_registers, re_exec):
47390         Use K&R-style defn.
47391
47392         2006-01-31  Roland McGrath  <roland@redhat.com>
47393
47394         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47395         Reported by Mike Frysinger <vapier@gentoo.org>.
47396
47397         2006-01-15  Andreas Jaeger  <aj@suse.de>
47398
47399         [BZ #1950]
47400         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47401         build_wcs_upper_buffer change.
47402         (build_wcs_upper_buffer): Change return type.
47403
47404         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47405
47406         * lib/regex_internal.h: Include <stdint.h> if available.
47407
47408         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47409
47410         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47411
47412         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47413
47414         * lib/regcomp.c: Adjust for changed secondary hash function.
47415
47416         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47417
47418         * lib/regex.h: Pretty printing.
47419         Clean up namespace a bit.
47420
47421         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47422
47423         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47424         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47425
47426         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47427                     Ulrich Drepper  <drepper@redhat.com>
47428
47429         [BZ #1302]
47430         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47431         changed.
47432         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47433
47434         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47435
47436         [BZ #281]
47437         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47438         * lib/regcomp.c: Remove unnecessary uses of
47439         unsigned RE_TRANSLATE_TYPE.
47440         * lib/regex_internal.h: Likewise.
47441         * lib/regex_internal.c: Likewise.
47442         * lib/regexec.c: Likewise.
47443         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47444
47445         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47446
47447         * lib/regexec.c (find_recover_state): Remove unnecessary
47448         initialization.
47449         (transit_state_bkref): Make DFA a const pointer.
47450         (get_subexp): Likewise.
47451         (check_arrival): Likewise.
47452         (update_cur_sifted_state): Likewise.
47453         (re_search_internal): Likewise.
47454         (prune_impossible_nodes): Likewise.
47455         (acquire_init_state_context): Likewise.
47456         (proceed_next_node): Likewise.
47457         (set_regs): Likewise.
47458         (free_fail_stack_return): Likewise.
47459         (check_arrival_expand_ecl): Mark DFA parameter as const.
47460         (check_arrival_expand_ecl_sub): Likewise.
47461         (check_subexp_limits): Likewise.
47462         (sub_epsilon_src_nodes):  Likewise.
47463         (add_epsilon_src_nodes):  Likewise.
47464         (merge_state_array): Likewise.
47465         (update_regs): Likewise.
47466         (build_trtable): Likewise.
47467         (sift_states_backward): Mark MCTX parameter as const.
47468         (build_sifted_states): Likewise.
47469         (update_cur_sifted_state): Likewise.
47470         (sift_states_mkref): Likewise.
47471         (check_arrival_expand_ecl): Mark eclosure as const.
47472         (check_dst_limits_calc_pos_1): Likewise.
47473         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47474         pointer.
47475
47476         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47477
47478         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47479         (transit_state_sb): Likewise.
47480         (transit_state_mb): Likewise.
47481         (sift_states_iter_mb): Likewise.
47482         (check_arrival_add_next_nodes): Likewise.
47483         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47484         [_LIBC] (re_search_2_stub): Use mempcpy.
47485
47486         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47487         mbrtowc for very simple UTF-8 case.
47488
47489         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47490         a pointer-to-const.
47491         (re_acquire_state_context): Likewise.
47492         * lib/regex_internal.h: Adjust prototypes.
47493
47494         * lib/regex.c: Prevent using C++ compilers.
47495
47496         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47497         (re_acquire_state_context): Likewise.
47498
47499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47500
47501         * modules/regex (Depends-on): Add ssize_t.
47502
47503 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47504
47505         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47506         translation table.
47507
47508 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47511
47512 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47513             Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47516         <sys/types.h> and <inttypes.h>.
47517
47518 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47519
47520         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47521         `__error_t_defined', so argp.h will not typedef the former.
47522
47523 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47524
47525         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47526         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47527         glibc names.  Even if glibc is changed to conform to POSIX, the
47528         traditional names will be available anyway, since regex depends on
47529         the extensions module.  Also, fix a longstanding typo in the
47530         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47531         reported by Emanuele Giaquinta.  Also, change sense of cached
47532         variable, so that the message makes sense.
47533
47534 2006-03-24  Simon Josefsson  <jas@extundo.com>
47535
47536         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47537         including some doc fixes.
47538         (base64_encode_alloc): Fix +1 bug on allocation failures.
47539
47540 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47541
47542         * lib/base64.c (base64_encode): Do not read past end of array with
47543         unsanitized input on systems with CHAR_BIT > 8.
47544
47545 2006-03-24  Eric Blake  <ebb9@byu.net>
47546
47547         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47548
47549 2006-03-22  Karl Berry  <karl@gnu.org>
47550
47551         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47552         * config/srclistvars.sh (COREUTILS): new var.
47553
47554 2006-03-17  Jim Meyering  <jim@meyering.net>
47555
47556         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47557         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47558
47559 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47560
47561         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47562         no longer needs it.  Instead, check that regoff_t is as least
47563         as wide as ptrdiff_t.
47564
47565         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47566         so that our regex.h stays compatible with the installed regex.
47567         This is helpful for installers who configure --without-included-regex.
47568         Problem reported by Emanuele Giaquinta.
47569
47570 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47571
47572         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47573         Typedef to long int, not to off_, as POSIX will likely change
47574         in that direction.
47575
47576 2006-03-15  Eric Blake  <ebb9@byu.net>
47577
47578         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47579
47580 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47581
47582         * lib/argp-help.c (validate_uparams): Fix typo
47583         * lib/argp-parse.c (argp_default_options): Consistently begin help
47584         messages with a lowercase letter.
47585
47586 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47587
47588         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47589         overrun buffers and shouldn't be used (much as gets shouldn't be
47590         used).
47591         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47592
47593 2006-03-08  Simon Josefsson  <jas@extundo.com>
47594
47595         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47596         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47597
47598 2006-03-08  Simon Josefsson  <jas@extundo.com>
47599
47600         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47601         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47602
47603 2006-03-08  Simon Josefsson  <jas@extundo.com>
47604
47605         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47606         signal that configure disabled the device.
47607
47608 2006-03-08  Simon Josefsson  <jas@extundo.com>
47609
47610         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47611         languages.
47612
47613 2006-03-07  Simon Josefsson  <jas@extundo.com>
47614
47615         * modules/getopt (Depends-on): Add unistd.
47616
47617         * modules/unistd: New file.
47618
47619 2006-03-07  Simon Josefsson  <jas@extundo.com>
47620
47621         * modules/gc-random: New file.
47622
47623 2006-03-07  Simon Josefsson  <jas@extundo.com>
47624
47625         * m4/unistd_h.m4: New file.
47626
47627 2006-03-07  Simon Josefsson  <jas@extundo.com>
47628
47629         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47630         test to be side-effect free by storing the result in the cache
47631         variable gl_cv_lib_readline, and moving the assignment of
47632         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47633         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47634
47635 2006-03-07  Simon Josefsson  <jas@extundo.com>
47636
47637         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47638         error on missing devices (the functions will return an error).
47639
47640         * m4/gc.m4: Move random stuff to gc-random.m4
47641
47642 2006-03-07  Simon Josefsson  <jas@extundo.com>
47643
47644         * lib/unistd_.h: New file.
47645
47646 2006-03-07  Simon Josefsson  <jas@extundo.com>
47647
47648         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47649
47650 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47651
47652         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47653         Problem reported by Juan Manuel Guerrero.
47654
47655 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47656
47657         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47658         the unistd module.
47659         * lib/getlogin_r.c: Likewise.
47660         * lib/getlogin_r.h: Likewise.
47661         * lib/glob.c: Likewise.
47662         * lib/pagealign_alloc.c: Likewise.
47663         * lib/unistd_.h: Remove; no longer needed.
47664
47665 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47666
47667         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47668         Add unistd.
47669         * modules/c-stack (Depends-on): Add unistd.
47670         * modules/getlogin_r: Likewise.
47671         * modules/glob: Likewise.
47672         * modules/pagealign_alloc: Likewise.
47673         * modules/unistd (Files): Remove lib/unistd_.h.
47674         (EXTRA_DIST): Remove.
47675         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47676         need unistd_.h.
47677         (MOSTLYCLEANFILES): Remove unistd.h-t.
47678
47679 2006-03-03  Simon Josefsson  <jas@extundo.com>
47680
47681         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47682
47683 2006-03-03  Simon Josefsson  <jas@extundo.com>
47684
47685         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47686         libidn and bison.
47687
47688 2006-03-03  Simon Josefsson  <jas@extundo.com>
47689
47690         * build-aux/maint.mk: Add indent target.
47691
47692 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47693
47694         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47695         our replacement poll.h in any case, to avoid a differing
47696         declaration from a system header.  Seen on AIX.
47697
47698 2006-03-01  Simon Josefsson  <jas@extundo.com>
47699
47700         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47701         <kasal@ucw.cz>.
47702
47703 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47704
47705         * modules/gettime (Depends-on): Add extensions module.
47706         * modules/nanosleep (Depends-on): Likewise.
47707         * modules/settime (Depends-on): Likewise.
47708
47709 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47710
47711         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47712         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47713         pedantically.
47714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47715         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47716
47717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47718         not "==".  Reported by Ralf Wildenhues.
47719
47720 2006-03-01  Karl Berry  <karl@gnu.org>
47721
47722         * doc/Copyright/request-*: new files, synced from gnuorg.
47723
47724 2006-03-01  Karl Berry  <karl@gnu.org>
47725
47726         * config/srclist.txt (Copyright/*): new entries.
47727
47728 2006-02-28  Simon Josefsson  <jas@extundo.com>
47729
47730         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47731
47732 2006-02-27  Simon Josefsson  <jas@extundo.com>
47733
47734         * lib/base64.h: Indent #define's.  From Jim Meyering
47735         <jim@meyering.net>.
47736
47737 2006-02-27  Jim Meyering  <jim@meyering.net>
47738
47739         Revert the change of 2006-02-24, so these files can continue
47740         to be sync'd from gettext.
47741         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47742         of `config.h'.
47743
47744 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * modules/intprops: New file.
47747         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47748         Add intprops.
47749         * modules/getloadavg (Files): Remove lib/intprops.h.
47750         (Depends-on): Add intprops.
47751         * modules/human: Likewise.
47752         * modules/inttostr: Likewise.
47753         * modules/openat: Likewise.
47754         * modules/sig2str: Likewise.
47755         * modules/userspec: Likewise.
47756         * modules/utimecmp: Likewise.
47757         * modules/xnanosleep: Likewise.
47758         * modules/xstrtol: Likewise.
47759
47760 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47761
47762         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47763         * modules/lock-tests (TESTS): Use $(EXEEXT).
47764         * modules/tls-tests: Likewise.
47765         * modules/argp-tests: Likewise.
47766         (check_PROGRAMS): New var, replacing...
47767         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47768
47769 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47770
47771         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47772         `config.h'.
47773
47774 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47775
47776         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47777
47778 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47779
47780         Sync from coreutils.
47781         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47782         gl_CHDIR_SAFER.
47783
47784 2006-02-22  Jim Meyering  <jim@meyering.net>
47785
47786         Sync from coreutils.
47787         * m4/chdir-safer.m4: New file.
47788
47789 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47790
47791         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47792         AT_FDCWD exceeds INT_MAX.
47793         * lib/openat.h (AT_FDCWD): Likewise.
47794
47795 2006-02-17  Eric Blake  <address@hidden>
47796
47797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47798
47799 2006-02-16  Simon Josefsson  <jas@extundo.com>
47800
47801         * modules/getaddrinfo (Depends-on): Add sys_socket.
47802
47803 2006-02-15  Simon Josefsson  <jas@extundo.com>
47804
47805         * build-aux/maint.mk: Add dsyntax-check rule.
47806
47807 2006-02-15  Eric Blake  <ebb9@byu.net>
47808
47809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47810         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47811         'present but cannot compile' warnings on cygwin.
47812         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47813         use ws2tcpip.h if sys/socket.h works.
47814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47815         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47816
47817 2006-02-14  Simon Josefsson  <jas@extundo.com>
47818
47819         * modules/maintainer-makefile (Files): Rename.
47820
47821         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47822         and (the local) Makefile.cfg to maint-cfg.mk.
47823
47824         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47825         to the latter.
47826
47827         * modules/maintainer-makefile: New module.
47828
47829         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47830         severaly stripped to make it possible to build it up from scratch
47831         with reliable tests.
47832
47833         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47834         fixes to permit overriding the default actions when configure and
47835         makefile are not available.
47836
47837 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47838
47839         Sync from coreutils.
47840         * modules/lstat (Depends-on): Don't depend on xalloc.
47841         (License): Change from GPL to LGPL, since this is now simply a
47842         replacement for a libc function.
47843
47844 2006-02-14  Jim Meyering  <jim@meyering.net>
47845
47846         Sync from coreutils.
47847
47848         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47849         failure on deficient systems, and simplify gnulib lgpl dependencies.
47850         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47851         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47852
47853         * lib/xalloc-die.c: Remove unused definition of N_.
47854
47855 2006-02-14  Jim Meyering  <jim@meyering.net>
47856
47857         Sync from coreutils.
47858         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47859         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47860         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47861         double-quote uses of that variable, to accommodate the rare case in
47862         which getmntent is available in none of the libraries checked.  This
47863         happens at least on FreeBSD 5.0.
47864
47865 2006-02-13  Simon Josefsson  <jas@extundo.com>
47866
47867         * gnulib-tool (Usage): Fix --import, from
47868         karl@freefriends.org (Karl Berry).
47869
47870 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47871
47872         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47873
47874 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47875
47876         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47877         "autoupdate" on 2005-12-12.
47878
47879 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         * modules/closeout (Depends-on): Remove atexit.
47882
47883 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47884
47885         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47886         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47887
47888 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47889
47890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47891         __EXTENSIONS__ if this causes compilation to fail.  Problem
47892         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47893         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47894
47895 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47896
47897         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47898         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47900         All uses changed.
47901
47902 2006-01-26  Simon Josefsson  <jas@extundo.com>
47903
47904         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47905         prototype is visible on mingw32.
47906
47907         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47908         for mingw32.
47909
47910         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47911         mingw32).
47912
47913 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47916         attempt to open for write; this always fails, at least on POSIX
47917         hosts.  This reinstates the 2006-01-09 change, which was
47918         inadvertently removed.
47919
47920 2006-01-26  Bruno Haible  <bruno@clisp.org>
47921
47922         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47923         Reported by Paul Eggert.
47924
47925 2006-01-26  Bruno Haible  <bruno@clisp.org>
47926             Paul Eggert  <eggert@cs.ucla.edu>
47927
47928         * lib/stdbool_.h (_Bool)
47929         [(! (defined __cplusplus || defined __BEOS__)
47930           && !defined __GNUC__
47931           && !(defined __HP_cc || defined __xlc__
47932                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47933                || defined __sgi))]:
47934         #define to signed char in these cases too; this simplifies
47935         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47936         etc., separately) and makes it more conservative.
47937
47938 2006-01-25  Simon Josefsson  <jas@extundo.com>
47939
47940         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47941         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47942         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47943
47944 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47945
47946         * lib/argp-namefrob.h: Bugfix. Remove stray #
47947
47948 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47949
47950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47951         so that we test the test.
47952         Check for yet another HP-UX cc bug involving *bool |= bool.
47953
47954 2006-01-25  Karl Berry  <karl@gnu.org>
47955
47956         * config/srclist.txt (vasnprintf.c): sync lost.
47957
47958 2006-01-25  Jim Meyering  <jim@meyering.net>
47959
47960         Sync from the stable (b5) branch of coreutils:
47961
47962         * lib/fts.c (fts_children): Don't let close() clobber errno from
47963         failed fchdir().
47964
47965         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47966         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47967         a dangling symlink.  That can also happen at least for ELOOP.
47968         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47969         FYI, this bug predates the inclusion of fts.c in coreutils.
47970
47971         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47972         in their own block, so pre-c99 compilers don't object.
47973
47974         Avoid the double-free (first in fts_read, second in fts_close) that
47975         would occur when an `active' directory is made inaccessible (e.g.,
47976         via chmod a-x) during a traversal.
47977         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47978         before returning.  Reproduce this failure by
47979         mkdir -p a/b; cd a; chmod a-x . b
47980         Reported by Stavros Passas.
47981
47982 2006-01-25  Jim Meyering  <jim@meyering.net>
47983
47984         * lib/fileblocks.c: Remove more useless parentheses.
47985         * lib/readutmp.h: Likewise.
47986
47987 2006-01-25  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47990         warnings.
47991         Reported by Paul Eggert.
47992
47993 2006-01-25  Bruno Haible  <bruno@clisp.org>
47994
47995         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47996         rid of a trap command. For Solaris sh.
47997         Reported by Mark D. Baushke <mdb@gnu.org>.
47998
47999 2006-01-24  Simon Josefsson  <jas@extundo.com>
48000
48001         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48002         Bruno.
48003
48004 2006-01-24  Karl Berry  <karl@gnu.org>
48005
48006         * config/srclist.txt (argp-namefrob.h): sync lost.
48007
48008 2006-01-24  Jim Meyering  <jim@meyering.net>
48009
48010         * modules/openat (Files): Add lib/intprops.h.
48011         From Mark D. Baushke.
48012
48013 2006-01-24  Jim Meyering  <jim@meyering.net>
48014
48015         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48016         Reported by Mark D. Baushke.
48017
48018 2006-01-24  Jim Meyering  <jim@meyering.net>
48019
48020         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48021
48022 2006-01-24  Bruno Haible  <bruno@clisp.org>
48023
48024         * modules/strnlen (Maintainer): Change from glibc to all.
48025
48026 2006-01-24  Bruno Haible  <bruno@clisp.org>
48027
48028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48029         Patch by Paul Eggert.
48030
48031 2006-01-24  Bruno Haible  <bruno@clisp.org>
48032
48033         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48034         already has it.
48035         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48036         2005-11-26.
48037
48038         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48039         'signed char' to avoid problems with the built-in _Bool type.
48040         Reported by Paul Eggert on 2005-11-26.
48041
48042 2006-01-24  Bruno Haible  <bruno@clisp.org>
48043
48044         * gnulib-tool (func_import): Avoid constructing complicated sed
48045         expressions inside backquote.
48046         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48047
48048 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48049
48050         These changes imported from libc.
48051         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48052         test and two separate function calls.
48053         * lib/strndup.c (__strndup): Add libc_hidden_def.
48054
48055 2006-01-23  Simon Josefsson  <jas@extundo.com>
48056
48057         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48058         Remove the test_*_SOURCES variable: automake infers it by default.
48059         * modules/tls-tests: Likewise.
48060
48061 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48062
48063         Work around porting bugs reported by Dieter in
48064         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48065         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48066         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48067         Include "getopt.h" first, to check interface.
48068         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48069         !HAVE_DECL_GETENV.
48070         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48071         (__strndup): Revert to K&R-style function dfns, the glibc style.
48072         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48073         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48074         Include strnlen.h first, to get prototype properly.
48075         (strnlen): Renamed from __strnlen.
48076         Remove weak alias.
48077
48078 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48079
48080         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48081
48082 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         * config/srclist.txt: Adjust to reflect glibc reorganization.
48085         This affects only comments.
48086
48087 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48088
48089          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48090          Reported by Bruce Korb <bkorb@gnu.org>.
48091
48092 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48093
48094         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48095         to pacify gcc -Wswitch-default.
48096
48097 2006-01-22  Bruno Haible  <bruno@clisp.org>
48098
48099         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48100         temporary buffer for sprintf, take into account the precision also
48101         for 'd', 'i', 'u', 'o', 'x', 'X'.
48102
48103 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48104
48105         * modules/argp-tests: New module
48106         * tests/test-argp.c: New file
48107         * tests/test-argp-2.sh: New file
48108
48109 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48110
48111         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48112         (__argp_base_name): Removed
48113         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48114         typo.
48115         (__argp_base_name): Provide macro definition or extern declaration
48116         depending on the configuration
48117
48118 2006-01-20  Simon Josefsson  <jas@extundo.com>
48119
48120         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48121
48122 2006-01-20  Simon Josefsson  <jas@extundo.com>
48123
48124         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48125
48126 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48127
48128         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48129         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48130         Suggested by Bruno Haible.
48131
48132 2006-01-20  Karl Berry  <karl@gnu.org>
48133
48134         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48135         until changes propagate, I guess.
48136
48137 2006-01-19  Simon Josefsson  <jas@extundo.com>
48138
48139         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48140
48141 2006-01-19  Simon Josefsson  <jas@extundo.com>
48142
48143         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48144
48145 2006-01-19  Simon Josefsson  <jas@extundo.com>
48146
48147         * gnulib-tool: Set check_PROGRAMS.
48148
48149         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48150         modules/des-tests, modules/gc-arcfour-tests,
48151         modules/gc-arctwo-tests, modules/gc-des-tests,
48152         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48153         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48154         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48155         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48156         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48157         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48158         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48159         test_*_SOURCES.
48160
48161 2006-01-18  Simon Josefsson  <jas@extundo.com>
48162
48163         * modules/socklen (Depends-on): Depend on sys_socket.
48164
48165 2006-01-18  Simon Josefsson  <jas@extundo.com>
48166
48167         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48168         modules/des-tests, modules/gc-arcfour-tests,
48169         modules/gc-arctwo-tests, modules/gc-des-tests,
48170         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48171         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48172         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48173         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48174         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48175         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48176         $(EXEEXT) to automake TESTS variable, for mingw32.
48177
48178 2006-01-17  Simon Josefsson  <jas@extundo.com>
48179
48180         * modules/socklen (Include): Need sys/socket.h.
48181
48182 2006-01-17  Bruno Haible  <bruno@clisp.org>
48183
48184         * modules/ssize_t (Include): Add <sys/types.h>.
48185
48186 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48189         it's not portable and it doesn't work with cross-compiles.
48190         Problem reported by Bruno Haible.  Fix missing-$ typo in
48191         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48192         -zignore from being used with Sun's C compiler.
48193
48194 2006-01-12  Simon Josefsson  <jas@extundo.com>
48195
48196         * lib/base64.c: Fix warning, reported by Bruno Haible
48197         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48198
48199 2006-01-12  Bruno Haible  <bruno@clisp.org>
48200
48201         * modules/ldd: New file.
48202         * build-aux/ldd.sh.in: New file.
48203         * MODULES.html.sh (Support for building libraries and executables): Add
48204         ldd.
48205
48206 2006-01-12  Bruno Haible  <bruno@clisp.org>
48207
48208         * m4/ldd.m4: New file.
48209
48210 2006-01-12  Bruno Haible  <bruno@clisp.org>
48211
48212         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48213         endless loop while replacing $auxdir with build-aux.
48214
48215 2006-01-11  Simon Josefsson  <jas@extundo.com>
48216
48217         * lib/stdint_.h (SIZE_MAX): Add missing (.
48218
48219 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48220
48221         Sync from coreutils.
48222         * lib/md5.c: Fix commentary typos.
48223         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48224         * lib/md5.h (__attribute__): Remove; unused.
48225         * lib/sha1.c: Fix commentary to match md5 better.
48226         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48227         so that we don't need to worry about alignment.  All uses changed.
48228         This merges the 2005-10-28 md5 change into sha1.
48229
48230 2006-01-11  Jim Meyering  <jim@meyering.net>
48231
48232         Sync from coreutils.
48233         * lib/md5.c (OP): Fix spacing.
48234
48235 2006-01-11  Bruno Haible  <bruno@clisp.org>
48236
48237         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48238         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48239         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48240
48241 2006-01-11  Bruno Haible  <bruno@clisp.org>
48242
48243         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48244         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48245         the "early" section as well.
48246
48247 2006-01-11  Bruno Haible  <bruno@clisp.org>
48248
48249         Avoid "ar: no archive members specified" error on MacOS X.
48250         * gnulib-tool (func_modules_add_dummy): New function.
48251         (func_import, func_create_testdir): Invoke it.
48252
48253 2006-01-11  Bruno Haible  <bruno@clisp.org>
48254
48255         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48256         with $auxdir in AC_CONFIG_FILES statements.
48257
48258 2006-01-11  Bruno Haible  <bruno@clisp.org>
48259
48260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48261         Initialize also noinst_HEADERS to empty.
48262
48263 2006-01-11  Bruno Haible  <bruno@clisp.org>
48264
48265         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48266         variables.
48267         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48268         autoreconf.
48269
48270 2006-01-11  Bruno Haible  <bruno@clisp.org>
48271
48272         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48273         overridable by the user.
48274         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48275
48276 2006-01-10  Simon Josefsson  <jas@extundo.com>
48277
48278         * modules/sys_socket: New file.
48279
48280 2006-01-10  Simon Josefsson  <jas@extundo.com>
48281
48282         * m4/sys_socket_h.m4: New file.
48283
48284 2006-01-10  Simon Josefsson  <jas@extundo.com>
48285
48286         * lib/socket_.h: New file.
48287
48288 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         * modules/readutmp (Maintainer): Add myself.
48291
48292 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48293
48294         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48295         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48296         People who are still concerned with buggy memcmp implementations
48297         can invoke gl_FUNC_MEMCMP themselves.
48298
48299 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * lib/regex_internal.h (BITSET_WORD_BITS):
48302         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48303         preprocessor mishandles large unsigned values as if they were signed.
48304         Problem reported by Claudio Fontana in
48305         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48306
48307 2006-01-10  Jim Meyering  <jim@meyering.net>
48308
48309         Avoid the double-free (first in fts_read, second in fts_close) that
48310         would occur when an `active' directory is made inaccessible (e.g.,
48311         via chmod a-x) during a traversal.
48312         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48313         before returning.  Reproduce this failure by
48314         mkdir -p a/b; cd a; chmod a-x . b
48315         Reported by Stavros Passas.
48316
48317         Sync from coreutils.
48318         * lib/sha1.c: Tweak grammar in a comment.
48319
48320 2006-01-10  Jim Meyering  <jim@meyering.net>
48321
48322         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48323         Patch by Joerg Sonnenberger.
48324
48325 2006-01-10  Bruno Haible  <bruno@clisp.org>
48326
48327         * modules/readutmp: Depend on module free.
48328         * modules/strtok_r: Depend on module restrict.
48329
48330 2006-01-10  Bruno Haible  <bruno@clisp.org>
48331
48332         * modules/gettext (configure.ac): Add an invocation of
48333         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48334
48335 2006-01-10  Bruno Haible  <bruno@clisp.org>
48336
48337         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48338         Reported by Werner Lemberg <wl@gnu.org>.
48339
48340 2006-01-10  Bruno Haible  <bruno@clisp.org>
48341
48342         * lib/localcharset.c: Update from GNU gettext.
48343
48344 2006-01-10  Bruno Haible  <bruno@clisp.org>
48345
48346         * lib/argp.h (__const): Remove macro. Use const instead.
48347         * lib/argp-fmtstream.h (__const): Likewise.
48348         * lib/glob_.h (__const): Remove macro.
48349         * lib/glob-libc.h: Use const instead of __const.
48350
48351 2006-01-10  Bruno Haible  <bruno@clisp.org>
48352
48353         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48354         variable.
48355         Needed to avoid an automake error regarding the 'gettext' module.
48356
48357 2006-01-09  Simon Josefsson  <jas@extundo.com>
48358
48359         * modules/inet_ntop (Depends-on): Add restrict.
48360
48361 2006-01-09  Simon Josefsson  <jas@extundo.com>
48362
48363         * modules/gc-rijndael-tests (License): Put under LGPL.
48364
48365         * modules/gc-des-tests (License): Likewise.
48366
48367         * modules/gc-arcfour-tests (License): Likewise.
48368
48369         * modules/gc-arctwo-tests (License): Likewise.
48370
48371         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48372
48373         * modules/gc-hmac-sha1-tests (Files): Likewise.
48374
48375         * modules/gc-hmac-md5-tests (License): Likewise.
48376
48377         * modules/gc-sha1-tests (License): Likewise.
48378
48379         * modules/gc-md5-tests (License): Likewise.
48380
48381         * modules/gc-md4-tests (License): Likewise.
48382
48383         * modules/gc-md2-tests (License): Likewise.
48384
48385         * modules/gc-tests (License): Likewise.
48386
48387         * modules/des-tests (License): Likewise.
48388
48389         * modules/md4-tests (License): Likewise.
48390
48391         * modules/md2-tests (License): Likewise.
48392
48393 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         Sync from coreutils:
48396
48397         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48398         * modules/lib-ignore: New file.
48399         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48400         chdir-safer.m4, lchmod.m4.
48401         * modules/openat: Add mkdirat.c, openat-priv.h.
48402
48403 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48404
48405         Sync from coreutils.
48406         * m4/lib-ignore.m4: New file.
48407         * m4/lchmod.m4: New file.
48408
48409 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48410
48411         Sync from coreutils.
48412         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48413         for write access: POSIX says that must fail.
48414         * lib/fts.c (diropen): Likewise.
48415         * lib/save-cwd.c (save_cwd): Likewise.
48416         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48417         well, for minor improvements on hosts that lack O_DIRECTORY.
48418         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48419         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48420         Fall back on chown if open failed with EACCES.
48421
48422         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48423         Report an error at compile-time if only a 1-second nominal clock
48424         resolution is found.
48425
48426         * lib/lchmod.h: New file.
48427         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48428         (make_dir_parents): Use lchown rather than chown, and
48429         lchmod rather than chmod.
48430
48431         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48432         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48433         "proc" reported by n0dalus.
48434
48435         * lib/mountlist.c: Include <limits.h>.
48436         (dev_from_mount_options)
48437         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48438         New function.  It no longer assumes "dev=" has the System V meaning
48439         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48440         (read_file_system_list)
48441         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48442         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48443         dev= in that case.
48444
48445         * lib/posixtm.h (PDS_PRE_2000): New macro.
48446         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48447         allow_century.  All usages changed.  Reject dates outside the range
48448         1969-1999 if PDS_PRE_2000 is used.
48449
48450 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         Sync from coreutils.
48453         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48454         (Time of day items): Mention the possibility of leap seconds.
48455         Problem reported by Dr. David Alan Gilbert.
48456
48457 2006-01-09  Jim Meyering  <jim@meyering.net>
48458
48459         Sync from coreutils.
48460
48461         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48462
48463         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48464
48465         * lib/modechange.c (mode_compile): Reject an invalid mode string
48466         that starts with an octal digit.  From Andreas Gruenbacher.
48467
48468         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48469         and dup to open_safer and dup_safer, respectively.
48470         (openat_permissive): Fix typo in comment.
48471
48472         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48473         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48474         (_): Remove; no longer needed.
48475         (openat): Renamed from rpl_openat; no need for rpl_openat
48476         since openat.h renames openat for us.
48477         Replace most of the body with a call to openat_permissive,
48478         to avoid duplicate code.
48479         Port to (probably hypothetical) environments were mode_t is
48480         wider than int.
48481         (openat_permissive): Require mode arg, so that we can check
48482         types better.  Put it just after flags.  Change cwd failure
48483         indicator from pointer-to-bool to pointer-to-errno-value.
48484         All callers changed.
48485         Invoke openat_save_fail and/or openat_restore_fail if
48486         cwd_errno is null, so that openat can call us.
48487         (openat_permissive, fdopendir, fstatat, unlinkat):
48488         Simplify errno handling to avoid some duplicate code,
48489         as it's OK to set errno on success.
48490         * lib/openat.h: Revamp code so that function macros depend on
48491         __OPENAT_PREFIX only, not also on AT_FDCWD.
48492         (openat_ro): Remove.  Caller changed to use openat_permissive.
48493         (openat_permissive): Now a macro, if not a function.
48494         (openat_restore_fail, openat_save_fail): Now always functions,
48495         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48496
48497         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48498         and openat.c.
48499         * lib/mkdirat.c: Include openat-priv.h.
48500         Remove definitions of macros defined therein.
48501         * lib/openat.c: Likewise.
48502
48503         * lib/mkdirat.c (mkdirat): New file and function.
48504         * lib/openat.h (mkdirat): Declare.
48505
48506         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48507
48508         * lib/openat.h (openat_permissive): Declare.
48509         (openat_ro): Define.
48510
48511         * lib/openat.c (EXPECTED_ERRNO): New macro.
48512         (openat_permissive): New function -- used in remove.c rewrite.
48513         (all functions): Set errno just before returning, only if there
48514         was an actual failure.
48515         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48516
48517         Emulate openat-family functions using Linux's procfs, if possible.
48518         Idea and some code based on Ulrich Drepper's glibc changes.
48519
48520         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48521         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48522         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48523         before falling back on save_cwd and restore_cwd.
48524         (fdopendir, fstatat, unlinkat): Likewise.
48525
48526         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48527         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48528
48529         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48530         as second argument to va_arg.  Otherwise, some versions of gcc
48531         warn that `if this code is reached, the program will abort'.
48532
48533 2006-01-09  Jim Meyering  <jim@meyering.net>
48534
48535         Sync from coreutils.
48536         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48537         Require openat-priv.h.
48538
48539 2006-01-09  Bruno Haible  <bruno@clisp.org>
48540
48541         * modules/strnlen (Include): Use strnlen.h.
48542
48543 2006-01-09  Bruno Haible  <bruno@clisp.org>
48544
48545         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48546
48547 2006-01-09  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/sysexit_.h (EX_OK): New macro.
48550         Suggested by Martin Lambers <marlam@marlam.de>.
48551
48552 2006-01-09  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48555         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48556
48557 2006-01-09  Bruno Haible  <bruno@clisp.org>
48558
48559         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48560         numbers.
48561
48562 2006-01-09  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48565         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48566         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48567         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48568
48569 2006-01-09  Bruno Haible  <bruno@clisp.org>
48570
48571         * build-aux/javacomp.sh.in: New file, moved from lib/.
48572         * modules/javacomp-script (Files): Update.
48573         (configure.ac): Add AC_CONFIG_FILES invocation.
48574         (EXTRA_DIST): Remove variable.
48575
48576         * build-aux/javaexec.sh.in: New file, moved from lib/.
48577         * modules/javaexec (Files): Update.
48578         (configure.ac): Add AC_CONFIG_FILES invocation.
48579         (EXTRA_DIST): Remove javaexec.sh.in.
48580
48581         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48582         * modules/csharpcomp-script (Files): Update.
48583         (configure.ac): Add AC_CONFIG_FILES invocation.
48584         (EXTRA_DIST): Remove variable.
48585
48586         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48587         * modules/csharpexec (Files): Update.
48588         (configure.ac): Add AC_CONFIG_FILES invocation.
48589         (EXTRA_DIST): Remove csharpexec.sh.in.
48590
48591 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48592
48593         Sync from coreutils.
48594
48595         Add POSIX ACL support
48596         * lib/acl.h (copy_acl, set_acl): Add declarations.
48597         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48598         systems other than Linux.
48599         (chmod_or_fchmod): New function: use fchmod when possible,
48600         and chmod otherwise.
48601         (file_has_acl): Add a POSIX ACL implementation, with a
48602         Linux-specific subcase.
48603         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48604         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48605         acls are unsupported.
48606         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48607         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48608         are unsupported.
48609
48610 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48611
48612         Sync from coreutils.
48613         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48614
48615 2006-01-07  Bruno Haible  <bruno@clisp.org>
48616
48617         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48618         gl_EARLY.
48619
48620 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48623         Problem reported for Mingw by Mark Junker.
48624
48625 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48626
48627         * README: Gnulib normally doesn't generate a tarball.
48628
48629 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48630
48631         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48632         long int, not int, for nanosecond counts, so that people who are
48633         used to POSIX struct timespec won't be surprised.  Reported by Jim
48634         Meyering.
48635
48636 2005-12-28  Bruno Haible  <bruno@clisp.org>
48637
48638         * build-aux/config.rpath: Update from GNU gettext.
48639
48640 2005-12-16  Jim Meyering  <jim@meyering.net>
48641
48642         * modules/fprintftime: New module.
48643         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48644
48645 2005-12-16  Jim Meyering  <jim@meyering.net>
48646
48647         * m4/fprintftime.m4: New file.
48648
48649 2005-12-16  Jim Meyering  <jim@meyering.net>
48650
48651         * lib/fprintftime.c, lib/fprintftime.h: New files.
48652
48653 2005-12-15  Simon Josefsson  <jas@extundo.com>
48654
48655         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48656         new m4/socklen.m4.
48657
48658 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48659
48660         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48661         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48662
48663 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48664
48665         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48666         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48667         struct uparams is valid. Fall back to the default values if it is
48668         not.
48669
48670 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48671
48672         * modules/argp (Files): Add argp-pin.c
48673         (Depends-on): dirname
48674         (lib_SOURCES): Add argp-pin.c
48675
48676 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48677
48678         * m4/argp.m4:  Check if program_invocation_name and
48679         program_invocation_short_name are declared and define appropriate
48680         macros if they are not.
48681
48682 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48683
48684         * lib/argp-help.c (__argp_base_name): New function
48685         (__argp_short_program_name): Rewrite using __argp_base_name
48686         * lib/argp-namefrob.h: Define program_invocation_name and
48687         program_invocation_short_name if requested
48688         (__argp_base_name): Add prototype
48689         * lib/argp-parse.c (argp_def): Use gettext wrappers
48690         (argp_default_parser): Use __argp_base_name
48691         * lib/argp-pin.c: New file. Defines program_invocation_name and
48692         program_invocation_short_name on systems that lack them.
48693
48694 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48695
48696         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48697         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48698         porting problem reported by Georg Schwarz in
48699         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48700
48701 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48702
48703         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48704         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48705         porting problem reported by Georg Schwarz in
48706         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48707
48708 2005-12-05  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48711         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48712         Reported by Mark Junker <mjscod@gmx.de>.
48713
48714 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48715
48716         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48717         Use implementation from Albert Chin, with some
48718         comments/corrections by Stepan Kasal and myself.
48719
48720 2005-12-02  Bruno Haible  <bruno@clisp.org>
48721
48722         * gnulib-tool (func_import): Accept GPLed build tool modules when
48723         --lgpl is given.
48724         * modules/csharpcomp-script: New file.
48725         * modules/csharpcomp: Depend on it.
48726         * modules/javacomp-script: New file.
48727         * modules/javacomp: Depend on it.
48728         Suggested by Simon Josefsson.
48729
48730 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48733         statement, to work around an HP-UX 10.20 compiler bug reported by
48734         Peter O'Gorman.
48735
48736 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48737
48738         * modules/savedir (Depends-on): Add openat.
48739
48740 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48741
48742         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48743         (uintmax_t) [defined uintmax_t]: Do not declare.
48744         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48745         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48746         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48747         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48748         sake of portability to weird hosts that C allows (though we don't
48749         know of any practical examples).
48750
48751         * lib/savedir.h (fdsavedir): New decl.
48752         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48753         contains most of the former guts of savedir.
48754         (savedir): Use savedirstream.
48755         Include "openat.h".
48756
48757 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48758
48759         * modules/obstack (Files): Add m4/ulonglong.m4.
48760         Problem reported by Davide Angelocola.
48761
48762 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48765         coreutils no longer futzes with rounding modes.
48766
48767 2005-11-14  Jim Meyering  <jim@meyering.net>
48768
48769         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48770         replacement of mkstemp.
48771
48772 2005-11-10  Simon Josefsson  <jas@extundo.com>
48773
48774         * lib/readline.c: Remove EOL.
48775
48776 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48777
48778         * modules/gethrxtime (Depends-on): Add gettime.
48779
48780 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48781
48782         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48783         or gettimeofday; no longer needed.
48784
48785 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48786
48787         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48788         time business.
48789         (gethrxtime) [! (HAVE_NANOUPTIME
48790         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48791         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48792         our own approximation.
48793
48794 2005-11-08  Eric Blake  <ebb9@byu.net>
48795
48796         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48797
48798 2005-11-08  Eric Blake  <ebb9@byu.net>
48799
48800         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48801
48802 2005-11-04  Bruno Haible  <bruno@clisp.org>
48803
48804         * gnulib-tool: Implement --update mode.
48805
48806 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48807
48808         Fix porting problem reported by Theodoros V. Kalamatianos.
48809         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48810         Don't assume that futimes failing means we must fail.
48811
48812 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48813
48814         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48815         variables to suggest the intended function of the PATH_MAX check.
48816
48817 2005-10-30  Kean Johnston  <jkj@sco.com>
48818
48819         Trivial changes to support SCO systems.
48820         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48821         as PATH_MAX.
48822         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48823         where __ptr is null when no I/O is pending.
48824
48825 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48826
48827         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48828         leave errno alone.  Problem reported by Dmitry V. Levin.
48829
48830 2005-10-28  Simon Josefsson  <jas@extundo.com>
48831
48832         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48833         Test more.
48834
48835         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48836
48837         * modules/md2, modules/md2-tests: New files.
48838
48839 2005-10-28  Simon Josefsson  <jas@extundo.com>
48840
48841         * m4/inet_ntop.m4: More tests.
48842
48843         * m4/gc-md2.m4, md2.m4: New file.
48844
48845 2005-10-28  Simon Josefsson  <jas@extundo.com>
48846
48847         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48848         "restrict" keywords, as per POSIX.  Protect the function
48849         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48850         Don't use K&R prototypes.  Check the sprintf return values.
48851         Re-define EAFNOSUPPORT if not present.  Indent.
48852
48853         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48854         suggested by Bruno Haible <bruno@clisp.org>.
48855
48856         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48857
48858         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48859
48860         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48861         libgcrypt).
48862
48863         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48864
48865         * lib/md2.h, lib/md2.c: New files.
48866
48867 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48868
48869         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48870         errno alone.  Problem reported by Frederic Jolliton.
48871
48872 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48873
48874         * modules/verify (License): Change from GPL to LGPL.  This is a
48875         tiny module and there are apparently near-equivalents that are
48876         under the BSD license.
48877
48878 2005-10-24  Simon Josefsson  <jas@extundo.com>
48879
48880         * modules/sha1: Relicense to LGPL.
48881
48882 2005-10-24  Simon Josefsson  <jas@extundo.com>
48883
48884         * lib/md4.h: Shrink buffer size, now that we changed the type.
48885
48886 2005-10-23  Simon Josefsson  <jas@extundo.com>
48887
48888         * gnulib-tool (func_import): Fix --tests-base.
48889
48890 2005-10-22  Simon Josefsson  <jas@extundo.com>
48891
48892         * modules/arcfour (Depends-on): Need stdint.
48893
48894 2005-10-22  Simon Josefsson  <jas@extundo.com>
48895
48896         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48897         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48898
48899 2005-10-22  Simon Josefsson  <jas@extundo.com>
48900
48901         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48902         suggested by Bruno Haible <bruno@clisp.org>.
48903
48904 2005-10-22  Simon Josefsson  <jas@extundo.com>
48905
48906         * lib/crc.h: Include stddef.h, for size_t.
48907
48908 2005-10-22  Simon Josefsson  <jas@extundo.com>
48909
48910         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48911         arcfour_context struct (simplify test vector testing in GNU
48912         Shishi).
48913
48914 2005-10-21  Simon Josefsson  <jas@extundo.com>
48915
48916         * modules/des, modules/des-tests: New files.
48917
48918         * modules/gc-des, modules/gc-des-tests: New files.
48919
48920         * tests/test-des.c, tests/test-gc-des.c: New file.
48921
48922 2005-10-21  Simon Josefsson  <jas@extundo.com>
48923
48924         * modules/arctwo, modules/arctwo-tests: New files.
48925
48926         * tests/test-arctwo.c: New file.
48927
48928         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48929
48930         * tests/test-gc-arctwo.c: New file.
48931
48932 2005-10-21  Simon Josefsson  <jas@extundo.com>
48933
48934         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48935         Bruno Haible <bruno@clisp.org>.
48936
48937         * m4/gc-des.m4: New file.
48938
48939 2005-10-21  Simon Josefsson  <jas@extundo.com>
48940
48941         * m4/arctwo.m4: New file.
48942
48943         * m4/gc-arctwo.m4: New file.
48944
48945 2005-10-21  Simon Josefsson  <jas@extundo.com>
48946
48947         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48948         block.
48949
48950 2005-10-21  Simon Josefsson  <jas@extundo.com>
48951
48952         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48953         <bruno@clisp.org>.
48954
48955         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48956
48957         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48958         Bruno Haible <bruno@clisp.org>.
48959
48960         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48961         <bruno@clisp.org>.
48962
48963 2005-10-21  Simon Josefsson  <jas@extundo.com>
48964
48965         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48966
48967 2005-10-21  Simon Josefsson  <jas@extundo.com>
48968
48969         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48970
48971 2005-10-21  Simon Josefsson  <jas@extundo.com>
48972
48973         * lib/des.h, lib/des.c: New files.
48974
48975         * lib/gc-gnulib.c: Support DES.c
48976
48977 2005-10-21  Simon Josefsson  <jas@extundo.com>
48978
48979         * lib/arctwo.h, lib/arctwo.c: New files.
48980
48981         * lib/gc-gnulib.c: Support ARCTWO.
48982
48983 2005-10-21  Simon Josefsson  <jas@extundo.com>
48984
48985         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48986         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48987
48988 2005-10-21  Simon Josefsson  <jas@extundo.com>
48989
48990         * gnulib-tool (func_import, func_create_testdir): Define automake
48991         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48992         Makefile.am snippet),
48993         suggested by Bruno Haible <bruno@clisp.org>.
48994
48995         * modules/gc (Makefile.am): Use it.
48996
48997 2005-10-21  Bruno Haible  <bruno@clisp.org>
48998
48999         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49000         patch.
49001
49002 2005-10-19  Simon Josefsson  <jas@extundo.com>
49003
49004         * tests/test-gc-rijndael.c: New file.
49005
49006         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49007
49008 2005-10-19  Simon Josefsson  <jas@extundo.com>
49009
49010         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49011         interface too.
49012
49013 2005-10-19  Simon Josefsson  <jas@extundo.com>
49014
49015         * tests/test-gc-arcfour.c: New file.
49016
49017         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49018
49019 2005-10-19  Simon Josefsson  <jas@extundo.com>
49020
49021         * modules/gc-md4, modules/gc-md4-tests: New file.
49022
49023         * tests/test-gc-md4.c: New file.
49024
49025 2005-10-19  Simon Josefsson  <jas@extundo.com>
49026
49027         * m4/gc-md4.m4: New file.
49028
49029 2005-10-19  Simon Josefsson  <jas@extundo.com>
49030
49031         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49032         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49033         <kasal@ucw.cz>.
49034
49035 2005-10-19  Simon Josefsson  <jas@extundo.com>
49036
49037         * m4/gc-arcfour.m4: New file.
49038
49039         * m4/gc-rijndael.m4: New file.
49040
49041 2005-10-19  Simon Josefsson  <jas@extundo.com>
49042
49043         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49044
49045 2005-10-19  Simon Josefsson  <jas@extundo.com>
49046
49047         * lib/gc-gnulib.c: Support ARCFOUR.
49048
49049 2005-10-19  Simon Josefsson  <jas@extundo.com>
49050
49051         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49052         support.
49053
49054         * lib/gc.h: Add ECB enum type.
49055
49056         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49057
49058 2005-10-18  Simon Josefsson  <jas@extundo.com>
49059
49060         * tests/test-md5.c: New file.
49061
49062         * modules/md5-tests: New file.
49063
49064 2005-10-18  Simon Josefsson  <jas@extundo.com>
49065
49066         * tests/test-md4.c: New file.
49067
49068         * modules/md4, modules/md4-tests: New files.
49069
49070 2005-10-18  Simon Josefsson  <jas@extundo.com>
49071
49072         * m4/md4.m4: New file.
49073
49074 2005-10-18  Simon Josefsson  <jas@extundo.com>
49075
49076         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49077
49078 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49079
49080         * gnulib-tool (func_create_testdir): Omit the second check whether
49081         BUILT_SOURCES in nonempty.
49082
49083 2005-10-17  Simon Josefsson  <jas@extundo.com>
49084
49085         * tests/test-rijndael.c: New file.
49086
49087 2005-10-17  Simon Josefsson  <jas@extundo.com>
49088
49089         * modules/sha1: Depend on stdint instead of md5.
49090
49091         * modules/md5: Depend on stdint, remove uint32_t.
49092
49093 2005-10-17  Simon Josefsson  <jas@extundo.com>
49094
49095         * modules/gc-sha1-tests: New file.
49096
49097         * tests/test-gc-sha1.c: New file.
49098
49099 2005-10-17  Simon Josefsson  <jas@extundo.com>
49100
49101         * m4/md5.m4: Remove call to uint32_t.m4.
49102
49103 2005-10-17  Simon Josefsson  <jas@extundo.com>
49104
49105         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49106
49107         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49108         md5.h.
49109
49110         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49111
49112         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49113
49114 2005-10-17  Simon Josefsson  <jas@extundo.com>
49115
49116         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49117
49118 2005-10-17  Simon Josefsson  <jas@extundo.com>
49119
49120         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49121
49122 2005-10-17  Simon Josefsson  <jas@extundo.com>
49123
49124         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49125
49126         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49127
49128 2005-10-17  Bruno Haible  <bruno@clisp.org>
49129
49130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49131         that it can also be used in a test.
49132
49133 2005-10-16  Bruno Haible  <bruno@clisp.org>
49134
49135         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49136         TESTS_ENVIRONMENT, so that individual tests can augment it.
49137
49138         * gnulib-tool (func_create_testdir): Use an intermediate target for
49139         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49140         macros, like $(ALLOCA_H), which cannot be passed through the command
49141         line.
49142
49143 2005-10-15  Simon Josefsson  <jas@extundo.com>
49144
49145         * modules/rijndael-tests: New file.
49146
49147         * modules/rijndael: New file.
49148
49149 2005-10-15  Simon Josefsson  <jas@extundo.com>
49150
49151         * m4/rijndael.m4: New file.
49152
49153 2005-10-15  Simon Josefsson  <jas@extundo.com>
49154
49155         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49156
49157         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49158
49159 2005-10-14  Simon Josefsson  <jas@extundo.com>
49160
49161         * tests/test-arcfour.c: New file.
49162
49163         * modules/arcfour, modules/arcfour-tests: New files.
49164
49165 2005-10-14  Simon Josefsson  <jas@extundo.com>
49166
49167         * m4/arcfour.m4: New file.
49168
49169 2005-10-14  Simon Josefsson  <jas@extundo.com>
49170
49171         * lib/arcfour.h, lib/arcfour.c: New files.
49172
49173 2005-10-14  Roland McGrath  <roland@redhat.com>
49174
49175         Import from libc.  [BZ #1331]
49176         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49177         macro argument.
49178         Reported by Matej Vela <vela@debian.org>.
49179
49180 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49183         include <wchar.h>; no longer needed.
49184
49185 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49186
49187         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49188
49189 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49190         and  Ulrich Drepper  <drepper@redhat.com>
49191
49192         Import from libc.
49193         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49194         instead of inline stream orientation test and two separate
49195         function calls.  Pay no attention to USE_IN_LIBIO.
49196
49197 2005-10-13  Simon Josefsson  <jas@extundo.com>
49198
49199         * modules/gc-hmac-md5-tests: New file.
49200
49201         * tests/test-gc-hmac-sha1.c: New file.
49202
49203         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49204
49205         * modules/gc-hmac-md5-tests: New file.
49206
49207         * tests/test-gc-md5.c: New file.
49208
49209         * modules/gc-md5-tests: New file.
49210
49211 2005-10-13  Simon Josefsson  <jas@extundo.com>
49212
49213         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49214         Move memory allocation outside of loop.
49215
49216 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49219         intermediate directory is in a read-only file system.  Problem
49220         reported by Eric Blake.
49221
49222 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49223
49224         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49225
49226 2005-10-12  Simon Josefsson  <jas@extundo.com>
49227
49228         * tests/test-hmac-sha1.c: New file.
49229
49230         * modules/hmac-sha1-tests: New file.
49231
49232         * modules/hmac-sha1: New file.
49233
49234 2005-10-12  Simon Josefsson  <jas@extundo.com>
49235
49236         * modules/gc-sha1: New file.
49237
49238 2005-10-12  Simon Josefsson  <jas@extundo.com>
49239
49240         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49241
49242         * tests/test-gc-pbkdf2-sha1.c: New file.
49243
49244 2005-10-12  Simon Josefsson  <jas@extundo.com>
49245
49246         * modules/gc-md5, modules/gc-hmac-md5: New files.
49247
49248         * modules/gc (Files): Remove md5, memxor and hmac files.
49249
49250 2005-10-12  Simon Josefsson  <jas@extundo.com>
49251
49252         * m4/gc-pbkdf2-sha1.m4: New file.
49253
49254         * m4/gc-hmac-sha1.m4: New file.
49255
49256         * m4/gc-sha1: New file.
49257
49258         * m4/hmac-sha1.m4: New file.
49259
49260 2005-10-12  Simon Josefsson  <jas@extundo.com>
49261
49262         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49263
49264         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49265
49266 2005-10-12  Simon Josefsson  <jas@extundo.com>
49267
49268         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49269         suggested by Bruno Haible <bruno@clisp.org>.
49270
49271 2005-10-12  Simon Josefsson  <jas@extundo.com>
49272
49273         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49274
49275 2005-10-12  Simon Josefsson  <jas@extundo.com>
49276
49277         * lib/gc-pbkdf2-sha1.c: New file.
49278
49279         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49280
49281 2005-10-12  Simon Josefsson  <jas@extundo.com>
49282
49283         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49284
49285         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49286
49287 2005-10-12  Simon Josefsson  <jas@extundo.com>
49288
49289         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49290         GC_USE_HMAC_MD5, respectively.
49291
49292         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49293         (gc_md5): Fix typo.
49294
49295         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49296
49297         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49298
49299         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49300
49301 2005-10-12  Bruno Haible  <bruno@clisp.org>
49302
49303         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49304         Reported by Stepan Kasal <kasal@ucw.cz>.
49305
49306 2005-10-11  Simon Josefsson  <jas@extundo.com>
49307
49308         * tests/test-crc.c: New file.
49309
49310         * modules/crc, modules/crc-tests: New files.
49311
49312 2005-10-11  Simon Josefsson  <jas@extundo.com>
49313
49314         * m4/crc.m4: New file.
49315
49316 2005-10-11  Simon Josefsson  <jas@extundo.com>
49317
49318         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49319
49320         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49321
49322         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49323
49324 2005-10-11  Simon Josefsson  <jas@extundo.com>
49325
49326         * lib/crc.h, lib/crc.c: New files.
49327
49328         * lib/gc.h (gc_hash_buffer): Add doc.
49329
49330 2005-10-11  Bruno Haible  <bruno@clisp.org>
49331
49332         * modules/c-strcasestr: New file.
49333         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49334
49335 2005-10-11  Bruno Haible  <bruno@clisp.org>
49336
49337         * modules/c-strcase: New file.
49338         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49339
49340 2005-10-11  Bruno Haible  <bruno@clisp.org>
49341
49342         * lib/strcasecmp.c: Include limits.h.
49343         (strcasecmp): Avoid integer overflow on exotic platforms.
49344         * lib/strncasecmp.c: Include limits.h.
49345         (strncasecmp): Avoid integer overflow on exotic platforms.
49346         Reported by Paul Eggert.
49347
49348 2005-10-11  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/c-strcasestr.h: New file, from GNU gettext.
49351         * lib/c-strcasestr.c: New file, from GNU gettext.
49352
49353 2005-10-11  Bruno Haible  <bruno@clisp.org>
49354
49355         * lib/c-strcase.h: New file, from GNU gettext.
49356         * lib/c-strcasecmp.c: New file, from GNU gettext.
49357         * lib/c-strncasecmp.c: New file, from GNU gettext.
49358
49359 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49360
49361         * modules/mempcpy (License): GPL -> LGPL.
49362         * modules/strchrnul (License): Likewise.
49363         * modules/sysexits (License): Likewise.
49364
49365 2005-10-08  Simon Josefsson  <jas@extundo.com>
49366
49367         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49368
49369 2005-10-07  Simon Josefsson  <jas@extundo.com>
49370
49371         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49372
49373 2005-10-06  Simon Josefsson  <jas@extundo.com>
49374
49375         * tests/test-hmac-md5.c: New file.
49376
49377         * modules/hmac-md5-tests: New file.
49378
49379         * modules/hmac-md5: New file.
49380
49381 2005-10-06  Simon Josefsson  <jas@extundo.com>
49382
49383         * m4/hmac-md5.m4: New file.
49384
49385         * m4/memxor.m4: Require gl_C_RESTRICT.
49386
49387 2005-10-06  Simon Josefsson  <jas@extundo.com>
49388
49389         * lib/memxor.c (memxor): Avoid casts and warnings.
49390
49391 2005-10-06  Simon Josefsson  <jas@extundo.com>
49392
49393         * lib/hmac-md5.c: New file.
49394
49395         * lib/hmac.h: New file.
49396
49397 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49398
49399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49400         promotes to int, not unsigned int, to catch the AIX 5.3
49401         compiler bug.
49402
49403 2005-10-05  Simon Josefsson  <jas@extundo.com>
49404
49405         * modules/memxor: New file.
49406
49407         * modules/iconv (Files): Move config.rpath to havelib, it is used
49408         there.
49409
49410         * modules/havelib (Files): Add config.rpath.
49411
49412 2005-10-05  Simon Josefsson  <jas@extundo.com>
49413
49414         * m4/memxor.m4: New file.
49415
49416 2005-10-05  Simon Josefsson  <jas@extundo.com>
49417
49418         * lib/memxor.c (memxor): Fix compiler error.
49419
49420         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49421         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49422
49423         * lib/memxor.h, lib/memxor.c: New files.
49424
49425         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49426         we assume all systems have it, suggested by Jim Meyering
49427         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49428         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49429         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49430         same reasons.
49431
49432 2005-10-05  Simon Josefsson  <jas@extundo.com>
49433
49434         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49435
49436 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49437
49438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49439         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49440         needed, since the source code now assumes these .h files.
49441
49442 2005-10-05  Derek Price  <derek@ximbiot.com>
49443
49444         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49445
49446 2005-10-05  Bruno Haible  <bruno@clisp.org>
49447
49448         * modules/stdint (License): Change to LGPL.
49449
49450 2005-10-04  Simon Josefsson  <jas@extundo.com>
49451
49452         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49453         D. Baushke" <mdb@gnu.org>.
49454
49455 2005-10-04  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/verify.h (verify_true): Provide alternative definition for C++.
49458
49459 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49462         (SSIZE_MAX): New macro, if not already defined.
49463         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49464         than 2 GiB.
49465
49466 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49467
49468         Sync from coreutils.
49469         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49470         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49471         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49472         ULLONG_MAX doesn't work with 2.7.2.1.
49473
49474 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49475
49476         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49477         From Ben Pfaff.
49478
49479         * modules/exclude (Depends-on): Depend on verify.
49480         * modules/strtoimax (Depends-on): Likewise.
49481         * modules/utimecmp (Depends-on): Likewise.
49482
49483 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49484
49485         * lib/exclude.c: Include verify.h.
49486         (verify): Remove.  All callers changed to use verify.h's version.
49487         * lib/strtoimax.c: Likewise.
49488         * lib/utimecmp.c: Likewis.e
49489
49490         Sync from coreutils.
49491         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49492         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49493         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49494         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49495         bother returning ENOSYS if settimeofday or stime fails; just let
49496         them return whatever errno they want to return.
49497         * lib/utimens.c: Include unistd.h, for dup2.
49498         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49499         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49500
49501 2005-10-02  Jim Meyering  <jim@meyering.net>
49502
49503         Sync from coreutils.
49504         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49505         from glibc-2.2.5 that fails for read-only files.
49506
49507 2005-10-02  Jim Meyering  <jim@meyering.net>
49508
49509         Sync from coreutils.
49510         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49511         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49512         `#if HAVE_CONFIG_H'.
49513         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49514         Remove AT_FDCWD test.
49515         Do not consume the fd unless successful.
49516         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49517         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49518         block, so that we don't even try to compile it if settimeofday is
49519         available.  This works around a compilation failure on OSF1 V5.1,
49520         due to stime requiring a `long int*' while tv_sec is `int'.
49521
49522 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49523
49524         Sync from coreutils.
49525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49526         against `yes', rather than just testing for nonempty.
49527
49528 2005-10-01  Simon Josefsson  <jas@extundo.com>
49529
49530         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49531         and Darwin.
49532
49533         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49534         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49535         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49536         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49537         Check if struct addrinfo is declared.
49538
49539 2005-10-01  Simon Josefsson  <jas@extundo.com>
49540
49541         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49542         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49543         AI_* and EAI_* definitions.  Protect function declarations.
49544
49545 2005-10-01  Jim Meyering  <jim@meyering.net>
49546
49547         Sync from coreutils.
49548
49549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49550         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49551         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49553         in the inet and nsl libraries.  Required on Solaris 5.7.
49554
49555 2005-10-01  Jim Meyering  <jim@meyering.net>
49556
49557         Sync from coreutils.
49558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49559         in the inet and nsl libraries.  Required on Solaris 5.7.
49560
49561 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49562
49563         * lib/getdelim.c (getdelim): Remove unused variables.
49564
49565 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49568         so that the code works even with ancient cpp.  Portability problem
49569         with GCC 2.7.2.1 reported by Thomas M.Ott.
49570
49571 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49572
49573         * modules/regex (Depends-on): Add strcase.
49574
49575         * modules/gethostname (Licence): Change from GPL to LGPL, since
49576         gethostname.c is a trivial implementation of a standard library
49577         function.
49578         * modules/poll (License): Change from GPL to LGPL, since it's
49579         derived from LGPL code.
49580
49581 2005-09-27  Jim Meyering  <jim@meyering.net>
49582
49583         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49584         HAVE_CONFIG_H.
49585
49586         * lib/intprops.h (signed_type_or_expr__): Define.
49587         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49588         for unsigned types.
49589
49590 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49591
49592         * lib/verify.h (verify_expr): Remove, replacing with:
49593         (verify_true): New macro that returns true instead of void.
49594         (verify_type__): Remove.
49595         (verify): Use verify_true rather than verify_type__.
49596
49597 2005-09-26  Bruno Haible  <bruno@clisp.org>
49598
49599         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49600         is necessary.
49601         (lib_SOURCES): Remove mbchar.c.
49602         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49603         (Files): Add m4/mbrtowc.m4.
49604         * modules/mbiter: Likewise.
49605         * modules/mbuiter: Likewise.
49606
49607 2005-09-26  Bruno Haible  <bruno@clisp.org>
49608
49609         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49610         compile mbchar.c if they are not both present.
49611         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49612         * m4/mbiter.m4 (gl_MBITER): Likewise.
49613         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49614         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49615         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49616
49617 2005-09-25  Jim Meyering  <jim@meyering.net>
49618
49619         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49620         also uses socklen_t.
49621
49622 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49623
49624         * lib/utimens.c (ENOSYS): Define if not already defined.
49625         (futimens): Support having a null PATH if the file descriptor
49626         is nonnegative.
49627
49628         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49629         Remove.
49630         (__attribute): Define to empty unless GCC 3.1 or later.
49631         This works around a core dump on OpenBSD 3.4, which has GCC
49632         2.95.3, which dumps core when given __attribute__(()).  It also
49633         simplifies other tests, since we really don't want to bother with
49634         worrying about which ancient version of GCC supported what.
49635         Original problem reported by Yoann Vandoorselaere, with part of
49636         the fix suggested by Derek Price.
49637
49638 2005-09-24  Jim Meyering  <jim@meyering.net>
49639
49640         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49641         so we can once again use a positive bitfield width of 1 -- now we
49642         don't have to explain why we were using a bitfield width of 2.
49643
49644 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49647         and similarly for the other external symbols.  Problem reported
49648         by James Gallager.
49649
49650         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49651         bug reported by Jim Meyering.
49652
49653         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49655         not needed, since socklen is a prerequisite module.
49656
49657 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49660         Problem reported by Eric Blake.
49661         (getaddrinfo): Initialize se so that it's not garbage.
49662         Redo internal storage allocation so that it doesn't make unportable
49663         assumptions about alignment.
49664         Fix a memory leak.
49665
49666         * lib/utimens.c (futimens): Use futimesat if available.
49667         Prefer it to futimes since it doesn't have the futimes bug.
49668
49669         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49670         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49671         Instead, declare a function that returns a pointer to an array,
49672         and use verify_type__ to declare the size of the array.
49673         Problem and germ of a solution reported by Bruno Haible.
49674         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49675         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49676
49677 2005-09-23  Jim Meyering  <jim@meyering.net>
49678
49679         Sync from coreutils.
49680         Correct build failure (socklen_t not defined) on at least
49681         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49683
49684 2005-09-23  Jim Meyering  <jim@meyering.net>
49685
49686         * modules/getaddrinfo (Depends-on): Add socklen.
49687
49688 2005-09-23  Bruno Haible  <bruno@clisp.org>
49689
49690         * tests/test-verify.c: New file.
49691
49692 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49693
49694         Sync from coreutils.
49695
49696         * modules/argmatch (Depends-on): Add verify.
49697         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49698         unistd-safer.
49699         * modules/save-cwd (Depends-on): Likewise.
49700
49701         * modules/openat (Files): Add lib/openat-die.c.
49702         (Depends-on): Remove error, exitfail.
49703         Add dirname.
49704
49705         * modules/verify: New file.
49706         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49707         with "verify" module.
49708
49709 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49710
49711         Sync from coreutils.
49712
49713         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49714         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49715         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49716         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49717         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49718         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49719         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49720         Don't bother checking for string.h, stdlib.h, unistd.h.
49721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49722         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49723         module's job.
49724         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49726
49727         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49728         (gl_GETDATE): Use it.
49729
49730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49731
49732 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49733
49734         Sync from coreutils.
49735
49736         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49737         stat-time.h.
49738         * lib/argmatch.h: Include verify.h
49739         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49740         (ARGMATCH_ASSERT): Remove; unused.
49741         * lib/canonicalize.c: Assume STDC_HEADERS.
49742         * lib/exclude.c: Include "strcase.h".
49743         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49744         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49745         and stdio-safer.h.
49746         (getusershell): Call fopen, not fopen_safer.
49747         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49748         Do not include unistd-safer.h.
49749         (save_cwd): Don't call fd_safer; no longer needed
49750         now that we include fcntl--.h.
49751
49752         * lib/getdate.y (relative_time): New type.
49753         (RELATIVE_TIME_0): New constant.
49754         (parser_control): Use relative_time instead of doing it ourselves.
49755         (%union): Add new relative_time rel member.
49756         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49757         Now typeless.
49758         (relunit, relunit_snumber): Now of type rel.
49759         (zone, rel, relunit, get_date): Adjust to above changes.
49760
49761         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49762         Do not include unistd-safer.h.
49763         (getloadavg): Don't call fd_safer; no longer needed
49764         now that we include fcntl--.h.
49765
49766         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49767         (make_dir_parents): Treat ENOSYS like EEXIST.
49768
49769         Improve quality of diagnostics on restore_cwd failure.
49770         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49771         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49772         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49773         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49774         each time through the loop.  Do not diagnose restore_cwd failure;
49775         that is the caller's job (and perhaps the caller does not care).
49776
49777         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49778         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49779         If the file already exists but is not a directory, don't bother
49780         to try to make its parents.
49781         Close potential file descriptor leak if we can't chdir("/") (!).
49782         Don't always return true if chdir($PWD) fails; return true only
49783         if the requested action was done successfully (except for the
49784         chdir($PWD)).
49785         Don't log final directory unless we actually made it.
49786         Refactor to avoid duplicate code to fix up permissions.
49787         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49788
49789         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49790         to make it a bit faster and (I hope) clearer.
49791         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49792         Fix bug in formats like %2N.
49793
49794         * lib/verify.h: New file.
49795
49796 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49797
49798         Sync from coreutils.
49799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49800
49801 2005-09-22  Jim Meyering  <jim@meyering.net>
49802
49803         Sync from coreutils.
49804
49805         * m4/lstat.m4 (gl_FUNC_LSTAT):
49806         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49807         Remove obsolete comment.
49808         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49809         * m4/xstrtod.m4: Likewise.
49810
49811         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49812
49813 2005-09-22  Jim Meyering  <jim@meyering.net>
49814
49815         Sync from coreutils.
49816
49817         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49818
49819         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49820         the .tm_year member, since otherwise gcc-4.0 would now warn about
49821         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49822
49823         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49824         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49825
49826         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49827         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49828         when run in a time zone for which daylight savings time is in effect
49829         for the starting date.
49830
49831         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49832         stop us from restricting permissions of just-created absolute-named
49833         directories.
49834         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49835         to restore initial working directory.
49836         * lib/mkdir-p.c (make_dir_parents): New parameter:
49837         different_working_dir, to tell caller if/when we change the working
49838         directory and are unable to return to the initial one.
49839         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49840         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49841         `return false'.  This fixes a bug introduced on 2004-07-30.
49842
49843         * lib/openat.c (fdopendir): Be sure to close the supplied
49844         file descriptor before returning.  This makes our replacement
49845         implementation a little closer to Solaris's, where fdopendir
49846         ties the file descriptor to the returned DIR* pointer.
49847         * lib/openat.c (unlinkat): New function.
49848         * lib/openat.h (unlinkat): Add prototype.
49849         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49850         (openat_restore_fail): Rename from openat_restore_die.
49851         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49852
49853         Provide an alternative to exiting immediately upon save_cwd or
49854         restore_cwd failure.  Now, an application can arrange e.g.,
49855         to perform a longjump in that case.
49856         * lib/openat.c: Include dirname.h.
49857         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49858         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49859         and openat_restore_die rather than calling error directly.
49860         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49861
49862         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49863         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49864         define.
49865
49866         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49867         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49868                             int utc, int nanoseconds);
49869         Background:
49870         date should not have to allocate a megabyte of virtual memory to
49871         handle a format argument like +%1048575T.  When implemented with
49872         strftime, it must allocate such a buffer, use strftime to fill it
49873         in, print it, then free it.
49874         With fprintftime, it simply prints everything and exits.
49875         With no need for memory allocation, that's one fewer way to fail.
49876         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49877         optional field width, not before, so we accept %9:z, not %:9z.
49878         (my_strftime): Be sure to use L_('x') for literals.
49879
49880         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49881         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49882         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49883         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49884         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49885         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49886         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49887         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49888         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49889         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49890         * lib/xgethostname.c, lib/xreadlink.c:
49891         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49892
49893         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49894         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49895         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49896         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49897         and don't include <sys/file.h>).
49898
49899 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49900
49901         Sync from coreutils.
49902
49903         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49904         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49905         [!LDAV_DONE]: Avoid unused variable warning.
49906
49907 2005-09-21  Bruno Haible  <bruno@clisp.org>
49908
49909         * lib/unicodeio.h (unicode_to_mb): New declaration.
49910
49911 2005-09-20  Derek Price  <derek@ximbiot.com>
49912
49913         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49914         getaddrinfo.h.
49915
49916 2005-09-20  Bruno Haible  <bruno@clisp.org>
49917
49918         * gnulib-tool: Remove trailing slashes from the values specified for
49919         --source-base, --m4-base, --tests-base, --aux-dir.
49920         Suggested by Simon Josefsson <jas@extundo.com>.
49921
49922 2005-09-20  Bruno Haible  <bruno@clisp.org>
49923
49924         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49925         func_modules_to_filelist, func_import, func_create_testdir): Make all
49926         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49927         change when gnulib-tool is invoked in a different locale.
49928
49929 2005-09-19  Simon Josefsson  <jas@extundo.com>
49930
49931         * m4/socklen.m4: Fix typo.
49932
49933 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49934
49935         Use a consistent style for including <config.h>.
49936         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49937         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49938         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49939         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49940         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49941         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49942         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49943         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49944         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49945         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49946         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49947         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49948         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49949         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49950         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49951         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49952         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49953         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49954         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49955         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49956         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49957         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49958         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49959         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49960         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49961         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49962         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49963         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49964         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49965         lib/xstrtoumax.c, lib/yesno.c:
49966         Standardize inclusion of config.h.
49967         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49968         lib/inttostr.h:  Removed inclusion of config.h from header files.
49969         * lib/inttostr.c:  Adjusted in-tree users.
49970         * lib/timespec.h: Remove superfluous warning to include config.h.
49971         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49972         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49973         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49974         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49975         config.h with HAVE_CONFIG_H.
49976
49977 2005-09-19  Jim Meyering  <jim@meyering.net>
49978
49979         * modules/pathmax (License): Change to LGPL.
49980
49981 2005-09-19  Derek Price  <derek@ximbiot.com>
49982
49983         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49984
49985 2005-09-19  Bruno Haible  <bruno@clisp.org>
49986
49987         * gnulib-tool (import): Provide default for --tests-base.
49988
49989 2005-09-19  Bruno Haible  <bruno@clisp.org>
49990
49991         * doc/quote.texi: New file, extracted from gnulib.texi.
49992         * doc/ctime.texi: New file, extracted from gnulib.texi.
49993         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49994         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49995         * doc/gnulib.texi: Include them.
49996
49997 2005-09-18  Bruno Haible  <bruno@clisp.org>
49998
49999         Portability fix.
50000         * gnulib-tool (func_readlink): New function.
50001         (func_ln_if_changed): Use it.
50002
50003 2005-09-18  Bruno Haible  <bruno@clisp.org>
50004
50005         * gnulib-tool: Support --with-tests also with --import.
50006         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50007         (func_import): Use variables $testsbase and $inctests. Emit a
50008         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50009         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50010         SUBDIRS += $testsdir.
50011         (func_create_testdir): Update.
50012
50013 2005-09-18  Bruno Haible  <bruno@clisp.org>
50014
50015         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50016         instead of $dry_run.
50017         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50018         (func_ln_if_changed): Don't handle dry-run here.
50019         (func_import): In dry-run mode, detect more precisely which actions
50020         would be performed, and don't use "...ing" verbs.
50021
50022 2005-09-18  Bruno Haible  <bruno@clisp.org>
50023
50024         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50025         (func_import): Use join on two temporary files instead of three nested
50026         loops, in order to determine which files are new or old.
50027
50028 2005-09-18  Bruno Haible  <bruno@clisp.org>
50029
50030         * gnulib-tool (func_import): Comment out code that spits out the
50031         new files with --dry-run.
50032
50033 2005-09-18  Bruno Haible  <bruno@clisp.org>
50034
50035         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50036
50037 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50038
50039         * lib/stat-time.h: New file.
50040         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50041         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50042         in a different way.
50043         (timespec_cmp): New function.
50044         * lib/utimecmp.c: Include stat-time.h.
50045         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50046         members exist, not on the obsolescent ST_MTIM_NSEC.
50047         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50048
50049 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50050
50051         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50052
50053 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * MODULES.html.sh (File system functions): Add stat-time.
50056         * modules/stat-time: New file.
50057         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50058         is now done in a different way, by the stat-time module.
50059         * modules/utimecmp (Depends-on): Add stat-time.
50060
50061 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * m4/st_mtim.m4: Remove.  Superseded by...
50064         * m4/stat-time.m4: New file.
50065         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50066         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50067
50068 2005-09-15  Derek Price  <derek@ximbiot.com>
50069
50070         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50071
50072 2005-09-15  Derek Price  <derek@ximbiot.com>
50073
50074         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50075         * lib/regex_internal.c: Ditto, using this...
50076         (__GNUC_PREREQ): ...new macro.
50077         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50078         using...
50079         (__GNUC_PREREQ): ...this new macro.
50080
50081         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50082
50083 2005-09-15  Derek Price  <derek@ximbiot.com>
50084             Paul Eggert  <eggert@cs.ucla.edu>
50085
50086         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50087         changes, consolidating in...
50088         * lib/regex_internal.h: ...this file.
50089
50090 2005-09-13  Jim Meyering  <jim@meyering.net>
50091
50092         * lib/canon-host.c: Filter through gnu indent and reword comments
50093         slightly.
50094         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50095
50096 2005-09-13  Derek Price  <derek@ximbiot.com>
50097
50098         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50099         failure.
50100         Reported by Jim Meyering  <jim@meyering.net>.
50101
50102 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50103
50104         * lib/base64.c: Typo.
50105         (base64_encode): Put b64str in initialized data section.
50106
50107 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50108
50109         Merge glibc and coreutils changes into gnulib, plus a few
50110         extra fixes.
50111         * lib/md5.c: Use #error rather than a string.
50112         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50113         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50114         (__attribute__): Define to empty for non recent-GCC.
50115         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50116         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50117         Renamed from their non-__ counterparts, with new macros replacing
50118         them if not _LIBC.  Add __THROW attribute.
50119         (rol): Remove.
50120         (struct md5_ctx): Align buffer if using GCC.
50121         * lib/sha1.h (struct sha1_ctx): Likewise.
50122         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50123         The old name was backwards.
50124         (NOTSWAP): Remove; not used.
50125         (rol): New macro, moved here from md5.h.
50126         (sha1_process_block): Remove a FIXME that doesn't make sense.
50127
50128 2005-09-12  Derek Price  <derek@ximbiot.com>
50129
50130         Return usable errors from canon-host.
50131         * lib/canon-host.h: New file.
50132         * lib/canon-host.c (canon_host): Wrap...
50133         (canon_host_r): ...this new function, which now relies exclusively on
50134         getaddrinfo.
50135         (ch_strerror): New function.
50136         (last_cherror): New global.
50137         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50138         interface.
50139         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50140         void *.
50141         (freeaddrinfo): Free ai->ai_canonname when set.
50142
50143 2005-09-12  Derek Price  <derek@ximbiot.com>
50144
50145         Make canon-host require getaddrinfo.
50146         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50147         AC_LIBSOURCE canon-host.h.  Call...
50148         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50149         gl_GETADDRINFO.
50150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50151
50152 2005-09-12  Derek Price  <derek@ximbiot.com>
50153
50154         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50155         LGPL.
50156         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50157
50158 2005-09-12  Derek Price  <derek@ximbiot.com>
50159
50160         * lib/gai_strerror.c: Include config.h when available.  Include
50161         getaddrinfo.h before other headers to test interface.
50162         Reported by Larry Jones <lawrence.jones@ugs.com>.
50163
50164 2005-09-12  Derek Price  <derek@ximbiot.com>
50165             Paul Eggert  <eggert@cs.ucla.edu>
50166
50167         * modules/glob (Files): Add glob-libc.h.
50168
50169 2005-09-12  Derek Price  <derek@ximbiot.com>
50170             Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50173         glob_.h, glob-libc.h.
50174         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50175
50176 2005-09-12  Derek Price  <derek@ximbiot.com>
50177             Paul Eggert  <eggert@cs.ucla.edu>
50178
50179         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50180         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50181         protecting things that should be done only in gnulib contexts.
50182         * lib/glob_.h: New file, containing only the glob things needed for
50183         gnulib.
50184         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50185         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50186         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50187         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50188         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50189         and to respect the namespace rules better.
50190
50191 2005-09-08  Simon Josefsson  <jas@extundo.com>
50192
50193         * modules/socklen: New file.
50194
50195 2005-09-08  Simon Josefsson  <jas@extundo.com>
50196
50197         * m4/socklen.m4: New file.
50198
50199 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50200
50201         * modules/utimens (Files): Add m4/utimbuf.m4, since
50202         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50203         Reported by Sergey Poznyakoff.
50204
50205 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50206
50207         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50208         definitions, since that's the preferred style in glibc.
50209         Fix a minor spacing issue, and update copyright notice to match
50210         glibc's.
50211
50212 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50213
50214         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50215
50216 2005-09-06  Simon Josefsson  <jas@extundo.com>
50217
50218         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50219         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50220
50221 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50222
50223         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50224         warning.
50225
50226 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50227
50228         * config/srclist.txt: Add glibc bug 1302.
50229
50230 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50231
50232         Change bitset word type from unsigned int to unsigned long int,
50233         as this has better performance on typical 64-bit hosts.
50234         Port bitset code to hosts with unusual word sizes.
50235         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50236         (build_collating_symbol):
50237         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50238         argument is a bitset.  This is merely a style issue, but it makes
50239         it clearer that an entire array is expected.
50240         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50241         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50242         Port to the case where bitset_word is not the same as unsigned int.
50243         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50244         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50245         Likewise.
50246         * lib/regexec.c (check_dst_limits_calc_pos_1,
50247         check_subexp_matching_top):
50248         (build_trtable, group_nodes_into_DFAstates):
50249         Likewise.
50250         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50251         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50252         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50253         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50254         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50255         * lib/regcomp.c (optimize_subexps, lower_subexp):
50256         Work even if bitset_word has holes in its bitwise representation.
50257         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50258         * lib/regexec.c (check_dst_limits_calc_pos_1,
50259         check_subexp_matching_top):
50260         Likewise.
50261         * lib/regex_internal.c (re_string_reconstruct):
50262         Don't assume UCHAR_MAX == 255.
50263         * lib/regex_internal.h (bitset_set_all): Likewise.
50264         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50265         All uses changed.
50266         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50267         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50268         All uses changed.
50269         (BITSET_WORD_MAX): New macro.
50270         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50271         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50272         (bitset_empty, bitset_copy):
50273         Prefer sizeof (bitset) to multiplying it out ourselves.
50274         (bitset_not_merge): Remove; unused.
50275         (bitset_contain): Return bool, not unsigned int with one bit on.
50276         All callers changed.
50277         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50278         alignment than re_node_set; do this by defining a new internal
50279         type struct dests_alloc and using it to allocate memory.
50280
50281 2005-09-05  Bruno Haible  <bruno@clisp.org>
50282
50283         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50284         links.
50285
50286 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50287
50288         * modules/size_max (Makefile.am): Add size_max.h
50289
50290 2005-09-04  Derek Price  <derek@ximbiot.com>
50291
50292         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50293
50294 2005-09-03  Simon Josefsson  <jas@extundo.com>
50295
50296         * gnulib-tool: Fix typo.
50297
50298 2005-09-03  Simon Josefsson  <jas@extundo.com>
50299
50300         * config/srclist.txt: Add glibc bug 1293.
50301
50302 2005-09-03  Derek Price  <derek@ximbiot.com>
50303
50304         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50305         From Larry Jones <lawrence.jones@ugs.com>.
50306
50307 2005-09-02  Simon Josefsson  <jas@extundo.com>
50308
50309         * modules/socklen: New file.
50310
50311 2005-09-02  Simon Josefsson  <jas@extundo.com>
50312
50313         * modules/havelib: New module.
50314
50315         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50316         Use havelib.
50317
50318 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         Check for arithmetic overflow when calculating sizes, to prevent
50321         some buffer-overflow issues.  These patches are conservative, in the
50322         sense that when I couldn't determine whether an overflow was possible,
50323         I inserted a run-time check.
50324         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50325         macros.
50326         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50327         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50328         (re_xnrealloc, re_x2nrealloc): New inline functions.
50329         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50330         parse_bracket_exp):
50331         (build_equiv_class, build_charclass): Check for arithmetic overflow
50332         in size expression calculations.
50333         * lib/regex_internal.c (re_string_realloc_buffers):
50334         (build_wcs_upper_buffer, re_node_set_add_intersect):
50335         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50336         (re_dfa_add_node, register_state): Likewise.
50337         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50338         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50339         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50340         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50341
50342 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50343
50344         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50345         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50346
50347 2005-09-02  Bruno Haible  <bruno@clisp.org>
50348
50349         Support for lib vs. lib64 distinction on biarch platforms.
50350         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50351         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50353
50354 2005-09-02  Bruno Haible  <bruno@clisp.org>
50355
50356         * gnulib-tool (import): In the other first-use case, provide defaults
50357         as well.
50358
50359 2005-09-02  Bruno Haible  <bruno@clisp.org>
50360
50361         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50362         patches not yet found in the latest gettext release.
50363
50364 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50365
50366         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50367         to avoid a collision with bits/local_lim.h in glibc.
50368         All uses changed.  Problem reported by Dmitry V. Levin in
50369         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50370
50371         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50372         bugs in int versus size_t comparisons.
50373         (re_string_context_at): Fix bug where the code assumed that
50374         Idx is signed.
50375
50376         Use bool where appropriate.
50377         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50378         All callers changed.
50379         (calc_eclosure_iter): Likewise, for ROOT arg.
50380         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50381         (build_charclass_op): Likewise, for NON_MATCH arg.
50382         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50383         (re_string_construct_common): Likewise, for ICASE arg.
50384         * lib/regexec.c (re_search_2_stub, re_search_stub):
50385         Likewise, for RET_LEN arg.
50386         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50387         (set_regs): Likewise, for FL_BACKTRACK arg.
50388         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50389         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50390         (calc_eclosure_iter, parse_bracket_exp):
50391         Use bool for internal variables that are booleans.
50392         * lib/regexec.c (re_search_internal, check_matching,
50393         proceed_next_node):
50394         (set_regs, build_sifted_states, sift_states_bkref):
50395         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50396         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50397         (find_collation_sequence_value):
50398         Likewise.
50399         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50400         (re_node_set_compare):
50401         Return bool, not int. All callers changed.
50402         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50403         (build_trtable, check_node_accept): Likewise.
50404         * lib/regex_internal.h: Include stdbool.h.
50405
50406         Fix bugs uncovered when converting to bool.
50407         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50408         failure instead of charging ahead blindly.
50409         * lib/regex_internal.c (register_state): Likewise.
50410         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50411         for freeing internal storage.
50412         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50413         bitset pieces used as boolean, to avoid undefined behavior
50414         on hosts that do int overflow checking.
50415
50416 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50417
50418         * config/srclist.txt: Add glibc bugs 1285-1287.
50419
50420 2005-09-01  Jim Meyering  <jim@meyering.net>
50421
50422         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50423         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50424         Require gl_STAT_MACROS, too.
50425
50426 2005-09-01  Bruno Haible  <bruno@clisp.org>
50427
50428         * gnulib-tool (import): In the first-use case, provide defaults.
50429
50430 2005-09-01  Bruno Haible  <bruno@clisp.org>
50431
50432         * gnulib-tool (func_import): Remove the .tmp files.
50433
50434 2005-09-01  Bruno Haible  <bruno@clisp.org>
50435
50436         * gnulib-tool (func_import): Fix handling of symbolic links.
50437
50438 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50439
50440         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50441         old glibc regex code mishandles strings longer than 2**31 bytes.
50442         This patch fixes this when the regex code is used in gnulib
50443         (i.e., outside glibc).
50444
50445         This patch should not affect the use of the regex code inside
50446         glibc.  No doubt this problem also needs to be handled for glibc
50447         as well, but the result will be an incompatible change to the
50448         glibc ABI, and the old ABI will have to be supported too.  That
50449         can be the the subject for another patch.
50450
50451         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50452         governing whether the rest of this patch is active.  By default,
50453         the macro is disabled and the patch has no effect.
50454         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50455         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50456         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50457         (re_match_2, re_set_registers): Use the new types.
50458         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50459         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50460         New macros.
50461         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50462         (re_string_context_at, bin_tree_t, re_dfastate_t):
50463         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50464         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50465         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50466         (re_string_char_size_at, re_string_wchar_at):
50467         (re_string_elem_size_at):
50468         Use the new types and macros to port to 64-bit hosts.
50469         Use unsigned types for internal values, so that the code
50470         mostly works even for arrays larger than SSIZE_MAX.
50471         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50472         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50473         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50474         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50475         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50476         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50477         (calc_inveclosure, parse_dup_op, build_range_exp):
50478         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50479         (fetch_number, create_token_tree, mark_opt_subexp):
50480         Likewise.
50481         * lib/regex_internal.c (re_string_construct_common,
50482         create_ci_newstate):
50483         (create_cd_newstate, re_string_allocate, re_string_construct):
50484         (re_string_realloc_buffers, build_wcs_upper_buffer):
50485         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50486         (re_string_reconstruct, re_string_peek_byte_case):
50487         (re_string_fetch_byte_case, re_string_context_at):
50488         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50489         (re_node_set_init_copy, re_node_set_add_intersect):
50490         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50491         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50492         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50493         (re_acquire_state, re_acquire_state_context, register_state):
50494         Likewise.
50495         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50496         search_cur_bkref_entry):
50497         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50498         (re_search_internal, re_search_2_stub, re_search_stub)
50499         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50500         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50501         (update_cur_sifted_state, check_dst_limits):
50502         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50503         (check_subexp_limits, sift_states_bkref, merge_state_array):
50504         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50505         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50506         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50507         (expand_bkref_cache, check_node_accept_bytes):
50508         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50509         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50510         (acquire_init_state_context, check_halt_node_context):
50511         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50512         (sift_states_backward, clean_state_log_if_needed):
50513         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50514         (find_recover_state, transit_state_sb, transit_state_mb):
50515         (transit_state_bkref, build_trtable, match_ctx_clean):
50516         Likewise.
50517         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50518         to work around an assumption that REG_MISSING is negative.
50519
50520         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50521         (seek_collating_symbol_entry) [defined _LIBC]:
50522         (lookup_collation_sequence_value) [defined _LIBC]:
50523         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50524         Use prototypes rather than old-style function definitions.
50525         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50526         (transit_state_sb) [0]:
50527         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50528
50529         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50530         rm_eo.
50531
50532         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50533         (optimize_subexps, lower_subexp):
50534         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50535         since the signed shift might overflow.  Use 1u<<31 instead.
50536         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50537         Likewise.
50538         * lib/regexec.c (check_dst_limits_calc_pos_1,
50539         check_subexp_matching_top): Likewise.
50540
50541         * lib/regcomp.c (optimize_subexps, lower_subexp):
50542         Use CHAR_BIT rather than 8, for clarity.
50543         * lib/regexec.c (check_dst_limits_calc_pos_1):
50544         (check_subexp_matching_top): Likewise.
50545         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50546         have to worry about portability issues when shifting it left.
50547         Remove no-longer-needed test for table_size > 0.
50548         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50549         in a word, as the resulting behavior is undefined.
50550         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50551         in one case, a <= should have been an <, and in another case the
50552         whole test was missing.
50553         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50554         the standard name CHAR_BIT.
50555         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50556         this is not true on one's complement and signed-magnitude hosts.
50557
50558         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50559         next_last_offset.
50560         (struct re_dfa_t): Remove unused member states_alloc.
50561         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50562
50563 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50564
50565         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50566         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50567         and large-file glibc and in 32-bit large-file Solaris.
50568
50569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50570
50571         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50572         lengths fit in regoff_t; this isn't true if regoff_t is the same
50573         width as size_t.
50574         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50575         (= START + RANGE) instead of RANGE.  This avoids overflow
50576         problems when regoff_t is the same width as size_t.
50577         All callers changed.
50578         (re_search_2_stub): Check for overflow when adding the
50579         sizes of the two strings.
50580         (re_search_stub): Check for overflow when adding START
50581         to RANGE; if it occurs, substitute the extreme value.
50582
50583 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50584
50585         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50586
50587 2005-08-31  Jim Meyering  <jim@meyering.net>
50588
50589         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50590         a pointer-to-const.
50591         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50592         (register_state): Likewise.
50593         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50594         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50595         (group_nodes_into_DFAstates): Likewise.
50596
50597 2005-08-31  Jim Meyering  <jim@meyering.net>
50598
50599         * check-module: Add a FIXME comment.
50600
50601 2005-08-31  Eric Blake  <ebb9@byu.net>
50602
50603         * modules/unistd-safer (Files): Add unistd--.h.
50604         * modules/stdio-safer (Files): Add stdio--.h.
50605
50606 2005-08-31  Derek Price  <derek@ximbiot.com>
50607
50608         * lib/getdelim.c (getdelim): Return EOF on EOF.
50609         Reported by Larry Jones <lawrence.jones@ugs.com>.
50610
50611 2005-08-31  Bruno Haible  <bruno@clisp.org>
50612
50613         Avoid unnecessary diffs in the generated lib/Makefile.am.
50614         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50615         the generated files.
50616         (func_import): Don't set cmd.
50617
50618 2005-08-31  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/strstr.c: Include <stddef.h>, for NULL.
50621         * lib/strcasestr.c: Likewise.
50622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50623
50624 2005-08-31  Bruno Haible  <bruno@clisp.org>
50625
50626         * gnulib-tool: New option --macro-prefix.
50627         (func_import): Use macro_prefix.
50628         (import): Handle option --macro-prefix.
50629
50630 2005-08-31  Bruno Haible  <bruno@clisp.org>
50631
50632         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50633         Also use new variables cached_lgpl, cached_libtool.
50634
50635 2005-08-31  Bruno Haible  <bruno@clisp.org>
50636
50637         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50638         always instantiating them.
50639
50640 2005-08-31  Bruno Haible  <bruno@clisp.org>
50641
50642         * gnulib-tool (func_import): Read the previous cached settings
50643         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50644         earlier added by gnulib but are now dropped. Warn when a gnulib file
50645         overwrites a non-gnulib file.
50646
50647 2005-08-31  Bruno Haible  <bruno@clisp.org>
50648
50649         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50650         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50651         projects that don't keep autogenerated files in CVS. Put into
50652         actioncmd only the specified modules, not the transitive closure.
50653
50654 2005-08-31  Bruno Haible  <bruno@clisp.org>
50655
50656         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50657         Create directories that shall be filled.
50658         (import): Don't look for gl_* macros in configure.ac. Recurse across
50659         all directories containing a gnulib-cache.m4 files, if meaningful.
50660
50661 2005-08-31  Bruno Haible  <bruno@clisp.org>
50662
50663         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50664         (import): Set seen_libtool when we see gl_LIBTOOL.
50665
50666 2005-08-31  Bruno Haible  <bruno@clisp.org>
50667
50668         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50669         declaration macro definitions from generated gnulib.m4.
50670
50671 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50672
50673         * lib/iconvme.h: Add prototype for iconv_alloc.
50674
50675 2005-08-29  Simon Josefsson  <jas@extundo.com>
50676
50677         * lib/iconvme.c: Fix errno.
50678
50679 2005-08-29  Bruno Haible  <bruno@clisp.org>
50680
50681         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50682         that it works when the directory contains spaces.
50683
50684 2005-08-29  Bruno Haible  <bruno@clisp.org>
50685
50686         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50687
50688 2005-08-29  Bruno Haible  <bruno@clisp.org>
50689
50690         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50691         Emit more advice.
50692
50693 2005-08-29  Bruno Haible  <bruno@clisp.org>
50694         and Stepan Kasal  <kasal@ucw.cz>
50695
50696         * check-module: If more parameters are given, check each of them
50697         separately; add more exceptions, as noted by Jim Meyering.
50698         (check_module): New procedure.
50699         (%exempt_header): Now contains all exceptions.
50700
50701 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50702
50703         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50704
50705 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50706
50707         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50708
50709 2005-08-28  Bruno Haible  <bruno@clisp.org>
50710
50711         * m4/gnulib-tool.m4: New file.
50712
50713 2005-08-27  Jim Meyering  <jim@meyering.net>
50714
50715         * modules/unistd-safer (Files): Add pipe-safer.c.
50716         * modules/fcntl-safer (Files): Add creat-safer.c.
50717
50718 2005-08-27  Jim Meyering  <jim@meyering.net>
50719
50720         * m4/stdlib-safer.m4: New file.  From coreutils.
50721         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50723         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50724         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50725         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50726
50727 2005-08-27  Jim Meyering  <jim@meyering.net>
50728
50729         * lib/fopen-safer.c: Merge minor changes from coreutils.
50730         * lib/dup-safer.c: Likewise.
50731         * lib/fd-safer.c: Likewise.
50732
50733         Merge from coreutils.
50734         * lib/stdio--.h: New file.
50735         * lib/stdlib--.h: New file.
50736         * lib/mkstemp-safer.c: New file.
50737
50738         GNU tar needs these.
50739         * lib/pipe-safer.c: New file.
50740         * lib/creat-safer.c: New file.
50741         * lib/fcntl--.h (creat): Define to creat_safer.
50742         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50743         * lib/unistd--.h (pipe): Define to pipe_safer.
50744         * lib/unistd-safer.h: Declare pipe_safer.
50745
50746 2005-08-26  Simon Josefsson  <jas@extundo.com>
50747
50748         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50749         Haible <bruno@clisp.org>.
50750
50751 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         * lib/regex_internal.h: Remove all references to
50754         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50755         or better.
50756         (bitset_not, bitset_merge, bitset_not_merge):
50757         (bitset_mask, re_string_allocate, re_string_construct):
50758         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50759         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50760         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50761         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50762         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50763         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50764         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50765         (re_acquire_state_context):
50766         Remove unnecessary forward decls.
50767         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50768         Put __attribute at function definition,
50769         now that the function decl has been removed.
50770         * lib/regex_internal.c (re_string_peek_byte_case):
50771         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50772         Likewise.
50773
50774 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50775
50776         * m4/regex.m4: Add AC_PREREQ(2.50).
50777         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50778
50779 2005-08-25  Simon Josefsson  <jas@extundo.com>
50780
50781         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50782         __fsetlocking.
50783
50784 2005-08-25  Simon Josefsson  <jas@extundo.com>
50785
50786         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50787         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50788         GLIBC specific code.
50789
50790 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50791
50792         Make regex safe for g++.  This fixes one real bug (an "err"
50793         that should have been "*err").  g++ problem reported by
50794         Sam Steingold.
50795         * lib/regex_internal.h (re_calloc): New macro, consistent with
50796         re_malloc etc.  All callers of calloc changed to use re_calloc.
50797         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50798         not int.  All callers changed.
50799         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50800         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50801         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50802         (find_recover_state): Change "err" to "*err"; this fixes what
50803         appears to be a real bug.
50804         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50805         versus int.
50806
50807 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         * modules/regex (Depends-on): Add malloc, since the code
50810         assumes that !malloc(0) means failure.
50811
50812 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50813
50814         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50815
50816         alloca modernization/simplification for regex.
50817         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50818         needs to be at the start of the file, and can be moved into
50819         regex_internal.h and simplified.
50820         * lib/regex_internal.h: Include <alloca.h>.
50821         (__libc_use_alloca) [!defined _LIBC]: New macro.
50822         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50823         now works outside glibc.
50824
50825 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         * config/srclist.txt: Add glibc bugs 1241, 1245.
50828
50829 2005-08-25  Jim Meyering  <jim@meyering.net>
50830
50831         * lib/open-safer.c: Include <config.h>.
50832         Otherwise, we'd lose LARGEFILE support in any file using
50833         e.g. "fcntl--.h"
50834
50835 2005-08-25  Bruno Haible  <bruno@clisp.org>
50836
50837         * m4/minmax.m4: Require autoconf 2.52.
50838         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50839         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50840         alternatives of translit over the alphabet.
50841         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50842
50843 2005-08-24  Simon Josefsson  <jas@extundo.com>
50844
50845         * tests/test-getpass.c: New file.
50846
50847 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50848
50849         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50850         for GNU regex features.
50851
50852 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50855         * lib/regex.h (regerror): Likewise.
50856
50857         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50858         requires this.  (The code never needed it.)
50859
50860         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50861         All uses of recently-renamed identifiers changed to use the new,
50862         POSIX-compliant names.  The code will build and run just fine
50863         without these changes, but it's better to eat our own dog food
50864         and use the standard-conforming names.
50865
50866         * lib/regex.h: Fix a multitude of POSIX name space violations.
50867         These changes have an effect only for programs that define
50868         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50869         do not change anything for programs compiled in the normal way.
50870         Also, there is no effect on the ABI.
50871
50872         (_REGEX_SOURCE): New macro.
50873         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50874         defined and _GNU_SOURCE is not; this fixes a name space violation.
50875
50876         Rename the following macros to obey POSIX requirements.
50877         The old names are still visible as macros if _REGEX_SOURCE is defined.
50878         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50879         RE_BACKSLASH_ESCAPE_IN_LISTS.
50880         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50881         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50882         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50883         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50884         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50885         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50886         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50887         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50888         (REG_INTERVALS): renamed from RE_INTERVALS.
50889         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50890         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50891         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50892         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50893         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50894         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50895         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50896         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50897         RE_UNMATCHED_RIGHT_PAREN_ORD.
50898         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50899         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50900         (REG_DEBUG): renamed from RE_DEBUG.
50901         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50902         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50903         unusual, since we can't clash with the POSIX REG_ICASE.
50904         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50905         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50906         (REG_NO_SUB): renamed from RE_NO_SUB.
50907         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50908         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50909         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50910         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50911         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50912         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50913         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50914         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50915         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50916         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50917         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50918         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50919         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50920         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50921         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50922         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50923         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50924         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50925         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50926         (REG_FIXED): Renamed from REGS_FIXED.
50927         (REG_NREGS): Renamed from RE_NREGS.
50928
50929         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50930         of other REG_* macros, since POSIX says the user is allowed to
50931         #undef these macros selectively.
50932
50933         (reg_errcode_t): Update comment stating what other tables need
50934         to be consistent.
50935
50936         Rename the following enum values to obey POSIX requirements.
50937         The old names are still visible as macros.
50938         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50939         is not defined, since GNU is supposed to be a superset of POSIX as
50940         much as possible, and since we want reg_errcode_t to be a signed
50941         type for implementation consistency.
50942         (_REG_NOERROR): Renamed from REG_NOERROR.
50943         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50944         (_REG_BADPAT): Renamed from REG_BADPAT.
50945         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50946         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50947         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50948         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50949         (_REG_EBRACK): Renamed from REG_EBRACK.
50950         (_REG_EPAREN): Renamed from REG_EPAREN.
50951         (_REG_EBRACE): Renamed from REG_EBRACE.
50952         (_REG_BADBR): Renamed from REG_BADBR.
50953         (_REG_ERANGE): Renamed from REG_ERANGE.
50954         (_REG_ESPACE): Renamed from REG_ESPACE.
50955         (_REG_BADRPT): Renamed from REG_BADRPT.
50956         (_REG_EEND): Renamed from REG_EEND.
50957         (_REG_ESIZE): Renamed from REG_ESIZE.
50958         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50959         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50960         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50961         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50962         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50963
50964         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50965         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50966         changed.  But support the old name if the new one is not defined
50967         and if _REGEX_SOURCE.
50968
50969         Change the following member names in struct re_pattern_buffer.
50970         The old names are still supported if !_REGEX_SOURCE.
50971         The new names are always supported, regardless of _REGEX_SOURCE.
50972         (re_buffer): Renamed from buffer.
50973         (re_allocated): Renamed from allocated.
50974         (re_used): Renamed from used.
50975         (re_syntax): Renamed from syntax.
50976         (re_fastmap): Renamed from fastmap.
50977         (re_translate): Renamed from translate.
50978         (re_can_be_null): Renamed from can_be_null.
50979         (re_regs_allocated): Renamed from regs_allocated.
50980         (re_fastmap_accurate): Renamed from fastmap_accurate.
50981         (re_no_sub): Renamed from no_sub.
50982         (re_not_bol): Renamed from not_bol.
50983         (re_not_eol): Renamed from not_eol.
50984         (re_newline_anchor): Renamed from newline_anchor.
50985
50986         Change the following member names in struct re_registers.
50987         The old names are still supported if !_REGEX_SOURCE.
50988         The new names are always supported, regardless of _REGEX_SOURCE.
50989         (rm_num_regs): Renamed from num_regs.
50990         (rm_start): Renamed from start.
50991         (rm_end): Renamed from end.
50992
50993         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50994         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50995         Prepend __ to parameter names.
50996
50997         Undo yesterday's changes.
50998
50999 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51002         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51003         lib/regex.c.
51004
51005 2005-08-24  Jim Meyering  <jim@meyering.net>
51006
51007         Sync from coreutils.
51008         * m4/fcntl-safer.m4: New file.
51009
51010         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51011         and object files for this module.
51012
51013 2005-08-24  Jim Meyering  <jim@meyering.net>
51014
51015         Sync from coreutils.
51016         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51017
51018 2005-08-24  Jim Meyering  <jim@meyering.net>
51019
51020         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51021         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51022
51023 2005-08-24  Jim Meyering  <jim@meyering.net>
51024
51025         * modules/fcntl-safer: New module.
51026         * modules/fts (Depends-on): Add fcntl-safer.
51027         * MODULES.html.sh (File descriptor based Input/Output):
51028         Add fcntl-safer.
51029
51030 2005-08-24  Bruno Haible  <bruno@clisp.org>
51031
51032         Support for unit test modules.
51033         * modules/README: Mention tests modules.
51034         * modules/TEMPLATE-TESTS: New file.
51035         * gnulib-tool: New options --extract-tests-module, --with-tests and
51036         --tests-base (unused for the moment).
51037         (testsbase, inctests): New variables.
51038         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51039         (func_verify_module): Exclude TEMPLATE-TESTS.
51040         (func_verify_nontests_module, func_verify_tests_module): New functions.
51041         (func_get_dependencies): Add implicit dependency for tests modules.
51042         (func_get_tests_module): New function.
51043         (func_modules_transitive_closure): When --with-tests was specified,
51044         include the unit tests as well, unless explicitly avoided.
51045         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51046         (func_emit_tests_Makefile_am): New function.
51047         (func_create_testdir): When --with-tests was specified, emit a
51048         tests/ directory.
51049         * MODULES.html.sh (Future developments): Update.
51050
51051 2005-08-24  Bruno Haible  <bruno@clisp.org>
51052
51053         * modules/tls-tests: New file.
51054         * tests/test-tls.c: New file, from GNU gettext.
51055
51056 2005-08-24  Bruno Haible  <bruno@clisp.org>
51057
51058         * modules/lock-tests: New file.
51059         * tests/test-lock.c: New file, from GNU gettext.
51060
51061 2005-08-24  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/lock.h: Add multiple inclusion guard.
51064         * lib/tls.h: Add multiple inclusion guard.
51065
51066 2005-08-24  Bruno Haible  <bruno@clisp.org>
51067
51068         * gnulib-tool: Add support for the --aux-dir option to
51069         --create-testdir, --create-megatestdir, --test, --megatest.
51070         (func_create_testdir, func_create_megatestdir): Optionally emit a
51071         AC_CONFIG_AUX_DIR directive.
51072         (create-testdir, create-megatestdir, test, megatest): Provide a
51073         default value for $auxdir.
51074
51075 2005-08-24  Bruno Haible  <bruno@clisp.org>
51076
51077         * gnulib-tool (import): Use compound statement instead of subshell
51078         where possible.
51079
51080 2005-08-24  Bruno Haible  <bruno@clisp.org>
51081
51082         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51083
51084 2005-08-24  Bruno Haible  <bruno@clisp.org>
51085
51086         * gnulib-tool (func_version): Update.
51087
51088 2005-08-24  Bruno Haible  <bruno@clisp.org>
51089
51090         * gnulib-tool (func_import, func_create_testdir,
51091         func_create_megatestdir): Quote all autoconf macro arguments.
51092
51093 2005-08-24  Bruno Haible  <bruno@clisp.org>
51094
51095         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51096         option --force, because --force causes the aclocal.m4 of each
51097         subdirectory to be newer than the corresponding config.h.in.
51098
51099 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51102         All contents moved to gl_REGEX.
51103         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51104         assume that it does.
51105
51106 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51107
51108         * lib/regex.h (REG_NOSYS)
51109         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51110         Define, since POSIX requires it as of 2001.
51111         (_REG_ENOSYS)
51112         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51113         New private symbol, used to keep the enum signed in all cases.
51114         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51115         Youngman in
51116         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51117
51118         * lib/regex_internal.c (re_string_skip_chars, register_state):
51119         (calc_state_hash):
51120         Remove forward decls; no longer needed now that we use prototypes.
51121         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51122         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51123         (clean_state_log_if_needed): Likewise.
51124
51125 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         * config/srclist.txt: Add glibc bugs 1231-1233.
51128
51129 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51130
51131         Fix problems reported by Sam Steingold in
51132         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51133         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51134         assumed that reg_errcode_t is a signed type, which is not
51135         necessarily true if _XOPEN_SOURCE is not defined.
51136         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51137         since some compilers warn about it otherwise.
51138
51139 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51142         (init_word_char, create_initial_state, duplicate_node_closure):
51143         (fetch_token, peek_token_bracket, build_range_exp):
51144         (build_collating_symbol): Remove forward decls; no longer needed
51145         now that we use prototypes.
51146
51147         * lib/regcomp.c:
51148         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51149         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51150         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51151         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51152         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51153         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51154         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51155         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51156         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51157         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51158         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51159         (build_charclass, build_charclass_op, fetch_number, create_tree):
51160         (create_token_tree, mark_opt_subexp, duplicate_tree):
51161         Use prototypes rather than old-style definitions.
51162
51163         * lib/regex_internal.c:
51164         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51165         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51166         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51167         (re_string_reconstruct, re_string_peek_byte_case):
51168         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51169         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51170         (re_node_set_init_copy, re_node_set_add_intersect):
51171         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51172         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51173         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51174         (re_acquire_state, re_acquire_state_context, register_state):
51175         (create_ci_newstate, create_cd_newstate, free_state):
51176         Likewise.
51177         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51178         re_search_2):
51179         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51180         (re_search_internal, prune_impossible_nodes):
51181         (acquire_init_state_context, check_matching, static):
51182         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51183         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51184         (update_regs, sift_states_backward, build_sifted_states):
51185         (clean_state_log_if_needed, merge_state_array):
51186         (update_cur_sifted_state, add_epsilon_src_nodes):
51187         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51188         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51189         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51190         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51191         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51192         (check_arrival, check_arrival_add_next_nodes):
51193         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51194         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51195         (check_node_accept_bytes, check_node_accept, extend_buffers):
51196         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51197         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51198         (sift_ctx_init):
51199         Likewise.
51200
51201         * lib/regex_internal.h:
51202         (re_string_allocate, re_string_construct, re_string_reconstruct):
51203         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51204         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51205         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51206         (re_string_context_at, re_string_peek_byte_case):
51207         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51208         is defined, since we now use prototypes always.
51209
51210         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51211         C89 or better.  All uses removed.
51212
51213 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * config/srclist.txt: Add glibc bugs 1220-1227.
51216
51217 2005-08-20  Jim Meyering  <jim@meyering.net>
51218
51219         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51220         of unused local, dfa.
51221
51222 2005-08-20  Bruno Haible  <bruno@clisp.org>
51223
51224         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51225
51226 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51227
51228         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51229         (re_node_set_insert_last, re_dfa_add_node):
51230         Rename local variables to avoid GCC shadowing warnings.
51231
51232 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51233
51234         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51235         [defined lint]: Suppress bogus uninitialized-variable warnings.
51236
51237         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51238         and let the caller return REG_ESPACE if out of space.  This
51239         removes an uninitialied-variable warning with GCC 4.0.1, and also
51240         avoids taking the address of a local variable.  All callers
51241         changed.
51242
51243 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51244
51245         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51246         $LIBCSRC/posix/regexec.c.
51247         Add glibc bug 1217 for regcomp.c.
51248
51249 2005-08-19  Jim Meyering  <jim@meyering.net>
51250
51251         * lib/regexec.c (proceed_next_node): Redo local variables to
51252         avoid GCC shadowing warnings.
51253
51254 2005-08-18  Bruno Haible  <bruno@clisp.org>
51255
51256         * lib/strstr.c (strstr): Fix return value in multibyte case.
51257         * lib/strcasestr.c (strcasestr): Likewise.
51258
51259 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51260
51261         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51262
51263 2005-08-17  Jim Meyering  <jim@meyering.net>
51264
51265         Make the %s format (seconds since the epoch) work for a negative
51266         number and when used with a zero-padded field width, e.g. %015s.
51267
51268         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51269         label so that it precedes the code to set `digits'.  Otherwise,
51270         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51271         print `00-22'.  Now, it prints `-0022', as it should.
51272
51273 2005-08-17  Bruno Haible  <bruno@clisp.org>
51274
51275         * modules/strstr (Files): Add m4/mbrtowc.m4.
51276         (Depends-on): Add mbuiter.
51277
51278 2005-08-17  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/strcasestr: New file.
51281         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51282         strcasestr.
51283
51284 2005-08-17  Bruno Haible  <bruno@clisp.org>
51285
51286         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51287
51288 2005-08-17  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/mbuiter: New file.
51291         * MODULES.html.sh (Extended multibyte and wide character utilities):
51292         Add mbuiter.
51293
51294 2005-08-17  Bruno Haible  <bruno@clisp.org>
51295
51296         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51297         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51298
51299 2005-08-17  Bruno Haible  <bruno@clisp.org>
51300
51301         * m4/strcasestr.m4: New file.
51302
51303 2005-08-17  Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51306         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51307
51308 2005-08-17  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/strcasestr.h: New file.
51311         * lib/strcasestr.c: New file.
51312
51313 2005-08-17  Bruno Haible  <bruno@clisp.org>
51314
51315         * lib/strcasecmp.c: Use mbuiter.h.
51316
51317 2005-08-17  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/mbuiter.h: New file.
51320
51321 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51322
51323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51324         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51325         and gl_GETOPT are both invoked via different paths (as happens
51326         with GNU tar CVS because it uses both argp and getopt), the former
51327         wins.
51328
51329 2005-08-16  Bruno Haible  <bruno@clisp.org>
51330
51331         * modules/tls: New file.
51332         * MODULES.html.sh (Multithreading): Add tls.
51333
51334 2005-08-16  Bruno Haible  <bruno@clisp.org>
51335
51336         * modules/strnlen1: New file.
51337         * MODULES.html.sh (String handling): Add strnlen1.
51338
51339 2005-08-16  Bruno Haible  <bruno@clisp.org>
51340
51341         * modules/strcase (Files): Add m4/mbrtowc.m4.
51342         (Depends-on): Add strnlen1, mbchar.
51343
51344 2005-08-16  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/mbiter: New file.
51347         * MODULES.html.sh (Extended multibyte and wide character utilities):
51348         Add mbiter.
51349
51350 2005-08-16  Bruno Haible  <bruno@clisp.org>
51351
51352         * modules/mbfile: New file.
51353         * MODULES.html.sh (Extended multibyte and wide character utilities):
51354         Add mbfile.
51355
51356 2005-08-16  Bruno Haible  <bruno@clisp.org>
51357
51358         * modules/mbchar: New file.
51359         * MODULES.html.sh (Extended multibyte and wide character utilities):
51360         New section.
51361
51362 2005-08-16  Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/tls.m4: New file, from GNU gettext.
51365
51366 2005-08-16  Bruno Haible  <bruno@clisp.org>
51367
51368         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51369         always.
51370         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51371
51372 2005-08-16  Bruno Haible  <bruno@clisp.org>
51373
51374         * m4/mbiter.m4: New file.
51375
51376 2005-08-16  Bruno Haible  <bruno@clisp.org>
51377
51378         * m4/mbfile.m4: New file.
51379
51380 2005-08-16  Bruno Haible  <bruno@clisp.org>
51381
51382         * m4/mbchar.m4: New file.
51383
51384 2005-08-16  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/tls.h: New file, from GNU gettext.
51387         * lib/tls.c: New file, from GNU gettext.
51388
51389 2005-08-16  Bruno Haible  <bruno@clisp.org>
51390
51391         * lib/strnlen1.h: New file.
51392         * lib/strnlen1.c: New file.
51393
51394 2005-08-16  Bruno Haible  <bruno@clisp.org>
51395
51396         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51397         (mbi_init): Update.
51398         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51399         NUL byte, not after it.
51400
51401 2005-08-16  Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/strcase.h (strcasecmp): Add note in comments.
51404         * lib/strncasecmp.c: Use code from strcasecmp.c.
51405         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51406         (strcasecmp): Work correctly in multibyte locales.
51407
51408 2005-08-16  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/mbiter.h: New file.
51411
51412 2005-08-16  Bruno Haible  <bruno@clisp.org>
51413
51414         * lib/mbfile.h: New file.
51415
51416 2005-08-16  Bruno Haible  <bruno@clisp.org>
51417
51418         * lib/mbchar.h: New file.
51419         * lib/mbchar.c: New file.
51420
51421 2005-08-16  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51424         the valid ones. Makes the comparison operations transitive:
51425         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51426         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51427
51428 2005-08-15  Simon Josefsson  <jas@extundo.com>
51429
51430         * modules/ssize_t (License): Change to 'unlimited'.
51431
51432         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51433
51434 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51435
51436         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51437         Add comments for each pending glibc patch.
51438
51439 2005-08-15  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51442         __cplusplus is defined.
51443
51444 2005-08-14  Jim Meyering  <jim@meyering.net>
51445
51446         Sync from coreutils.
51447
51448         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51449         Use the hash-table-based cycle-detection code not just when
51450         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51451         Reported by James Youngman in
51452         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51453         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51454         FTS_TIGHT_CYCLE_CHECK.
51455         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51456         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51457         once again.
51458         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51459         * lib/fts.c (fd_safer): Remove decl.
51460         Include fcntl--.h rather than unistd-safer.h
51461         (fts_safe_changedir): Don't call fd_safer; no longer needed
51462         now that we include fcntl--.h.
51463
51464 2005-08-12  Simon Josefsson  <jas@extundo.com>
51465
51466         * modules/getndelim2: Use ssize_t module.
51467         * modules/getnline: Likewise.
51468         * modules/safe-read: Likewise.
51469         * modules/xreadlink: Likewise.
51470
51471         * modules/ssize_t: New file.
51472
51473 2005-08-12  Simon Josefsson  <jas@extundo.com>
51474
51475         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51476
51477 2005-08-12  Simon Josefsson  <jas@extundo.com>
51478
51479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51480         ssize_t.
51481
51482 2005-08-12  Simon Josefsson  <jas@extundo.com>
51483
51484         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51485         readline, getdelim and check_version.
51486         (Support for systems lacking ISO C 99: Sizes of integer types):
51487         Add size_max.
51488
51489 2005-08-12  Bruno Haible  <bruno@clisp.org>
51490
51491         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51492
51493 2005-08-11  Simon Josefsson  <jas@extundo.com>
51494
51495         * modules/readline: New file.
51496
51497         * modules/strnlen (Files): Add strnlen.h.
51498
51499 2005-08-11  Simon Josefsson  <jas@extundo.com>
51500
51501         * m4/readline.m4: New file.
51502
51503 2005-08-11  Simon Josefsson  <jas@extundo.com>
51504
51505         * lib/readline.h, readline.c: New file.
51506
51507 2005-08-11  Simon Josefsson  <jas@extundo.com>
51508
51509         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51510         gl_AVOID.
51511
51512 2005-08-11  Bruno Haible  <bruno@clisp.org>
51513
51514         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51515
51516 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51517
51518         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51519
51520 2005-08-10  Simon Josefsson  <jas@extundo.com>
51521
51522         * tests/test-iconvme.c: New file.
51523
51524 2005-08-10  Simon Josefsson  <jas@extundo.com>
51525
51526         * m4/strnlen.m4: New file.
51527
51528         * m4/strndup.m4: Don't check for strnlen declaration, done in
51529         strnlen.m4.
51530
51531 2005-08-10  Simon Josefsson  <jas@extundo.com>
51532
51533         * lib/strndup.c: Use strnlen.h.
51534
51535         * lib/strnlen.h: New file.
51536
51537 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51538
51539         * README: Typos.
51540
51541 2005-08-02  Simon Josefsson  <jas@extundo.com>
51542
51543         * modules/readline: New file.
51544
51545 2005-08-02  Simon Josefsson  <jas@extundo.com>
51546
51547         * modules/getdelim: New file.
51548
51549         * modules/getline: Rewrite, don't use getndelim2.
51550
51551 2005-08-02  Simon Josefsson  <jas@extundo.com>
51552
51553         * m4/getline.m4: Separate out getdelim stuff into separate module.
51554
51555         * m4/getdelim.m4: New file.
51556
51557 2005-08-02  Simon Josefsson  <jas@extundo.com>
51558
51559         * lib/getline.h, getline.c: Rewrite.
51560
51561         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51562
51563 2005-07-31  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/lock.h (gl_lock_initializer): New macro.
51566         (gl_lock_define_initialized): Use it.
51567         (gl_rwlock_initializer): New macro.
51568         (gl_rwlock_define_initialized): Use it.
51569         (gl_recursive_lock_initializer): New macro.
51570         (gl_recursive_lock_define_initialized): Use it.
51571
51572 2005-07-30  Karl Berry  <karl@gnu.org>
51573
51574         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51575         Report from Ben Pfaff, regarding getopt.
51576
51577 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51578
51579         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51580         normal way.
51581         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51582         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51583         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51584         (gl_GETOPT): Use the new macros.  Most of the implementation
51585         is moved to the new macros.  This is for programs like Emacs
51586         that don't want all the functionality of gl_GETOPT.
51587
51588 2005-07-26  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/lock.m4: Update from GNU gettext.
51591
51592 2005-07-26  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/lock.h: Update from GNU gettext.
51595         * lib/lock.c: Update from GNU gettext.
51596
51597 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51598
51599         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51600         obsolescent AC_TRY_RUN.  Include the default includes files, for
51601         'exit'.
51602
51603 2005-07-24  Bruno Haible  <bruno@clisp.org>
51604
51605         * modules/visibility: New file.
51606         * MODULES.html.sh (Misc): Add visibility.
51607
51608 2005-07-24  Bruno Haible  <bruno@clisp.org>
51609
51610         * m4/visibility.m4: New file.
51611
51612 2005-07-24  Bruno Haible  <bruno@clisp.org>
51613
51614         * doc/visibility.texi: New file.
51615
51616 2005-07-22  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51619         $(ALLOCA_H), redundant through BUILT_SOURCES.
51620         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51621         redundant through BUILT_SOURCES.
51622         * modules/byteswap (Makefile.am): Remove explicit dependency on
51623         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51624         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51625         $(FNMATCH_H), redundant through BUILT_SOURCES.
51626         * modules/getopt (Makefile.am): Remove explicit dependency on
51627         $(GETOPT_H), redundant through BUILT_SOURCES.
51628         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51629         redundant through BUILT_SOURCES.
51630         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51631         redundant through BUILT_SOURCES.
51632         * modules/stdbool (Makefile.am): Remove explicit dependency on
51633         $(STDBOOL_H), redundant through BUILT_SOURCES.
51634         * modules/stdint (Makefile.am): Remove explicit dependency on
51635         $(STDINT_H), redundant through BUILT_SOURCES.
51636         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51637         Remove explicit dependency on $(SYSEXITS_H).
51638         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51639
51640 2005-07-18  Simon Josefsson  <jas@extundo.com>
51641
51642         * lib/check-version.c (check_version): Accept identical versions too.
51643
51644 2005-07-18  Bruno Haible  <bruno@clisp.org>
51645
51646         * modules/lock: New file.
51647         * MODULES.html.sh (Multithreading): New section.
51648
51649 2005-07-18  Bruno Haible  <bruno@clisp.org>
51650
51651         * m4/lock.m4: New file, from GNU gettext.
51652
51653 2005-07-18  Bruno Haible  <bruno@clisp.org>
51654
51655         * lib/lock.h: New file, from GNU gettext.
51656         * lib/lock.c: New file, from GNU gettext.
51657
51658 2005-07-18  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/lock.h (gl_once_t): New type.
51661         (gl_once_define, gl_once): New macros.
51662         * lib/lock.c (fresh_once): New variable.
51663         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51664         functions.
51665
51666 2005-07-16  Simon Josefsson  <jas@extundo.com>
51667
51668         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51669         workaround, suggested by Bruno.
51670
51671 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51672
51673         * modules/xalloc (Depends-on): Add xalloc-die.
51674         * modules/xvasprintf (Depends-on): Add xalloc-die.
51675
51676 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51679         with a minor change.
51680
51681 2005-07-15  Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51684         When using lib/poll.c, define poll as rpl_poll.
51685
51686 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51687
51688         * modules/argp (Depends-on): Remove unlocked-io.
51689
51690 2005-07-14  Derek Price  <derek@ximbiot.com>
51691
51692         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51693         for glob symlink bug.
51694
51695 2005-07-14  Bruno Haible  <bruno@clisp.org>
51696
51697         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51698         Instead, test for *_unlocked function declarations directly.
51699
51700 2005-07-11  Simon Josefsson  <jas@extundo.com>
51701
51702         * modules/size_max: New file.
51703
51704         * modules/xsize: Depend on size_max module for size_max.m4.
51705
51706 2005-07-11  Simon Josefsson  <jas@extundo.com>
51707
51708         * lib/size_max.h: New file.
51709
51710 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51713         copyright symbol and the year.
51714         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51715         (version_etc_va): Use parameterized copyright notice.
51716         Reword to conform to the current GNU coding standards.
51717
51718 2005-07-11  Karl Berry  <karl@gnu.org>
51719
51720         * doc/gnulib.texi (Quoting): new node.
51721         (Initial import): more info, from Patrice.
51722
51723 2005-07-11  Bruno Haible  <bruno@clisp.org>
51724
51725         * gnulib-tool (func_usage): Document option --avoid.
51726         (Command line options): Handle --avoid.
51727         (func_acceptable): New function.
51728         (func_modules_transitive_closure): Use it.
51729
51730 2005-07-11  Bruno Haible  <bruno@clisp.org>
51731
51732         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51733         Reported by Jim Meyering.
51734
51735 2005-07-10  Bruno Haible  <bruno@clisp.org>
51736
51737         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51738         Needed when size_t is smaller than 'unsigned int'.
51739         Reported by Paul Eggert.
51740
51741 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51742
51743         * modules/argp (Depends-on): Add unlocked-io
51744
51745 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51746
51747         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51748         block of defines.
51749
51750 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51751
51752         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51753         fix now.
51754
51755 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51756         and Paul Eggert  <eggert@cs.ucla.edu>
51757
51758         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51759         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51760
51761 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51762
51763         * modules/regex (Files): Add lib/regex_internal.c,
51764         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51765         (Depends-on): Add extensions.
51766         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51767
51768 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51769
51770         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51771         pathconf.
51772         * m4/same.m4 (gl_SAME): Likewise.
51773         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51774
51775         * m4/regex.m4: Adjust to new libc regex implementation.
51776         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51777         all the .c and .h parts of (the new) regex.
51778         Quote the m4 stuff better.
51779         Check for RE_ICASE bug of old gnulib.
51780         Check for REG_STARTEND of recent libc.
51781         Rename local variables from jm_* to gl_*.
51782         Quote operand of "test -f".
51783         Say "recent enough" version of libc, not "version 2".
51784         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51785         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51786         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51787         Remove check for btowc, isascii.
51788         Require AM_LANGINFO_CODESET.
51789
51790 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51791
51792         * lib/regex.c, regex.h: Sync from libc.
51793         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51794         * lib/regexec.c:
51795         New files, synced from libc, except that regex_internal.h
51796         currently has a small porting fix.
51797
51798 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51801         regex_internal.c, regexec.c.
51802         Add regex_internal.h too, but as a comment, since the libc version
51803         is currently broken in gnulib mode.
51804
51805 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51806
51807         Support programs like Emacs that use gnulib but not gettext.
51808         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51809         * modules/gettext-h: New file.
51810         * modules/gettext (Files): Remove lib/gettext.h.
51811         (Depends-on): Add gettext-h.
51812         (Makefile.am): Remove lib_SOURCES.
51813         * modules/argmatch, modules/c-stack, modules/closeout:
51814         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51815         * modules/execute, modules/file-type, modules/getaddrinfo:
51816         * modules/getopt, modules/human, modules/javacomp:
51817         * modules/javaexec, modules/mkdir-p, modules/obstack:
51818         * modules/openat, modules/pagealign_alloc, modules/pipe:
51819         * modules/quotearg, modules/regex, modules/rpmatch:
51820         * modules/unicodeio, modules/userspec, modules/version-etc:
51821         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51822         * modules/xsetenv:
51823         Depend on gettext-h, not gettext.
51824
51825 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51826
51827         * gnulib-tool (func_import): Add support for 'public domain' license.
51828         * modules/alloca, modules/atexit, modules/memmove:
51829         Now public domain, not GPL.
51830         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51831         * modules/realloc, modules/strerror, modules/strtod:
51832         Now LGPL, not GPL.
51833
51834 2005-07-05  Bruno Haible  <bruno@clisp.org>
51835
51836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51837         autoconf CVS. Needed for mingw.
51838
51839 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         Remove the dependency of the strftime module on the tzset module.
51842         * modules/strftime (Depends-on): Remove dependency on tzset.
51843
51844 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         Remove the dependency of the strftime module on the tzset module.
51847         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51848         gl_FUNC_TZSET_CLOBBER.
51849
51850 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51851
51852         Remove the dependency of the strftime module on the tzset module.
51853         * lib/strftime.c (my_strftime)
51854         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51855         Copy the input structure, to work around some of the bug with
51856         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51857         Solaris releases, you should also use the tzset module, but we won't
51858         require it as a dependency any more since we don't want LGPLed code
51859         to depend on GPLed code.
51860
51861 2005-07-02  Jim Meyering  <jim@meyering.net>
51862
51863         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51864         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51865         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51866         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51867
51868 2005-07-02  Jim Meyering  <jim@meyering.net>
51869
51870         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51871
51872 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51875         declares only 'struct timespec;' (!).
51876
51877 2005-07-01  Jim Meyering  <jim@meyering.net>
51878
51879         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51880         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51881         * lib/save-cwd.c, tempname.c:
51882         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51883         and don't include <sys/file.h>).
51884
51885 2005-06-29  Jim Meyering  <jim@meyering.net>
51886
51887         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51888         type name.  Use the variable name instead.
51889         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51890         Likewise.
51891
51892 2005-06-28  Simon Josefsson  <jas@extundo.com>
51893
51894         * modules/check-version (Files): Add check-version.m4.
51895
51896 2005-06-28  Simon Josefsson  <jas@extundo.com>
51897
51898         * m4/check-version.m4: New file, suggested by Jim Meyering
51899         <jim@meyering.net>.
51900
51901 2005-06-28  Simon Josefsson  <jas@extundo.com>
51902
51903         * lib/check-version.h, lib/check-version.c: New files.
51904
51905 2005-06-28  Simon Josefsson  <jas@extundo.com>
51906
51907         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51908         collision with global variable.  Better indentation.  Don't
51909         increment buffer pointer beyond buffer end.  Based on comments
51910         from Paul Eggert <eggert@cs.ucla.edu>.
51911
51912         * lib/base64.h: Indent.
51913
51914 2005-06-28  Simon Josefsson  <jas@extundo.com>
51915
51916         * doc/gnulib.texi (Library version handling): New section.
51917
51918 2005-06-28  Jim Meyering  <jim@meyering.net>
51919
51920         * check-module (find_included_lib_files): Hard-code another
51921         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51922         but modules/fts-lgpl (correctly) does not list those files.
51923
51924         * modules/canonicalize (Files): Add lib/pathmax.h.
51925
51926 2005-06-25  Simon Josefsson  <jas@extundo.com>
51927
51928         * modules/check-version: New file.
51929
51930 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51933         initializer of struct addrinfo, as an indication that we don't
51934         care how many members the structure has.
51935
51936 2005-06-24  Derek Price  <derek@ximbiot.com>
51937         and Bruno Haible  <bruno@clisp.org>
51938
51939         Remove stat module & update lstat.
51940         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51941         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51942         * m4/stat.m4: Remove this file.
51943
51944 2005-06-24  Derek Price  <derek@ximbiot.com>
51945         and Bruno Haible  <bruno@clisp.org>
51946
51947         Remove stat module & update lstat.
51948         * lib/stat.c: Remove this file...
51949         (slash_aware_lstat): ...moving this content and its support...
51950         * lib/lstat.c (rpl_lstat): ...into here.
51951         * lib/lstat.h: New file.
51952
51953 2005-06-24  Derek Price  <derek@ximbiot.com>
51954         and Bruno Haible  <bruno@clisp.org>
51955
51956         Remove stat module & update lstat.
51957         * config/srclist.txt (libc sources): Remove stat.
51958
51959 2005-06-24  Derek Price  <derek@ximbiot.com>
51960         and Bruno Haible  <bruno@clisp.org>
51961
51962         Remove stat module & update lstat.
51963         * MODULES.html.sh (stat): Remove.
51964         * MODULES.html: Regenerated.
51965         * modules/lstat (Description): Correct function name.
51966         (Files): Add "lstat.h".
51967         (Depends-on): Remove stat, add xalloc, stat-macros.
51968         * modules/stat: Remove this file.
51969         (Include): Add "lstat.h", remove <sys/stat.h>.
51970
51971 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51974         (ranged_convert): Don't save conversion in a temporary struct.
51975         This causes a warning with GCC 4.0.0, and anyway in the typical
51976         case it's not worth the extra 100 bytes or so of code.
51977         (ranged_convert, __mktime_internal): When calling a function via a
51978         pointer P, use P () rather than (*P) (), as we now assume C89 or
51979         better.
51980
51981 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51982
51983         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51984         "who -r" failed to give output.  Problem reported by Tim Waugh.
51985
51986         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51987         (xcalloc): Use it to avoid needless tests.
51988         Problem reported by Jim Meyering.
51989
51990 2005-06-20  Derek Price  <derek@ximbiot.com>
51991
51992         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51993         unnecessary for Autoconfs > 2.59c.
51994
51995 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51996
51997         * lib/argp.h (__option_is_short): Check upper limit of
51998         __key. Isprint() requires its argument to have the value
51999         of an unsigned char or EOF.
52000
52001 2005-06-16  Jim Meyering  <jim@meyering.net>
52002
52003         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52004         when either N or S is zero.
52005
52006 2005-06-16  Derek Price  <derek@ximbiot.com>
52007
52008         * m4/bison.m4: Declare YACC & YFLAGS precious.
52009
52010 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52011
52012         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52013         multibyte string or pattern, fall back on unibyte matching.
52014         Problem reported by James Youngman.
52015
52016 2005-06-08  Bruno Haible  <bruno@clisp.org>
52017
52018         * modules/csharpcomp: New file.
52019         * MODULES.html.sh (C#): Add csharpcomp.
52020
52021 2005-06-08  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/csharpcomp.m4: New file, from GNU gettext.
52024
52025 2005-06-08  Bruno Haible  <bruno@clisp.org>
52026
52027         * lib/csharpcomp.h: New file, from GNU gettext.
52028         * lib/csharpcomp.c: New file, from GNU gettext.
52029         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52030
52031 2005-06-08  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52034         warning on mingw.
52035
52036 2005-06-07  Derek Price  <derek@ximbiot.com>
52037
52038         Sync from CVS.
52039         * lib/glob_.h: Indent nested #ifdef.
52040
52041 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52042
52043         Sync from coreutils.
52044         Use "file name" when talking about file names, instead of "filename"
52045         or "path", as per the GNU coding standards.
52046         * lib/mkdir-p.c: Renamed from makepath.c.
52047         (make_dir_parents): Renamed from make_path.  All callers changed.
52048         * lib/mkdir-p.h: Likewise.  All includers changed.
52049         * lib/filenamecat.c: Renamed from path-concat.c.
52050         (file_name_concat): Renamed from path_concat.  All callers changed.
52051         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52052         * lib/filenamecat.h: Likewise.  All includers changed.
52053         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52054         in comments or local variable names.
52055         * lib/basename.c: Likewise.
52056         * lib/canonicalize.c, canonicalize.h: Likewise.
52057         * lib/dirname.c, dirname.h: Likewise.
52058         * lib/euidaccess.c: Likewise.
52059         * lib/exclude.c: Likewise
52060         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52061         * lib/fsusage.c, fsuage.h: Likewise.
52062         * lib/fts.c, fts_.h: Likewise.
52063         * lib/getcwd.c: Likewise.
52064         * lib/getloadavg.c: Likewise.
52065         * lib/mkstemp.c: Likewise.
52066         * lib/mountlist.c, mountlist.h: Likewise.
52067         * lib/openat.c, openat.h: Likewise.
52068         * lib/readlink-stub.c: Likewise.
52069         * lib/readutmp.c, readutmp.h: Likewise.
52070         * lib/rename.c: Likewise.
52071         * lib/rmdir.c: Likewise.
52072         * lib/same.c: Likewise.
52073         * lib/savedir.c: Likewise.
52074         * lib/stripslash.c: Likewise.
52075         * lib/tempname.c: Likewise.
52076         * lib/xreadlink.c: Likewise.
52077         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52078         All uses changed.
52079         * lib/exclude.h: Likewise.
52080
52081         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52082         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52083         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52084         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52085         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52086         files have been getting away with it for years (MORE/BSD 4.3
52087         is extinct now).
52088         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52089         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52090
52091         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52092         Define to 256, not 255, as per modern POSIX.
52093
52094 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52095
52096         Sync from coreutils.
52097         Use "file name" when talking about file names, instead of "filename"
52098         or "path", as per the GNU coding standards.
52099         * MODULES.html.sh: mkdir-p renamed from makepath.
52100         filenamecat renamed from path-concat.
52101         * modules/filenamecat: Renamed from modules/path-concat.
52102         (Files): filenamecat.h and filenamecat.c renamed from
52103         path-concat.h and path-concat.c.
52104         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52105         (Include): filenamecat.h, not path-concat.h.
52106         * modules/mkdir-p: Renamed from modules/makepath.
52107         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52108         makepath.c.
52109         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52110         (Include): mkdir-p.h, not makepath.h.
52111
52112 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52113
52114         Sync from coreutils.
52115         * m4/mkdir-p.m4: Renamed from makepath.m4.
52116         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52117         Rename files from makepath.c to mkdir-p.c, and from
52118         makepath.h to mkdir-p.h.
52119         * m4/filenamecat.m4: Renamed from path-concat.m4.
52120         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52121         Rename files from path-concat.c to filenamecat.c,
52122         and from path-concat.h to filenamecat.h.
52123         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52124         "file name" in local variables or comments.
52125         * m4/rename.m4: Likewise.
52126
52127 2005-06-01  Bruno Haible  <bruno@clisp.org>
52128
52129         * modules/csharpexec: New file.
52130         * MODULES.html.sh (C#): New section.
52131
52132 2005-06-01  Bruno Haible  <bruno@clisp.org>
52133
52134         * m4/csharp.m4: New file, from GNU gettext.
52135         * m4/csharpexec.m4: New file, from GNU gettext.
52136
52137 2005-06-01  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/csharpexec.h: New file, from GNU gettext.
52140         * lib/csharpexec.c: New file, from GNU gettext.
52141         * lib/csharpexec.sh.in: New file, from GNU gettext.
52142
52143 2005-05-31  Derek Price  <derek@ximbiot.com>
52144             Paul Eggert  <eggert@cs.ucla.edu>
52145
52146         Sync from cvs.
52147         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52148
52149 2005-05-31  Derek Price  <derek@ximbiot.com>
52150             Paul Eggert  <eggert@cs.ucla.edu>
52151
52152         Sync from cvs.
52153         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52154
52155 2005-05-29  Derek Price  <derek@ximbiot.com>
52156
52157         * config/srclist.txt (glob_.h, glob.c): Add these files.
52158
52159 2005-05-29  Derek Price  <derek@ximbiot.com>
52160
52161         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52162         * modules/glob: New file.
52163         * modules/getlogin_r: Add link to POSIX spec in description.
52164
52165 2005-05-29  Derek Price  <derek@ximbiot.com>
52166             Paul Eggert  <eggert@cs.ucla.edu>
52167
52168         * m4/glob.m4: New file.
52169
52170 2005-05-29  Derek Price  <derek@ximbiot.com>
52171             Paul Eggert  <eggert@cs.ucla.edu>
52172
52173         * lib/glob_.h, lib/glob.c: New files.
52174
52175 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52178         * modules/fts-lgpl (Depends-on): Remove gettext.
52179
52180 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52183         and don't require gt_INTTYPES_PRI.
52184
52185 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52186
52187         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52188
52189         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52190         the configuration hassle isn't worth it.
52191         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52192         (LONGEST_MODIFIER, PRIuMAX): Remove.
52193
52194 2005-05-27  Bruno Haible  <bruno@clisp.org>
52195
52196         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52197
52198 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52199
52200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52201         _POSIX_PTHREAD_SEMANTICS for Solaris.
52202
52203 2005-05-25  Derek Price  <derek@ximbiot.com>
52204
52205         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52206
52207 2005-05-25  Derek Price  <derek@ximbiot.com>
52208             Paul Eggert  <eggert@cs.ucla.edu>
52209
52210         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52211         * lib/getlogin_r.c, getlogin_r.h: New files.
52212
52213 2005-05-25  Bruno Haible  <bruno@clisp.org>
52214             Derek Price  <derek@ximbiot.com>
52215
52216         * lib/getlogin_r.h: Simplify API documentation.
52217
52218 2005-05-23  Derek Price  <derek@ximbiot.com>
52219
52220         * modules/minmax (Files): Add m4/minmax.m4.
52221         (configure.ac): Add gl_MINMAX.
52222
52223 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52224
52225         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52226         so that unistd-safer.h (GPL'ed code) need not be included.
52227
52228 2005-05-22  Bruno Haible  <bruno@clisp.org>
52229
52230         * m4/minmax.m4: New file.
52231         Based on a patch by Derek Price <derek@ximbiot.com>.
52232
52233 2005-05-22  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52236         (INT64_MIN): Fix definition.
52237         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52238
52239         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52240         NEED_SIGNED_INT_TYPES.
52241
52242         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52243         HAVE_SYSTEM_INTTYPES.
52244
52245 2005-05-22  Bruno Haible  <bruno@clisp.org>
52246
52247         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52248         Also include <sys/param.h> if it defines MIN, MAX.
52249         Based on a patch by Derek Price <derek@ximbiot.com>.
52250
52251 2005-05-21  Jim Meyering  <jim@meyering.net>
52252
52253         * modules/fts (Files): Add m4/inttypes-pri.m4.
52254         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52255
52256 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52257
52258         New fts module.
52259         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52260         (setup_dir, free_dir): New functions.
52261         (enter_dir, leave_dir): Define trivial
52262         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52263         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52264         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52265         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52266         Move to fts-cycle.c.
52267         (fts_open): Use setup_dir.
52268         (fts_close): Use free_dir.
52269         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52270         This adds a label and some gotos, but the alternatives were messier.
52271         Check for memory allocation failure when entering a dir.
52272         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52273         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52274         (FTS): New member fts_cycle, that is a union that contains the
52275         old active_dir_ht and cycle_state.  All uses changed to mention
52276         fts_cycle.ht and fts_cycle.state.
52277         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52278         fts.c, with the following changes:
52279         (setup_dir, free_dir): New functions.
52280         (enter_dir): Now returns bool.  Return true if successful, false
52281         if memory exhausted.  All callers changed.
52282         Do not bother partly cleaning up on
52283         memory allocation failure; that is free_dir's job.
52284         However, free ad if hash_insert fails, to avoid memory leak.
52285         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52286         fts->fts_options to see which union member to use.
52287
52288 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52291         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52292
52293 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52294
52295         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52296
52297 2005-05-20  Jim Meyering  <jim@meyering.net>
52298
52299         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52300         Now a macro, to pacify GCC.
52301
52302 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52303
52304         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52305         of -1.
52306
52307 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52308
52309         * lib/chown.c (rpl_chown): Return -1 on failure.
52310
52311 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52312
52313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52314         Don't check for stddef.h.
52315         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52316         don't use its results.
52317         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52318         since we include them unconditionally.  Don't require
52319         AM_STDBOOL_H, since stdbool is a prerequisite.
52320         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52321         since we assume C89 or better.
52322         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52323         as we don't use their results.
52324         Don't check for fchdir, memmove, memset, strrchr, as we use
52325         them unconditionally.
52326         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52327         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52328
52329 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52330
52331         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52332         Include <stddef.h> unconditionally, since we assume C89 now.
52333         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52334         * lib/fts.c: Include fts_.h first, to check interface.
52335         Do not include intprops.h; no longer needed.
52336         Include cycle-check.h and hash.h, since fts_.h no longer does.
52337         Remove unnecessary casts of closedir to void.
52338         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52339         decide whether to decrement nlinks.
52340         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52341         (FTS): Use struct hash_table * instead of Hash_table, so that
52342         we no longer need to include hash.h here.
52343
52344 2005-05-18  Jim Meyering  <jim@meyering.net>
52345
52346         * modules/dirfd (License): Change to LGPL.  Most of the code
52347         is already in the public domain.
52348
52349 2005-05-18  Jim Meyering  <jim@meyering.net>
52350
52351         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52352         Reported by Yoann Vandoorselaere.
52353
52354 2005-05-17  Jim Meyering  <jim@meyering.net>
52355
52356         * m4/fts.m4: New file, from coreutils.
52357
52358 2005-05-17  Jim Meyering  <jim@meyering.net>
52359
52360         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52361
52362 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         Sync from coreutils.
52365         * m4/unlinkdir.m4: New file.
52366
52367 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         Sync from coreutils.
52370         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52371         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52372         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52373         White space changes only.
52374         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52375         special.
52376         * lib/yesno.c: Include getline.h, not ctype.h.
52377         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52378         Use getline to remove arbitrary restriction on response length.
52379
52380 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         * config/srclist-update: Spell out "Street" in FSF postal
52383         mail address; this is the style the FSF seems to prefer.
52384
52385         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52386         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52387         this updates FSF postal mail address.
52388
52389         Sync from coreutils.
52390         * modules/unlinkdir: New file.
52391         * modules/yesno (Depends-on): Add getline.
52392         * MODULES.html.sh (File system functions): Add unlinkdir.
52393
52394 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52397         lib/strsep.h:
52398         Change the initial comment to refer to GPL, not LGPL.
52399         gnulib-tool will change it to LGPL as needed.
52400
52401         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52402         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52403         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52404         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52405         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52406         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52407         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52408         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52409         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52410         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52411         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52412         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52413         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52414         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52415         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52416         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52417         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52418         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52419         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52420         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52421         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52422         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52423         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52424         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52425         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52426         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52427         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52428         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52429         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52430         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52431         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52432         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52433         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52434         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52435         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52436         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52437         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52438         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52439         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52440         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52441         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52442         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52443         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52444         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52445         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52446         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52447         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52448         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52449         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52450         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52451         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52452         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52453         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52454         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52455         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52456         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52457         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52458         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52459         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52460         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52461         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52462         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52463         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52464         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52465         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52466         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52467         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52468         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52469         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52470         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52471         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52472         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52473         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52474         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52475         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52476         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52477         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52478         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52479         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52480         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52481         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52482         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52483         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52484         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52485         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52486         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52487         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52488         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52489         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52490         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52491         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52492         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52493         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52494         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52495         lib/yesno.c, lib/yesno.h:
52496         Update FSF postal mail address.
52497
52498 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52499
52500         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52501         tests/test-memmem.c, tests/test-stpncpy.c:
52502         Update FSF postal mail address.
52503
52504 2005-05-13  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52507         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52508         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52509         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52510         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52511         Add support for 64-bit integers in the MSVC compiler.
52512
52513 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52514
52515         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52516
52517 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52518
52519         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52520
52521 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * doc/getdate.texi (General date syntax): Don't say that date
52524         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52525         Problem reported by Nic Ferrier.
52526
52527 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52528
52529         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52530         specified in ai_socktype. Fix invalid ai_protocol
52531         check. ai_protocol is usually set to 0 or depending on
52532         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52533         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52534         ai_socktype / ai_protocol in the returned addrinfo structure.
52535
52536 2005-05-10  Simon Josefsson  <jas@extundo.com>
52537
52538         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52539         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52540
52541 2005-05-10  Karl Berry  <karl@gnu.org>
52542
52543         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52544         (from http://www.gnu.org/licenses).
52545         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52546         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52547         fdl.texi suffices.
52548
52549 2005-05-10  Karl Berry  <karl@gnu.org>
52550
52551         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52552         (COPYING.DOC): remove.
52553
52554         * config/srclist-update: new FSF address.
52555
52556 2005-05-10  Derek Price  <derek@ximbiot.com>
52557
52558         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52559         possible.
52560
52561 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52562             Bruno Haible  <bruno@clisp.org>
52563
52564         * modules/inet_ntop: New file.
52565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52566         inet_ntop.
52567
52568 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52569             Bruno Haible  <bruno@clisp.org>
52570
52571         * m4/inet_ntop.m4: New file.
52572
52573 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52574             Bruno Haible  <bruno@clisp.org>
52575
52576         * lib/inet_ntop.h: New file.
52577         * lib/inet_ntop.c: New file, from glibc with modifications.
52578
52579 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         * modules/time_r (License): Change to LGPL.
52582         * modules/extensions (License): Change to LGPL.  Actually,
52583         the license is more permissive than that, but currently gnulib-tool
52584         doesn't know how to handle more-permissive licenses.
52585
52586         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52587         Problem reported by Dave Love.
52588
52589 2005-05-08  Jim Meyering  <jim@meyering.net>
52590
52591         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52592         blank.
52593
52594 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * modules/argmatch (Depends-on): Add stdbool.
52597         * modules/backupfile (Depends-on): Likewise.
52598         * modules/chdir-long (Depends-on): Likewise.
52599         * modules/closeout (Depends-on): Likewise.
52600         * modules/cycle-check (Depends-on): Likewise.
52601         * modules/dirname (Depends-on): Likewise.
52602         * modules/fnmatch (Depends-on): Likewise.
52603         * modules/fsusage (Depends-on): Likewise.
52604         * modules/fwriteerror (Depends-on): Likewise.
52605         * modules/getcwd (Depends-on): Likewise.
52606         * modules/getloadavg (Depends-on): Likewise.
52607         * modules/hard-locale (Depends-on): Likewise.
52608         * modules/makepath (Depends-on): Likewise.
52609         * modules/mountlist (Depends-on): Likewise.
52610         * modules/nanosleep (Depends-on): Likewise.
52611         * modules/posixtm (Depends-on): Likewise.
52612         * modules/quotearg (Depends-on): Likewise.
52613         * modules/readtokens (Depends-on): Likewise.
52614         * modules/readtokens0 (Depends-on): Likewise.
52615         * modules/readutmp (Depends-on): Likewise.
52616         * modules/save-cwd (Depends-on): Likewise.
52617         * modules/strftime (Depends-on): Likewise.
52618         * modules/userspec (Depends-on): Likewise.
52619         * modules/utimecmp (Depends-on): Likewise.
52620         * modules/xgetcwd (Depends-on): Likewise.
52621         * modules/xnanosleep (Depends-on): Likewise.
52622         * modules/xstrtod (Depends-on): Likewise.
52623         * modules/yesno (Depends-on): Likewise.
52624
52625 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52626
52627         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52628         needless checks.
52629
52630 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52631
52632         Merge from coreutils.  Among other things,
52633         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52634         * lib/fd-safer.c: New file.
52635         * lib/fcntl-safer.h, open-safer.c: Remove.
52636         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52637         * lib/dup-safer.c: Include unistd-safer.h first.
52638         Don't include errno.h.
52639         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52640         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52641         * lib/file-type.c: Rely on file-type.h change.
52642         * lib/getloadavg.c: Include unistd-safer.h.
52643         (getloadavg): Use safer open.
52644         * lib/getusershell.c: Include "stdio-safer.h".
52645         (getusershell): Use safer fopen.
52646         * lib/long-options.c (long_options): Use NULL rather than 0.
52647         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52648         'free'.
52649         * lib/modechange.c: Likewise.
52650         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52651         (MODE_DONE): New constant.
52652         (struct mode_change): Remove 'next' member.
52653         (make_node_op_equals): New function; like the old one of the
52654         same name, except it allocates an array.
52655         (mode_compile, mode_create_from_ref): Use it.
52656         (mode_compile): Allocate result as an array, not a linked list.
52657         Parse octal string ourself, so that we catch mistakes like "+0".
52658         (mode_adjust): Arg is an array, not a linked list.
52659         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52660         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52661         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52662         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52663         Remove.  This is now stat-macros.h's job.
52664         (talloc): Remove.  All callers replaced by xalloc, so that
52665         our invokers don't have to worry about reporting memory failures.
52666         (make_node_op_equals): Remove.
52667         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52668         New constants.
52669         (struct mode_change): Moved here from modechange.h.
52670         (mode_append_entry): Remove.
52671         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52672         apps to have incorrect behavior.  Use simpler algorithm for head
52673         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52674         Detect more invalid usages rather than having somewhat-random behavior.
52675         Don't insert an "a=" action, as that leads to incorrect behavior.
52676         (mode_compile, mode_create_from_ref): Return NULL on error instead
52677         of an enum, since now there's only one way to have an error.  All
52678         callers changed.
52679         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52680         at the correct time.  Simplify calculation of "+u" and its ilk.
52681         Don't mishandle "+X".
52682         (mode_free): Remove "register" and localize decls.
52683         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52684         (struct mode_change): Move to modechange.c; callers don't
52685         need to see this stuff.
52686         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52687         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52688         (mode_change, mode_adjust): Reflect the new signatures noted above.
52689         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52690         that might redefine system include files.
52691         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52692         (my_usleep): Use NULL rather than (void *) 0.
52693         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52694         Use siginterrupt to specify that system calls should be interrupted.
52695         (rpl_nanosleep): Move initialization of suspended closer to call of
52696         my_usleep.
52697         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52698         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52699         (desirable_utmp_entry): New function.
52700         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52701         using x2nrealloc, to simplify logic.
52702         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52703         size calculation.  Do not assume utmp file is a regular file.
52704         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52705         (READ_UTMP_CHECK_PIDS): New constant.
52706         * lib/save-cwd.c: Include unistd-safer.h.
52707         (save_cwd): Use fd_safer.
52708         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52709         [!_LIBC] Include "stat-macros.h" instead.
52710         * lib/unistd-safer.h (fd_safer): New decl.
52711
52712 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52713
52714         * modules/getloadavg (Depends-on): Add unistd-safer.
52715         * modules/getusershell (Depends-on): Add stdio-safer.
52716         * modules/lstat (Depends-on): Remove xalloc.
52717         * modules/mkstemp (Depends-on): Add stat-macros.
52718         * modules/modechange (Depends-on): Remove xstrtol.
52719         Add stat-macros, xalloc.
52720         * modules/save-cwd (Depends-on): Add unistd-safer.
52721         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52722         * modules/unistd-safer (Files): Add lib/fd-safer.c
52723         (Makefile.am): Remove lib_SOURCES.
52724
52725         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52726         Remove fcntl-safer; unistd-safer supersedes it.
52727
52728 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52729
52730         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52731         AC_HEADER_STAT.
52732         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52733         (gl_PREREQ_CHOWN): Remove.
52734         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52735         it.  Don't require AC_HEADER_STAT.
52736         (gl_PREREQ_LSTAT): Remove.
52737         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52738         Don't require AC_HEADER_STAT.
52739         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52740         (gl_PREREQ_RMDIR): Remove.
52741         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52742         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52743         the stat-macros module a prerequisite.
52744         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52745         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52746         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52747         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52748         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52749         variable names.
52750         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52751         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52752         variable prefixes.
52753         * m4/fcntl-safer.m4: Remove.
52754         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52755         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52756         Invoke gl_PREREQ_FD_SAFER.
52757         (gl_PREREQ_FD_SAFER): New macro.
52758         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52759         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52760         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52761         Remove duplicate call to AC_LIBOBJ(readutmp).
52762         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52763
52764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52765         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52766
52767 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52768
52769         * MODULES.html.sh (Misc): Add byteswap.
52770
52771 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52772
52773         * modules/getcwd (Depends-on): Add extensions.
52774         * modules/openat (Depends-on): Likewise.
52775
52776 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52777
52778         * modules/byteswap: New file.
52779
52780 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52781
52782         * m4/byteswap.m4: New file.
52783
52784 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52785
52786         * lib/byteswap_.h: New file.
52787
52788 2005-04-25  Karl Berry  <karl@gnu.org>
52789
52790         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52791
52792 2005-04-25  Albert Chin  <china@thewrittenword.com>
52793
52794         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52795         Toolkit C bug.
52796
52797 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52798
52799         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52800         (func_ln_if_changed) Remove forcibly for no error message
52801         in case file does not exist.
52802
52803 2005-04-19  Simon Josefsson  <jas@extundo.com>
52804
52805         * gnulib-tool (Options): Make --symlink mean --symbolic.
52806
52807 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52808
52809         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52810
52811 2005-04-16  Simon Josefsson  <jas@extundo.com>
52812
52813         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52814
52815 2005-04-15  Simon Josefsson  <jas@extundo.com>
52816
52817         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52818
52819 2005-04-15  Simon Josefsson  <jas@extundo.com>
52820
52821         * gnulib-tool: Rename --symlink to --symbolic.
52822
52823 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52824
52825         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52826         symbolic links to files instead of copying/moving.  Add --aux-dir,
52827         specifying directory relative --dir where auxiliary build tools
52828         are placed.
52829
52830 2005-04-14  Bruno Haible  <bruno@clisp.org>
52831
52832         * modules/allocsa (License): Change to LGPL.
52833         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52834
52835 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52838         that "UTC +1 second" continues to work.  Problem reported
52839         by Dmitry V. Levin.
52840         (relunit_snumber): New rule.
52841         (relunit): Use it.
52842
52843 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * lib/getdate.y (universal_time_zone_table): New constant.
52846         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52847         universal_time_zone_table.
52848         (lookup_zone): Prefer universal_time_zone_table to
52849         local_time_zone_table, so that "GMT" time stamps are allowed in
52850         London during the summer.  Problem reported by Ian Abbott.
52851
52852 2005-04-12  Jim Meyering  <jim@meyering.net>
52853
52854         * lib/human.c (humblock): Set *options even when returning due to
52855         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52856         warning from gcc-4.
52857
52858 2005-04-09  Jim Meyering  <jim@meyering.net>
52859
52860         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52861         -Wuninitialized: initialize tm0.tm_year.
52862
52863 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52864
52865         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52866         count, since there's no maximum.  All uses changed.
52867         Add member dsts_seen.
52868         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52869         not being INT_MAX.
52870         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52871         Use pc_rels_seen to decide whther a date is absolute.
52872
52873         * lib/getdate.y (number): Don't overwrite year.
52874         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52875         check.
52876
52877 2005-04-02  Simon Josefsson  <jas@extundo.com>
52878
52879         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52880         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52881
52882 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52883
52884         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52885         where no absolute path name can be longer than PATH_MAX.
52886
52887 2005-03-27  Jim Meyering  <jim@meyering.net>
52888
52889         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52890
52891 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52892
52893         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52894         "one's complement" -> "ones' complement" in comment, as per Knuth.
52895         "value of type" -> "type or expression" in comment.
52896         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52897
52898 2005-03-26  Jim Meyering  <jim@meyering.net>
52899
52900         Comment nits.
52901         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52902         Correct typos: s/or/of/.
52903
52904 2005-03-26  Jim Meyering  <jim@meyering.net>
52905
52906         * modules/check-include-files: Move to ../ and rename to...
52907         * check-module: ...this.
52908
52909 2005-03-25  Jim Meyering  <jim@meyering.net>
52910
52911         * modules/xvasprintf (Files): Add xalloc.h.
52912
52913 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52914
52915         * modules/gettext (Files): config/config.rpath ->
52916         build-aux/config.rpath
52917         * modules/iconv (Files): Likewise.
52918         Problem reported by Oskar Liljeblad.
52919
52920 2005-03-23  Jim Meyering  <jim@meyering.net>
52921
52922         * modules/check-include-files: New script to check for
52923         missing dependencies, multiple includes, etc.
52924
52925         * modules/c-strtold (Depends-on): Add xalloc.
52926         * modules/c-strtod (Depends-on): Add xalloc.
52927         * modules/hash (Depends-on): Add xalloc.
52928         (Files): Remove lib/xalloc.h.
52929
52930         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52931         * modules/userspec (Files): Add lib/inttostr.h.
52932
52933 2005-03-23  Jim Meyering  <jim@meyering.net>
52934
52935         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52936
52937 2005-03-22  Jim Meyering  <jim@meyering.net>
52938
52939         * modules/stat-macros: New module.
52940         * modules/canonicalize, modules/euidaccess, modules/file-type,
52941         * modules/filemode, modules/lchown, modules/makepath,
52942         * modules/rmdir, modules/stat: Depend on new stat-macros module
52943         rather than listing lib/stat-macros.h manually.
52944         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52945
52946 2005-03-22  Jim Meyering  <jim@meyering.net>
52947
52948         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52949
52950 2005-03-22  Bruno Haible  <bruno@clisp.org>
52951
52952         * config/srclist.txt: Replace target directory 'config' with
52953         'build-aux'.
52954         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52955         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52956         ../build-aux/.
52957
52958 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52959
52960         * modules/chdir-long (Depends-on): Add mempcpy.
52961
52962         * modules/acl, modules/backupfile, modules/c-strtod,
52963         modules/c-strtold, modules/canon-host, modules/canonicalize,
52964         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52965         modules/exclude, modules/exitfail, modules/file-type,
52966         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52967         modules/getdate, modules/getline, modules/getpagesize,
52968         modules/getpass, modules/getugroups, modules/group-member,
52969         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52970         modules/inttostr, modules/long-options, modules/makepath,
52971         modules/md5, modules/memcasecmp, modules/memcoll,
52972         modules/modechange, modules/mountlist, modules/path-concat,
52973         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52974         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52975         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52976         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52977         modules/strftime, modules/strndup, modules/strverscmp,
52978         modules/timespec, modules/unlocked-io, modules/userspec,
52979         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52980         modules/yesno:
52981         Remove lib_SOURCES line from Makefile.am section, as this is now
52982         done automatically by the corresponding Autoconf macro.
52983
52984 2005-03-21  Jim Meyering  <jim@meyering.net>
52985
52986         Changes imported from coreutils.
52987
52988         * lib/cycle-check.c: Don't include xalloc.h.
52989
52990         * lib/path-concat.c: Don't include assert.h.
52991         (path_concat): Remove assertion that would have triggered
52992         for ABASE starting with more than one slash.
52993         Reported by Andreas Schwab.
52994
52995         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52996         properly when ABASE is an absolute file name.
52997         Correct the description of this function.
52998         Include <assert.h>.
52999         Add an assertion and a test driver.
53000         This fixes a bug introduced on 2004-07-02.
53001         Andreas Schwab reported the resulting failure of cp --parents:
53002         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53003
53004 2005-03-21  Jim Meyering  <jim@meyering.net>
53005
53006         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53007         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53008
53009 2005-03-21  Jim Meyering  <jim@meyering.net>
53010         and  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53013         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53014         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53015         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53016         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53017         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53018         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53019         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53020         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53021         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53022         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53023         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53024         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53025         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53026         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53027         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53028         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53029         for these modules.
53030
53031 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53032
53033         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53034         (which shouldn't happen), generate nothing instead of returning 0
53035         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53036
53037 2005-03-16  Bruno Haible  <bruno@clisp.org>
53038
53039         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53040         HAVE_LONGLONG_64BIT.
53041
53042 2005-03-16  Bruno Haible  <bruno@clisp.org>
53043
53044         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53045         HAVE_LONGLONG_64BIT.
53046
53047 2005-03-16  Bruno Haible  <bruno@clisp.org>
53048
53049         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53050         HAVE_LONGLONG_64BIT.
53051
53052 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53055         reliably distinguish strftime failure from empty output on POSIX
53056         hosts.
53057
53058 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53061         (iconv_string): Don't guess a size-zero buffer, as that might cause
53062         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53063         result would be 'too large', where 'too large' is (heuristically)
53064         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53065         overflow concerns.  This will prevent some unwanted malloc failures
53066         when the inputs are very large.
53067
53068 2005-03-15  Karl Berry  <karl@gnu.org>
53069
53070         * config/srclist.txt (config.rpath): from gettext.
53071         * config/config.rpath: update.
53072
53073 2005-03-15  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53076         to 'negate'.
53077
53078         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53079         variable.
53080
53081         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53082         results.
53083
53084 2005-03-14  Simon Josefsson  <jas@extundo.com>
53085
53086         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53087         <fx@gnu.org>.
53088
53089 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53090
53091         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53092         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53093         intprops.h.
53094         * lib/strtol.c: Likewise.
53095
53096 2005-03-14  Jim Meyering  <jim@meyering.net>
53097
53098         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53099         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53100         to be nonzero so that we (and caller) can detect the difference
53101         between a valid zero-length expansion and an error return, even
53102         when the underlying strftime fails before writing anything into
53103         that location.
53104
53105 2005-03-14  Bruno Haible  <bruno@clisp.org>
53106
53107         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53108         Update from GNU gettext 0.14.3.
53109
53110 2005-03-10  Jim Meyering  <jim@meyering.net>
53111
53112         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53113
53114 2005-03-10  Jim Meyering  <jim@meyering.net>
53115
53116         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53117         so that this module works on systems without fchdir.
53118
53119 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53120
53121         Factor int-properties macros into a single file, except for
53122         glibc-related files.
53123         * lib/intprops.h: New file.
53124         * lib/getloadavg.c: Include it instead of limits.h.
53125         (INT_STRLEN_BOUND): Remove.
53126         * lib/human.c: Include intprops.h.
53127         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53128         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53129         302/1000.
53130         * lib/inttostr.h: Include intprops.h instead of limits.h.
53131         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53132         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53133         for consistency with intprops.h.
53134         (time_t_is_integer, twos_complement_arithmetic): Use them.
53135         * lib/sig2str.h: Include <signal.h>, intprops.h.
53136         (INT_STRLEN_BOUND): Remove.
53137         * lib/strftime.c (TYPE_SIGNED): Remove.
53138         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53139         * lib/strtol.c: Adjust comments to match intprops.h.
53140         * lib/userspec.c: Include intprops.h.
53141         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53142         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53143         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53144         instead of rolling our own expressions.
53145         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53146
53147         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53148         instead of int.
53149         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53150         the right thing even if adding 1900 would overflow.  Similarly
53151         for tm_mon + 1 and tm_yday + 1.
53152         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53153         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53154         (DO_SIGNED_NUMBER): New macro.
53155         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53156
53157 2005-03-07  Bruno Haible  <bruno@clisp.org>
53158
53159         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53160
53161 2005-03-07  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53164
53165 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53166
53167         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53168         (func_import): Only replace files via --import when they have actually
53169         changed.
53170
53171 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53172
53173         * m4/mmap-anon.m4: New file.
53174         * m4/pagealign_alloc.m4: New file.
53175
53176 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53177             Bruno Haible  <bruno@clisp.org>
53178
53179         * modules/pagealign_alloc: New file.
53180         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53181
53182 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53183             Bruno Haible  <bruno@clisp.org>
53184
53185         * lib/pagealign_alloc.h: New file.
53186         * lib/pagealign_alloc.c: New file.
53187
53188 2005-03-03  Bruno Haible  <bruno@clisp.org>
53189
53190         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53191         Use an all-permissive copyright notice, recommended by RMS.
53192
53193 2005-03-02  Bruno Haible  <bruno@clisp.org>
53194
53195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53196         of AIX, the replacement has to be done only after <string.h> is
53197         included, therefore not in config.h. stpncpy.h does the replacement,
53198         and stpncpy.c uses it.
53199
53200 2005-03-02  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53203         stpncpy.c uses it.
53204
53205 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53206
53207         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53208         The workaround isn't strictly needed for POSIX conformance, and
53209         it's too much of a pain to configure and maintain.  We'll ask
53210         people to fix their kernels instead.
53211         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53212         (NANOSLEEP_BUG_WORKAROUND): Remove.
53213         (xnanosleep): Remove the workaround.
53214
53215 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53216
53217         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53218         Reported by Derek Price.
53219         (Include): Add "timespec.h".
53220
53221         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53222
53223 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53226         to detect nanosleep bug.
53227
53228 2005-03-01  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53231
53232 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53233
53234         * modules/gethrxtime: New file.
53235         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53236         (Depends-on): Add gethrxtime.
53237         (configure.ac): Add gl_XNANOSLEEP.
53238         (Makefile.am): Remove lib_SOURCES line.
53239
53240 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53243         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53244
53245 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53246
53247         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53248         * lib/timespec.h (gettime): Return void, since it always
53249         succeeds now.  All uses changed.
53250         * lib/gettime.c (gettime) Likewise.
53251         [HAVE_NANOTIME]: Prefer nanotime.
53252         Assume gettimeofday succeeds, as POSIX requires.
53253         Assime time () succeeds, since other code already does.
53254         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53255         (timespec_subtract): Remove.
53256         (NANOSLEEP_BUG_WORKAROUND): New constant.
53257         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53258         things considerably.  Use it only on GNU/Linux hosts, since the
53259         workaround shouldn't be needed elsewhere.
53260
53261 2005-02-24  Bruno Haible  <bruno@clisp.org>
53262
53263         * modules/gettext (Files): Add m4/glibc2.m4.
53264
53265 2005-02-24  Bruno Haible  <bruno@clisp.org>
53266
53267         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53268         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53269         * m4/progtest.m4:
53270         Update from GNU gettext 0.14.2.
53271         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53272
53273 2005-02-24  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53276         * lib/config.charset: Update from GNU gettext 0.14.2.
53277
53278 2005-02-24  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/gettext.h: Update from GNU gettext 0.14.2.
53281
53282 2005-02-23  Simon Josefsson  <jas@extundo.com>
53283
53284         * m4/iconvme.m4: New file.
53285
53286 2005-02-23  Jim Meyering  <jim@meyering.net>
53287
53288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53289         change.
53290         Thanks to Bruno Haible for catching it.
53291
53292 2005-02-22  Simon Josefsson  <jas@extundo.com>
53293
53294         * modules/iconvme: New file.
53295
53296         * MODULES.html.sh: Add iconvme.
53297
53298 2005-02-22  Simon Josefsson  <jas@extundo.com>
53299
53300         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53301
53302 2005-02-22  Simon Josefsson  <jas@extundo.com>
53303
53304         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53305
53306 2005-02-22  Jim Meyering  <jim@meyering.net>
53307
53308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53309         s/ifndef/ifdef/.
53310
53311 2005-02-20  Neil Conway  <neilc@samurai.com>
53312
53313         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53314         returned by OSX/Darwin if the specified buffer is not large
53315         enough for the hostname.
53316
53317 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53318
53319         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53320         pass it to _help, otherwise the latter coredumps trying to
53321         dereference state.root_argp.
53322
53323 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53324
53325         * modules/chdir-long (Depends-on): Add memrchr.
53326         * modules/memrchr (Files): Add lib/memrchr.h.
53327         (Include): "memrchr.h".
53328
53329 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53332
53333 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53334
53335         * lib/memrchr.h: New file.
53336         * lib/chdir-long.c: Include it.
53337         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53338         Don't bother including stddef.h.
53339
53340 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53343         inclusion.
53344         Include <sys/types.h>, for dev_t.
53345         (ME_DUMMY, ME_REMOTE): Move from here....
53346         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53347         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53348         Dmitry V. Levin.
53349         Include mountlist.h first, to test the interface.
53350
53351 2005-01-29  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/progname.c (program_name): Initialize.
53354         Needed when linking statically on MacOS X.
53355
53356 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         Sync from coreutils.
53359         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53360         (Depends-on): Add c-strtod.
53361         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53362
53363 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         Sync from coreutils.
53366         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53367
53368         Remove files that are specific to coreutils.
53369         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53370
53371 2005-01-28  Bruno Haible  <bruno@clisp.org>
53372
53373         * modules/javacomp: New file.
53374         * MODULES.html.sh (Java): Add javacomp.
53375
53376 2005-01-28  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/javacomp.m4: New file, from GNU gettext.
53379
53380 2005-01-28  Bruno Haible  <bruno@clisp.org>
53381
53382         * lib/javacomp.sh.in: New file, from GNU gettext.
53383         * lib/javacomp.h: New file, from GNU gettext.
53384         * lib/javacomp.c: New file, from GNU gettext.
53385
53386 2005-01-26  Simon Josefsson  <jas@extundo.com>
53387
53388         * lib/gai_strerror.c: Use GPL in header.
53389
53390 2005-01-26  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/javaexec: New file.
53393         * MODULES.html.sh (Java): Add javaexec.
53394
53395 2005-01-26  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/javaexec.m4: New file, from GNU gettext.
53398
53399 2005-01-26  Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/javaexec.sh.in: New file, from GNU gettext.
53402         * lib/javaexec.h: New file, from GNU gettext.
53403         * lib/javaexec.c: New file, from GNU gettext.
53404
53405 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53406
53407         * modules/lchown (Depends-on): Remove lchown.h
53408
53409 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53410
53411         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53412         must be defined if the header file was not found, in order
53413         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53414
53415 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53416
53417         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53418         initializers for struct pentry_state.
53419         (__argp_error): Check return value of __asprintf
53420         (__argp_failure): Translate error message
53421
53422         * lib/argp-parse.c: Removed braces around the expansion of N_()
53423
53424 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53425
53426         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53427         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53428         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53429         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53430         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53431         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53432         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53433         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53434         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53435         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53436         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53437         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53438         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53439         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53440         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53441         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53442         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53443         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53444         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53445         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53446         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53447         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53448         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53449         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53450         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53451         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53452         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53453         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53454         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53455         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53456         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53457         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53458         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53459         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53460         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53461         Use an all-permissive copyright notice, recommended by RMS.
53462
53463 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * modules/chdir-long (Depends-on): Remove mempcpy.
53466
53467 2005-01-21  Jim Meyering  <jim@meyering.net>
53468
53469         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53470         same value as for Solaris 9.
53471
53472         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53473         component length.  This included changing the parameter to be
53474         of type `char *' rather than `char const *'.
53475         * lib/chdir-long.h (chdir_long): Update prototype.
53476
53477         * lib/openat.c (fdopendir, fstatat): New functions.
53478         * lib/openat.h: Include headers required for use of DIR and struct
53479         stat.
53480         [AT_SYMLINK_NOFOLLOW]: Define.
53481         (fdopendir, fstatat): Add prototypes.
53482
53483 2005-01-21  Bruno Haible  <bruno@clisp.org>
53484
53485         * modules/classpath: New file.
53486         * MODULES.html.sh (Java): Add classpath.
53487
53488 2005-01-21  Bruno Haible  <bruno@clisp.org>
53489
53490         * lib/classpath.h: New file, from GNU gettext.
53491         * lib/classpath.c: New file, from GNU gettext.
53492
53493 2005-01-20  Simon Josefsson  <jas@extundo.com>
53494
53495         * modules/version-etc-fsf: New file.
53496
53497 2005-01-20  Simon Josefsson  <jas@extundo.com>
53498
53499         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53500         * lib/version-etc.c: Remove version_etc_copyright.
53501         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53502         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53503
53504 2005-01-20  Simon Josefsson  <jas@extundo.com>
53505
53506         * lib/base64.h (isbase64): Add.
53507
53508         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53509         using a unsigned prototype, don't inline.
53510         (base64_decode): Use it.
53511
53512 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53515         it.
53516
53517 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         * lib/save-cwd.c (save_cwd): Remove code to support the case
53520         where fchdir is missing or flaky.
53521
53522 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53523
53524         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53525
53526 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53529         AC_LIBSOURCES now does this.
53530         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53531         with new ullong_max module.
53532
53533 2005-01-19  Bruno Haible  <bruno@clisp.org>
53534
53535         * modules/sh-quote: New file.
53536         * MODULES.html.sh (Executing programs): Add sh-quote.
53537
53538 2005-01-19  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/sh-quote.h: New file, from GNU gettext.
53541         * lib/sh-quote.c: New file, from GNU gettext.
53542
53543 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53544
53545         Merge from coreutils.
53546         * m4/ullong_max.m4: New file.
53547         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53548         (gl_MACROS): Assume localeconv exists.
53549
53550 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         Merge changes from coreutils, as described below in several
53553         changelogs dated today.
53554
53555         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53556         (O_DIRECTORY): Remove; not needed here, since "." must be
53557         a directory.  All uses removed.
53558         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53559         universal on Suns, and we also need to test for IRIX.
53560         Revamp code to use 'if' rather than '#if'.
53561         Avoid unnecessary comparison of cwd->desc to 0.
53562
53563         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53564         for known valid error numbers rather than observed invalid ones.
53565
53566 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         * modules/ullong_max: New file.
53569
53570         * modules/chdir-long, modules/openat: New files.
53571         * modules/save-cwd (Depends-on): Depend on chdir-long.
53572         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53573
53574 2005-01-18  Jim Meyering  <jim@meyering.net>
53575
53576         Merge from coreutils.
53577         * m4/chdir-long.m4, m4/openat.m4: New files.
53578         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53579         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53580         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53581         is sane and DOES follow symlinks.  Besides, testing 20 different
53582         systems found no broken chown implementations.
53583         Prompted by a change in rsync's copy of this macro.
53584         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53585
53586         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53587
53588         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53589         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53590         NULL-means-set-to-current-time semantics.
53591         Remove temporary file immediately, rather than waiting
53592         for configure's at-exit trap code to do it.
53593
53594 2005-01-18  Jim Meyering  <jim@meyering.net>
53595
53596         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53597
53598         * lib/utimens.c (futimens): Account for the fact that futimes
53599         can also fail with errno == ENOSYS or errno == ENOENT.
53600         Patch from Dmitry V. Levin.
53601
53602         Change the name of the robust chdir function from chdir to chdir_long.
53603         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53604         (restore_cwd): Use chdir_long, not chdir.
53605         * lib/chdir-long.c: Renamed from chdir.c.
53606         * lib/chdir-long.h: Renamed from chdir.h.
53607         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53608         Hurd.
53609
53610 2005-01-18  Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53613         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53614         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53615         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53616         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53617         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53618         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53619         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53620         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53621         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53622         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53623         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53624         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53625         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53626         Use an all-permissive copyright notice, recommended by RMS.
53627
53628 2005-01-18  Bob Proulx  <bob@proulx.com>
53629
53630         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53631         simplify offsetof() macro construct to avoid compile failure with
53632         native HP-UX 11.0 ANSI C compiler.
53633
53634 2005-01-17  Bruno Haible  <bruno@clisp.org>
53635
53636         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53637         redundant because stpncpy.m4 takes care of it.
53638
53639 2005-01-17  Bruno Haible  <bruno@clisp.org>
53640
53641         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53642
53643 2005-01-17  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53646         used.
53647
53648 2005-01-17  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/fwriteerror.h (fwriteerror): Change specification to include
53651         fclose.
53652         * lib/fwriteerror.c: Include <stdbool.h>.
53653         (fwriteerror): At the end, close the file stream. Record whether
53654         stdout was already closed.
53655
53656 2005-01-17  Bruno Haible  <bruno@clisp.org>
53657
53658         * lib/execute.c (environ): Declare if needed.
53659         * lib/pipe.c (environ): Likewise.
53660         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53661
53662 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53663
53664         * modules/argp: Depend on vsnprintf
53665
53666 2005-01-10  Jim Meyering  <jim@meyering.net>
53667
53668         * modules/closeout (Depends-on): Add atexit.
53669
53670 2005-01-06  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53673
53674 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53677         definitions to be after all include files, to avoid collisions.
53678         Problem reported by Bob Proulx.
53679
53680 2005-01-04  Jim Meyering  <jim@meyering.net>
53681
53682         Changes imported from coreutils.
53683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53684         as the mkstemp template, use a temporary directory and an
53685         8.3-friendly template to avoid trouble on systems like DJGPP.
53686         Reported by Juan M. Guerrero via Stepan Kasal.
53687         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53688         close. Remove the temporary directory right away, rather than waiting
53689         for configure's at-exit trap code to do it.
53690         Suggestion from Stepan Kasal.
53691
53692 2005-01-01  Simon Josefsson  <jas@extundo.com>
53693
53694         * gnulib-tool: Print #include directives when --import'ing.
53695
53696 2004-12-28  Simon Josefsson  <jas@extundo.com>
53697
53698         * tests/test-base64.c: Include required header files.  Remove
53699         unused variables.
53700
53701 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53702
53703         * modules/error (Depends-on): Remove gettext.
53704
53705 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53706
53707         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53708         not needed.  This removes a dependency on the gettext module.
53709         [defined _LIBC]: Do not include <libintl.h>; not needed.
53710
53711 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53714         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53715
53716 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53717
53718         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53719         HAVE_DECL_STRTOLD.
53720
53721 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         * modules/getdate (Depends-on): Remove alloca-opt.
53724
53725 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53726
53727         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53728
53729 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         * lib/argp-parse.c: Include <stddef.h>.
53732         (alignof, alignto): New macros.
53733         (parser_init): Don't assume that void * is aligned sufficiently
53734         for struct option.
53735
53736         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53737         need to extend the stack.
53738         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53739         large.
53740
53741 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53742
53743         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53744
53745 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53746
53747         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53748         (2004-10-24) change.  Apparently this was a false alarm.
53749
53750         * modules/getdate: Depend on alloca-opt, not alloca.
53751
53752 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53755         Remove now-obsolete comment about AIX.
53756         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53757         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53758         (YYMAXDEPTH): New macro.
53759
53760 2004-12-18  Simon Josefsson  <jas@extundo.com>
53761
53762         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53763
53764 2004-12-18  Bruno Haible  <bruno@clisp.org>
53765
53766         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53767
53768 2004-12-18  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/fatal-signal.c (fatal_signals): Make non-const.
53771         (init_fatal_signals): New function.
53772         (uninstall_handlers, install_handlers): Ignore signals that were set to
53773         SIG_IGN.
53774         (at_fatal_signal): Call init_fatal_signals.
53775         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53776         SIG_IGN.
53777         Reported by Paul Eggert.
53778
53779 2004-12-18  Bruno Haible  <bruno@clisp.org>
53780
53781         * doc/alloca.texi: New file.
53782         * doc/alloca-opt.texi: New file.
53783
53784 2004-12-17  Jim Meyering  <jim@meyering.net>
53785
53786         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53787         Otherwise, install-sh could exit with improper exit status when
53788         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53789
53790 2004-12-16  Simon Josefsson  <jas@extundo.com>
53791
53792         * tests/test-base64.c: Add license.
53793
53794 2004-12-15  Stepan Kasal  <address@hidden>
53795
53796         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53797
53798 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53799
53800         * modules/getcwd (Files): Add m4/d-ino.m4.
53801         Suggested by Mark D. Baushke.
53802
53803 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * lib/getdate.y (textint): New member "negative".
53806         (time_zone_hhmm): New function.
53807         Expect 14 shift-reduce conflicts, not 13.
53808         (o_colon_minutes): New rule.
53809         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53810         (yylex): Set the "negative" member of signed numbers.
53811
53812 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * doc/getdate.texi (Time of day items, Time zone items):
53815         Describe new formats +00:00, UTC+00:00.
53816
53817 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53818
53819         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53820         spurious "-l"s.  Problem reported by Stepan Kasal.
53821
53822 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53823
53824         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53825         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53826
53827 2004-12-04  Simon Josefsson  <jas@extundo.com>
53828
53829         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53830         Vandoorselaere <yoann@prelude-ids.org>.
53831
53832 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53833
53834         Changes imported from coreutils.
53835         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53836         exist.
53837         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53838
53839 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53840
53841         Changes imported from coreutils.
53842         * lib/hard-locale.c: Assume <locale.h> exists.
53843         Include "strdup.h".
53844         (GLIBC_VERSION): New macro.
53845         (hard_locale): Assume setlocale exists.
53846         Rewrite to avoid #ifdef.
53847         Use strdup rather than malloc + strcpy.
53848         * lib/human.c: Assume <locale.h> exists.
53849         (human_readable): Assume localeconv exists.
53850
53851 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * modules/hard-locale (Depends-on): Add strdup.
53854
53855 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53856
53857         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53858         convert T2, not T.  (Imported from libc.)
53859
53860 2004-11-30  Simon Josefsson  <jas@extundo.com>
53861
53862         * modules/restrict (License): Change to LGPL.
53863
53864 2004-11-30  Simon Josefsson  <jas@extundo.com>
53865
53866         * m4/restrict.m4: Add copyright and copying conditions.
53867
53868 2004-11-30  Simon Josefsson  <jas@extundo.com>
53869
53870         * m4/base64.m4: New file.
53871
53872 2004-11-30  Simon Josefsson  <jas@extundo.com>
53873
53874         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53875         base64.
53876
53877         * tests/test-base64.c: New file.
53878
53879         * modules/base64: New file.
53880
53881 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53882
53883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53884         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53885
53886         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53887
53888 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53889
53890         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53891         (__getcwd.c): Don't restore errno; glibc doesn't.
53892         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53893         first, falling back to our code only if its results look suspicious.
53894         Ensure that the resulting buffer is only as large as necessary.
53895
53896         * lib/readutmp.c: Include readutmp.h first.
53897         Include <errno.h>, since readutmp.h no longer does that.
53898         * lib/readutmp.h: Don't include <errno.h>,
53899         <sys/param.h>, <time.h>; not needed to establish interface.
53900         (errno): Remove decl.
53901         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53902         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53903         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53904
53905 2004-11-28  Simon Josefsson  <jas@extundo.com>
53906
53907         * lib/base64.h, base64.c: New file.
53908
53909 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53910
53911         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53912
53913 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53914
53915         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53916         (Depends-on): Remove pathmax, same.  Add mempcpy.
53917         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53918         (Makefile.am): Append getcwd.h to lib_SOURCES.
53919         (Include): Add getcwd.h.
53920         (Maintainer): Change from Jim Meyering to "all, glibc",
53921         since getdate now uses intended-for-glibc code.
53922         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53923         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53924
53925 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53926
53927         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53928         HP's ANSI C compiler.
53929         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53930         Declaring int functions causes warnings on some modern systems and
53931         shouldn't be needed to compile on ancient ones.
53932         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53933         defined.
53934
53935         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53936         with the following changes.
53937         (__set_errno): Parenthesize properly.
53938         Include <stdbool.h>.
53939         (MIN, MAX, MATCHING_INO): New macros.
53940         (__getcwd): Define with prototype, not K&R form.
53941         Use heuristics to allocate default buffer on stack if possible.
53942         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53943         behavior, and to avoid the PATH_MAX limit when computing
53944         ../../../../...
53945         Use MATCHING_INO to compare inode number to file.
53946         Check for arithmetic overflow in size calculations.
53947         Fix bug in reallocation of dot array that caused getcwd to fail
53948         on directories nested deeper than 75.
53949         Be more careful about saving errno on error.
53950         Do not use realloc; use only free+malloc, as this is a bit
53951         more flexible and avoids a needless copy operation.
53952         Do not inspect st_dev and st_ino for symbolic links; POSIX
53953         doesn't specify the latter.
53954         Check for closedir errors.
53955         Avoid needless casts.
53956         Use "#ifdef weak_alias" around weak_alias, to be like other
53957         glibc code.
53958         The following changes to getcwd.c have effect only when used in
53959         gnulib; they have no effect inside glibc proper.
53960         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53961         as alloca isn't used.
53962         (alloca, __alloca): Likewise.
53963         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53964         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53965         unconditionally, as gnulib assumes C89 or better.
53966         Do not include <sys/param.h>.
53967         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53968         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53969         better.
53970         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53971         Include <dirent.h> in a way that is compatible with modern Autoconf.
53972         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53973         New macros, if not already defined.
53974         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53975         Use "_LIBC", not "defined _LIBC", for consistency.
53976         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53977         a mempcpy module.
53978         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53979         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53980         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53981         credit only to Jim Meyering and adjust the copyright dates.
53982         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53983         <stdlib.h>, <unistd.h>, "pathmax.h".
53984         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53985         (INITIAL_BUFFER_SIZE): Remove.
53986         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53987
53988 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53991         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53992         Use the _ONCE methods, for efficiency.
53993         Check for fcntl.h.  In test program, include <errno.h>
53994         and <fcntl.h> if available.  Remove old K&R cruft from
53995         test program.  Check for common errors in GNU/Linux,
53996         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53997         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53999         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54000         name accordingly.
54001         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54002         accommodate new getcwd.c.
54003         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54004         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54005         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54006         that's all we need now.
54007
54008 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54009
54010         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54011         argp-parse.c depends on getopt internals, that means we should
54012         always use our getopt, to be on the safe side.
54013         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54014         order not to spoil the result of an eventual previous invocation
54015         of gl_GETOPT_SUBSTITUTE.
54016
54017 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54018
54019         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54020         redefinition warnings. To avoid them, include the defines
54021         in `#if !defined __need_getopt ... #endif'. The only place
54022         where __getopt_argv_const is used is in definitions
54023         of getopt_long and getopt_long_only below, which are as well
54024         protected by `#ifndef __need_getopt'.
54025         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54026         __need_getopt after including <stdio.h> and <unistd.h> These
54027         headers might have defined it.
54028
54029 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54030
54031         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54032
54033 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54036         (futimens): New function, which uses futimes if available.
54037         (futimens, utimens): Support timespec==NULL, with same semantics
54038         as utime and utimens.
54039         * lib/utimens.h (futimens): New decl.
54040
54041 2004-11-23  Jim Meyering  <jim@meyering.net>
54042
54043         * lib/getopt_.h: Remove trailing blanks.
54044
54045 2004-11-23  Jim Meyering  <jim@meyering.net>
54046
54047         * lib/__fpending.c: Add comment.
54048
54049 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         * modules/canonicalize (Depends-on): Add xreadlink.
54052         Problem reported by James Youngman.
54053
54054 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54057         New macros.
54058         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54059         optopt): Use them instead of invoking ## directly; otherwise, the
54060         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54061
54062 2004-11-19  Bruno Haible  <bruno@clisp.org>
54063
54064         * lib/strtok_r.c: Move comments from here...
54065         * lib/strtok_r.h: ... to here.
54066
54067 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54070         implementations that mishandle size_t overflow.
54071
54072 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54075         might fail.  Problem reported by Yoann Vandoorselaere.
54076         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54077         implementations that mishandle size_t overflow.
54078
54079 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         * modules/canon-host (Depends-on): Add strdup.
54082
54083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54084
54085         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54086
54087 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54088
54089         * lib/canon-host.c: Include "strdup.h".
54090         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54091         Use strdup instead of malloc/strcpy to duplicate strings.
54092
54093         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54094         (human_space_before_unit): New constant.
54095         * lib/human.c (human_readable): Support it.
54096
54097         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54098         (xgetcwd): Set errno correctly when failing.
54099         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54100         the failure is actually due to a PATH_MAX problem.
54101
54102         Further getopt changes to make it more likely that glibc will
54103         buy the changes back.
54104         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54105         (getopt): Use it, so to preserve glibc semantic
54106         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54107         when compiling for libc.
54108         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54109         (getopt_long, getopt_long_only): Use it.
54110
54111         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54112         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54113         (getopt): Argv is now char * const *, as per standard.
54114         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54115         not char *__getopt_argv_const *.
54116         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54117         _getopt_long_only_r): Likewise.
54118         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54119         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54120         _getopt_long_r, _getopt_long_only_r): Likewise.
54121         * lib/getopt_.h (__getopt_argv_const): Remove.
54122         (getopt): Argv is now char * const *, as per standard.
54123
54124         * lib/getdate.y (tORDINAL): New token.
54125         (day, relunit): Allow it for relative times.
54126         (relative_time_table): Use tORDINAL for ordinals.
54127
54128 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54129
54130         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54131         Document that "second" isn't allowed as an ordinal number.
54132
54133 2004-11-16  Jim Meyering  <jim@meyering.net>
54134
54135         * modules/closeout (Depends-on): Add fpending.
54136
54137 2004-11-15  Jim Meyering  <jim@meyering.net>
54138
54139         * lib/closeout.c: Include "__fpending.h" once again.
54140         Include <stdbool.h>.
54141         (close_stdout): Don't fail just because stdout was closed initially,
54142         since some programs don't write to stdout in the normal course of
54143         operation (other than --version and --help), and we don't want this
54144         function to make e.g. `touch file >&-' fail.
54145         But do fail if it was closed and someone has tried to write to it.
54146         E.g., `printf foo >&-' must fail.
54147
54148 2004-11-13  Jim Meyering  <jim@meyering.net>
54149
54150         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54151
54152 2004-11-12  Simon Josefsson  <jas@extundo.com>
54153
54154         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54155         small doc fix is still pending.
54156
54157 2004-11-11  Simon Josefsson  <jas@extundo.com>
54158
54159         * modules/strtok_r: New file.
54160
54161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54162         strtok_r.
54163
54164 2004-11-11  Simon Josefsson  <jas@extundo.com>
54165
54166         * m4/strtok_r.m4: New file.
54167
54168         * m4/getopt.m4: Replace opterr.
54169
54170 2004-11-11  Simon Josefsson  <jas@extundo.com>
54171
54172         * lib/strtok_r.h, strtok_r.c: New file.
54173
54174 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54177         of replacing opterr, getopt, etc.  This should handle the
54178         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54179
54180 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54183         we can stop lying to compilers about the constness of argv when we
54184         are compiled outside glibc.
54185         (getopt, getopt_long, getopt_long_only): Use it.
54186         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54187         _getopt_internal, getopt): Likewise.
54188         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54189         _getopt_long_only_r): Likewise.
54190         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54191         _getopt_long_r, _getopt_long_only_r): Likewise.
54192
54193         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54194         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54195         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54196         the other external symbols.
54197         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54198         declaration, since the above renaming now works around collisions.
54199
54200 2004-11-11  Jim Meyering  <jim@meyering.net>
54201
54202         * lib/linebreak.c: Remove trailing blanks.
54203         * lib/alloca_.h: Likewise.
54204         * lib/acosl.c: Likewise.
54205         * lib/euidaccess.c: Likewise.
54206         * lib/allocsa.h: Likewise.
54207
54208 2004-11-10  Simon Josefsson  <jas@extundo.com>
54209
54210         * m4/getaddrinfo.m4: New file.
54211
54212 2004-11-10  Simon Josefsson  <jas@extundo.com>
54213
54214         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54215
54216 2004-11-10  Simon Josefsson  <jas@extundo.com>
54217
54218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54219         getaddrinfo.
54220
54221         * modules/getaddrinfo: New file.
54222
54223 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54224
54225         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54226
54227 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54228
54229         * lib/mktime.c (SHR): New macro, which is a portable
54230         substitute for >> that should work even on Crays.
54231         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54232         Problem reported by Mark D. Baushke in
54233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54234         * lib/getdate.y (SHR): Likewise.
54235         (tm_diff): Use it.
54236         * lib/strftime.c (SHR): Likewise.
54237         (tm_diff): Use it.
54238         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54239         quote_these_too, so that right shifts are well defined.  All uses
54240         changed.
54241
54242 2004-11-10  Jim Meyering  <jim@meyering.net>
54243
54244         Ensure that no close failure goes unreported.
54245         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54246         return early when it seems there's nothing to flush.
54247         Don't include __fpending.h.
54248
54249 2004-11-10  Jim Meyering  <jim@meyering.net>
54250
54251         * modules/closeout (Depends-on): Remove fpending.
54252
54253 2004-11-10  Jim Meyering  <jim@meyering.net>
54254
54255         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54256
54257 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54260         gl_FUNC_STRFTIME.
54261         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54262         and AC_REQUIRE when possible, to avoid duplicate checks.
54263         Check for <wchar.h>.
54264
54265 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54266
54267         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54268
54269 2004-11-09  Bruno Haible  <bruno@clisp.org>
54270
54271         * m4/sockpfaf.m4: New file.
54272
54273 2004-11-05  Bruno Haible  <bruno@clisp.org>
54274
54275         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54276         Reported by Mark D. Baushke <mdb@cvshome.org>.
54277
54278 2004-11-04  Bruno Haible  <bruno@clisp.org>
54279
54280         2004-09-11  Bruno Haible  <bruno@clisp.org>
54281                 * allocsa.valgrind: New file.
54282         2004-02-06  Bruno Haible  <bruno@clisp.org>
54283                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54284                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54285                 Reported by Christopher Seip <chris.seip@hp.com>.
54286
54287 2004-11-04  Bruno Haible  <bruno@clisp.org>
54288
54289         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54290         (Makefile.am): Distribute it.
54291
54292 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54293
54294         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54295         with errno == ERANGE if the buffer is too small.
54296         Problem reported by Mark D. Baushke.
54297
54298 2004-11-03  Albert Chin  <china@thewrittenword.com>
54299             Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54302         equivalent, substitute $ac_type for equivalent type rather than
54303         blindly using uint32_t *always* which won't work if uint32_t is not
54304         available.  Define _UINT32_T to work around typedef of uint32_t if
54305         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54306         2.5.1.
54307
54308 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54309
54310         * m4/jm-macros.m4: Sync from coreutils.
54311         (gl_MACROS): Check for mbrlen, for pathchk.
54312         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54313
54314 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         * lib/xreadlink.c (MAXSIZE): New macro.
54317         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54318         size does not exceed MAXSIZE.  Avoid cast.
54319         As suggested by Mark D. Baushke in
54320         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54321         if readlink fails with buffer size just under MAXSIZE, try again
54322         with MAXSIZE.
54323
54324 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54325
54326         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54327
54328 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54329         and  Paul Eggert  <eggert@cs.ucla.edu>
54330
54331         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54332         (get_date): Overparenthesize to avoid GCC warning.
54333
54334 2004-11-02  Bruno Haible  <bruno@clisp.org>
54335
54336         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54337         returns void.
54338
54339 2004-11-02  Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54342         function returns void.
54343
54344 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54347         fflush_unlocked, flockfile, funlockfile, funlockfile,
54348         fputs_unlocked, putc_unlocked.
54349
54350 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54353         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54354         already declared.
54355
54356 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         * modules/getdate (Files): Add doc/getdate.texi.
54359         (Depends-on): Add setenv, xalloc.
54360
54361 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * lib/getdate.y: Add support for TZ="foo" within a date string.
54364         Fix some bugs near time_t boundaries.  Reject dates with
54365         out-of-range components, e.g., "Sept 31".
54366         Include <stdlib.h>, "setenv.h", "xalloc.h".
54367         (ISDIGIT_LOCALE): Remove; unused.
54368         Note that the TZ and time functions used here are not reentrant.
54369         (mktime_ok, get_tz): New functions.
54370         (TZBUFSIZE): New constant.
54371         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54372         This requires that we sometimes generate our own TZ="XXX..." setting.
54373
54374 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54375
54376         * doc/getdate.texi: New file, from coreutils with modifications for
54377         the new TZ parsing.
54378
54379 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54380
54381         * lib/mktime.c (not_equal_tm): Remove redundant check.
54382
54383 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54384
54385         * modules/regex (lib_SOURCES): Add regex.c.
54386         Reported by James Youngman in
54387         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54388
54389 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54390
54391         * lib/getdate.y: Use Bison 1.875 features, and some minor
54392         code cleanups.  This change does not affect semantics.
54393         Don't include <stdlib.h>; no longer needed.
54394         Don't include unlocked-io.h; only the "#if TEST" code uses
54395         stdio, and performance isn't crucial there.
54396         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54397         Bison 1.875 features as described below.
54398         All uses of "PC." replaced by "pc->".
54399         (YYSTYPE): Add a forward declaration.
54400         (yylex, yyerror): Use full prototypes in forward decls.
54401         Use "%pure-parser" rather than obsolescent "%pure_parser".
54402         Use %parse-param and %lex-param instead of obsolescent
54403         YYPARSE_PARAM and YYLEX_PARAM.
54404         (meridian_table, month_and_day_table, time_units_table,
54405         relative_time_table, time_zone_table, military_table,
54406         lookup_zone, lookup_word, get_date):
54407         Use NULL instead of 0 where appropriate.
54408         (to_hour): Avoid abort (), to avoid a dependency on
54409         stdlib.h.
54410         (yyerror, yylex): Now accepts parser_control * arg.
54411         (main) [TEST]: Use '\0' rather than 0 for char.
54412
54413 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54414
54415         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54416
54417 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54418
54419         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54420         It's now the caller's responsibility to handle the case where
54421         !HAVE_GETPAGESIZE && !defined getpagesize.
54422
54423         * lib/mktime.c (leapyear): Arg is long int, not int.
54424
54425 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54426
54427         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54428
54429 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54432         missing.  Problem reported by James Youngman.
54433
54434 2004-10-16  Simon Josefsson  <jas@extundo.com>
54435
54436         * gnulib-tool: Fix comments.  Fix parse problem.
54437         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54438
54439 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54442         implementation of getopt_long.  Problem reported by Alexander Taler in:
54443         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54444
54445 2004-10-15  Bruno Haible  <bruno@clisp.org>
54446
54447         * gnulib-tool: Untabify. Initialize supplied_libname.
54448         (func_usage): More homogenous output.
54449         (func_modules_transitive_closure, func_modules_to_filelist,
54450         func_emit_lib_Makefile_am): New functions.
54451         (func_import): New function, extracted from big case statement. Use
54452         func_get_license, func_modules_transitive_closure,
54453         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54454         opt_lgpl. Don't use test -a, as it's not portable.
54455         (func_create_testdir): Use func_modules_transitive_closure,
54456         func_modules_to_filelist, func_emit_lib_Makefile_am.
54457
54458 2004-10-15  Bruno Haible  <bruno@clisp.org>
54459
54460         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54461
54462 2004-10-15  Bruno Haible  <bruno@clisp.org>
54463
54464         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54465         the portions belonging to each module.
54466         Suggested by Derek Robert Price <derek@ximbiot.com>.
54467
54468 2004-10-12  Simon Josefsson  <jas@extundo.com>
54469
54470         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54471         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54472         to real functions.
54473
54474 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54475
54476         * modules/vsnprintf: New file.
54477
54478 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54479
54480         * m4/vsnprintf.m4: New file.
54481
54482 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54483
54484         * lib/vsnprintf.h: New file.
54485         * lib/vsnprintf.c: New file.
54486
54487 2004-10-11  Bruno Haible  <bruno@clisp.org>
54488
54489         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54490         vsnprintf.
54491
54492 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54493
54494         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54495
54496 2004-10-07  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54499         fits into the provided buffer.
54500
54501 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         * lib/diacrit.c, diacrit.h: Add GPL notice.
54504
54505         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54506         notice.
54507         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54508         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54509         This avoids a potential constant-folding bug.
54510
54511 2004-10-05  Bruno Haible  <bruno@clisp.org>
54512
54513         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54514         for the declaration of strsep.
54515
54516 2004-10-05  Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54519
54520 2004-10-04  Simon Josefsson  <jas@extundo.com>
54521
54522         * modules/memmem: New file.
54523         * tests/test-memmem.c: New file.
54524         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54525
54526 2004-10-04  Simon Josefsson  <jas@extundo.com>
54527
54528         * m4/memmem.m4: New file.
54529
54530 2004-10-04  Simon Josefsson  <jas@extundo.com>
54531
54532         * lib/memmem.h: New file.
54533         * lib/memmem.c: New file, taken from glibc.
54534
54535 2004-10-04  Simon Josefsson  <jas@extundo.com>
54536
54537         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54538         '#ifdef USE_UNLOCKED_IO'.
54539
54540 2004-10-04  Simon Josefsson  <jas@extundo.com>
54541
54542         * config/srclist.txt: Add memmem from glibc.
54543
54544 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54545
54546         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54547
54548         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54549         modules/exclude, modules/getdate, modules/getline,
54550         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54551         modules/getusershell, modules/linebuffer, modules/md5,
54552         modules/mountlist, modules/posixtm, modules/readtokens,
54553         modules/readutmp, modules/regex, modules/sha1,
54554         modules/version-etc, modules/yesno:
54555         Remove dependency on unlocked-io.
54556
54557 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54560
54561         * m4/unlocked-io.m4: Add copyright notice.
54562         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54563
54564 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54567         * lib/xmalloc.c (xmemdup): Likewise.
54568         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54569         XFREE): Remove these long-obsolescent macros.
54570         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54571         * lib/xstrdup.c: Remove.
54572
54573         * lib/regex.c (re_comp): Cast gettext return value to char *,
54574         Problem reported by Martin Neitzel via Mark D. Baushke.
54575
54576 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54579         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54580         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54581         regex.c, sha1.c, version-etc.c, yesno.c:
54582         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54583         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54584         the includer's responsibility.
54585
54586         Sync from coreutils.
54587
54588         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54589         points to the start of a string, as the C Standard says the
54590         resulting behavior is undefined.
54591
54592         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54593         simple -> simple_backups, numbered_existing ->
54594         numbered_existing_backups, numbered -> numbered_backups
54595         to avoid shadowing problems.  All uses changed.
54596         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54597         * lib/backupfile.c (check_extension, numbered_backup):
54598         Rename locals to avoid shadowing 'basename'.
54599         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54600         once.
54601
54602         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54603         * lib/.cvsignore: Add getopt.h.
54604
54605 2004-10-04  Bruno Haible  <bruno@clisp.org>
54606
54607         * modules/README: New file.
54608         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54609         not a module.
54610
54611 2004-10-02  Jim Meyering  <jim@meyering.net>
54612
54613         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54614
54615 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54616
54617         * modules/strsep: New file.
54618
54619 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54620
54621         * m4/strsep.m4: New file.
54622
54623 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54624
54625         * lib/strsep.h: New file.
54626         * lib/strsep.c: New file.
54627
54628 2004-10-01  Simon Josefsson  <jas@extundo.com>
54629
54630         * lib/snprintf.c (snprintf): Handle size==0.
54631
54632 2004-10-01  Simon Josefsson  <jas@extundo.com>
54633             Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54636         (snprintf): Declare 'args'.
54637
54638 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * lib/snprintf.c: Remove comments as to why each header is needed.
54641
54642 2004-10-01  Bruno Haible  <bruno@clisp.org>
54643
54644         * MODULES.html.sh: Add strsep.
54645
54646 2004-09-30  Simon Josefsson  <jas@extundo.com>
54647
54648         * modules/snprintf: New file.
54649
54650 2004-09-30  Simon Josefsson  <jas@extundo.com>
54651
54652         * m4/snprintf.m4: New file.
54653
54654 2004-09-30  Simon Josefsson  <jas@extundo.com>
54655
54656         * lib/snprintf.h, lib/snprintf.c: New files.
54657
54658 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54659
54660         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54661         (hol_entry_help): Never translate an empty string.
54662         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54663         * lib/argp.h (OPTION_NO_TRANS): New option.
54664
54665 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         * modules/argp (Maintainer): Replace Simon Josefsson
54668         by Sergey Poznyakoff.
54669
54670 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54671
54672         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54673         changes merged back into glibc.
54674
54675 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54676
54677         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54678
54679 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54680
54681         * lib/xvasprintf.c: Include xalloc.h.
54682         (xvasprintf): Use xalloc_die, not xmalloc_die.
54683
54684 2004-09-29  Bruno Haible  <bruno@clisp.org>
54685
54686         * modules/alloca-opt: New file, derived from modules/alloca.
54687         * modules/allocsa: Depend on alloca-opt instead of alloca.
54688         * modules/setenv: Likewise.
54689         * modules/vasnprintf: Likewise.
54690         * MODULES.html.sh: Add alloca-opt.
54691
54692 2004-09-28  Simon Josefsson  <jas@extundo.com>
54693
54694         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54695         LGPL, and to replace license template from GPL to LGPL.
54696
54697 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54698
54699         * modules/dummy: Change license to LGPL.
54700
54701 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54704
54705 2004-09-24  Simon Josefsson  <jas@extundo.com>
54706
54707         * modules/minmax (License): Change from GPL to LGPL.
54708
54709 2004-09-23  Simon Josefsson  <jas@extundo.com>
54710
54711         * gnulib-tool (--import): Typo.
54712
54713 2004-09-23  Simon Josefsson  <jas@extundo.com>
54714
54715         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54716
54717 2004-09-22  Bruno Haible  <bruno@clisp.org>
54718
54719         * modules/*: Add 'License' field.
54720         * gnulib-tool: Accept --extract-license option.
54721         (func_get_license): New function.
54722
54723 2004-09-21  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54726         Reported by Simon Josefsson.
54727
54728 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54729
54730         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54731         gl_AC_TYPE_LONG_LONG.
54732
54733 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54736
54737 2004-09-18  Simon Josefsson  <jas@extundo.com>
54738         and  Paul Eggert  <eggert@cs.ucla.edu>
54739
54740         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54741         calls with autoreconf.  Define GL_LIB.
54742
54743 2004-09-14  Karl Berry  <karl@gnu.org>
54744
54745         * config/srclist.txt: unsync setenv.c, sigh.
54746
54747 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54748
54749         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54750         Problem reported by Bruno Haible in:
54751         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54752
54753 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54754
54755         * config/srclist.txt: Comment out argp-pvh.c.
54756
54757 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54758
54759         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54760         in case some system header has #define'd it.  Problem reported by
54761         Soeren D. Schulze in
54762         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54763
54764 2004-09-09  Karl Berry  <karl@gnu.org>
54765
54766         * regex.[ch]: delete from the root.  These were supposed to be
54767                 synced with emacs cvs, but this has not happened for about
54768                 a year, and anyway nothing else uses emacs regex.[ch].
54769                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54770                 lib/regex[.ch] is untouched.
54771
54772 2004-09-09  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54775
54776 2004-09-09  Bruno Haible  <bruno@clisp.org>
54777
54778         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54779         modifications.
54780         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54781
54782 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54783
54784         * modules/xvasprintf: New file.
54785         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54786
54787 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54788
54789         * lib/xvasprintf.h: New file.
54790         * lib/xvasprintf.c: New file.
54791         * lib/xasprintf.c: New file.
54792
54793 2004-09-08  Bruno Haible  <bruno@clisp.org>
54794
54795         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54796
54797 2004-09-08  Bruno Haible  <bruno@clisp.org>
54798
54799         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54800         length is > INT_MAX.
54801         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54802         more.
54803
54804 2004-09-08  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/stdint_.h: New file, taken from GNU clisp.
54807
54808 2004-09-08  Bruno Haible  <bruno@clisp.org>
54809             Oskar Liljeblad  <oskar@osk.mine.nu>
54810
54811         * modules/stdint: New file.
54812         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54813
54814 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54815
54816         Import from coreutils.
54817         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54818         strings on unbounded length.  alloca's performance benefits aren't
54819         that important here.
54820         (V_STRDUP): Remove.
54821         (parse_with_separator): New function, with most of the internals
54822         of the old parse_user_spec.  Allow user to omit both user and group,
54823         for compatibility with FreeBSD.
54824         Clone only the user name, not the entire spec.
54825         Do not set *uid, *gid unless entirely successful.
54826         Avoid memory leak in some failing cases.
54827         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54828         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54829         (parse_user_spec): Rewrite to use parse_with_separator.
54830
54831 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54832
54833         * modules/userspec: Don't depend on alloca.
54834
54835 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54836
54837         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54838
54839 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54842         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54843         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54844
54845 2004-08-16  Simon Josefsson  <jas@extundo.com>
54846
54847         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54848         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54849         Add --dry-run for --import.
54850         Let user provided command line parameters override configure.ac
54851         settings.
54852
54853 2004-08-12  Simon Josefsson  <jas@extundo.com>
54854
54855         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54856         as discussed with Paul Eggert in threads rooted at
54857         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54858         and
54859         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54860         Before, the test was empty, and relied on ELIDE_CODE in source
54861         code.)
54862         (gl_PREREQ_GETOPT): New macro.
54863         (gl_GETOPT): Use them.
54864
54865 2004-08-12  Simon Josefsson  <jas@extundo.com>
54866
54867         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54868         * lib/getopt_.h: Renamed from getopt.h.
54869
54870 2004-08-12  Simon Josefsson  <jas@extundo.com>
54871
54872         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54873         Change default library name from libfoo to libgnu.
54874         Now, if you have a configure.ac that says:
54875                 gl_SOURCE_BASE(gl)
54876                 gl_M4_BASE(gl/m4)
54877                 gl_MODULES(error getopt etcetera)
54878                 gl_INIT
54879         you can import all you need by running:
54880                 ../gnulib/gnulib-tool --import
54881
54882         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54883         (Makefile.am): Rewrite, use logic from argz.
54884         (Include): Use <getopt.h> instead of "getopt.h".
54885
54886 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         * modules/argp (Files): Add m4/unlocked-io.m4.
54889         (Depends-on): Add extensions.
54890
54891 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54892
54893         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54894         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54895         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54896         Check for program_invocation_name, program_invocation_short_name,
54897         flockfile, funlockfile, features.h, _getopt_long_only_r.
54898
54899 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54900
54901         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54902         its complicated substitute.
54903         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54904         and program_invocation_name.
54905         (__argp_basename) [!_LIBC]: Remove; the only use was
54906         replaced by its body.
54907         (__argp_short_program_name): Change condition from
54908         !defined __argp_short_program_name to
54909         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54910         to match argp-namefrob.h.
54911         (__argp_failure): Don't assume strerror_r returns char *.
54912         * lib/argp-parse.c (N_): Define unconditionally.
54913         (argp_default_options): Fill out initializers with 0 to avoid
54914         gcc warnings.
54915
54916 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54919         getopt1.c.
54920
54921 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         Merge from coreutils.
54924
54925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54926
54927         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54928         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54929
54930 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54931
54932         Merge from coreutils.
54933
54934         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54935         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54936         for Reliant Unix 5.43.
54937
54938         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54939         (union fooround): Use uintmax_t, not long int.
54940         The rest is a merge from libc:
54941         [defined _LIBC]: Include <shlib-compat.h>.
54942         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54943
54944         * lib/settime.c (settime): Recode to avoid warning with
54945         Sun Forte C 6U2.
54946
54947         * lib/strverscmp.c: Convert to UTF-8.
54948
54949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54950
54951         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54952         m4/uintmax_t.m4.
54953
54954 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54955
54956         * modules/xalloc-die: New file.
54957         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54958
54959         * modules/md5 (Files): Add m4/uint32_t.m4.
54960         * modules/sha1: Renamed from modules/sha.
54961         (Files):
54962         Rename lib/sha.h to lib/sha1.h.
54963         Rename lib/sha.c to lib/sha1.c.
54964         Rename m4/sha.m4 to m4/sha1.m4.
54965         (lib_SOURCES): Likewise.
54966         (configure.ac): Rename gl_SHA to gl_SHA1.
54967         (Include): sha.h -> sha1.h.
54968
54969 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54970
54971         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54972         * m4/sha1.m4: Renamed from sha.m4.
54973         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54974
54975 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * lib/obstack.h (obstack_empty_p):
54978         Don't assume that chunk->contents is suitably aligned.
54979         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54980         Likewise. Problem reported by Benno in
54981         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54982
54983         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54984         readable.  This could be improved further but it'd take some work.
54985
54986 2004-08-08  Simon Josefsson  <jas@extundo.com>
54987
54988         * modules/xgethostname (Depends-on): Remove exit and error (not
54989         used).
54990
54991         * modules/getpass-gnu: Add getpass.h.
54992         (Depends-on): Add stdbool.
54993         * modules/getpass: Add getpass.h.
54994
54995 2004-08-08  Simon Josefsson  <jas@extundo.com>
54996
54997         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54998         Check getpass declaration.
54999
55000 2004-08-08  Simon Josefsson  <jas@extundo.com>
55001
55002         * lib/xgethostname.c: Don't include error.h (not used).
55003
55004         * lib/getpass.h: Add.
55005         * lib/getpass.c: Include getpass.h first.
55006
55007 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         * lib/xalloc-die.c: New file.
55010         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55011         All uses removed.
55012         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55013         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55014         xalloc-die.c.
55015         (_, N_, xalloc_die): Move to xalloc-die.c.
55016         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55017         so that we needn't mess with xalloc_msg_memory_exhausted.
55018
55019         * lib/sha1.h: Renamed from sha.h.
55020         (SHA1_H): Renamed from _SHA_H.
55021         (sha1_ctx): Renamed from sha_ctx.
55022         (sha1_init_ctx): Renamed from sha_init_ctx.
55023         (sha1_process_block): Renamed from sha_process_block.
55024         (sha1_process_bytes): Renamed from sha_process_bytes.
55025         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55026         (sha1_read_ctx): Renamed from sha_read_ctx.
55027         (sha1_stream): Renamed from sha_stream.
55028         (sha1_buffer): Renamed from sha_buffer.
55029         * lib/sha1.c: Likewise; renamed from sha.c.
55030         Do not include <sys/types.h>.
55031         Include <stddef.h> rather than <stdlib.h>.
55032
55033 2004-08-08  Bruno Haible  <bruno@clisp.org>
55034
55035         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55036         FILESYSTEM_PREFIX_LEN.
55037         * lib/progreloc.c: Likewise.
55038         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55039
55040 2004-08-06  Simon Josefsson  <jas@extundo.com>
55041
55042         * modules/progname (Depends-on): Don't depend on stdbool.
55043
55044 2004-08-06  Simon Josefsson  <jas@extundo.com>
55045
55046         * modules/getsubopt: New file.
55047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55048         getsubopt.
55049
55050 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         More merge from coreutils.
55053
55054         * m4/utimens.m4, m4/utimecmp.m4: New files.
55055         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55056         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55057         prereq.m4, sha.m4: Import changes from coreutils.
55058
55059 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55060
55061         More merge from coreutils.
55062         * modules/raise, modules/readtokens0, modules/utimens:
55063         * modules/utimecmp, module/xnanosleep: New files.
55064         * modules/strftime: Add lib/strftime.h.
55065         Change include from <time.h> to "strftime.h".
55066         * modules/yesno: Add lib/yesno.h.
55067         * modules/backupfile: Remove lib/addext.c.
55068         * modules/euidaccess: Add stat-macros.h.
55069         * modules/canonicalize, modules/euidaccess,
55070         modules/filemode, modules/lchown, modules/makepath,
55071         modules/rmdir, modules/stat: Likewise.
55072
55073 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         Merge from tar.
55076         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55077         SIZE_MAX is a valid preprocessor constant.
55078         (__argp_basename): Change from "#ifndef _LIBC"
55079         to "#ifndef __argp_short_program_name", so that
55080         we don't compile these functions for tar.
55081
55082         More merges from coreutils.
55083         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55084         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55085         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55086         * lib/addext.c: Remove; no longer needed.
55087         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55088         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55089         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55090         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55091         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55092         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55093         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55094         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55095         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55096         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55097         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55098         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55099         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55100         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55101         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55102         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55103         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55104         Import changes from coreutils.
55105
55106 2004-08-05  Simon Josefsson  <jas@extundo.com>
55107
55108         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55109
55110 2004-08-05  Simon Josefsson  <jas@extundo.com>
55111
55112         * m4/getsubopt.m4: New file.
55113
55114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         Merge from coreutils.
55117
55118         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55119         * m4/getcwd-path-max.m4: New files.
55120
55121         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55122         FILESYSTEM_PREFIX_LEN ->
55123         FILE_SYSTEM_PREFIX_LEN.
55124         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55125         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55126         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55127         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55128
55129         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55130         prerequisite modules now handle the DOS stuff.
55131         Don't check for unistd.h.
55132
55133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55134
55135         Merge from coreutils.
55136
55137         * lib/.gdb-history: Remove; this doesn't belong here.
55138
55139         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55140         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55141         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55142         * lib/getcwd.c: New files.
55143
55144         * lib/dirname.h: Include <stdbool.h>.
55145         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55146         for consistency with POSIX terminology.  All uses changed.
55147         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55148         (strip_trailing_slashes): Use bool for booleans.
55149         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55150
55151         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55152         sometimes returns a positive errno value even when it succeeds.
55153         (print_errno_message) [!LIBC]: Fall back on strerror if
55154         __strerror_r fails.
55155
55156         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55157         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55158         (longest_relative_suffix): New function.
55159         (path_concat): Use it.  Assume first argument is not NULL.
55160         Port to DOS.  Omit redundant separators.
55161         Report an error instead of returning NULL.
55162         Use mempcpy instead of memcpy.
55163         (xpath_concat): Remove: not declared or used.
55164
55165         * lib/same.h: Include <stdbool.h>
55166         (same_name): Return bool, not int.
55167         * lib/same.c (same_name): Likewise.
55168         (errno): Don't declare; we assume C89 or better now.
55169
55170         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55171         if not already defined.
55172
55173         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55174         * lib/dup-safer.c (errno): Likewise.
55175
55176 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         Merge from coreutils.
55179         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55180         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55181         * modules/path-concat: Don't depend on strdup.
55182
55183 2004-08-03  Simon Josefsson  <jas@extundo.com>
55184
55185         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55186         * lib/progname.h: Don't include stdbool.h.
55187
55188 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55189
55190         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55191         * MODULES.html.sh (func_all_modules): Remove fatal.
55192
55193 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55194
55195         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55196
55197 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55198
55199         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55200         working.
55201
55202 2004-08-02  Simon Josefsson  <jas@extundo.com>
55203
55204         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55205         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55206         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55207
55208 2004-08-01  Simon Josefsson  <jas@extundo.com>
55209
55210         * lib/xgetdomainname.c: Include stdlib.h, for free().
55211
55212 2004-07-19  Bruno Haible  <bruno@clisp.org>
55213
55214         * MODULES.html.sh (func_all_modules): Add dummy.
55215
55216 2004-07-16  Simon Josefsson  <jas@extundo.com>
55217
55218         * modules/dummy: New file.
55219
55220 2004-07-16  Simon Josefsson  <jas@extundo.com>
55221
55222         * lib/dummy.c: New file.
55223
55224 2004-07-16  Bruno Haible  <bruno@clisp.org>
55225
55226         * lib/backupfile.h: Add extern "C" for C++.
55227         * lib/closeout.h: Likewise.
55228         * lib/copy-file.h: Likewise.
55229         * lib/findprog.h: Likewise.
55230         * lib/full-write.h: Likewise.
55231         * lib/pathname.h: Likewise.
55232         * lib/progname.h: Likewise.
55233         * lib/stpcpy.h: Likewise.
55234         * lib/stpncpy.h: Likewise.
55235         * lib/strcase.h: Likewise.
55236         * lib/strstr.h: Likewise.
55237         * lib/xalloc.h: Likewise.
55238
55239         * lib/mbswidth.h: Add extern "C" for C++.
55240         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55241
55242 2004-07-13  Robert Millan  <robertmh@gnu.org>
55243
55244         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55245
55246 2004-07-09  Simon Josefsson  <jas@extundo.com>
55247
55248         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55249         failed without this.)
55250
55251 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55252
55253         * modules/chown (Files): Add lib/fchown-stub.c, since
55254         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55255
55256 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         * lib/fchown-stub.c: New file.
55259
55260 2004-06-24  Jim Meyering  <jim@meyering.net>
55261
55262         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55263
55264 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * modules/argz: Omit "#include".
55267
55268         * MODULES.html.sh (func_all_modules): Add calloc, to match
55269         2004-06-01 addition of calloc module.
55270
55271 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * m4/argz.m4: New file, which is autoupdated from libtool.
55274
55275 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55278         libtool.
55279
55280 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * config/srclist-update: Don't insist on "USA." before the
55283         close-comment, as libtool omits the period and puts the */ on a
55284         separate line.
55285         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55286         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55287
55288 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55289
55290         * modules/argz: New file.
55291         * MODULES.html.sh (func_all_modules): Add argz.
55292
55293 2004-06-12  Jim Meyering  <jim@meyering.net>
55294         and  Paul Eggert  <eggert@cs.ucla.edu>
55295
55296         * modules/hash (Files): Add lib/xalloc.h.
55297         * modules/pipe (Depends-on): Add wait-process.
55298         * modules/stat (Depends-on): Add xalloc.
55299         * modules/userspec (Files): Add lib/userspec.h.
55300         * modules/xstrto
55301
55302         Upgrade from gettext-0.13.
55303         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55304         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55305         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55306
55307 2004-06-10  Jim Meyering  <jim@meyering.net>
55308
55309         * lib/calloc.c: New file.
55310
55311 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         * lib/getdate.y (yylex): Allow space between sign and number.
55314         Problem reported by Dan Jacobson.
55315
55316 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         Merge from coreutils CVS.
55319
55320         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55321         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55322         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55323         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55324         xstrtol.m4: Fix copyright date and/or serial number.
55325
55326         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55327         See if we need an fchown replacement.
55328         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55329         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55330         and use the replacement function if we detect either defect.
55331
55332         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55333         gl_UTIMECMP.
55334
55335 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55336         and  Jim Meyering  <jim@meyering.net>
55337
55338         Merge from coreutils CVS.
55339
55340         * lib/stat-macros.h: New file, with contents from file-type.h
55341         and coreutils' system.h.
55342         * lib/file-type.c: Include "stat-macros.h".
55343         * lib/file-type.h (file_type): Move all macro definitions to new file,
55344         stat-macros.h.
55345
55346         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55347         Wrap old code with this conditional.
55348         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55349         function that does not dereference symlinks.
55350         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55351
55352         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55353         dependency problems.
55354         (xreadlink): Accept new arg SIZE, for efficiency.
55355         All decls and uses changed.
55356         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55357
55358         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55359         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55360
55361         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55362         sysexits.h.
55363
55364 2004-06-01  Jim Meyering  <jim@meyering.net>
55365
55366         * m4/calloc.m4: New file.
55367
55368 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55369
55370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55371         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55372         Also, fix a typo in a diagnostic.
55373
55374 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55377         or AC_FUNC_REALLOC.
55378
55379 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55382         macros to be defined.
55383         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55384         the allocator returns NULL because the requested size is zero.
55385
55386 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55389         var.  Add comment explaining why libc still defines it.  This
55390         merges the following patch from glibc:
55391         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55392
55393 2004-05-20  Andreas Schwab  <schwab@suse.de>
55394
55395         * m4/free.m4: Replace free if it not known to work, not the other
55396         way round.
55397
55398 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55401         present in glibc since revision 1.1 of this file.
55402         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55403         obstack_alignment_mask, obstack_alloc, obstack_base,
55404         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55405         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55406         obstack_grow0, obstack_init, obstack_int_grow,
55407         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55408         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55409         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55410         nonexistent functions.
55411
55412 2004-05-18  Karl Berry  <karl@gnu.org>
55413
55414         * config/srclist.txt: break link for vasnprintf.c.
55415
55416 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55417
55418         Port obstack to the AS/400, where pointers are 16 bytes wide and
55419         you cannot cast an integer to a valid pointer.  This patch is
55420         currently waiting to be integrated into glibc; see
55421         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55422
55423         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55424         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55425         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55426         (struct obstack): temp member is now a union of a pointer and
55427         an integer, instead of an integer.  All integer uses changed.
55428         This does not affect the physical layout of struct obstack,
55429         except on hosts (like the AS/400) where the size or alignment of
55430         void * is greater than that of ptrdiff_t.
55431         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55432         __STDC__)]: Store temporary in pointer member of union, not
55433         integer member.
55434         * lib/obstack.c: Include <stddef.h>, for offsetof.
55435         (struct fooalign): Remove; it doesn't need a name.
55436         (union fooround): Change double to long double, and add void *.
55437         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55438         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55439         not a macro.  Hence the values are always int; so remove all
55440         casts-to-int in uses.
55441
55442 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55445         we can get this patch merged into glibc.
55446
55447 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55448             Paul Eggert  <eggert@cs.ucla.edu>
55449
55450         * m4/argp: Depend on alloca.
55451
55452 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55453             Paul Eggert  <eggert@cs.ucla.edu>
55454
55455         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55456         freecoding.
55457
55458 2004-05-17  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55461         precision that consists of a '.' followed by an empty digit string.
55462         Patch by Tor Lillqvist <tml@iki.fi>.
55463
55464 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55465
55466         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55467         for backward compatibility with older code.  We need our own
55468         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55469         it under some other name, and our alloca.h will define it.
55470
55471 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55472             Derek Price  <derek@ximbiot.com>
55473
55474         * lib/alloca.c: Include <alloca.h>, to get our interface.
55475         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55476         include <alloca.h> first.  Use C89 prototype for alloca; this
55477         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55478         Use #elif for simplicity, since we can assume C89 now.
55479         Don't try to source the system alloca.h since it will not be found
55480         and to prevent recursively including its replacement.
55481         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55482         * lib/regex.c: Likewise.
55483
55484 2004-05-16  Derek Price  <derek@ximbiot.com>
55485             Paul Eggert  <eggert@cs.ucla.edu>
55486
55487         getline cleanup.  This changes the getndelim2 API: both order of
55488         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55489         no delimiter).
55490
55491         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55492         interface does that.
55493         (getline): Always use getdelim, so that we don't have two
55494         copies of this code.
55495         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55496         if available.
55497         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55498         (GETNDELIM2_MAXIMUM): New macro.
55499         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55500         instead of the old practice of delim2==0.  All callers changed.
55501         Return -1 on overflow, instead of returning junk.
55502         Do not set *linesize unless allocation succeeds.
55503         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55504         that we include sys/types.h.
55505         * lib/getnline.h: Likewise.
55506         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55507         (getndelim2): Reorder arguments.
55508         * lib/getnline.c (getnline, getndelim):
55509         Don't discard the NMAX argument.
55510         (getnline): Invoke getndelim, to avoid code duplication.
55511         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55512         of (size_t) -1 by callers of the getnline family.
55513
55514 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55515
55516         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55517         Check for gettimeofday.
55518         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55519         Check for settimeofday, stime.
55520
55521 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55522
55523         * lib/nanosleep.c (suspended): Change its type from int to
55524         sig_atomic_t volatile.
55525         (first_call): Make it private to rpl_nanosleep, and have it
55526         be zero initially as that's a bit faster.
55527         (my_usleep): Round up fractional times instead of truncating them,
55528         as this is the usual meaning for 'sleep'.
55529
55530         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55531         doesn't work.
55532         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55533         (ENOSYS): Define if not defined.
55534         (settime): Fall back on stime if it exists and settimeofday fails.
55535         But don't bother with fallbacks if a method fails with errno == EPERM.
55536
55537 2004-05-11  Jim Meyering  <jim@meyering.net>
55538
55539         Prior to this change, the save_cwd caller required read access to the
55540         current directory on most systems (ones with the fchdir function).
55541
55542         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55543         fails, try write-only, and finally, resort to using xgetcwd.
55544
55545 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * lib/obstack.c, obstack.h: Import changes from libc.
55548
55549 2004-04-28  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55552         also implicitly appends .exe to executables.
55553         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55554         accepts Windows pathnames.
55555         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55556         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55557         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55558         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55559         Reported by Derek Robert Price <derek@ximbiot.com>.
55560
55561 2004-04-21  Karl Berry  <karl@gnu.org>
55562
55563         * config/srclist.txt (localcharset.c): break sync.
55564
55565 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55566
55567         * m4/host-os.m4: Add a copyright notice.
55568
55569 2004-04-20  Jim Meyering  <jim@meyering.net>
55570
55571         Change UTILS_ to gl_ in AC_DEFINE'd names.
55572         Change utils_- and jm_-prefixed variables, too.
55573         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55574         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55576
55577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55578         Don't emit trailing blanks.
55579         Also rename jm_-prefixed variables to have gl_ prefix.
55580
55581         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55582         Also rename jm_-prefixed variables to have gl_ prefix.
55583
55584         * m4/jm-macros.m4: Reflect the renamings.
55585         * m4/prereq.m4: Likewise.
55586
55587 2004-04-20  Jim Meyering  <jim@meyering.net>
55588
55589         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55590         memory.
55591
55592 2004-04-20  Jim Meyering  <jim@meyering.net>
55593             Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55596         memory when realloc fails.
55597
55598 2004-04-19  Jim Meyering  <jim@meyering.net>
55599
55600         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55601         now that readutmp.c may call `free (0)'.
55602
55603 2004-04-19  Bruno Haible  <bruno@clisp.org>
55604
55605         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55606         * m4/inttypes_h.m4: Likewise.
55607         * m4/stdint_h.m4: Likewise.
55608         * m4/intmax_t.m4: Likewise.
55609         * m4/uintmax_t.m4: Likewise.
55610
55611 2004-04-18  Jim Meyering  <jim@meyering.net>
55612
55613         * m4/prereq.m4: Don't forbid jm_ prefix.
55614
55615         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55616         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55617         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55618         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55619         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55620         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55621         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55622         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55623         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55624         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55625         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55626         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55627         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55628         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55629         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55630         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55631         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55632         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55633         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55634
55635 2004-04-18  Jim Meyering  <jim@meyering.net>
55636
55637         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55638         failure, don't leak memory and do call END_UTMP_ENT.
55639
55640 2004-04-16  Jim Meyering  <jim@meyering.net>
55641
55642         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55643         coreutils' stat program.
55644         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55645
55646 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55647
55648         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55649         C89.
55650         (CHAR_BIT): Remove, since we assume C89.
55651         Include <stdint.h> if available, as per current Autoconf CVS advice.
55652
55653 2004-03-31  Jim Meyering  <jim@meyering.net>
55654
55655         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55656         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55657         * m4/xalloc.m4: Likewise.
55658
55659 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55660
55661         Merge from coreutils.
55662
55663         * m4/inttostr.m4: New file.
55664         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55665         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55666         Require gl_CLOCK_TIME.
55667         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55668
55669 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55670
55671         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55672         not bool, to be more consistent with Unix conventions.
55673         Suggested by Bruno Haible.
55674
55675         Merge from coreutils.
55676
55677         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55678         * lib/umaxtostr.c: New files.
55679
55680         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55681         the usual <time.h> dance.
55682         (get_date): Change signature to support fractional time stamps.
55683         All callers changed.
55684         * lib/getdate.y: Include "getdate.h" first, as we can now
55685         assume C89 and don't need to worry about 'const'.
55686         Similarly, include "unlocked-io.h" near start, not in middle.
55687         Include <limits.h>.
55688         (textint.value): Use long int rather than int.
55689         (textint.digits): Use size_t rather than int.
55690         (BILLION, LOG10_BILLION): New constants.
55691         (parser_control): New member rel_ns.  Members day_ordinal,
55692         time_zone, month, day, hour, minutes, rel_year, rel_month,
55693         rel_day, rel_hour, rel_minutes, rel_seconds
55694         are now long int, not int.  Member seconds is now struct timespec,
55695         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55696         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55697         not int.
55698         (%union.intval): Now long int, not int.
55699         New member timespec.
55700         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55701         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55702         (spec): Now is a timespec or an item list.
55703         (timespec, items): New nonterminals.
55704         (time, rel, relunit, number, get_date):
55705         Add support for fractional seconds.
55706         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55707         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55708         (to_hour): First arg is now long int, not int.
55709         (to_year): Returns long int, not int.
55710         Don't treat year -70 like 70.
55711         (tm_diff): Returns long int, not int.
55712         (lookup_word): Use bool instead of int when appropriate.
55713         (yylex): Use size_t for count, not int.
55714         Detect overflow when parsing large integer constants.
55715         Add support for fractions.
55716         (get_date): Make pointers 'const' if possible.
55717         Use more-portable code to detect integer overflow.
55718         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55719         Don't use ctime; it's not reliable if the year has >4 digits.
55720
55721         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55722         This is for compatibility with BSD.
55723
55724         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55725         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55726         From coreutils' system.h.
55727
55728         * lib/userspec.c: Don't include "posixver.h".
55729         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55730         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55731         compatible extension.  Simplify code by removing a boolean int
55732         that was always nonzero if a string was nonnull.
55733
55734 2004-03-30  Jim Meyering  <jim@meyering.net>
55735
55736         Merge from coreutils.
55737
55738         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55739         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55740         on some systems one must include <grp.h> before it.
55741         Reported by Christian Krackowizer.
55742
55743 2004-03-30  Jim Meyering  <jim@meyering.net>
55744
55745         Merge from coreutils.
55746
55747         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55748
55749         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55750         an empty input stream.
55751
55752         * lib/readtokens.c: Include <stdbool.h>.
55753         (readtoken): Use `size_t' rather than int/long.
55754         All callers adjusted.
55755         Use `bool' rather than `int' where appropriate.
55756         Use memset rather than an explicit loop.
55757         Use x2nrealloc rather than xrealloc.
55758         Allow the use of `\0' as a delimiter.
55759         (readtokens): Likewise.
55760         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55761
55762 2004-03-30  Jim Meyering  <jim@meyering.net>
55763
55764         * m4/realloc.m4: Remove file, since now it does no more than
55765         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55766         the `configure.ac' section of module/realloc.
55767         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55768
55769 2004-03-30  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55772         nonnull.
55773
55774 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55775
55776         Merge changes to getloadavg.c from coreutils and Emacs.
55777
55778         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55779         Define to an expression, not to the empty string.
55780         Include cloexec.h and xalloc.h.
55781         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55782         Use set_cloexec_flag rather than rolling our own.
55783         * lib/cloexec.c, lib/cloexec.h: New files.
55784
55785 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55786
55787         * m4/cloexec.m4: New file.
55788
55789 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55790
55791         * lib/getopt.h: Sync with libc CVS.
55792
55793 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55794             Bruno Haible  <bruno@clisp.org>
55795
55796         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55797         mbswidth.
55798
55799 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55800             Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/mbswidth.h: Include <wchar.h> only if
55803         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55804         <wchar.h>.
55805         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55806
55807 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55808
55809         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55810         Sync with libc CVS.
55811         * lib/getopt_int.h: New file, also synced from libc.
55812
55813 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55814
55815         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55816         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55817         Bring back getopt.c, getopt.h, getopt1.c.
55818
55819 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55820
55821         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55822         All uses changed.  Check for sa_sigaction member; this fixes
55823         a bug first reported by Jason Andrade in
55824         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55825
55826 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55827
55828         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55829         '#if' expressions.  Unlike the code it replaces, it does not
55830         depend on (defined _SC_PAGESIZE).  However, it does depend on
55831         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55832         first reported by Jason Andrade in
55833         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55834
55835 2004-02-25  Simon Josefsson  <jas@extundo.com>
55836
55837         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55838
55839 2004-02-25  Simon Josefsson  <jas@extundo.com>
55840
55841         * lib/strdup.h: New file.
55842         * lib/strdup.c: Include it.
55843         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55844         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55845
55846 2004-02-23  Karl Berry  <karl@gnu.org>
55847
55848         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55849         (from fencepost.gnu.org:/gd/gnuorg).
55850
55851 2004-02-23  Karl Berry  <karl@gnu.org>
55852
55853         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55854         * config/srclist.txt: add maintain/standards documents.
55855
55856 2004-02-18  Bruno Haible  <bruno@clisp.org>
55857
55858         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55859         Reported by Derek Robert Price <derek@ximbiot.com>.
55860
55861 2004-02-16  Karl Berry  <karl@gnu.org>
55862
55863         * config/mkinstalldirs, install-sh: update from automake.
55864
55865 2004-02-06  Karl Berry  <karl@gnu.org>
55866
55867         * m4/po.m4: update from gettext 0.14.1.
55868
55869 2004-02-06  Karl Berry  <karl@gnu.org>
55870
55871         * lib/config.charset: update from gettext 0.14.1.
55872
55873 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55874
55875         Add comments and code, prompted by suggestions from Bruno Haible
55876         for sh-quote.
55877         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55878         describing the enum quoting_style values.
55879         * lib/quotearg.c (quotearg_alloc): New function.
55880         (quotearg_buffer_restyled): Treat lone { and } as special.
55881         Treat = as special.  Work around bug with older shells
55882         that "see" a '\' that is really the 2nd byte of a multibyte char.
55883         Quote empty string with shell_quoting_style.
55884
55885 2004-02-03  Bruno Haible  <bruno@clisp.org>
55886
55887         * m4/pipe.m4: New file, from GNU gettext.
55888
55889 2004-02-03  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/pipe.h: New file, from GNU gettext.
55892         * lib/pipe.c: New file, from GNU gettext.
55893
55894 2004-01-27  Bruno Haible  <bruno@clisp.org>
55895
55896         * m4/execute.m4: New file, from GNU gettext.
55897
55898 2004-01-27  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/execute.h: New file, from GNU gettext.
55901         * lib/execute.c: New file, from GNU gettext.
55902         * lib/w32spawn.h: New file, from GNU gettext.
55903
55904 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55905
55906         Merge from diffutils.
55907
55908         * lib/file-type.c (file_type): Add typed memory objects.
55909         * lib/file-type.h (S_TYPEISTMO): New macro.
55910
55911         * lib/c-stack.h (c_stack_action): Remove argv argument.
55912         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55913         (die): Don't calculate message unless segv_action returns.
55914         (get_stack_location, min_address_from_argv, max_address_from_argv,
55915         volatile stack_base, volatile_stack_size): Remove.
55916         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55917         that every segmentation violation is a stack overflow.  (Ouch!)
55918         See Debian bug 136249 (still outstanding) for more info about why
55919         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55920
55921 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55922
55923         Exit-status fix from coreutils.
55924
55925         Use exit_failure consistently in place of EXIT_FAILURE,
55926         so that program exit statuses are consistent on failure.
55927
55928         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55929         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55930         * lib/argmatch.h: Comment fix to match the above.
55931         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55932         Now a macro referring to exit_failure, instead of a separate
55933         variable.  Include "exitfail.h" to get it.
55934         * lib/xstrtol.h: Include "exitfail.h".
55935         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55936
55937         * lib/long-options.c (parse_long_options): Use prototype
55938         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55939         for clarity.
55940
55941 2004-01-21  Jim Meyering  <jim@meyering.net>
55942
55943         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55944         so as not to conflict with a different-sized __mktime_internal
55945         function in GNU libc.
55946         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55947         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55948
55949 2004-01-20  Karl Berry  <karl@gnu.org>
55950
55951         * config/config.guess: update from config.
55952
55953         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55954
55955 2004-01-20  Bruno Haible  <bruno@clisp.org>
55956
55957         Safer stack allocation.
55958         * lib/setenv.c: Include allocsa.h.
55959         (alloca): Remove fallback definition.
55960         (freea): Remove macro.
55961         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55962         instead of freea.
55963
55964 2004-01-20  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/eealloc.m4: New file, from GNU gettext.
55967
55968 2004-01-20  Bruno Haible  <bruno@clisp.org>
55969
55970         * m4/allocsa.m4: New file, from GNU gettext.
55971
55972 2004-01-20  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/xallocsa.h: New file, from GNU gettext.
55975         * lib/xallocsa.c: New file, from GNU gettext.
55976
55977 2004-01-20  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55980
55981 2004-01-20  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55984         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55985         specially.
55986
55987 2004-01-20  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55990         patch.
55991
55992 2004-01-20  Bruno Haible  <bruno@clisp.org>
55993
55994         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55995
55996 2004-01-20  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/eealloc.h: New file.
55999
56000 2004-01-20  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/binary-io.h: Avoid warnings on Cygwin.
56003
56004 2004-01-20  Bruno Haible  <bruno@clisp.org>
56005
56006         * lib/allocsa.h: New file, from GNU gettext.
56007         * lib/allocsa.c: New file, from GNU gettext.
56008
56009 2004-01-18  Karl Berry  <karl@gnu.org>
56010
56011         * doc/gpl.texi, doc/lgpl.texi: new files.
56012
56013 2004-01-18  Karl Berry  <karl@gnu.org>
56014
56015         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56016         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56017
56018 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56019
56020         Merge from coreutils.
56021
56022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56023         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56024         (gl_DEFAULT_POSIX2_VERSION): Move
56025         the documentation from 'configure' into 'config.hin',
56026         so that 'configure --help' isn't burdened by it and
56027         we don't have to worry about its formatting there.
56028         Reword the documentation so that it's more succinct
56029         and can be run together into a single paragraph.
56030         * m4/same.m4 (gl_SAME): Check for pathconf.
56031
56032 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56033
56034         Merge from coreutils.
56035
56036         * lib/posixver.c: Include posixver.h.
56037
56038         * lib/same.c: Include <stdbool.h>, <limits.h>.
56039         (_POSIX_NAME_MAX): Define if not defined.
56040         (MIN): New macro.
56041         (same_name): If file names are silently truncated, report
56042         that the file names are the same if they are the same after
56043         the silent truncation.
56044
56045         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56046         conversion function.
56047         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56048         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56049         longer needed.
56050
56051 2004-01-15  Jim Meyering  <jim@meyering.net>
56052
56053         Merge from coreutils.
56054
56055         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56056         if no library is required.
56057         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56058         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56060         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56061         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56062         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56063         value, $ac_cv_search_crypt, if it's "none required".
56064         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56065         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56066         not gl_FUNC_GETLOADAVG.
56067         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56068         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56069
56070 2004-01-15  Jim Meyering  <jim@meyering.net>
56071
56072         Merge from coreutils.
56073
56074         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56075         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56076         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56077
56078         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56079         optional configure-time default.
56080
56081         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56082
56083         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56084
56085 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56086
56087         Merge from coreutils.
56088
56089         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56090         value, $ac_cv_search_nanosleep, if it's "none required".
56091
56092 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56093
56094         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56095         with like-named macro in fnmatch.c.
56096         (EXT): Use an internal constant instead.
56097
56098         Merge fnmatch patches from glibc.
56099         * lib/fnmatch.c (mbsinit): Remove define.
56100         Add libc_hidden_ver (__fnmatch, fnmatch).
56101         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56102         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56103
56104 2004-01-14  Karl Berry  <karl@gnu.org>
56105
56106         * config/install-sh: update from automake.
56107
56108 2004-01-13  Karl Berry  <karl@gnu.org>
56109
56110         * config/install-sh: update from automake.
56111
56112 2004-01-09  Karl Berry  <karl@gnu.org>
56113
56114         * config/install-sh: update from automake.
56115
56116 2004-01-05  Karl Berry  <karl@gnu.org>
56117
56118         * config/config.{sub,guess}: update from config.
56119
56120 2003-12-31  Karl Berry  <karl@gnu.org>
56121
56122         * config/depcomp: update from automake.
56123
56124 2003-12-14  Karl Berry  <karl@gnu.org>
56125
56126         * lib/config.charset: update from gettext-runtime.
56127
56128 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56129
56130         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56131         Bug reported by Alfred M. Szmidt.
56132
56133 2003-12-03  Bruno Haible  <bruno@clisp.org>
56134
56135         * m4/gettext.m4: Upgrade from gettext-0.13.
56136         * m4/po.m4: Upgrade from gettext-0.13.
56137         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56138         * m4/intmax.m4: New file, from gettext-0.13.
56139         * m4/printf-posix.m4: New file, from gettext-0.13.
56140
56141 2003-11-29  Karl Berry  <karl@gnu.org>
56142
56143         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56144
56145 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56146             Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/printf-parse.h: Don't include sys/types.h.
56149         (ARG_NONE): New macro.
56150         (char_directive): Change type of *arg_index fields to size_t.
56151         * lib/printf-parse.c: Don't include sys/types.h.
56152         (SSIZE_MAX): Remove macro.
56153         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56154         Remove unnecessary overflow check.
56155         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56156         fields.
56157
56158 2003-11-25  Bruno Haible  <bruno@clisp.org>
56159
56160         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56161
56162 2003-11-25  Bruno Haible  <bruno@clisp.org>
56163
56164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56165         gt_TYPE_SSIZE_T.
56166
56167 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56168
56169         * modules/alloca: Remove dependency on xalloc.
56170
56171 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56172
56173         * lib/alloca.c: Remove dependency on xalloc module.
56174         (xalloc_die): Remove.
56175         (memory_full) [!defined emacs]: New macro.
56176         [!defined emacs]: Don't include xalloc.h.
56177         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56178         address arithmetic overflows.  Change datatypes a bit to avoid
56179         unnecessary casts.
56180
56181 2003-11-22  Jim Meyering  <jim@meyering.net>
56182
56183         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56184         s/size/size_t/.
56185
56186 2003-11-21  Karl Berry  <karl@gnu.org>
56187
56188         * config/config.{sub,guess}: update from config.
56189
56190 2003-11-18  Karl Berry  <karl@gnu.org>
56191
56192         * config/config.{sub,guess}: update from config.
56193
56194         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56195
56196 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56197
56198         * README: Mention that S+T cannot overflow if S is the size of
56199         an existing object and T is sufficiently small.
56200
56201 2003-11-17  Jim Meyering  <jim@meyering.net>
56202
56203         On systems without utime and without a utimes function capable of
56204         dealing with a NULL struct utimbuf* argument, this utime replacement
56205         could -- in unusual circumstances -- leak a file descriptor.
56206         * lib/utime.c: Include <unistd.h> and <errno.h>.
56207         (utime_null): Be sure to close `fd' and to preserve errno.
56208         Reported by Geoff Collyer via Arnold Robbins.
56209
56210 2003-11-17  Bruno Haible  <bruno@clisp.org>
56211
56212         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56213         (Depends-on): Add xsize.
56214
56215 2003-11-17  Bruno Haible  <bruno@clisp.org>
56216
56217         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56218
56219 2003-11-17  Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/vasnprintf.c (alloca): Remove fallback definition.
56222         (freea): Remove definition.
56223         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56224         Reported by Paul Eggert.
56225
56226 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56227             Bruno Haible  <bruno@clisp.org>
56228
56229         Protect against address arithmetic overflow.
56230         * lib/printf-args.h: Include stddef.h.
56231         (arguments): Change type of field 'count' to size_t.
56232         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56233         'unsigned int' where appropriate.
56234         * lib/printf-parse.h: Include sys/types.h.
56235         (char_directive): Change type of *arg_index fields to ssize_t.
56236         (char_directives): Change type of fields 'count', max_*_length to
56237         size_t.
56238         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56239         (SSIZE_MAX): Define fallback value.
56240         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56241         instead of 'int' where appropriate. Check a_allocated, d_allocated
56242         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56243         * lib/vasnprintf.c: Include xsize.h.
56244         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56245         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56246         overflow. Avoid wraparound when converting a width or precision from
56247         decimal to binary.
56248
56249 2003-11-16  Bruno Haible  <bruno@clisp.org>
56250
56251         Update from GNU gettext.
56252         * lib/printf-parse.c: Generalize to it can be compiled for wide
56253         strings.
56254         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56255         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56256         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56257         SNPRINTF): New macros.
56258         Don't include <alloca.h> if the file is used inside libintl.
56259         (local_wcslen): New function, for Solaris 2.5.1.
56260         (VASNPRINTF): Use it instead of wcslen.
56261
56262 2003-11-16  Bruno Haible  <bruno@clisp.org>
56263
56264         * lib/xsize.h (xmax): New function.
56265         (xsum, xsum3, xsum4): Declare as "pure" functions.
56266
56267 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56268
56269         * modules/xalloc (Files): Undo latest change, since xalloc.h
56270         no longer needs SIZE_MAX or PTRDIFF_MAX.
56271
56272 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56273
56274         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56275         gl_PTRDIFF_MAX.
56276
56277 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56278
56279         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56280         "return", to pacify some unknown compiler.  Problem reported
56281         by Joerg Schilling.
56282
56283 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56284
56285         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56286         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56287         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56288         heuristic is just as accurate as far as we know, and it removes a
56289         dependency on size_max.m4 and ptrdiff_max.m4.
56290
56291 2003-11-11  Bruno Haible  <bruno@clisp.org>
56292
56293         * modules/xsize (Files): Add m4/size_max.m4.
56294         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56295
56296 2003-11-11  Bruno Haible  <bruno@clisp.org>
56297
56298         * m4/size_max.m4: New file.
56299         * m4/ptrdiff_max.m4: New file.
56300         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56301         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56302         (gl_XALLOC): Invoke it.
56303
56304 2003-11-11  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56307         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56308         defined.
56309
56310 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56311
56312         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56313         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56314         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56315         From Bruno Haible.
56316         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56317         not (size_t) -1, since it's defined here.
56318
56319 2003-11-09  Karl Berry  <karl@gnu.org>
56320
56321         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56322
56323 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56324
56325         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56326         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56327         Reject sizes of exactly SIZE_MAX bytes.
56328         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56329         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56330
56331 2003-11-05  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56334         SIZE_MAX defined in <limits.h> on Solaris.
56335
56336 2003-11-04  Jim Meyering  <jim@meyering.net>
56337
56338         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56339         variable names, rather than @VAR@.
56340         * modules/poll: Likewise.
56341
56342 2003-11-04  Bruno Haible  <bruno@clisp.org>
56343
56344         * modules/xsize: New file.
56345         * modules/linebreak: Depend on xsize.
56346         * MODULES.html.sh (func_all_modules): Add xsize.
56347
56348 2003-11-04  Bruno Haible  <bruno@clisp.org>
56349
56350         * m4/xsize.m4: New file.
56351
56352 2003-11-04  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/xsize.h: New file.
56355         * lib/linebreak.c: Include xsize.h.
56356         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56357         argument for overflow.
56358         Suggested by Paul Eggert.
56359
56360 2003-11-03  Karl Berry  <karl@gnu.org>
56361
56362         * config/config.{guess,sub}: update from config.
56363
56364 2003-11-03  Jim Meyering  <jim@meyering.net>
56365
56366         * modules/userspec (lib_SOURCES): Add userspec.h.
56367         (Include): Add "userspec.h".
56368         Improve description.
56369
56370 2003-11-03  Jim Meyering  <jim@meyering.net>
56371
56372         * lib/userspec.c: Include "userspec.h".
56373         * lib/userspec.h: New file.
56374
56375 2003-11-03  Bruno Haible  <bruno@clisp.org>
56376
56377         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56378
56379 2003-11-03  Bruno Haible  <bruno@clisp.org>
56380
56381         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56382         available, to avoid (extremely rare) race condition.
56383         Suggested by Paul Eggert.
56384
56385 2003-11-02  Karl Berry  <karl@gnu.org>
56386
56387         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56388
56389 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56390
56391         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56392         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56393         (read_filesystem_list): Set and use me_type_malloced.
56394         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56395         whatever the type happens to be), for brevity and consistency.
56396         Check for size calculation overflow on Alphas running OSF/1.
56397
56398 2003-10-31  Jim Meyering  <jim@meyering.net>
56399
56400         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56401
56402         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56403
56404 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56405             Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56408         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56409
56410 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56413         netbsd*-gnu*.  Suggested by Robert Millan.
56414
56415 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56416
56417         * modules/group-member: Depend on stdbool.
56418
56419 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56420
56421         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56422
56423 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56424
56425         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56426         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56427         after the 'gnu' in these cases.  This fixes some bugs in the
56428         previous change, and is based on suggestions by Robert Millan.
56429
56430 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56431
56432         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56433         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56434         no longer needed.
56435         * lib/quotearg.c (quotearg_n_options): Use it.
56436         * lib/group-member.c: Include <stdbool.h>.
56437         (free_group_info): Arg is now const *; don't free arg.
56438         (get_group_info): Now returns bool and accepts struct group_info *,
56439         rather than returning a malloc'ed struct group_info *.
56440         All uses changed.  Check for overflow in internal size calculation.
56441
56442         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56443         rather than xmalloc/xrealloc.
56444         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56445         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56446         conformance bug: the old code used a pointer after freeing the
56447         storage that it addressed.
56448         * lib/hash.c (hash_initialize): Simplify the code by using
56449         xalloc_oversized rather than doing it by hand.
56450         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56451         the buffer preserved.  Use free and xmalloc instead.
56452         * lib/quotearg.c (quotearg_n_options): Likewise.
56453         Use a simpler test for size overflow.  Don't use xalloc_oversized
56454         because unsigned int might be wider than size_t (!); this suggests
56455         that we should switch from unsigned int to size_t for slot numbers.
56456
56457 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56458
56459         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56460         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56461         NetBSD kernels.  Requested by Richard Stallman.
56462
56463 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56464
56465         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56466         to allocate the returned structure.  Do not allocate a subarray,
56467         as x2nrealloc will do that.
56468         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56469         instead of xnrealloc.
56470         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56471
56472 2003-10-27  Bruno Haible  <bruno@clisp.org>
56473
56474         * lib/stdbool_.h: Better support for BeOS.
56475
56476 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56477
56478         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56479         now uses inline.
56480
56481 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56482
56483         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56484         callers that want to do their own size-overflow checking.  Include
56485         <stdbool.h>, since xalloc_oversized returns bool.
56486         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56487         to use xalloc_oversized.
56488
56489         Add two functions x2realloc, x2nrealloc, for programs that grow
56490         arrays dynamically by doubling their sizes.
56491         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56492         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56493         New functions.
56494
56495         Port to C99 semantics for 'inline' of external functions.
56496         Bug reported by Bruno Haible.
56497         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56498         with the old contents of xnmalloc.
56499         (xnmalloc, xmalloc): Use it.
56500         (xnrealloc_inline): New static inline function,
56501         with the old contents of xnrealloc.
56502         (xnrealloc, xrealloc): Use it.
56503
56504         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56505         that.
56506
56507 2003-10-26  Karl Berry  <karl@gnu.org>
56508
56509         * config/srclist.txt (COPYING.DOC): no longer available from
56510         /gd/gnuorg; don't know where the ultimate source is.
56511
56512 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56513
56514         Fix several address-calculation bugs in the hash modules,
56515         plus some minor code cleanup.
56516
56517         * lib/hash.h: Include <stdbool.h>, for bool.
56518         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56519         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56520         hash_get_n_entries, hash_get_max_bucket_length,
56521         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56522         hash_rehash): Use size_t rather than unsigned.
56523         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56524         hash_get_n_buckets_used, hash_get_n_entries,
56525         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56526         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56527         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56528         Likewise.
56529         (SIZE_MAX): Define if not defined.
56530         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56531         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56532         hash_print):
56533         Use const * when possible.
56534         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56535         (check_tuning): Fix bug: if tuning parameters were very close to
56536         0 or 1, rounding errors could have caused subscript violations.
56537         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56538         (hash_initialize): Add 'fail:' label
56539         to free table and return NULL, and use it to simplify code.
56540         Use calloc rather than clearing the storage ourself.
56541         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56542         buffer size calculations.
56543         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56544         Include <stddef.h>, for size_t.
56545         * lib/hash-pjw.c (hash_pjw): Likewise.
56546         Switch to method described by Bruno Haible.
56547         Include <limits.h>, for CHAR_BIT.
56548         (SIZE_BITS): New macro.
56549
56550 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56551
56552         * m4/getline.m4 (AM_FUNC_GETLINE):
56553         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56554         hosts.  Problem reported by Derek Robert Price in
56555         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56556         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56557         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56558
56559 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56560
56561         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56562         ceiling the allocation at NMAX bytes rather than silently
56563         discarding input bytes before NMAX is reached.  This makes
56564         a difference only if NMAX exceeds SIZE_MAX / 2.
56565
56566         * lib/obstack.c: Merge from glibc.
56567         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56568         Add libc_hidden_def (_obstack_newchunk).
56569         (_obstack_free) [! defined _LIBC]: Remove.
56570         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56571         a clone of the function body.
56572         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56573         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56574
56575         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56576         glibc.
56577         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56578         arg to memcpy.
56579
56580         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56581         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56582         Don't use lvalue casts, as GCC plans to remove support for them
56583         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56584         was also present in the non-GCC version, indicating that this
56585         code had always been buggy and had never been widely used.
56586         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56587         Use the fast variant of each macro, rather than copying the
56588         definiens of the fast variant; that way, we'll be more likely to
56589         catch future bugs in the fast variants.
56590
56591 2003-10-20  Bruno Haible  <bruno@clisp.org>
56592
56593         * modules/wait-process: New file.
56594         * MODULES.html.sh (func_all_modules): Add wait-process.
56595
56596 2003-10-20  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/wait-process.m4: New file.
56599
56600 2003-10-20  Bruno Haible  <bruno@clisp.org>
56601
56602         * lib/wait-process.h: New file, from GNU gettext.
56603         * lib/wait-process.c: New file, from GNU gettext.
56604
56605 2003-10-19  Jim Meyering  <jim@meyering.net>
56606
56607         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56608         HPUX 10.20.
56609
56610 2003-10-18  Karl Berry  <karl@gnu.org>
56611
56612         * config/config.guess: update from config.
56613
56614 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56615
56616         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56617         (getgroups): First arg is int, not size_t.
56618         Don't let 'free' mangle errno.
56619
56620 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56621
56622         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56623
56624 2003-10-16  Karl Berry  <karl@gnu.org>
56625
56626         * config/config.{guess,sub}: update from config.
56627
56628 2003-10-16  Jim Meyering  <jim@meyering.net>
56629
56630         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56631         memcpy.
56632
56633 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56634
56635         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56636         (SIZE_MAX): Remove.
56637         (new_exclude, add_exclude_file): Initial size no longer needs to
56638         be a power of 2.
56639         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56640         our own address arithmetic overflow checking.
56641
56642         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56643         (fnmatch): Do not alloca more than 2000 wide characters;
56644         instead, use malloc for large buffers.
56645         Check for address arithmetic overflow, and return -1
56646         with errno set to ENOMEM in that case.
56647         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56648         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56649         instead, return -1.  Check for address arithmetic overflow.
56650
56651 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56652
56653         Handle invalid suffixes and overflow independently, so that
56654         callers can treat them independently as needed.  Fix some bugs in
56655         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56656         suffix for a human-readable blocksize.  The major caller-visible
56657         change is the addition of a new
56658         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56659         that both overflow and suffix chars were found.
56660
56661         * lib/human.c (humblock): Don't check separately for invalid suffix
56662         char; that is xstrtoumax's job (now that its bug is fixed).
56663         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56664         INTMAX_MAX]: New macros.
56665         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56666         TYPE_MAXIMUM): New macros.
56667         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56668         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56669         if overflow occurs, as it's what __strtol does and it's more useful
56670         in practice.
56671         (__xstrtol): If __strtol reports some error other than ERANGE,
56672         reflect it to the caller as LONGINT_INVALID.  If it reports
56673         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56674         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56675         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56676         value.
56677         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56678         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56679         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56680         [defined UINTMAX_MAX]: New macros.
56681
56682 2003-10-14  Bruno Haible  <bruno@clisp.org>
56683
56684         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56685
56686 2003-10-14  Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/sig_atomic_t: New file, from GNU gettext.
56689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56690
56691 2003-10-14  Bruno Haible  <bruno@clisp.org>
56692
56693         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56694         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56695         Also use volatile where needed.
56696
56697 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56698
56699         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56700         Change maintainer from Bruno Haible to 'all'.
56701
56702 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56703
56704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56705
56706 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56707
56708         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56709         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56710         and define in terms of the other primitives.
56711         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56712         (SIZE_MAX): Define if not already defined.
56713         (array_size_overflow): New function.
56714         (xalloc_die): Abort instead of exiting if 'error' returns.
56715         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56716         (xmalloc, xrealloc): Use them.
56717         (xcalloc): Check for address arithmetic overflow.
56718         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56719         a bit faster than strcpy.
56720
56721 2003-10-10  Simon Josefsson  <jas@extundo.com>
56722
56723         * modules/argp (Depends-on): Add restrict and strcase.
56724
56725 2003-10-10  Simon Josefsson  <jas@extundo.com>
56726
56727         * m4/argp.m4: Add AC_C_INLINE.
56728
56729 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56730
56731         Merge getpass from libc, plus a few fixes.
56732
56733         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56734         Include <stdbool.h>.
56735         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56736         __fsetlocking to empty.
56737         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56738         do include <bits/libc-lock.h>.
56739         Do not include <fcntl.h>; not needed.
56740         [_LIBC]: Include <wchar.h>.
56741         (NOTCANCEL_MODE): New macro.
56742         (flockfile, funlockfile) [_LIBC]: New macros.
56743         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56744         [!_LIBC]: New macros.
56745         (call_fclose): New function.
56746         (getpass): Use it.  Save tty stream separately; this simplifies the
56747         code and makes it more reliable if stdin happens to equal stdout.
56748         Invoke __fsetlocking on tty.
56749         Handle thread cancellation if needed.
56750         Namespace cleanup (use __tcgetattr, __getline).
56751         Use bool for Booleans.
56752         [USE_IN_LIBIO]: Handle wide streams.
56753         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56754         stream might go where.
56755
56756         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56757         doesn't have to include <stdio.h> before us.
56758         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56759         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56760         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56761         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56762         if not declared, so that we can use getpass.c code from libc without
56763         rewriting it.
56764         (flockfile, ftrylockfile, funlockfile): New macros.
56765
56766 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56767
56768         * modules/getpass: Depend on stdbool.
56769
56770 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56771
56772         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56773
56774 2003-10-07  Karl Berry  <karl@gnu.org>
56775
56776         * config/config.{guess,sub}: update from config.
56777
56778 2003-10-06  Jim Meyering  <jim@meyering.net>
56779             Bruno Haible  <bruno@clisp.org>
56780
56781         This lets translators provide better translations for the
56782         "Written by ..." part of --version output.
56783         * lib/version-etc.h: Include stdarg.h.
56784         (version_etc_copyright): Declare as readonly.
56785         (version_etc): Make this function variadic with a NULL-terminated list
56786         of author name strings.
56787         (version_etc_va): New declaration.
56788         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56789         (version_etc_copyright): Declare as readonly.
56790         (version_etc_va): New function. Provide a different translatable string
56791         for each possible number of authors < 10. Abbreviate when there are 10
56792         authors or more.
56793         (version_etc): Make this function variadic. Call version_etc_va.
56794         Suggestion from Gary V. Vaughan.
56795
56796         * lib/long-options.h (parse_long_options): Change prototype: the
56797         authors string is moved to the end and becomes variadic.
56798         * lib/long-options.c: Include stdarg.h.
56799         (parse_long_options): Make this function variadic, too.
56800         Call version_etc_va, not version_etc.
56801
56802 2003-10-06  Bruno Haible  <bruno@clisp.org>
56803
56804         * modules/version-etc-2: Remove file.
56805         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56806
56807 2003-10-06  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/fatal-signal: New file.
56810         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56811
56812 2003-10-06  Bruno Haible  <bruno@clisp.org>
56813
56814         * m4/fatal-signal.m4: New file.
56815         * m4/signalblocking.m4: New file, from GNU gettext.
56816
56817 2003-10-06  Bruno Haible  <bruno@clisp.org>
56818
56819         * lib/version-etc-2.h: Remove file.
56820         * lib/version-etc-2.c: Remove file.
56821
56822 2003-10-06  Bruno Haible  <bruno@clisp.org>
56823
56824         * lib/fatal-signal.h: New file, from GNU gettext.
56825         * lib/fatal-signal.c: New file, from GNU gettext.
56826
56827 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56828
56829         * README: Rework advice for preventing empty .o files.
56830         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56831         not <sys/types.h>.
56832
56833 2003-10-04  Karl Berry  <karl@gnu.org>
56834
56835         * lib/argp*: update from libc.
56836
56837 2003-10-04  Karl Berry  <karl@gnu.org>
56838
56839         * config/config.{guess,sub}: update from config.
56840
56841 2003-10-02  Bruno Haible  <bruno@clisp.org>
56842
56843         * modules/lchown (Include): Add lchown.h.
56844         * modules/time_r (Include): Use "..." syntax.
56845         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56846
56847 2003-10-01  Simon Josefsson  <jas@extundo.com>
56848
56849         * MODULES.html.sh (func_all_modules): Move gethostname from section
56850         'based on' to section 'lacking' POSIX:2001.
56851
56852 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56853
56854         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56855         to output mode on the same stream.
56856
56857 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56858
56859         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56860         Fix arg typo in previous patch.
56861
56862 2003-09-28  Jim Meyering  <jim@meyering.net>
56863
56864         * lib/error.c: Correct cpp indentation.
56865
56866 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56867
56868         * modules/free: New file.
56869
56870 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56871
56872         * m4/free.m4: New file.
56873
56874 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56875
56876         * lib/minmax.h (MIN, MAX)
56877         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56878         Omit the special code that used __typeof__, since we worry that
56879         it could be more trouble than it's worth.  See:
56880         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56881         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56882
56883         * lib/free.c: New file.
56884
56885 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56886
56887         Trivial fixes to Makefile.am parts of module listings.
56888         * modules/strstr: Append strstr.h to lib_SOURCES.
56889         * modules/strcase: Likewise, for strcase.h.
56890
56891 2003-09-27  Karl Berry  <karl@gnu.org>
56892
56893         * config/mkinstalldirs: update from automake.
56894
56895 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56896
56897         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56898         (error_tail): Do not loop, reallocating temporary buffer, since
56899         the output cannot contain more wide characters than the input
56900         contains bytes, the size must be big enough already.  This avoids
56901         one potential size overflow calculation.  Check for size overflow
56902         when calculating temporary buffer size.  Free temporary buffer
56903         when done, if it was allocated with malloc; this plugs a memory
56904         leak.  Remove casts from void * to pointers, that are no longer
56905         needed now that we're assuming C89 or better.
56906
56907         Merge error changes from glibc.
56908
56909         * lib/error.c, error.h: Update copyright notice header to match glibc.
56910         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56911         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56912         Disable cancellation while printing error.
56913         * lib/error.h: Prepend __ to parameter names.
56914
56915 2003-09-26  Jim Meyering  <jim@meyering.net>
56916
56917         * lib/error.c (error_tail): Move some declarations
56918         into inner scope where the local variables are used.
56919
56920 2003-09-26  Bruno Haible  <bruno@clisp.org>
56921
56922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56923         stpncpy().
56924         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56925
56926 2003-09-26  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56929         (stpncpy): Define as alias for gnu_stpncpy.
56930         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56931
56932 2003-09-25  Simon Josefsson  <jas@extundo.com>
56933
56934         * lib/xgetdomainname.h: New file.
56935         * lib/xgetdomainname.c: New file.
56936
56937 2003-09-25  Simon Josefsson  <jas@extundo.com>
56938             Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/getdomainname: New file.
56941         * modules/xgetdomainname: New file.
56942         * MODULES.html.sh (func_all_modules): Add getdomainname,
56943         xgetdomainname.
56944
56945 2003-09-25  Simon Josefsson  <jas@extundo.com>
56946             Bruno Haible  <bruno@clisp.org>
56947
56948         * m4/getdomainname.m4: New file.
56949
56950 2003-09-25  Simon Josefsson  <jas@extundo.com>
56951             Bruno Haible  <bruno@clisp.org>
56952
56953         * lib/getdomainname.h: New file.
56954         * lib/getdomainname.c: New file.
56955
56956 2003-09-25  Karl Berry  <karl@gnu.org>
56957
56958         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56959
56960 2003-09-25  Karl Berry  <karl@gnu.org>
56961
56962         * config/install-sh: update from automake.
56963
56964 2003-09-25  Bruno Haible  <bruno@clisp.org>
56965
56966         * modules/version-etc-2: New file, from modules/version-etc with
56967         modifications.
56968         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56969
56970 2003-09-25  Bruno Haible  <bruno@clisp.org>
56971
56972         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56973         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56974
56975 2003-09-24  Simon Josefsson  <jas@extundo.com>
56976
56977         * modules/xgethostname: Add xgethostname.h.
56978
56979 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56980
56981         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56982         the buffer associated with the argument.  Bug reported by
56983         Simon Josefsson.
56984
56985 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56986
56987         * README: Document assumptions that 'int' is at least 32 bits
56988         wide, that integer arithmetic is 2's complement without overflow,
56989         that there are no holes in integer values, that adding sizes of
56990         two nonoverlapping objects can't overflow, and that all-bits-zero
56991         yields scalar zero.  Fix spelling and capitalization typos.
56992
56993 2003-09-19  Karl Berry  <karl@gnu.org>
56994
56995         * lib/argp.h: update from libc.
56996
56997 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56998
56999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57000         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57001         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57002
57003 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57004
57005         * gnulib-tool: Use "test -h", not "test -L", for portability
57006         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57007         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57008         (sed_extract_prog): Issue s commands one-by-one, rather than
57009         using \| in one s command.
57010
57011 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57012
57013         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57014         input error, instead of returning NULL the next time we are called
57015         (and therefore losing track of errno).
57016
57017 2003-09-16  Bruno Haible  <bruno@clisp.org>
57018
57019         * gnulib-tool (func_create_testdir): Warn about duplicated
57020         dependencies.
57021
57022 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57023
57024         * modules/argmatch, modules/fatal, modules/obstack,
57025         modules/xalloc, modules/xgethostname: Sort dependencies by
57026         importance, not alphabetically.
57027
57028 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57029
57030         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57031         fails, so that the caller gets the proper errno.
57032
57033         * lib/readutmp.c (read_utmp): Likewise.
57034         Check for fstat error.  Close stream and free storage
57035         when failing.
57036
57037 2003-09-14  Karl Berry  <karl@gnu.org>
57038
57039         * config/srclist.txt (strdup.c): disable for c89 changes.
57040
57041 2003-09-14  Jim Meyering  <jim@meyering.net>
57042
57043         * lib/getloadavg.c: Correct cpp indentation.
57044         * lib/strdup.c: Likewise.
57045         * lib/vasnprintf.c: Likewise.
57046
57047 2003-09-14  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/fwriteerror: New file.
57050         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57051
57052 2003-09-14  Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/fwriteerror.h: New file.
57055         * lib/fwriteerror.c: New file.
57056
57057 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57058
57059         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57060         modules/xgethostname, modules/xalloc: Depend on exit.
57061
57062 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57063
57064         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57065
57066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57067         and AC_MINIX, too, so that their extensions are available.
57068
57069         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57070         This macro has been superseded by gl_BACKUPFILE.
57071
57072         More patches to assume C89 or better.
57073
57074         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57075
57076         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57077         unconditionally.
57078         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57079         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57080         Include <string.h>, <stdlib.h> unconditionally.
57081         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57082         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57083         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57084         headers or for string.h.
57085         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57086         or strtoul.
57087
57088         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57089         headers.
57090         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57091         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57092         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57093         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57096         memcpy, memset.
57097         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57098         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57099         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57100         strtol.
57101         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57102         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57104         strtoul.
57105
57106 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57107
57108         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57109         * lib/obstack.c [!defined _LIBC]: Likewise.
57110         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57111         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57112         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57113
57114         More changes to assume C89 or better.
57115
57116         * lib/error.c (error_tail): Assume vprintf.
57117
57118         * lib/argmatch.c (getenv): Remove decl.
57119         * lib/progreloc.c (get_full_program_name): Define via prototype.
57120         * lib/setenv.c (clearenv): Likewise.
57121         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57122         needed.
57123         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57124         (malloc, memcpy): Remove decls.
57125         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57126         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57127         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57128         (memcpy): Remove macro.
57129         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57130         (__P): Remove.  All uses removed.
57131         (PTR): Remove.  All uses changed to void *.
57132         (CHAR_BIT, NULL): Remove.
57133         (spaces, zeros, memset_space, memset_zero)
57134         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57135         Remove.
57136         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57137         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57138         Define with prototype.
57139         Remove now-unnecessary prototype decl.
57140         (extra_args_spec): Assume ANSI C.  All uses changed.
57141         (extra_args_spec_iso): Remove.
57142         (my_strftime, emacs_strftimeu): Define via prototype.
57143         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57144         unconditionally.
57145         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57146         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57147         (strtoul, strtol): Remove decls.
57148         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57149         LONG_MAX): Remove.
57150         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57151         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57152         (LOCALE_PARAM_PROTO): New macro.
57153         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57154         (INTERNAL (strtol), strtol): Define with a prototype.
57155         (PARAMS): Remove.  All uses removed.
57156         * lib/tempname.c: Include <string.h> unconditionally.
57157         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57158         * lib/xgethostname.c (main): Define with a prototype.
57159         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57160         Include <stdlib.h> unconditionally.
57161         (calloc, malloc, realloc, free): Remove decls.
57162         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57163         Include <stdlib.h> unconditionally.  Sort include file names.
57164         (strtod): Remove.
57165         (xstrtod): Define with a prototype.
57166         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57167         (strtol, strtoul): Remove decls.
57168
57169 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57170
57171         More patches to assume C89 or better.
57172         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57173         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57174         string.h, memchr, STDC_HEADERS.
57175
57176 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57177
57178         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57179         Include <stdlib.h>, <string.h> unconditionally.
57180         Remove now-unnecessary cast to char *.
57181         * lib/strnlen.c: Include <string.h> unconditionally.
57182         * lib/yesno.c (yesno): Define with a prototype.
57183
57184 2003-09-11  Bruno Haible  <bruno@clisp.org>
57185
57186         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57187
57188 2003-09-10  Jim Meyering  <jim@meyering.net>
57189
57190         * lib/error.c: Correct indentation of cpp directives.
57191
57192 2003-09-10  Bruno Haible  <bruno@clisp.org>
57193
57194         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57195         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57196         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57197         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57198         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57199         <stdlib.h> and <string.h> checks.
57200         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57201         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57202
57203 2003-09-10  Bruno Haible  <bruno@clisp.org>
57204
57205         * lib/strcspn.c: Include <string.h> unconditionally.
57206         * lib/strpbrk.c: Include <string.h> unconditionally.
57207         * lib/strstr.c: Include <string.h> unconditionally.
57208         * lib/unicodeio.c: Include <string.h> unconditionally.
57209         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57210         * lib/unsetenv.c: Likewise.
57211         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57212         * lib/yesno.c: Include <stdlib.h> unconditionally.
57213         (rpmatch): Add prototype.
57214
57215 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57216
57217         More patches to assume C89 or better.
57218         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57219         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57220         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57221         or for string.h.
57222         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57223         stdlib.h.
57224         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57225         C headers.
57226         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57227         string.h.
57228         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57229         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57230         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57231         or for string.h.
57232         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57233         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57234         C headers.
57235         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57236         memcpy.
57237         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57238         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57239         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57240         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57241         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57242         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57243         string.h, free.
57244         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57245         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57246         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57247         C headers, or for string.h.
57248         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57249         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57250         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57251         headers, memory.h, stdlib.h, string.h, strings.h.
57252         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57253         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57254         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57255         strchr.
57256         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57257         headers, memory.h, string.h.
57258         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57259         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57260         free.
57261         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57262         headers.
57263         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57264         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57265         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57266         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57267         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57268
57269 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57270
57271         More K&R removal.
57272
57273         * lib/acosl.c (main): Use a prototype.
57274         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57275         tanl.c: Likewise.
57276
57277         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57278
57279         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57280         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57281         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57282         with a prototype.
57283         * lib/getopt.c (const): Remove macro.
57284         Include <string.h> unconditionally.
57285         (my_index): Remove; all uses changed to strchr.
57286         (strlen): Remove decl.
57287         (exchange): Remove forward decl; no longer needed.
57288         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57289         Define with prototype.
57290         * lib/getopt1.c (const): Remove macro.
57291         (getopt_long, getopt_long_only, main): Define with prototype.
57292
57293         * lib/getugroups.c: Include <string.h> unconditionally.
57294
57295         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57296         (getusershell, setusershell, endusershell, readname, main):
57297         Define with prototypes.
57298
57299         * lib/group-member.c: Include group-member.h first.
57300         Include <stdlib.h> unconditionally.
57301
57302         * lib/hard-locale.c: Include hard-locale.h first.
57303         Include <stdlib.h>, <string.h> unconditionally.
57304
57305         * lib/hash.c (free, malloc): Remove decls.
57306         Include <stdlib.h> unconditionally.
57307
57308         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57309         (getenv): Do not declare.
57310
57311         * lib/idcache.c: Include <string.h> unconditionally.
57312
57313         * lib/long-options.c: Include long-options.h first, to test interface.
57314         Include <stdlib.h> unconditionally.
57315
57316         * lib/makepath.c: Include makepath.h first, to test interface.
57317         Include <stdlib.h> and <string.h> unconditionally.
57318
57319         * lib/linebuffer.c: Include <stdlib.h>.
57320         (free): Remove decl.
57321
57322         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57323         stddef.h. rpl_malloc returns void *, not char *.
57324         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57325         prototype.
57326
57327         * lib/md5.h: Include <limits.h> unconditionally.
57328         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57329         (__P): Remove; all uses removed.
57330         * lib/md5.c: Include "md5.h" first.
57331         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57332         md5_buffer, md5_process_bytes, md5_process_block):
57333         Define with prototypes.
57334         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57335         * lib/sha.c: Include "sha.h" first.
57336         Include <stdlib.h>, <string.h> unconditionally.
57337
57338         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57339         * lib/memcmp.c (__ptr_t): Likewise.
57340         * lib/memrchr.c (__ptr_t): Likewise.
57341         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57342         Include <string.h> unconditionally.
57343         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57344         * lib/memchr.c: Include <stdlib.h> unconditionally.
57345         * lib/memchr.c (LONG_MAX): Remove.
57346         * lib/memrchr.c (LONG_MAX): Likewise.
57347         * lib/memchr.c (__memchr): Define via a prototype.
57348         * lib/memrchr.c (__memrchr): Likewise.
57349         * lib/memcmp.c (__P): Remove, and remove all uses.
57350         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57351         Remove forward decls; no longer needed.
57352         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57353         Use types required by C89 in prototype.
57354
57355         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57356         * lib/savedir.c: Likewise.
57357         * lib/mkdir.c (free): Remove decl.
57358         * lib/rmdir.c (rmdir): Define with a prototype.
57359         * lib/savedir.c: Include savedir.h first, to test interface.
57360
57361         * lib/mktime.c (STDC_HEADERS): Remove.
57362         Include <stdlib.h>, <string.h> unconditionally.
57363
57364         * lib/modechange.c: Include <stdlib.h> unconditionally.
57365         (malloc): Remove decl.
57366
57367         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57368         (free): Remove decl.
57369
57370         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57371         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57372         (This type really should be intptr_t, but that's a C99ism.)
57373         (_obstack_memcpy): Remove: all uses changed to memcpy.
57374         Include <string.h> unconditionally.
57375         (struct obstack): Assume __STDC__ for types of members
57376         chunkfun, freefun, extra_arg.
57377         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57378         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57379         obstack_begin, obstack_specify_allocation,
57380         obstack_specify_allocation_with_arg, obstack_chunkfun,
57381         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57382         Remove unprototyped decls and the macros that use them.
57383         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57384         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57385         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57386         (defined __STDC__ && __STDC__)]:
57387         Remove nonprototyped code.
57388         Include <stdlib.h> unconditionally.
57389         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57390         _obstack_allocated_p, _obstack_free, obstack_free,
57391         _obstack_memory_used, print_and_abort):
57392         Define using prototypes.
57393         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57394         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57395         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57396         obstack_next_free, obstack_object_size, obstack_room) [0]:
57397         Remove unused, unprototyped code.
57398
57399         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57400
57401         * lib/physmem.c (physmem_total, physmem_available, main): Define
57402         with prototypes.
57403
57404         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57405         (main): Define with a prototype.
57406
57407         * lib/posixver.c (getenv): Remove decl.
57408
57409         * lib/putenv.c (malloc): Returns void *, not char *.
57410         Include <string.h> unconditionally.
57411         (strchr, memcpy, NULL): Do not define.
57412
57413         * lib/readtokens.c: Include readtokens.h first, to test interface.
57414         Include <stdlib.h>, <string.h> unconditionally.
57415         (init_tokenbuffer): Define with a prototype.
57416
57417         * lib/regex.c (PARAMS): Remove.  All uses removed.
57418         All uses of _RE_ARGS removed, too.
57419         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57420         unconditionally.
57421         (bzero): Assume memset exists.
57422         (memcmp, memcpy, NULL): Remove.
57423         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57424         char, or assignments to local vars of type signed char.
57425         (init_syntax_once, PREFIX(extract_number_and_incr),
57426         PREFIX(print_partial_compiled_pattern),
57427         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57428         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57429         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57430         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57431         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57432         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57433         wcs_compile_range, byte_compile_range, truncate_wchar,
57434         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57435         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57436         count_mbs_length, wcs_re_match_2_internal,
57437         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57438         PREFIX(alt_match_null_string_p),
57439         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57440         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57441         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57442         now-unnecessary declaration, if any.
57443         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57444         regcomp, regexec):
57445         Remove now-unnecessary casts among pointer types.
57446         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57447
57448         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57449         (free): Remove decl.
57450
57451         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57452
57453         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57454         (free): Remove decl.
57455
57456         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57457         * lib/xgetcwd.c: Likewise.
57458
57459         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57460         (free): Remove decl.
57461
57462         * lib/strchrnul.c (strchrnul): Define with a prototype.
57463         Fix bug: c_in was not converted to char before searching.
57464
57465         The following changes are not K&R related:
57466
57467         * lib/group-member.h: Include <sys/types.h>, so that this file is
57468         self-contained.
57469         * lib/makepath.h: Likewise.
57470
57471         * lib/getusershell.c (readname, default_index, line_size, readname):
57472         Use size_t, not int, for sizes.
57473         (readname): If the size overflows, report an error instead of
57474         looping forever.
57475
57476 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57477
57478         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57479         libc.
57480
57481 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57482
57483         * README: New section: portability guidelines.
57484
57485 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57486
57487         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57488         C89 spec.
57489
57490 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57491
57492         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57493
57494 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57495
57496         Assume C89 or better; remove K&R cruft.
57497         A few of these changes were first proposed by Derek Robert Price
57498         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57499
57500         * lib/addext.c: Include <string.h> unconditionally.
57501         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57502         Don't declare getenv or malloc.
57503
57504         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57505         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57506         (NULL): Remove.
57507         (find_stack_direction, alloca): Use prototypes.
57508
57509         * lib/atexit.c (atexit): Define using a prototype.
57510
57511         * lib/basename.c, dirname.c, stripslash.c:
57512         Include <string.h> unconditionally.
57513
57514         * lib/bcopy.c: Include <stddef.h>.
57515         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57516
57517         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57518
57519         * lib/error.h (error, error_at_line, error_print_progname)
57520         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57521         * lib/error.c: Include error.h first, to check interface.
57522         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57523         (VA_START): Remove; all uses changeed to va_start.
57524         (exit, strerror): Remove decls.
57525         (error_print_progname): Prototype uncondionally.
57526         Don't include <errno.h>; no longer needed.
57527         (private_strerror): Remove.
57528         (error_tail): Always define.
57529         (error, error_at_line): Assume C89 or better; always use prototypes.
57530         * lib/fatal.c: Include "fatal.h" first, to test interface.
57531         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57532         (VA_START): Remove; all uses changed to va_start.
57533         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57534         this case.
57535         (exit): Remove decl.
57536         (fatal): Prototype unconditionally.  Assume va_start works.
57537         Abort at end, to pacify gcc.
57538
57539         * lib/euidaccess.c (main): Define with a prototype.
57540
57541         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57542
57543         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57544
57545         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57546         prototypes.
57547         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57548         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57549         (getenv): Remove decl.
57550         (fnmatch): Define using a prototype.
57551         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57552         (FCT): Define using a prototype.
57553
57554         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57555
57556         * lib/gethostname.c: Include <stddef.h>.
57557         (gethostname): Define with prototype.  Length is size_t, not int.
57558
57559 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57560
57561         Assume C89 or better; remove K&R cruft.
57562         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57563         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57564         string.h, getenv, malloc.
57565         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57566         headers.
57567         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57568         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57569         do not check for strerror.
57570         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57571         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57572         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57573         do not check for doprnt or vprintf.
57574         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57575         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57576
57577 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57578
57579         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57580         getversion.c should have been removed then, but was accidentally
57581         preserved.
57582
57583         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57584         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57585
57586 2003-09-08  Karl Berry  <karl@gnu.org>
57587
57588         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57589                 config, forget about prep.
57590
57591         * config/depcomp, missing: update from automake.
57592
57593 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57594
57595         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57597
57598 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57599
57600         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57601         copy_tm_result.  Bug reported by Simon Josefsson in
57602         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57603
57604 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57605
57606         * m4/time_r.m4: New file.
57607         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57608         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57609         is. Check for timegm declaration.
57610         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57611         Do not check for gmtime_r.
57612         Replace mktime if __mktime_internal does not exist and if mktime
57613         hasn't been replaced already.
57614
57615 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57616
57617         * lib/time_r.c, lib/time_r.h: New files.
57618
57619         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57620         __localtime_r.
57621         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57622         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57623
57624         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57625         __gmtime_r.
57626         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57627         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57628         Include <time_r.h>.
57629
57630         * lib/timegm.c: Switch to glibc implementation, with the following
57631         changes:
57632         [defined HAVE_CONFIG_H]: Include <config.h>.
57633         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57634         (__mktime_internal) [!defined _LIBC]: New decl.
57635         (__gmtime_r) [!defined _LIBC]: New macro and function.
57636         (timegm): Use a prototype, since gnulib assumes C89.
57637         Do not bother declaring tmp to be const, as it's not really usefu.
57638         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57639         (timegm): Declare only if HAVE_DECL_TIMEGM.
57640
57641 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57642
57643         * MODULES.html.sh (func_all_modules): Add time_r.
57644         * modules/time_r: New file.
57645         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57646         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57647
57648 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57649
57650         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57651         Bug reported by Lute Kamstra in
57652         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57653
57654         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57655         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57656         course with correspondingly smaller numbers for tomorrow and
57657         yesterday.  From Tadayoshi Funaba.  Originally installed into
57658         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57659         coreutils merge?).
57660
57661 2003-08-31  Simon Josefsson  <jas@extundo.com>
57662
57663         * modules/timegm: New file.
57664         * MODULES.html.sh (func_all_modules): Add timegm.
57665
57666 2003-08-31  Simon Josefsson  <jas@extundo.com>
57667
57668         * m4/timegm.m4: New file.
57669
57670 2003-08-31  Simon Josefsson  <jas@extundo.com>
57671
57672         * lib/timegm.h: New file.
57673         * lib/timegm.c: New file.  Based on
57674         wget-1.8.2/src/http.c:mktime_from_utc.
57675
57676 2003-08-31  Karl Berry  <karl@gnu.org>
57677
57678         * lib/argp.h: update from libc.
57679
57680 2003-08-28  Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57683         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57684         followed by '#define fnmatch fnmatch_posix' gives an error.
57685
57686 2003-08-28  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57689         warning on QNX, which defines O_BINARY to 000000.
57690
57691 2003-08-27  Jim Meyering  <jim@meyering.net>
57692
57693         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57694         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57695         would fail after 32.  Reported by Danny Levinson.  Details here:
57696         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57697
57698 2003-08-24  Bruno Haible  <bruno@clisp.org>
57699
57700         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57701         MSVC7 <stdio.h> is included later.
57702
57703 2003-08-22  Simon Josefsson  <jas@extundo.com>
57704
57705         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57706
57707 2003-08-20  Karl Berry  <karl@gnu.org>
57708
57709         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57710
57711 2003-08-20  Bruno Haible  <bruno@clisp.org>
57712
57713         * modules/progname: New file.
57714         * MODULES.html.sh (func_all_modules): Add progname.
57715
57716 2003-08-20  Bruno Haible  <bruno@clisp.org>
57717
57718         * lib/progname.h: New file, from GNU gettext.
57719         * lib/progname.c: New file, from GNU gettext.
57720         * lib/progreloc.c: New file, from GNU gettext.
57721
57722 2003-08-19  Jim Meyering  <jim@meyering.net>
57723
57724         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57725         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57726
57727 2003-08-19  Bruno Haible  <bruno@clisp.org>
57728
57729         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57730         more.
57731
57732 2003-08-19  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/xstrdup.c: Assume <string.h> exists.
57735
57736 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57737
57738         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57739         in makefile rules.
57740
57741 2003-08-18  Jim Meyering  <jim@meyering.net>
57742
57743         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57744         * m4/lib-ld.m4: Likewise.
57745
57746 2003-08-18  Jim Meyering  <jim@meyering.net>
57747
57748         * lib/setenv.h: Indent nested cpp directive.
57749         * lib/vasnprintf.c: Remove trailing blanks.
57750
57751 2003-08-17  Simon Josefsson  <jas@extundo.com>
57752
57753         * modules/xstrndup: New file.
57754         * MODULES.html.sh (func_all_modules): Add xstrndup.
57755
57756 2003-08-17  Simon Josefsson  <jas@extundo.com>
57757
57758         * modules/argp: Fix autoconf macro name. Add more dependencies.
57759
57760 2003-08-17  Simon Josefsson  <jas@extundo.com>
57761
57762         * m4/xstrndup.m4: New file.
57763
57764 2003-08-17  Simon Josefsson  <jas@extundo.com>
57765
57766         * m4/argp.m4: New file.
57767
57768 2003-08-17  Simon Josefsson  <jas@extundo.com>
57769             Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/xstrndup.h: New file.
57772         * lib/xstrndup.c: New file.
57773
57774 2003-08-17  Bruno Haible  <bruno@clisp.org>
57775
57776         * modules/strndup (Files, Include): Add lib/strndup.h.
57777
57778 2003-08-17  Bruno Haible  <bruno@clisp.org>
57779
57780         * modules/euidaccess (Files): Add lib/euidaccess.h.
57781
57782 2003-08-17  Bruno Haible  <bruno@clisp.org>
57783
57784         * lib/strndup.h: New file.
57785
57786 2003-08-17  Bruno Haible  <bruno@clisp.org>
57787
57788         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57789         like AC_GNU_SOURCE.
57790         * modules/extensions (configure.ac): Comment out the invocation of
57791         gl_USE_SYSTEM_EXTENSIONS.
57792
57793 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57794
57795         Merges from coreutils, etc.
57796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57797         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57798         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57799         fixing a typo.
57800         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57801         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57802
57803 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57804
57805         Document merge from coreutils.
57806         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57807         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57808         * modules/utime: Add m4/utimes-null.m4.
57809
57810 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57811
57812         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57813         space, undoing this 2003-08-12 change:
57814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57815
57816 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57817
57818         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57819         strtoul.c from libc, undoing this 2003-08-12 change:
57820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57821
57822 2003-08-16  Jim Meyering  <jim@meyering.net>
57823
57824         Merges from coreutils.
57825         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57826         prefix.  Adjust cache variables similarly.  Create 500 rather than
57827         just 300 files, to exercise bug on Darwin6.5, too.
57828         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57829         $missing_dir.
57830         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57831         AM_SYS_POSIX_TERMIOS.
57832         Reported by mkc@mathdogs.com.
57833         Also change use of $am_cv_sys_posix_termios
57834         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57835         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57836         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57837         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57838         in /proc/mounts until it finds one with matching device number.  This
57839         is unnecessary when the FILE argument *is* a mount point.  No stat call
57840         is necessary in that case.  So, disable the statvfs-testing code on
57841         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57842         as RedHat bug# 84846.
57843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57844         to 1MB, so as not to render systems with no stack size limit (e.g.,
57845         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57846         Include <unistd.h>.  On some systems,
57847         it is required for the definition of _SC_PAGESIZE.
57848
57849 2003-08-16  Jim Meyering  <jim@meyering.net>
57850
57851         Merge from coreutils.
57852         * lib/xstrtoimax.c: #else #if -> #elif.
57853         * lib/xstrtoumax.c: Likewise.
57854
57855 2003-08-16  Jim Meyering  <jim@meyering.net>
57856
57857         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57858         * m4/utimes.m4: Removed.
57859         * m4/utimes-null.m4: Renamed from utimes.m4.
57860
57861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57862         to 1MB, so as not to render systems with no stack size limit (e.g.,
57863         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57864         Include <unistd.h>.  On some systems,
57865         it is required for the definition of _SC_PAGESIZE.
57866
57867 2003-08-16  Jim Meyering  <jim@meyering.net>
57868         and Paul Eggert  <eggert@cs.ucla.edu>
57869
57870         Merges from coreutils, etc.
57871
57872         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57873         using the latest version from cvs.  This avoids problems with #line
57874         directives using a vendor (Sun) compiler.
57875         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57876         Don't set GETGROUPS_LIB here; now it's
57877         done via getgroups.m4's wrapper function.
57878         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57879         rather than just in sh-util/configure.in, so that the
57880         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57881         same.
57882         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57883         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57884         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57885         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57886         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57887         Remove code that is now done by the newly-required macros.
57888         Append $(EXEEXT) to DF_PROG.
57889         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57890         Do not invoke or require the following here,
57891         since prereq.m4 or some gnulib .m4 now does this for us:
57892         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57893         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57894         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57895         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57896         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57897         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57898         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57899         AC_FUNC_OBSTACK.
57900         Do not replace the following functions, as this is now the job
57901         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57902         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57903         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57904         atexit getpass, strdup, getpagesize.
57905         Replace 'raise'.
57906         Do not check for the following functions, as this is now the job
57907         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57908         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57909         setregid.
57910         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57911         Check for sys/sysctl.h.
57912         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57913         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57914         of checking for ssize_t ourselves.
57915
57916         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57917         Require every macro that gnulib/modules/* suggests for us.
57918         (jm_PREREQ_ADDEXT): New macro.
57919         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57920         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57921
57922         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57923         (gl_PHYSMEM): Use it.
57924         Also check for `table' function.
57925         Check for new headers and functions.
57926         Add check for sys/sysmp.h.
57927         With suggestions from Kaveh Ghazi.
57928         Ignore headers that are present but cannot be compiled.  This
57929         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57930         C 5.4.
57931
57932 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57933
57934         Document merge from coreutils.
57935         * modules/userspec: Depend on posixver.
57936         * modules/strftime: Depend on tzset.
57937
57938 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57939
57940         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57941         rather than tab, after '#' in shell-script copyright notices.
57942         Suggested by Bruno Haible.
57943
57944 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57945
57946         * config/srclist-update: Use three spaces, rather than tab, after '#'
57947         in shell-script copyright notices.  Suggested by Bruno Haible.
57948         Remove unnecessary parenthesization in regular expression.
57949
57950 2003-08-15  Jim Meyering  <jim@meyering.net>
57951
57952         Merge from coreutils.
57953         * lib/xgethostname.c: Include <stdlib.h>.
57954         (xghostname): Don't exit for anything other than memory-related
57955         failure; just return NULL.
57956         * lib/userspec.c: Include "posixver.h".
57957         (parse_user_spec): Accept `.' as a separator only
57958         in pre-POSIX-200112 mode.
57959         * lib/strtoimax.c: Use #elif rather than #else #if.
57960         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57961         Remove function, now that we can rely on a working tzset function.
57962         [!_LIBC]: Ensure that the required autoconf test has been run.
57963         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57964         Use underlying_strftime for %r.
57965         * lib/sha.c: Merge in some clean-up and optimization changes from
57966         glibc.
57967         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57968         Ensure that it is a multiple of 64.
57969         Rearrange loop exit tests so as to avoid performing an
57970         additional fread after encountering an error or EOF.
57971         * lib/realloc.c: Update copyright date.
57972
57973 2003-08-15  Jim Meyering  <jim@meyering.net>
57974         and Paul Eggert  <eggert@twinsun.com>
57975
57976         Merge from coreutils.
57977         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57978         member but strut utmpx does not.  Needed for AIX 4.3.3.
57979         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57980
57981 2003-08-15  Jim Meyering  <jim@meyering.net>
57982         and Paul Eggert  <eggert@cs.ucla.edu>
57983
57984         Merges from coreutils, etc.
57985         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57986         Require gl_FUNC_TZSET_CLOBBER.
57987         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57988         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57989         members.
57990
57991 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57992
57993         Help the merge from coreutils.
57994         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57995         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57996         * m4/tzset.m4: Use it too.
57997
57998 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57999
58000         * modules/tzset: New file.
58001
58002 2003-08-14  Jim Meyering  <jim@meyering.net>
58003
58004         Merges from coreutils.
58005         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58006         variable names, rather than @FNMATCH_H@.
58007         * modules/alloca: Likewise for $(ALLOCA_H).
58008
58009         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58010         the three copies of the literal target, `fnmatch.h'.
58011         * modules/alloca (alloca.h): Likewise.
58012
58013 2003-08-14  Jim Meyering  <jim@meyering.net>
58014
58015         Merge from coreutils.
58016         * m4/tzset.m4: New file.
58017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58018         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58019         otherwise, AIX 5.1 systems would end up using the latter.
58020         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58021         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58022         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58023         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58024
58025 2003-08-14  Jim Meyering  <jim@meyering.net>
58026
58027         Merge from coreutils.
58028         * lib/obstack.h: Whitespace changes.
58029         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58030         and xcalloc return values.
58031         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58032         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58033         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58034         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58035         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58036         error from mntctl.
58037         Use mntctl's return value to drive the entry-processing loop, since
58038         we can't rely on the value of the vmt_length member in the last
58039         entry.  On some systems doing so could result in exhausting
58040         virtual memory.  Based in part on a patch from Mike Jetzer.
58041
58042 2003-08-14  Jim Meyering  <jim@meyering.net>
58043         and Paul Eggert  <eggert@twinsun.com>
58044
58045         Merges from coreutils, plus other fixes.
58046         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58047         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58048         for credits and details.  Thanks to Kaveh Ghazi for helping
58049         to keep these files in sync.
58050         (ARRAY_SIZE): Define it.
58051         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58052         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58053         (memcasecmp): Don't assume size_t fits in unsigned int.
58054         Remove casts and duplicate code.
58055         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58056         (memcpy): Remove definition.
58057         Merge in some clean-up and optimization changes from glibc.
58058         [BLOCKSIZE]: Move definition to top of file.
58059         Ensure that it is a multiple of 64.
58060         Rearrange loop exit tests so as to avoid performing an
58061         additional fread after encountering an error or EOF.
58062         * lib/md5.h (md5_uintptr): Define.
58063         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58064         return to the initial working directory.  Preserve errno
58065         for caller.
58066         * lib/idcache.c: Include "xalloc.h".
58067         (xmalloc, xrealloc): Remove decls.
58068         (getuser): Remove casts no longer required in C89.
58069         * lib/human.c: Include stdio.h, for sprintf.
58070         * lib/group-member.c: Include "xalloc.h".
58071         (xmalloc, xrealloc): Remove decls.
58072         (get_group_info): Remove casts no longer required in C89.
58073         * lib/getusershell.c (readname): Remove casts no longer required in
58074         C89.
58075         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58076         * lib/getline.c: Whitespace fix, from coreutils.
58077
58078 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58079
58080         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58081         Check for isascii.
58082
58083         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58084         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58085         Undo previous (whitespace-only) change.
58086
58087 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58088
58089         * lib/exclude.c: Include <ctype.h>
58090         (IN_CTYPE_DOMAIN): New macro.
58091         (is_space): New fn.
58092         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58093         and empty lines.
58094
58095         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58096         Undo previous (whitespace-only) change.
58097
58098 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58099
58100         * config/srclist-update: Change update back to the old behavior,
58101         leaving whitespace alone.  Use one 'sed' command rather than a
58102         pipeline.
58103         (fixlicense): Now a variable, not a function.
58104         (remove_trailing_blanks): Remove.
58105         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58106         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58107         Undo previous (whitespace-only) change.
58108
58109 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58110
58111         Merge from coreutils.
58112         * modules/euidaccess: Add lib_SOURCES, include for new
58113         file euidaccess.h
58114
58115 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58116
58117         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58118         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58119         Normalize leading white space and remove trailing white space.
58120
58121         Merge from coreutils
58122         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58123
58124         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58125         0.12.1.  These files are now being upgraded automatically by
58126         ../config/srclist-update.
58127
58128 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58129
58130         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58131         Normalize leading white space and remove trailing white space.
58132         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58133         notice, as per ../config/srclist-update.
58134
58135         Merge from coreutils.
58136         * lib/euidaccess.h: New file.
58137         * lib/euidaccess.c: Include it.
58138         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58139         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58140         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58141
58142 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58143
58144         * config/srclist-update: Add copyright notice.
58145         (remove_id_lines, remove_trailing_blanks): New constants.
58146         (fixfile): Use them to normalize spacing a bit in copied files.
58147         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58148         Normalize leading white space and remove trailing white space.
58149
58150         * config/texinfo.tex: Sync with texinfo.
58151
58152         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58153         strtoul.c from libc, to merge coreutils whitespace changes.
58154
58155         * config/srclist.txt: Get the following m4 files from gettext:
58156         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58157         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58158         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58159         wint_t.m4.
58160
58161 2003-08-12  Karl Berry  <karl@gnu.org>
58162
58163         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58164         been made.
58165
58166 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58167
58168         * modules/gnu-source, m4/gnu-source.m4:
58169         Remove; we're assuming Autoconf 2.54 or later now.
58170         Suggested by Bruno Haible.
58171         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58172
58173 2003-08-11  Bruno Haible  <bruno@clisp.org>
58174
58175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58176
58177 2003-08-11  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58180         (vasnprintf): Use it instead of wcslen.
58181
58182 2003-08-11  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58185         value to ensure that _Bool promotes to int. Use #define for _Bool when
58186         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58187
58188 2003-08-10  Karl Berry  <karl@gnu.org>
58189
58190         * lib/regex.h: update from libc (whitespace fix).
58191
58192 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58193
58194         Merge some files from coreutils.  These changes were
58195         originally made by Jim Meyering.
58196         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58197         many older Unixes require this.
58198         * lib/alloca.c (alloca): Remove cast to argument of free;
58199         no longer needed in C89.
58200         * lib/alloca_.h, regex.h: Fix white space to match
58201         what GNU indent does.
58202
58203 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58204
58205         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58206         apparently Emacs's Unicode mode got confused before my 2003-08-05
58207         checkin.
58208
58209 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58210
58211         * m4/extensions.m4: New file.
58212         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58213         Require gl_USE_SYSTEM_EXTENSIONS.
58214         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58215         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58216
58217 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58218
58219         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58220         * modules/extensions, modules/gnu-source: New files.
58221         * modules/timespec, modules/unlocked-io: Depend on extensions.
58222
58223 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58224
58225         * modules/restrict: New file.
58226         * MODULES.html.sh (func_all_modules): Add restrict.
58227         * modules/regex: Depend on restrict.
58228
58229 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58230
58231         * m4/restrict.m4: New file.
58232         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58233
58234 2003-08-07  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58237         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58238
58239 2003-08-07  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58242         makes the module 'getndelim2' compatible with the module 'getline'.
58243
58244 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58245
58246         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58247         byte with "\201" to avoid glitches when editing that source file
58248         with multi-gnome-terminal.
58249
58250 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58251
58252         * lib/bumpalloc.h: Remove.
58253
58254 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58255
58256         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58257         * modules/bumpalloc: Remove.
58258
58259 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58260
58261         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58262         GNU coding style.
58263
58264         Merge from coreutils.
58265         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58266         1. From glibc.
58267         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58268         from Karl Berry, implemented by Jim Meyering.
58269         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58270         from Dmitry V. Levin.
58271         Remove anachronistic cast of xrealloc.
58272         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58273         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58274         type. Otherwise, it wouldn't compile with at least /bin/cc on
58275         ymp-cray-unicos9.0.2.X.
58276         Combine two mostly-identical uses of alloca into one.
58277         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58278
58279 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58280
58281         [From Emacs.]
58282
58283         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58284         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58285         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58286         obsolete NLIST_NAME_UNION.
58287         [__GNU__]: Undef BSD and FSCALE.
58288         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58289
58290 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58291
58292         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58293         an enum type, so that it's guaranteed to promote to int.  See:
58294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58295
58296 2003-08-03  Karl Berry  <karl@gnu.org>
58297
58298         * config/depcomp: update from automake.
58299
58300 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58301
58302         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58303         (strerror): Don't assume that a printable int fits in 14 bytes.
58304
58305 2003-07-31  Bruno Haible  <bruno@clisp.org>
58306
58307         * modules/getpass-gnu: New file.
58308         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58309
58310 2003-07-31  Bruno Haible  <bruno@clisp.org>
58311
58312         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58313
58314 2003-07-24  Karl Berry  <karl@gnu.org>
58315
58316         * config/missing: update from automake.
58317
58318 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58319             Bruno Haible  <bruno@clisp.org>
58320
58321         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58322         * lib/getline.c (getline, getdelim): Likewise.
58323         Remove _GNU_SOURCE define; now it's defined in config.h through
58324         m4/getline.m4.
58325
58326 2003-07-23  Karl Berry  <karl@gnu.org>
58327
58328         * config/config.sub: update from prep.
58329
58330 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58331
58332         * modules/xalloc (Depends-on): Add exitfail.
58333         * modules/xmemcoll: Likewise.
58334
58335 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58336
58337         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58338         over-parenthesization in macros.
58339
58340         Sync with coreutils.
58341
58342         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58343         required by C99.
58344
58345         Use `exit_failure' for xalloc and xmemcoll instead of their own
58346         private exit-failure variables.
58347         * lib/xalloc.h (xalloc_exit_failure): Remove.
58348         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58349         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58350         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58351         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58352         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58353
58354 2003-07-20  Jim Meyering  <jim@meyering.net>
58355
58356         * modules/closeout (Depends-on): Add exitfail.
58357         Suggestion from Bruno Haible.
58358
58359 2003-07-19  Karl Berry  <karl@gnu.org>
58360
58361         * config/config.sub: update from prep.
58362
58363 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58364
58365         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58366         Remove.
58367         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58368         to test that it can stand by itself.  Include "exitfail.h".
58369         Clients should set exit_failure instead.
58370         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58371
58372 2003-07-18  Bruno Haible  <bruno@clisp.org>
58373
58374         * modules/getndelim2: New file.
58375         * modules/getline: Share files with module getndelim2.
58376         * modules/getnline: Depend on getndelim2 instead of sharing files with
58377         it. Add getnline.c to lib_SOURCES.
58378         * MODULES.html.sh (func_all_modules): Add getndelim2.
58379
58380 2003-07-18  Bruno Haible  <bruno@clisp.org>
58381
58382         * m4/getndelim2.m4: New file.
58383         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58384         invoke gl_PREREQ_GETNDELIM2.
58385         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58386         gl_PREREQ_GETNDELIM2.
58387         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58388         gl_GETNDELIM2.
58389
58390 2003-07-18  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/getndelim2.h: New file.
58393         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58394         getndelim2.h.
58395         (getndelim2): Make non-static. Change return type to ssize_t.
58396         * lib/getline.h: Change argument names.
58397         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58398         * lib/getnline.c: Include getndelim2.h.
58399
58400 2003-07-18  Andreas Schwab  <schwab@suse.de>
58401
58402         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58403
58404 2003-07-17  Karl Berry  <karl@gnu.org>
58405
58406         * config/config.sub: update from prep.
58407
58408 2003-07-17  Bruno Haible  <bruno@clisp.org>
58409
58410         * modules/getnline: New file.
58411         * modules/getline: Add lib/getndelim2.c to source file list.
58412         * MODULES.html.sh (func_all_modules): Add getnline.
58413
58414 2003-07-17  Bruno Haible  <bruno@clisp.org>
58415
58416         * m4/getnline.m4: New file.
58417
58418 2003-07-17  Bruno Haible  <bruno@clisp.org>
58419
58420         * m4/Makefile.am.in: Remove file.
58421         * m4/Makefile.am: Remove file.
58422         * m4/Makefile.in: Remove file.
58423
58424 2003-07-17  Bruno Haible  <bruno@clisp.org>
58425
58426         * lib/getnline.h: New file.
58427         * lib/getnline.c: New file.
58428         * lib/getndelim2.c: New file, extracted from getline.c.
58429         (getndelim2): Renamed from getdelim2, with added nmax argument.
58430         * lib/getline.c: Include getndelim2.c.
58431         (getdelim2): Moved out to getndelim2.c.
58432         (getline, getdelim): Update.
58433
58434 2003-07-17  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/Makefile.am: Remove file.
58437         * lib/Makefile.in: Remove file.
58438
58439 2003-07-17  Bruno Haible  <bruno@clisp.org>
58440
58441         * configure.in: Remove file.
58442         * Makefile.in: Remove file.
58443
58444 2003-07-17  Bruno Haible  <bruno@clisp.org>
58445
58446         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58447
58448 2003-07-16  Karl Berry  <karl@gnu.org>
58449
58450         * config/srclist-update: was running fixlicense twice, which caused
58451                 texinfo.tex to be nullified for some reason.  Simplify,
58452                 $gplsrc is no longer needed as far as I can see?
58453
58454 2003-07-16  Jim Meyering  <jim@meyering.net>
58455
58456         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58457
58458 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58459
58460         * config/srclist.txt: Get the following files from gettext-runtime/intl
58461         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58462         ref-del.sin.  From Bruno Haible.
58463         * config/srclist-update (fixfile): Change grep pattern again, since the
58464         previous fix didn't work (there was another trailing $).  Use
58465         '[$]' to escape the $s.
58466
58467 2003-07-15  Karl Berry  <karl@gnu.org>
58468
58469         * lib/vasnprintf.c: update from gettext.
58470
58471 2003-07-15  Karl Berry  <karl@gnu.org>
58472
58473         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58474         gets expanded when surrounded by '$'.
58475
58476 2003-07-15  Jim Meyering  <jim@meyering.net>
58477
58478         * modules/save-cwd: Don't depend on error.  From Derek Price.
58479
58480 2003-07-15  Jim Meyering  <jim@meyering.net>
58481
58482         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58483
58484 2003-07-14  Simon Josefsson  <jas@extundo.com>
58485
58486         * modules/mempcpy: New file.
58487         * MODULES.html.sh (func_all_modules): Add mempcpy.
58488
58489 2003-07-14  Simon Josefsson  <jas@extundo.com>
58490
58491         * m4/mempcpy.m4: New file.
58492
58493 2003-07-14  Simon Josefsson  <jas@extundo.com>
58494
58495         * lib/mempcpy.h: New file.
58496         * lib/mempcpy.c: New file.
58497
58498 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58499
58500         * modules/getdate, modules/posixtm: Depend on mktime.
58501
58502 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58503
58504         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58505         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58506         unicodeio.c, unicodeio.h, unlocked-io.h:
58507         Switch from LGPL to GPL.
58508
58509 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58510
58511         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58512         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58513         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58514         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58515         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58516         updated automatically by ../config/srclist-update.  This changes
58517         their license from LPGL to GPL.
58518
58519 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58520
58521         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58522         assumed to refer to the root of the most recent stable gettext version.
58523         * config/srclistvars.sh: Add defaults for eggert.
58524         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58525         Match "This program" as well as "The program".  This is needed
58526         for gettext.
58527
58528 2003-07-14  Jim Meyering  <jim@meyering.net>
58529
58530         Don't emit diagnostics.  Let callers do that.
58531         * lib/save-cwd.c: Don't include "error.h".
58532         (save_cwd): Don't call error.  Ensure that errno is valid
58533         when returning nonzero.
58534
58535         * lib/save-cwd.h (restore_cwd): Update prototype.
58536         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58537         Simplify.  Don't call error upon failure.  Let callers do that.
58538         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58539         when auditing is enabled.  But don't bother updating the #if.
58540
58541 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58542
58543         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58544         it breaks C++ compilation.
58545         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58546
58547 2003-07-10  Simon Josefsson  <jas@extundo.com>
58548
58549         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58550
58551 2003-07-10  Jim Meyering  <jim@meyering.net>
58552
58553         * m4/clock_time.m4: Remove trailing blank.
58554         * m4/intmax_t.m4: Likewise.
58555
58556 2003-07-10  Jim Meyering  <jim@meyering.net>
58557
58558         * lib/vasnprintf.c: Remove trailing blanks.
58559         Make cpp indentation consistent.
58560
58561 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58562
58563         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58564         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58565         Switch from LGPL to GPL.
58566
58567 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58568
58569         * config/srclist.txt: Sort sublists.  Add
58570         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58571         that differ from gnulib for one reason or another; we'd like this list
58572         to be smaller but for now let's document what we have.
58573
58574 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58575
58576         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58577         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58578         and sweeter "eval x=$x".
58579         * config/srclist.txt: Get lib/argp* from glibc.
58580
58581 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58582
58583         * lib/mktime.c: Fix some boundary cases and remove need for floating
58584         point.
58585
58586         Issue a compile-time diagnostic if time_t is floating point, or if
58587         two's complement arithmetic is not in effect, or if arithmetic
58588         right shift does not propagate the sign.  These assumptions were
58589         all in the original code but they weren't checked.
58590
58591         (TIME_T_MIDPOINT, verify): New macros.
58592         (__isleap): Remove; it has integer overflow problems.
58593         (leapyear): New function, without those problems.
58594         (ydhms_tm_diff): Remove; splitting into two parts.
58595         (ydhms_diff): New function, containing the arithmetic part of
58596         the old ydhms_tm_diff function.  Issue a compile-time
58597         diagnostic if we are not using C99 integer division.
58598         Avoid casts when possible.
58599         (guess_time_tm): New function, containing the checking part of
58600         the old ydhms_tm_diff function.  Return the new value, rather than
58601         the difference between it and the old.  Accept a new argument T
58602         so that *T specifies the old value.  Check for overflow in the result.
58603
58604         (__mktime_internal): Use a time_t offset, not a long int offset.
58605         This undoes the 2003-06-04 change, which is no longer needed now
58606         that we have better overflow checking.
58607         (localtime_offset): Likewise.
58608
58609         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58610         and long are 64-bit but int is only 32-bit.
58611         (ydhms_diff): Use long int to store year1 and yday1.
58612         Issue a compile-time diagnostic if long int is not wide enough.
58613
58614         (__mktime_internal): Use long int to store adjusted year and yday.
58615         Use plain C rather than preprocessor commands, if that doesn't
58616         affect efficiency.
58617         Check for overflow (and try to repair) after each probe
58618         rather than checking only at the very end.  This avoids some bugs
58619         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58620         does not equal GMT offset at maximum time).
58621         Use integer to check for overflow rather than floating point; this
58622         is more portable to non-IEEE hosts, and is a tad faster.
58623         When we detect that we are oscillating between two values,
58624         don't check whether tm_isdst has the requested value, since
58625         we already know the answer.  When tm_isdst has the wrong value,
58626         use a different heuristic to find the right one, based on the
58627         extreme values actually observed in practice in tz2003a,
58628         rather than the (overly optimistic) "previous 3 calendar quarters".
58629
58630         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58631         "T const" to accommodate glibc style.
58632         (check_result): Use less-confusing report format.  "long" -> "long int.
58633         (main): Likewise.
58634         Don't loop if the iteration overflows time_t.
58635         Allow a negative step in the iteration.
58636
58637 2003-07-06  Karl Berry  <karl@gnu.org>
58638
58639         * config/depcomp: update from automake.
58640         * config/config.sub: update from prep.
58641
58642 2003-07-03  Karl Berry  <karl@gnu.org>
58643
58644         * config/config.guess: update from prep.
58645
58646 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58647
58648         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58649         xreadlink.c now includes it unconditionally.
58650
58651 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58652
58653         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58654         having it depend on HAVE_SYS_TYPES_H.
58655
58656 2003-07-01  Bruno Haible  <bruno@clisp.org>
58657
58658         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58659         <sys/types.h> should be sufficient.
58660         Reported by Paul Eggert.
58661
58662 2003-06-26  Karl Berry  <karl@gnu.org>
58663
58664         * config/depcomp: update from automake.
58665
58666 2003-06-26  Bruno Haible  <bruno@clisp.org>
58667
58668         * modules/human: Depend on module stdbool.
58669
58670 2003-06-25  Bruno Haible  <bruno@clisp.org>
58671
58672         * modules/readlink: New file.
58673         * modules/xreadlink: Depend on it.
58674         * MODULES.html.sh (func_all_modules): Add readlink.
58675
58676 2003-06-25  Bruno Haible  <bruno@clisp.org>
58677
58678         * m4/readlink.m4: New file.
58679
58680 2003-06-25  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/readlink.c: New file.
58683
58684 2003-06-22  Karl Berry  <karl@gnu.org>
58685
58686         * config/srclist.txt: update mkinstalldirs from automake.
58687         * config/mkinstalldirs: update.
58688
58689 2003-06-22  Bruno Haible  <bruno@clisp.org>
58690
58691         Portability to mingw32.
58692         * m4/ssize_t.m4: New file, from GNU gettext.
58693         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58694         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58695
58696 2003-06-22  Bruno Haible  <bruno@clisp.org>
58697
58698         * modules/safe-read: Add m4/ssize_t.m4.
58699         * modules/xreadlink: Add m4/ssize_t.m4.
58700
58701 2003-06-20  Bruno Haible  <bruno@clisp.org>
58702
58703         Assume C89, so PARAMS isn't needed.
58704         * lib/unicodeio.h (PARAMS): Remove.
58705         * lib/unicodeio.c: Don't use PARAMS.
58706
58707 2003-06-18  Karl Berry  <karl@gnu.org>
58708
58709         * config/config.{guess,sub}: update from prep.
58710
58711 2003-06-18  Jim Meyering  <jim@meyering.net>
58712
58713         Merge changes from coreutils.
58714         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58715         Remove explicit declarations of xmalloc and realloc.
58716         Include xalloc.h.
58717         (read_utmp): Remove anachronistic cast of xmalloc.
58718
58719 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58720
58721         Assume C89, so PARAMS isn't needed.
58722         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58723         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58724         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58725         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58726         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58727         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58728         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58729         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58730         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58731         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58732         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58733         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58734         no longer needed. Anyway, config.h should always be included before any
58735         other file.
58736
58737 2003-06-11  Simon Josefsson  <jas@extundo.com>
58738
58739         * modules/sysexits: New file.
58740         * MODULES.html.sh (func_all_modules): Add sysexits.
58741
58742 2003-06-11  Simon Josefsson  <jas@extundo.com>
58743
58744         * lib/sysexit_.h: New file.
58745
58746 2003-06-11  Derek Price  <derek@ximbiot.com>
58747
58748         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58749         necessary.
58750
58751 2003-06-11  Bruno Haible  <bruno@clisp.org>
58752
58753         * m4/sysexits.m4: New file.
58754
58755 2003-06-10  Simon Josefsson  <jas@extundo.com>
58756
58757         * lib/argp.h: New file, from glibc.
58758         * lib/argp-ba.c: New file, from glibc.
58759         * lib/argp-eexst.c: New file, from glibc.
58760         * lib/argp-fmtstream.c: New file, from glibc.
58761         * lib/argp-fmtstream.h: New file, from glibc.
58762         * lib/argp-fs-xinl.c: New file, from glibc.
58763         * lib/argp-help.c: New file, from glibc.
58764         * lib/argp-namefrob.h: New file, from glibc.
58765         * lib/argp-parse.c: New file, from glibc.
58766         * lib/argp-pv.c: New file, from glibc.
58767         * lib/argp-pvh.c: New file, from glibc.
58768         * lib/argp-xinl.c: New file, from glibc.
58769
58770 2003-06-10  Simon Josefsson  <jas@extundo.com>
58771
58772         * modules/strchrnul: New file.
58773
58774 2003-06-10  Simon Josefsson  <jas@extundo.com>
58775
58776         * modules/argp: New file.
58777
58778 2003-06-10  Simon Josefsson  <jas@extundo.com>
58779
58780         * m4/strchrnul.m4: New file.
58781
58782 2003-06-10  Simon Josefsson  <jas@extundo.com>
58783
58784         * lib/strchrnul.h: New file.
58785         * lib/strchrnul.c: New file.
58786
58787 2003-06-10  Bruno Haible  <bruno@clisp.org>
58788
58789         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58790
58791 2003-06-07  Karl Berry  <karl@gnu.org>
58792
58793         * config/config.{guess,sub}: update from prep.
58794
58795 2003-06-07  Jim Meyering  <jim@meyering.net>
58796
58797         * modules/strtod: Use $(...) notation, not @...@ for
58798         AC_REPLACE'd variables.
58799         * modules/localcharset: Likewise.
58800
58801 2003-06-07  Jim Meyering  <jim@meyering.net>
58802
58803         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58804         in place of my name in the copyright comment.
58805         Remove definition and uses of __P.
58806
58807         From coreutils.
58808         * lib/stat.c: Don't declare xmalloc explicitly.
58809         Instead, include "xalloc.h".
58810         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58811         xrealloc, and xcalloc return values.
58812         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58813         Improve comment.
58814         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58815
58816 2003-06-07  Bruno Haible  <bruno@clisp.org>
58817
58818         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58819         avoid AC_CONFIG_LINKS.
58820         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58821         fnmatch.h, to avoid AC_CONFIG_LINKS.
58822         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58823
58824 2003-06-07  Bruno Haible  <bruno@clisp.org>
58825
58826         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58827         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58828         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58829         directory.
58830         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58831         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58832         directory.
58833
58834 2003-06-06  Jim Meyering  <jim@meyering.net>
58835
58836         Merge from coreutils.
58837         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58838         Consolidate declarations and initializations of *_base* locals.
58839
58840         Merge from coreutils.
58841         This avoids a core dump on systems without GNU putenv,
58842         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58843         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58844         (unsetenv): New static function, from GNU libc.
58845         (rpl_putenv): Use it.
58846
58847         * lib/modechange.c: Remove trailing blanks.
58848
58849         Merge from coreutils.
58850         * lib/fsusage.c: Remove declaration of statfs.
58851         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58852
58853         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58854
58855 2003-06-06  Jim Meyering  <jim@meyering.net>
58856
58857         * lib/stdbool_.h: Renamed from stdbool.h.in.
58858
58859 2003-06-06  Jim Meyering  <jim@meyering.net>
58860             Bruno Haible  <bruno@clisp.org>
58861
58862         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58863         Adjust Makefile.am snippet not to redirect directly to target.
58864         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58865
58866 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58867
58868         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58869         mismatch, look in future quarters as well as past.  This fixes a
58870         bug when processing fall-backwards gaps immediately after a long
58871         period of daylight-saving time.
58872
58873         * lib/mktime.c: Assume freestanding C89 or better.
58874         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58875         (__P): Remove; not used.
58876         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58877         (mktime, not_equal_tm, print_tm, check_result,
58878         main): Use prototypes.  Use const * where appropriate.
58879         (main): Fix typo in testing code that uncovered by above changes.
58880         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58881
58882 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58883
58884         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58885         locale.h, localeconv.  This merges changes from coreutils.
58886
58887         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58888         It can be removed after the next Autoconf is released.
58889         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58890         needed.
58891
58892 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58893
58894         * lib/mktime.c: Fix Debian bug 177940
58895         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58896         (localtime_offset): Now long int, not time_t, because we want it
58897         to be guaranteed to be signed.  All uses changed.
58898         (__mktime_internal): If overflow would occur when adding offset,
58899         don't add it.
58900
58901         Merge 'human' changes from coreutils.  Rewrite to support
58902         locale-specific notations like thousands separators.
58903         * lib/human.c: Simplify authorship notice.
58904         Include human.h immediately after config.h.
58905         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58906         <limits.h>: Do not include, since human.h does.
58907         (SIZE_MAX, UINTMAX_MAX): New macros.
58908         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58909         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58910         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58911         (power_letter): Renamed from suffixes.
58912         (generate_suffix_backwards): Remove.
58913         (adjust_value): Now takes int style (because of human.h changes)
58914         and long double value (for greater precision on some platforms).
58915         (group_number): New function.
58916         (human_readable): Use it.  Use integer options, not enum.
58917         Put the options before the sizes in the arg list.
58918         Support all the new options.
58919         The old human_readable function has been removed;
58920         use inttostr.h instead.
58921         (human_readable, default_block_size, humblock):
58922         Use uintmax_t, not int, for block sizes.
58923         (human_readable_inexact, block_size_types): Remove.
58924         (block_size_opts): New constant.
58925         (human_options): Renamed from human_block_size, with new signature
58926         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58927         * lib/human.h: Add copyright and authorship notice.
58928         Include <limits.h> and <stdbool.h> unconditionally.
58929         (PARAMS): Remove.  All uses removed.
58930         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58931         (enum human_inexact_style): Remove tag; now a nameless enum.
58932         (human_floor, human_ceiling, human_round_to_even): Now have
58933         values 2, 0, 1 rather than -1, 1, 0.
58934         (human_group_digits, human_suppress_point_zero, human_autoscale,
58935         human_base_1024, human_SI, human_B): New constants.
58936         (human_readable_inexact, human_block_size): Remove.
58937         (human_readable): Size args are now uintmax_t, not int.
58938         (human_options): New decl.
58939
58940         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58941         unnecessary now that we assume C89 or better.  This change
58942         imported from coreutils.
58943
58944         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58945         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58946         in the 2003-05-30 sync from glibc.
58947
58948         .h files should stand alone, but we shouldn't include <sys/types.h>
58949         if we can get away with just <stddef.h>.
58950
58951         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58952         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58953         rather than <sys/types.h>, as we merely need size_t.
58954         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58955         to get size_t.
58956         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58957         Include <stdio.h>, to get FILE.
58958         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58959         memcasecmp.h has included <stddef.h> and all we need is size_t.
58960         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58961         our interface, instead of including <sys/types.h>
58962
58963 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58964
58965         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58966         now, as glibc mktime is buggy on non-glibc systems.
58967
58968 2003-06-03  Karl Berry  <karl@gnu.org>
58969
58970         * config/config.sub: update from prep.
58971
58972 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58973
58974         [from coreutils]
58975         Fix some minor time-related bugs with POSIX time arguments.
58976         Some valid time stamps were being rejected (notably -1, and
58977         time stamps before 1900 on 64-bit hosts).  And some invalid
58978         time stamps were being accepted, e.g. September 31.
58979
58980         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58981         that we can return (time_t) -1 successfully.
58982         * lib/posixtm.c: Likewise.
58983         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58984         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58985         (t): Remove static var.
58986         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58987         of static var.  All uses changed.
58988         (year): Do not reject years before 1900; they can occur with
58989         64-bit time_t.
58990         (posix_time_parse): Do not check for out-of-range components;
58991         that is now the caller's responsibility, since our checks were
58992         only approximations.
58993         (posixtime): Use mktime to check for out-of-range components,
58994         since it knows them exactly.
58995         If mktime returns (time_t) -1, check whether an error actually occurred
58996         by invoking localtime on -1.
58997         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58998         posixtime failures better.
58999         Improve the test data (in comments only).
59000
59001 2003-06-02  Karl Berry  <karl@gnu.org>
59002
59003         * config/mkinstalldirs (version): new variable.
59004         (--version): new option.
59005         (usage): improve message.
59006
59007 2003-05-30  Karl Berry  <karl@gnu.org>
59008
59009         * lib/mktime.c: update from libc.
59010
59011 2003-05-30  Bruno Haible  <bruno@clisp.org>
59012
59013         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59014         * config/config.rpath: Upgrade to gettext-0.12.1.
59015
59016 2003-05-30  Bruno Haible  <bruno@clisp.org>
59017
59018         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59019         * m4/nls.m4: New file, from gettext-0.12.1.
59020         * m4/po.m4: New file, from gettext-0.12.1.
59021         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59022
59023 2003-05-30  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59026         * lib/localcharset.h: Likewise.
59027         * lib/localcharset.c: Likewise.
59028
59029 2003-05-29  Karl Berry  <karl@gnu.org>
59030
59031         * config/config.rpath: update from gettext.
59032
59033 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59034
59035         Assume the headers required for C89 freestanding compilers.
59036         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59037         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59038         * m4/human.m4 (gl_HUMAN): Likewise.
59039         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59040         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59041         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59042         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59044         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59045
59046 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59047
59048         Assume the headers required for C89 freestanding compilers.
59049         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59050         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59051         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59052         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59053         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59054         define, since <limits.h> is guaranteed to do that.
59055         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59056         * lib/exclude.c: Include <stdbool.h> unconditionally.
59057         * lib/tempname.c: Include <stddef.h> unconditionally.
59058         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59059         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59060         <stddef.h> does that.
59061         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59062         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59063         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59064         needed.
59065         * lib/xstrtol.c: Likewise.
59066         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59067         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59068
59069         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59070         warnings on some platforms.
59071
59072         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59073         arbitrarily.
59074
59075 2003-05-26  Jim Meyering  <jim@meyering.net>
59076
59077         Merge in a change from coreutils:
59078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59079         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59080         that condition, rather than `-1' which is slightly misleading.
59081         Change the name of the cache variable to have the gl_ prefix.
59082         Prompted by a patch from Richard Dawe for DJGPP.
59083
59084 2003-05-24  Karl Berry  <karl@gnu.org>
59085
59086         * config/config.guess: update from prep.
59087
59088 2003-05-22  Karl Berry  <karl@gnu.org>
59089
59090         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59091
59092 2003-05-20  Karl Berry  <karl@gnu.org>
59093
59094         * config/config.guess: update from prep.
59095
59096 2003-05-18  Karl Berry  <karl@gnu.org>
59097
59098         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59099         might actually be set by the user.
59100
59101         * config/depcomp, install-sh, mdate-sh: update from automake.
59102
59103 2003-05-17  Bruno Haible  <bruno@clisp.org>
59104
59105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59106         invalid expansion for AC_EGREP_CPP.
59107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59109         Suggested by Akim Demaille <akim@epita.fr> in
59110         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59111
59112 2003-05-12  Jim Meyering  <jim@meyering.net>
59113
59114         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59115         the space-padded-by-default conversion specifiers, %e, %k, %l.
59116
59117 2003-05-12  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59120         the string is longer than 4 KB.
59121
59122 2003-05-11  Karl Berry  <karl@gnu.org>
59123
59124         * config/config.{guess,sub}: update from prep.
59125
59126 2003-05-09  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/error: Add m4/strerror_r.m4 to file list.
59129
59130 2003-05-03  Bruno Haible  <bruno@clisp.org>
59131
59132         Upgrade to Unicode-4.0.
59133         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59134         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59135         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59136         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59137         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59138         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59139         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59140         Change width of U+E0100..U+E01EF from 1 to 0.
59141
59142 2003-04-25  Jim Meyering  <jim@meyering.net>
59143
59144         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59145         of type size_t, not int.
59146
59147 2003-04-25  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/copy-file.c: Include <stddef.h>, for size_t.
59150
59151 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59152
59153         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59154         code which expansion is under static control.  Patch imported from
59155         Akim Demaille's patch to Bison; see
59156         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59157
59158 2003-04-14  Bruno Haible  <bruno@clisp.org>
59159
59160         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59161
59162 2003-04-11  Jim Meyering  <jim@meyering.net>
59163
59164         Merge changes from Coreutils.
59165
59166         2003-03-22  Jim Meyering  <jim@meyering.net>
59167
59168         * lib/strftime.c (widen): Cast alloca return value to proper type.
59169
59170         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59171
59172         From GNU libc.
59173         * lib/strftime.c (my_strftime): Handle very large width
59174         specifications for numeric values correctly.  Improve checks for
59175         overflow.
59176
59177         2003-01-19  Jim Meyering  <jim@meyering.net>
59178
59179         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59180         definitions.
59181         (nl_get_alt_digit) [! defined my_strftime]: Define.
59182         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59183         _nl_get_alt_digit and _nl_get_walt_digit.
59184
59185         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59186         libc. These changes have no effect outside of _LIBC.
59187
59188 2003-04-10  Bruno Haible  <bruno@clisp.org>
59189
59190         * modules/findprog: New file.
59191         * MODULES.html.sh (func_all_modules): Add it.
59192
59193 2003-04-10  Bruno Haible  <bruno@clisp.org>
59194
59195         * m4/findprog.m4: New file.
59196         * m4/eaccess.m4: New file.
59197
59198 2003-04-10  Bruno Haible  <bruno@clisp.org>
59199
59200         * lib/findprog.h: New file, from GNU gettext.
59201         * lib/findprog.c: New file, from GNU gettext.
59202
59203 2003-04-05  Jim Meyering  <jim@meyering.net>
59204
59205         Merge changes from Coreutils.
59206
59207         * lib/exclude.h (PARAMS): Remove definition and uses.
59208         * lib/exclude.c: Remove uses of `PARAMS'.
59209
59210         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59211         Add test-cases for DOS filenames. Declare program_name.
59212         (main): Set up program_name.  Patch by Rich Dawe.
59213
59214         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59215         error from mntctl.
59216         Use mntctl's return value to drive the entry-processing loop, since
59217         we can't rely on the value of the vmt_length member in the last
59218         entry.  On some systems doing so could result in exhausting
59219         virtual memory.  Based in part on a patch from Mike Jetzer.
59220
59221 2003-04-04  Bruno Haible  <bruno@clisp.org>
59222
59223         * modules/linebreak: New file.
59224         * MODULES.html.sh (func_all_modules): Add it.
59225
59226 2003-04-04  Bruno Haible  <bruno@clisp.org>
59227
59228         * m4/linebreak.m4: New file.
59229
59230 2003-04-04  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/linebreak.h: New file, from GNU gettext.
59233         * lib/linebreak.c: New file, from GNU gettext with slight
59234         modifications.
59235         * lib/lbrkprop.h: New file, from GNU gettext.
59236
59237 2003-04-03  Bruno Haible  <bruno@clisp.org>
59238
59239         * modules/utf8-ucs4: New file.
59240         * modules/utf16-ucs4: New file.
59241         * modules/ucs4-utf8: New file.
59242         * modules/ucs4-utf16: New file.
59243         * MODULES.html.sh (func_all_modules): Add them.
59244
59245 2003-04-03  Bruno Haible  <bruno@clisp.org>
59246
59247         * m4/utf-ucs4.m4: New file.
59248         * m4/ucs4-utf.m4: New file.
59249
59250 2003-04-03  Bruno Haible  <bruno@clisp.org>
59251
59252         * lib/utf8-ucs4.h: New file, from GNU gettext.
59253         * lib/utf16-ucs4.h: New file, from GNU gettext.
59254         * lib/ucs4-utf8.h: New file, from GNU gettext.
59255         * lib/ucs4-utf16.h: New file, from GNU gettext.
59256
59257 2003-04-02  Bruno Haible  <bruno@clisp.org>
59258
59259         * modules/binary-io: New file.
59260         * MODULES.html.sh (func_all_modules): Add it.
59261
59262 2003-04-02  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/binary-io.h: New file, from GNU gettext.
59265
59266 2003-04-01  Bruno Haible  <bruno@clisp.org>
59267
59268         * modules/pathname: New file.
59269         * MODULES.html.sh (func_all_modules): Add it.
59270
59271 2003-04-01  Bruno Haible  <bruno@clisp.org>
59272
59273         * lib/pathname.h: New file, from GNU gettext.
59274         * lib/concatpath.c: New file, from GNU gettext.
59275
59276 2003-03-30  Bruno Haible  <bruno@clisp.org>
59277
59278         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59279
59280 2003-03-30  Bruno Haible  <bruno@clisp.org>
59281
59282         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59283         function chown() doesn't exist.
59284
59285 2003-03-28  Bruno Haible  <bruno@clisp.org>
59286
59287         * modules/copy-file: New file.
59288         * MODULES.html.sh (func_all_modules): Add it.
59289
59290 2003-03-28  Bruno Haible  <bruno@clisp.org>
59291
59292         * m4/copy-file.m4: New file.
59293
59294 2003-03-28  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/copy-file.h: New file, from GNU gettext.
59297         * lib/copy-file.c: New file, from GNU gettext.
59298
59299 2003-03-18  Jim Meyering  <jim@meyering.net>
59300
59301         * lib/quote.c (quote_n): Fix typo in comment.
59302
59303 2003-03-18  Bruno Haible  <bruno@clisp.org>
59304
59305         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59306         checking.
59307         * m4/onceonly_2_57.m4: Likewise.
59308
59309 2003-03-17  Bruno Haible  <bruno@clisp.org>
59310
59311         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59312         (m4_quote): Remove macro.
59313         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59314
59315 2003-03-14  Jim Meyering  <jim@meyering.net>
59316
59317         Merge changes from Coreutils.
59318         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59319         to be const, in order to avoid warnings.
59320         (obstack_room): Likewise.
59321         (obstack_empty_p): Likewise.
59322
59323 2003-03-14  Bruno Haible  <bruno@clisp.org>
59324
59325         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59326         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59327
59328 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59329
59330         Merge changes from Bison.
59331         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59332         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59333         when compiling Bison 1.875's `bitset bset = obstack_alloc
59334         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59335         * lib/hash.c: Include <stdbool.h> unconditionally.
59336
59337 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59338
59339         * m4/onceonly.m4 (m4_quote): New macro.
59340         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59341         Quote AC_FOREACH variable-expansions properly.
59342
59343 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59344
59345         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59346
59347 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59348
59349         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59350         Reported by Bruce Becker; see:
59351         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59352
59353 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59354             Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59357         Reported by John Hughes, see
59358         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59359
59360 2003-02-20  Bruno Haible  <bruno@clisp.org>
59361
59362         * MODULES.html.sh (func_all_modules): Add poll.
59363
59364 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59365
59366         * modules/poll: New file.
59367
59368 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59369
59370         * lib/poll_.h: New file.
59371         * lib/poll.c: New file.
59372
59373 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59374
59375         * m4/poll.m4: New file.
59376
59377 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59378
59379         * modules/mathl: New file.
59380
59381 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59382
59383         * lib/mathl.h: New file.
59384         * lib/acosl.c: New file.
59385         * lib/asinl.c: New file.
59386         * lib/atanl.c: New file.
59387         * lib/ceill.c: New file.
59388         * lib/cosl.c: New file.
59389         * lib/expl.c: New file.
59390         * lib/floorl.c: New file.
59391         * lib/frexpl.c: New file.
59392         * lib/ldexpl.c: New file.
59393         * lib/logl.c: New file.
59394         * lib/sincosl.c: New file.
59395         * lib/sinl.c: New file.
59396         * lib/sqrtl.c: New file.
59397         * lib/tanl.c: New file.
59398         * lib/trigl.c: New file.
59399         * lib/trigl.h: New file.
59400
59401 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59402
59403         * m4/mathl.m4: New file.
59404
59405 2003-02-18  Bruno Haible  <bruno@clisp.org>
59406
59407         * MODULES.html.sh (func_all_modules): Add mathl.
59408
59409 2003-02-17  Bruno Haible  <bruno@clisp.org>
59410
59411         * modules/mkdtemp: New module.
59412         * MODULES.html.sh (func_all_modules): Add it.
59413
59414 2003-02-17  Bruno Haible  <bruno@clisp.org>
59415
59416         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59417
59418 2003-02-17  Bruno Haible  <bruno@clisp.org>
59419
59420         * lib/mkdtemp.h: New file, from GNU gettext.
59421         * lib/mkdtemp.c: New file, from GNU gettext.
59422
59423 2003-02-02  Jim Meyering  <jim@meyering.net>
59424
59425         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59426         e.g. glibc-2.2.93.
59427
59428 2003-01-31  Bruno Haible  <bruno@clisp.org>
59429
59430         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59431         'rpl_rename'.
59432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59433         'rpl_strnlen'.
59434         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59435         'rpl_strtod'.
59436         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59437         'rpl_utime'.
59438
59439 2003-01-31  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/rename.c: #undef rename before defining rpl_rename.
59442         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59443
59444 2003-01-30  Bruno Haible  <bruno@clisp.org>
59445
59446         * modules/vasnprintf, modules/vasprintf: New modules.
59447         * MODULES.html.sh (func_all_modules): Add them.
59448
59449 2003-01-30  Bruno Haible  <bruno@clisp.org>
59450
59451         * m4/signed.m4: New file, from GNU gettext.
59452         * m4/longdouble.m4: New file, from GNU gettext.
59453         * m4/wchar_t.m4: New file, from GNU gettext.
59454         * m4/wint_t.m4: New file, from GNU gettext.
59455         * m4/vasnprintf.m4: New file.
59456         * m4/vasprintf.m4: New file.
59457
59458 2003-01-30  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/printf-args.h: New file, from GNU gettext.
59461         * lib/printf-args.c: New file, from GNU gettext.
59462         * lib/printf-parse.h: New file, from GNU gettext.
59463         * lib/printf-parse.c: New file, from GNU gettext.
59464         * lib/vasnprintf.h: New file, from GNU gettext.
59465         * lib/vasnprintf.c: New file, from GNU gettext.
59466         * lib/asnprintf.c: New file, from GNU gettext.
59467         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59468         * lib/vasprintf.c: New file, from GNU gettext.
59469         * lib/asprintf.c: New file, from GNU gettext.
59470
59471 2003-01-29  Bruno Haible  <bruno@clisp.org>
59472
59473         * modules/stpncpy: New module.
59474         * MODULES.html.sh (func_all_modules): Add it.
59475
59476 2003-01-29  Bruno Haible  <bruno@clisp.org>
59477
59478         * m4/stpncpy.m4: New file.
59479
59480 2003-01-29  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59483         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59484
59485 2003-01-28  Bruno Haible  <bruno@clisp.org>
59486
59487         * modules/c-ctype: New module.
59488         * MODULES.html.sh (func_all_modules): Add it.
59489
59490 2003-01-28  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59493         Paul Eggert.
59494         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59495         Paul Eggert.
59496
59497 2003-01-27  Bruno Haible  <bruno@clisp.org>
59498
59499         * modules/xsetenv: New module.
59500         * MODULES.html.sh (func_all_modules): Add it.
59501
59502 2003-01-27  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/xsetenv.h: New file, from GNU gettext.
59505         * lib/xsetenv.c: New file, from GNU gettext.
59506
59507 2003-01-23  Jim Meyering  <jim@meyering.net>
59508
59509         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59510         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59511
59512 2003-01-23  Bruno Haible  <bruno@clisp.org>
59513
59514         * modules/minmax: New module.
59515         * MODULES.html.sh (func_all_modules): Add it.
59516
59517 2003-01-23  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59520         Eggert.
59521
59522 2003-01-22  Bruno Haible  <bruno@clisp.org>
59523
59524         * modules/exit: New module.
59525         * MODULES.html.sh (func_all_modules): Add it.
59526
59527 2003-01-22  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/exit.h: New file, from GNU gettext.
59530
59531 2003-01-19  Bruno Haible  <bruno@clisp.org>
59532
59533         * gnulib-tool: Recognize option --extract-maintainer.
59534         (func_get_maintainer): New function.
59535         * modules/*: Add Maintainer entry.
59536
59537 2003-01-16  Jim Meyering  <jim@meyering.net>
59538
59539         * m4/regex.m4: The `regex' struct is both input and output.
59540         Initialize it before each use.  Patch by Tim Waugh.
59541
59542 2003-01-16  Bruno Haible  <bruno@clisp.org>
59543
59544         * MODULES.html.sh: Add a table of contents. Add the module name as
59545         leftmost column. Add hyperlinks.
59546
59547 2003-01-15  Bruno Haible  <bruno@clisp.org>
59548
59549         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59550
59551 2003-01-15  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59554         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59555         suffix.
59556
59557 2003-01-15  Bruno Haible  <bruno@clisp.org>
59558
59559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59560
59561 2003-01-15  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59564         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59565
59566 2003-01-14  Jim Meyering  <jim@meyering.net>
59567
59568         * lib/same.c (same_name): Tweak a comment.
59569
59570 2003-01-14  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59573         when a string comparison is sufficient.
59574
59575 2003-01-14  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59578         'unsigned int'.
59579
59580 2003-01-14  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/hash-pjw.c: Add comment about low quality of this function.
59583
59584 2003-01-13  Bruno Haible  <bruno@clisp.org>
59585
59586         * modules/stpcpy: Distribute lib/stpcpy.h.
59587         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59588
59589 2003-01-13  Bruno Haible  <bruno@clisp.org>
59590
59591         * modules/*: Add a description.
59592         * modules/strpbrk: Fix Makefile.am snippet.
59593         * modules/strtoimax: Fix dependencies.
59594         * modules/strtoumax: Likewise.
59595
59596 2003-01-13  Bruno Haible  <bruno@clisp.org>
59597
59598         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59599         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59600         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59601
59602 2003-01-13  Bruno Haible  <bruno@clisp.org>
59603
59604         * gnulib-tool (func_create_testdir): Store config/* files in the main
59605         directory.
59606         * config.rpath: Move to ...
59607         * config/config.rpath: ... here.
59608         * modules/gettext: Contains config/config.rpath, not config.rpath.
59609         * modules/iconv: Likewise.
59610
59611 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59612
59613         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59614         to avoid collisions with libcurses and libreadline.
59615
59616         * m4/getstr.m4: Remove.
59617         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59618
59619 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59620
59621         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59622         to avoid collisions with libcurses and libreadline.
59623
59624         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59625         * lib/getstr.h, getstr.c: Remove.
59626         * lib/getline.c: Include "getline.h", to check interface.
59627         Move body of old getstr.c here: this defines MIN_CHUNK and
59628         declares getdelim2, which is renamed from getstr.
59629         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59630
59631         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59632         All uses changed.
59633         * lib/linebuffer.h: Likewise.
59634         (readline): Remove backward-compatibility macro.
59635
59636 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59637
59638         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59639         to avoid collisions with libcurses and libreadline.
59640         * getstr: Remove.
59641         * MODULES.html.sh: Remove getstr.
59642         * modules/getline: Depend on unlocked-io, not getstr.
59643
59644 2003-01-12  Jim Meyering  <jim@meyering.net>
59645
59646         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59647
59648 2003-01-10  Bruno Haible  <bruno@clisp.org>
59649
59650         * modules/alloca: Change Makefile.am requirements. Simplify Include
59651         requirements. Add lib/alloca_.h to file list.
59652
59653 2003-01-10  Bruno Haible  <bruno@clisp.org>
59654
59655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59656
59657 2003-01-10  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/alloca_.h: New file.
59660         * lib/getdate.y: Unconditionally include alloca.h.
59661         * lib/makepath.c: Likewise.
59662         * lib/setenv.c: Likewise.
59663         * lib/userspec.c: Likewise.
59664
59665 2003-01-09  Karl Berry  <karl@gnu.org>
59666
59667         * MODULES.html.sh: include `dirname $0` in PATH, to find
59668         gnulib-tool.
59669
59670 2003-01-09  Bruno Haible  <bruno@clisp.org>
59671
59672         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59673         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59674
59675 2003-01-09  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59678
59679 2003-01-09  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/stdbool.h.in: New file.
59682
59683 2003-01-09  Bruno Haible  <bruno@clisp.org>
59684
59685         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59686         * MODULES.html.sh: Likewise.
59687
59688 2003-01-08  Jim Meyering  <jim@meyering.net>
59689
59690         * lib/full-write.c: Undefine and define-away `const' after inclusion
59691         of errno.h, not before.  Suggestion from Bruno Haible.
59692
59693 2003-01-08  Bruno Haible  <bruno@clisp.org>
59694
59695         * modules/full-read: Depend on full-write.
59696
59697 2003-01-08  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/safe-read.c: Include specification header first, to ensure its
59700         selfcontainedness.
59701         * lib/full-write.c: Likewise.
59702
59703 2003-01-07  Jim Meyering  <jim@meyering.net>
59704
59705         * lib/full-write.c: Rework so that it may serve to define full_read,
59706         too.
59707         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59708
59709 2003-01-07  Bruno Haible  <bruno@clisp.org>
59710
59711         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59712         <inttypes.h>.
59713         * lib/xstrtol.h: Likewise.
59714         * lib/xstrtoimax.c: Likewise.
59715         * lib/xstrtoumax.c: Likewise.
59716         * lib/human.h: Likewise.
59717
59718         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59719         on systems that have <inttypes.h> but not <stdint.h>.
59720
59721 2003-01-07  Bruno Haible  <bruno@clisp.org>
59722
59723         * MODULES.html.sh: Add copyright notice.
59724         (missed_files): Omit CVS directory entries.
59725         (func_module): Make it work with sed-3.02.
59726         * MODULES.txt: Remove file.
59727
59728 2003-01-06  Jim Meyering  <jim@meyering.net>
59729
59730         * lib/version-etc.c: Update year in translatable copyright string.
59731
59732 2003-01-03  Karl Berry  <karl@gnu.org>
59733
59734         * config/config.{guess,sub}: update from prep.
59735
59736 2003-01-02  Karl Berry  <karl@gnu.org>
59737
59738         * doc/COPYING.DOC: belatedly updated to 1.2.
59739
59740 2003-01-01  Karl Berry  <karl@gnu.org>
59741
59742         * gnulib-tool (func_verify_module): report module name $module in
59743         error message, not $1.
59744         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59745         be created, only if it doesn't exist.
59746         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59747
59748 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59749
59750         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59751
59752 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59753
59754         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59755         memcmp if strcoll doesn't work.
59756
59757 2002-12-31  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59760         nonempty.
59761
59762 2002-12-31  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/memcoll.c (STRCOLL): New macro.
59765         (memcoll): Use it.
59766
59767 2002-12-31  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/localcharset.h: New file.
59770         * lib/localcharset.c: Include it.
59771         * lib/unicodeio.c: Likewise.
59772
59773 2002-12-31  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59776         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59777
59778 2002-12-31  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/getline.h: Include <stddef.h>, for size_t.
59781
59782         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59783         * lib/unicodeio.c: Don't include <stddef.h>.
59784
59785 2002-12-31  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59788         HAVE_TM_ZONE.
59789
59790 2002-12-24  Karl Berry  <karl@gnu.org>
59791
59792         * config/config.guess: update from prep.
59793
59794 2002-12-24  Bruno Haible  <bruno@clisp.org>
59795
59796         General infrasructure.
59797         * m4/README: Rewritten.
59798         * m4/onceonly.m4: New file.
59799         * m4/onceonly_2_57.m4: New file.
59800
59801         Module atexit.
59802         * m4/atexit.m4: New file.
59803
59804         Module strtod.
59805         * m4/strtod.m4: New file.
59806
59807         Module strtol.
59808         * m4/strtol.m4: New file.
59809
59810         Module strtoul.
59811         * m4/strtoul.m4: New file.
59812
59813         Module memchr.
59814         * m4/memchr.m4: New file.
59815
59816         Module memcmp.
59817         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59818         (jm_FUNC_MEMCMP): Invoke it.
59819
59820         Module memcpy.
59821         * m4/memcpy.m4: New file.
59822
59823         Module memmove.
59824         * m4/memmove.m4: New file.
59825
59826         Module memset.
59827         * m4/memset.m4: New file.
59828
59829         Module strcspn.
59830         * m4/strcspn.m4: New file.
59831
59832         Module strpbrk.
59833         * m4/strpbrk.m4: New file.
59834
59835         Module strstr.
59836         * m4/strstr.m4: New file.
59837
59838         Module strerror.
59839         * m4/strerror.m4: New file.
59840
59841         Module mktime.
59842         * m4/mktime.m4: Renamed from jm-mktime.m4.
59843         (gl_PREREQ_MKTIME): New macro.
59844         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59845
59846         Module malloc.
59847         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59848         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59849         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59850
59851         Module realloc.
59852         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59853         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59854         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59855
59856         Module strftime.
59857         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59859         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59860         gl_TM_GMTOFF.
59861         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59862
59863         Module xalloc.
59864         * m4/xalloc.m4: New file.
59865
59866         Module alloca.
59867         * m4/alloca.m4: New file.
59868
59869         Module putenv.
59870         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59871         (jm_FUNC_PUTENV): Invoke it.
59872
59873         Module setenv.
59874         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59875         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59876         when invoked twice.
59877         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59878         gt_FUNC_SETENV.
59879
59880         Module memrchr.
59881         * m4/memrchr.m4: New file.
59882
59883         Module stpcpy.
59884         * m4/stpcpy.m4: New file.
59885
59886         Module strcase.
59887         * m4/strcase.m4: New file.
59888
59889         Module strdup.
59890         * m4/strdup.m4: New file.
59891
59892         Module strnlen.
59893         * m4/strnlen.m4: New file.
59894
59895         Module strndup.
59896         * m4/strndup.m4: New file.
59897
59898         Module xstrtod.
59899         * m4/xstrtod.m4: New file.
59900
59901         Module xstrtol.
59902         * m4/xstrtol.m4: New file.
59903
59904         Module getdate.
59905         * m4/getdate.m4: New file.
59906
59907         Module unlocked-io.
59908         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59909         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59910         * m4/jm-glibc-io.m4n: Remove file.
59911
59912         Module long-options.
59913         * m4/long-options.m4: New file.
59914
59915         Module md5.
59916         * m4/md5.m4: New file.
59917
59918         Module sha.
59919         * m4/sha.m4: New file.
59920
59921         Module getstr.
59922         * m4/getstr.m4: New file.
59923
59924         Module getline.
59925         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59926         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59927         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59928         simply getline. Infoke gl_PREREQ_GETLINE.
59929
59930         Module obstack.
59931         * m4/obstack.m4: New file.
59932
59933         Module hash.
59934         * m4/hash.m4: New file.
59935
59936         Module readtokens.
59937         * m4/readtokens.m4: New file.
59938
59939         Module strverscmp.
59940         * m4/strverscmp.m4: New file.
59941
59942         Module stdbool.
59943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59944         OSF/1.
59945
59946         Module strtoll.
59947         * m4/strtoll.m4: New file.
59948
59949         Module strtoull.
59950         * m4/strtoull.m4: New file.
59951
59952         Module strtoimax.
59953         * m4/strtoimax.m4: New file.
59954
59955         Module strtoumax.
59956         * m4/strtoumax.m4: New file.
59957
59958         Module xstrtoimax.
59959         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59960         jm_AC_PREREQ_XSTRTOIMAX.
59961         Moved the strtol prerequisites to strtol.m4.
59962         Moved the strtoll prerequisites to strtoll.m4.
59963         Moved the strtoimax prerequisites to strtoimax.m4.
59964
59965         Module xstrtoumax.
59966         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59967         jm_AC_PREREQ_XSTRTOUMAX.
59968         Moved the strtoul prerequisites to strtoul.m4.
59969         Moved the strtoull prerequisites to strtoull.m4.
59970         Moved the strtoumax prerequisites to strtoumax.m4.
59971
59972         Module chown.
59973         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59974         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59975
59976         Module dup2.
59977         * m4/dup2.m4: New file.
59978
59979         Module ftruncate.
59980         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59981         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59982
59983         Module getgroups.
59984         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59985         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59986
59987         Module gettimeofday.
59988         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59989         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59990         gl_PREREQ_GETTIMEOFDAY.
59991
59992         Module mkdir.
59993         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59994         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59995
59996         Module mkstemp.
59997         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59998         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59999         jm_AC_TYPE_UINTMAX_T.
60000         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60001
60002         Module stat.
60003         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60004         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60005
60006         Module lstat.
60007         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60008         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60009
60010         Module timespec.
60011         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60012         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60013         * m4/st_mtim.m4: Indentation.
60014
60015         Module nanosleep.
60016         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60017         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60018         gl_PREREQ_NANOSLEEP.
60019
60020         Module regex.
60021         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60022         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60023         (gl_REGEX): New macro.
60024
60025         Module rename.
60026         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60027         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60028
60029         Module rmdir.
60030         * m4/rmdir.m4: New file.
60031
60032         Module utime.
60033         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60034         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60035         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60036
60037         Module dirname.
60038         * m4/dirname.m4: New file.
60039
60040         Module getopt.
60041         * m4/getopt.m4: New file.
60042
60043         Module unistd-safer.
60044         * m4/unistd-safer.m4: New file.
60045
60046         Module fnmatch.
60047         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60048         declaration.
60049         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60050         (gl_FUNC_FNMATCH_POSIX): New macro.
60051         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60052         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60053         simply fnmatch.
60054
60055         Module exclude.
60056         * m4/exclude.m4: New file.
60057
60058         Module human.
60059         * m4/human.m4: New file.
60060
60061         Module acl.
60062         * m4/acl.m4: Nop.
60063
60064         Module backupfile.
60065         * m4/backupfile.m4: New file.
60066         * m4/d-ino.m4: Indentation.
60067
60068         Module fsusage.
60069         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60070         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60071         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60072
60073         Module dirfd.
60074         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60075         requirements.
60076
60077         Module euidaccess.
60078         * m4/euidaccess.m4: New file.
60079
60080         Module file-type.
60081         * m4/file-type.m4: New file.
60082
60083         Module fileblocks.
60084         * m4/fileblocks.m4: New file.
60085
60086         Module filemode.
60087         * m4/filemode.m4: New file.
60088
60089         Module isdir.
60090         * m4/isdir.m4: New file.
60091
60092         Module lchown.
60093         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60094         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60095
60096         Module makepath.
60097         * m4/makepath.m4: New file.
60098
60099         Module modechange.
60100         * m4/modechange.m4: New file.
60101
60102         Module mountlist.
60103         * m4/mountlist.m4: New file.
60104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60105         Indentation.
60106
60107         Module path-concat.
60108         * m4/path-concat.m4: New file.
60109
60110         Module pathmax.
60111         * m4/pathmax.m4: New file.
60112
60113         Module same.
60114         * m4/same.m4: New file.
60115
60116         Module save-cwd.
60117         * m4/save-cwd.m4: New file.
60118
60119         Module savedir.
60120         * m4/savedir.m4: New file.
60121
60122         Module xgetcwd.
60123         * m4/xgetcwd.m4: New file.
60124         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60125
60126         Module xreadlink.
60127         * m4/xreadlink.m4: New file.
60128
60129         Module safe-read.
60130         * m4/safe-read.m4: New file.
60131
60132         Module safe-write.
60133         * m4/safe-write.m4: New file.
60134
60135         Module closeout.
60136         * m4/closeout.m4: New file.
60137
60138         Module stdio-safer.
60139         * m4/stdio-safer.m4: New file.
60140
60141         Module getpass.
60142         * m4/getpass.m4: New file.
60143
60144         Module getugroups.
60145         * m4/getugroups.m4: New file.
60146
60147         Module group-member.
60148         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60149         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60150
60151         Module idcache.
60152         * m4/idcache.m4: New file.
60153
60154         Module userspec.
60155         * m4/userspec.m4: New file.
60156
60157         Module gettime.
60158         * m4/clock_time.m4: New file.
60159         * m4/gettime.m4: New file.
60160
60161         Module settime.
60162         * m4/settime.m4: New file.
60163
60164         Module posixtm.
60165         * m4/posixtm.m4: New file.
60166
60167         Module gethostname.
60168         * m4/gethostname.m4: New file.
60169
60170         Module canon-host.
60171         * m4/canon-host.m4: New file.
60172
60173         Module gettext.
60174         * m4/codeset.m4: New file, from gettext-0.11.5.
60175         * m4/gettext.m4: New file, from gettext-0.11.5.
60176         * m4/glibc21.m4: New file, from gettext-0.11.5.
60177         * m4/iconv.m4: New file, from gettext-0.11.5.
60178         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60179         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60180         * m4/inttypes.m4: New file, from gettext-0.11.5.
60181         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60182         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60183         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60184         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60185         * m4/lib-link.m4: New file, from gettext-0.11.5.
60186         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60187         * m4/progtest.m4: New file, from gettext-0.11.5.
60188         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60189         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60190         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60191
60192         Module localcharset.
60193         * m4/localcharset.m4: New file.
60194
60195         Module hard-locale.
60196         * m4/hard-locale.m4: New file.
60197
60198         Module mbswidth.
60199         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60200         onceonly macros.
60201         * m4/mbrtowc.m4: Add comment.
60202
60203         Module memcasecmp.
60204         * m4/memcasecmp.m4: New file.
60205
60206         Module memcoll.
60207         * m4/memcoll.m4: New file.
60208
60209         Module unicodeio.
60210         * m4/unicodeio.m4: New file.
60211
60212         Module rpmatch.
60213         * m4/rpmatch.m4: New file.
60214
60215         Module yesno.
60216         * m4/yesno.m4: New file.
60217
60218         Module exitfail.
60219         * m4/exitfail.m4: New file.
60220
60221         Module c-stack.
60222         * m4/c-stack.m4 (gl_C_STACK): New macro.
60223         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60224
60225         Module error.
60226         * m4/error.m4 (gl_ERROR): New macro.
60227         (jm_PREREQ_ERROR): Use onceonly macros.
60228
60229         Module fatal.
60230         * m4/fatal.m4: New file.
60231
60232         Module getloadavg.
60233         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60234         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60235
60236         Module getpagesize.
60237         * m4/getpagesize.m4: New file.
60238
60239         Module getusershell.
60240         * m4/getusershell.m4: New file.
60241
60242         Module physmem.
60243         * m4/physmem.m4: New file.
60244
60245         Module posixver.
60246         * m4/posixver.m4: New file.
60247
60248         Module quotearg.
60249         * m4/quotearg.m4: New file.
60250
60251         Module quote.
60252         * m4/quote.m4: New file.
60253
60254         Module readutmp.
60255         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60256
60257         Module sig2str.
60258         * m4/sig2str.m4: New file.
60259
60260         Other.
60261         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60262         ulonglong.m4.
60263         * m4/intmax_t.m4: New file.
60264         * m4/d-type.m4: Indentation.
60265         * m4/jm-macros.m4: Update.
60266         * m4/prereq.m4 (jm_PREREQ): Update.
60267         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60268         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60269         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60270         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60271         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60272         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60273         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60274         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60275         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60276         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60277         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60278         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60279         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60280         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60281         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60282         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60283         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60284         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60285         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60286
60287 2002-12-24  Bruno Haible  <bruno@clisp.org>
60288
60289         * MODULES.txt: Update according to m4/ changes.
60290
60291         Module gettext.
60292         * config.rpath: New file, from gettext-0.11.5.
60293
60294         * modules/*: New module descriptions.
60295         * gnulib-tool: New file.
60296         * MODULES.html.sh: New file.
60297
60298 2002-12-21  Karl Berry  <karl@gnu.org>
60299
60300         * doc/fdl.texi: update to version 1.2.
60301
60302 2002-12-19  Karl Berry  <karl@gnu.org>
60303
60304         * config/config.guess: update from prep.
60305
60306 2002-12-18  Bruno Haible  <bruno@clisp.org>
60307
60308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60309         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60310
60311 2002-12-17  Bruno Haible  <bruno@clisp.org>
60312
60313         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60314         stdlib.h, string.h.
60315
60316 2002-12-17  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/canon-host.c (strdup): Remove unused declaration.
60319
60320         * lib/fsusage.c: Include full_read.h.
60321         (get_fs_usage): Use full_read instead of safe_read.
60322
60323         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60324
60325 2002-12-12  Karl Berry  <karl@gnu.org>
60326
60327         * config/config.guess: update from prep.
60328
60329 2002-12-11  Bruno Haible  <bruno@clisp.org>
60330
60331         * m4/setenv.m4: New file, from gettext-0.11.5.
60332
60333 2002-12-11  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60336         not unsetenv().
60337         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60338         modifications:
60339
60340         2002-12-11  Bruno Haible  <bruno@clisp.org>
60341
60342                 * setenv.c (alloca): Fall back to malloc.
60343                 (freea): New macro.
60344                 (setenv): Use freea() to free memory allocated with alloca().
60345
60346         2002-11-13  Bruno Haible  <bruno@clisp.org>
60347
60348                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60349                 function declarations.
60350                 * unsetenv.c (unsetenv): Likewise.
60351
60352         2002-03-04  Bruno Haible  <bruno@clisp.org>
60353
60354                 Portability to AIX 4.3.3.
60355                 * unsetenv.c: New file, extracted from setenv.c.
60356                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60357
60358         2001-12-20  Bruno Haible  <bruno@clisp.org>
60359
60360                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60361                 use malloc instead. For SunOS 4.
60362
60363         2001-12-11  Bruno Haible  <bruno@clisp.org>
60364
60365                 * setenv.c: Declare alloca.
60366                 (compar_fn_t): New typedef.
60367                 (KNOWN_VALUE, STORE_VALUE): Use it.
60368
60369         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60370         setenv.h.
60371
60372 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60373
60374         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60375         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60376         Choose values that are less likely to collide with system fnmatch
60377         options.
60378         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60379         defined (e.g., a pure POSIX system).
60380         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60381         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60382
60383 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60384
60385         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60386         a pain in practice to deal with generated m4 files.  This change
60387         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60388
60389         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60390         and jm-glibc-io.m4, as they are no longer a special case.
60391         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60392         kludge and the auto-generation stuff.  Check only whether the
60393         functions are declared, not whether they exist, since older hosts
60394         that don't declare the functions can't use the optimization anyway.
60395
60396 2002-12-06  Jim Meyering  <jim@meyering.net>
60397
60398         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60399
60400         Merge in changes from libc's misc/error.c, in preparation
60401         for the merge of gnulib's changes back into libc.
60402
60403         * lib/error.c (_): Define only if not already defined.
60404         Move definition to follow all #include directives.
60405         Include unlocked-io.h only if !_LIBC.
60406         [_LIBC]: Include <libio/libioP.h>.
60407         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60408         (fflush): Tweak definition to use INTUSE.
60409         (putc): Define.
60410
60411 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60412
60413         * lib/alloca.c [defined emacs]: Include "lisp.h".
60414         (xalloc_die) [defined emacs]: New macro.
60415         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60416         [! defined emacs]: Include <xalloc.h>.
60417         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60418         (pointer): Typedef to POINTER_TYPE *.
60419         (malloc): Remove decl; we now always use xmalloc.
60420         (alloca): Use old-style definition, since Emacs needs this.
60421         Check for arithmetic overflow when computing combined size.
60422
60423 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60424
60425         Do not generate unlocked-io.h automatically, since it's easier to
60426         maintain it by hand.
60427
60428         * lib/unlocked-io.h: New file, from GNU diffutils,
60429         but with proper copyright notice and attribution.
60430         * lib/gen-uio: Remove.
60431         * lib/Makefile.am: Add copyright notice.
60432         (libfetish_a_SOURCES): Add unlocked-io.h.
60433         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60434         (DISTCLEANFILES, io_functions): Remove macros.
60435         (EXTRA_DIST): Remove gen_uio.
60436         (unlocked-io.h): Remove rule.
60437
60438 2002-12-04  Jim Meyering  <jim@meyering.net>
60439
60440         Reflect the fact that stat.c and lstat.c are no longer generated.
60441         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60442         (DISTCLEANFILES): Likewise.
60443         (EXTRA_DIST): Likewise.
60444         (all_local): Don't depend on stat.c or lstat.c.
60445         (stat.c, lstat.c): Remove rules.
60446         (EXTRA_DIST): Remove xstat.in.
60447
60448         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60449         * lib/stat.c: New file.  Contents mostly from xstat.in.
60450         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60451         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60452
60453         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60454         too.
60455         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60456
60457 2002-12-03  Jim Meyering  <jim@meyering.net>
60458
60459         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60460         but not semantics, to minimize the differences between these two files.
60461         (safe_read): Change comment to mention SAFE_READ_ERROR.
60462
60463         * lib/safe-read.c (IS_EINTR): Define.
60464         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60465
60466 2002-12-02  Jim Meyering  <jim@meyering.net>
60467
60468         * lib/safe-read.c (EINTR): Define.
60469         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60470         (INT_MAX): Provide fallback.
60471         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60472
60473         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60474
60475 2002-12-02  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60478         Define, taken from safe-read.c.
60479         (INT_MAX): Provide fallback.
60480         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60481         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60482
60483         * lib/safe-read.c (EINTR): Remove definition.
60484         (safe_read): Don't use EINTR if it is absent.
60485
60486 2002-12-01  Jim Meyering  <jim@meyering.net>
60487
60488         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60489         zero.
60490         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60491
60492 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60493
60494         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60495         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60496         with `if (! (value < limit)) abort ();', for readability.
60497
60498 2002-11-26  Karl Berry  <karl@gnu.org>
60499
60500         * lib/strdup.c: copy from libc again, with jim's ok.
60501         * lib/.cppi-disable: re-add strdup.c
60502
60503 2002-11-25  Karl Berry  <karl@gnu.org>
60504
60505         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60506         instead of "strtol.c".
60507
60508 2002-11-25  Karl Berry  <karl@gnu.org>
60509
60510         * config/install-sh: update from automake for variable quoting, $0 in
60511         error msgs, etc.
60512
60513         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60514         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60515         entry.
60516
60517 2002-11-25  Jim Meyering  <jim@meyering.net>
60518
60519         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60520
60521 2002-11-24  Karl Berry  <karl@gnu.org>
60522
60523         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60524         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60525
60526 2002-11-24  Jim Meyering  <jim@meyering.net>
60527
60528         Update from coreutils:
60529
60530         * lib/mktime.c: Merge in changes from libc.
60531
60532         Avoid a link-time failure on some Linux systems.
60533         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60534         (otherwise).
60535         (__mon_yday): Declare with the STATIC attribute.
60536         (__mktime_internal): Likewise.
60537         Based on a report from Greg Schafer.
60538
60539 2002-11-23  Jim Meyering  <jim@meyering.net>
60540
60541         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60542         Use `unsigned', not `int', as type of index.
60543
60544         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60545
60546         * lib/fsusage.c: Remove unneeded parentheses around operands of
60547         `defined'.
60548
60549 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60550
60551         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60552         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60553         so that we can be included first.
60554         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60555         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60556         No need to include stddef.h or sys/types.h any more.
60557         Surround local include files with "", not "<>".
60558         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60559         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60560         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60561         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60562         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60563         (ISPRINT): Remove; no longer needed now that we assume C89.
60564
60565         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60566         Preserve errno.
60567
60568         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60569         quotearg_char): Use SIZE_MAX rather than
60570         (size_t) -1 when we are talking about "infinity".
60571
60572         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60573
60574 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60575
60576         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60577         hint that one should use `if (! x) abort ();' rather than `assert
60578         (x);', and anyway it's one less thing to worry about configuring.
60579         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60580         hash_rehash, hash_insert): Use abort rather than assert.
60581
60582 2002-11-22  Bruno Haible  <bruno@clisp.org>
60583
60584         * lib/safe-read.h: Assume C89. Add comments.
60585         (safe_read): Change return type to size_t.
60586         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60587         byte counts > SSIZE_MAX correctly.
60588         * lib/safe-write.h: New file.
60589         * lib/safe-write.c: New file.
60590         * lib/full-read.h: New file.
60591         * lib/full-read.c: New file.
60592         * lib/full-write.h: Assume C89. Add comments.
60593         * lib/full-write.c: Include safe-write.h.
60594         (full_write): Rewritten to use safe_write.
60595         Suggested by Jim Meyering and Paul Eggert.
60596
60597 2002-11-21  Jim Meyering  <jim@meyering.net>
60598
60599         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60600
60601         Merge in changes from the coreutils.
60602
60603         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60604         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60605         <stdint.h>.
60606         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60607         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60608         int.  Work more efficiently if X is the same width as uintmax_t.
60609         Do not compare X to -1, to avoid bogus compiler warning.
60610         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60611         Don't assume that f_frsize and f_bsize are the same type.
60612
60613         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60614         warning on FreeBSD.
60615
60616         * lib/makepath.c (make_path): Restore umask *before* creating the final
60617         component.
60618         (make_path): Minor reformatting.
60619
60620         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60621         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60622         HAVE_MALLOC/HAVE_REALLOC.
60623
60624         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60625         dummy ones.  At least on GNU/Linux systems, `auto' means something
60626         else.
60627         From Michael Stone.
60628
60629 2002-11-21  Bruno Haible  <bruno@clisp.org>
60630
60631         Remove case insensitive option matching.
60632         * lib/argmatch.h (argcasematch): Remove declaration.
60633         (ARGCASEMATCH): Remove macro.
60634         (__xargmatch_internal): Remove case_sensitive argument.
60635         (XARGMATCH): Update.
60636         (XARGCASEMATCH): Remove macro.
60637         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60638         case_sensitive argument.
60639         (argcasematch): Remove function.
60640         (__xargmatch_internal): Remove case_sensitive argument.
60641         (main): Use XARGMATCH instead of XARGCASEMATCH.
60642
60643         * lib/xmalloc.c: Change compile-time error message. Add comment about
60644         required autoconf version.
60645
60646 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60647
60648         Merge argmatch cleanups from Bison.  Assume C89.
60649
60650         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60651         Include stdlib.h, for EXIT_FAILURE.
60652         Always include <string.h>, since we assume C89.
60653         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60654         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60655         Include <stddef.h> instead, since it's all we need for size_t.
60656         (PARAMS): Remove.  All uses removed.
60657         (ARRAY_CARDINALITY): Do not bother to #undef.
60658         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60659         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60660         Remove unnecessary parentheses.
60661         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60662         Insert necessary parentheses.
60663         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60664         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60665
60666 2002-11-19  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60669         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60670
60671         * lib/mbswidth.h (PARAMS): Remove macro.
60672         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60673         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60674
60675         * lib/gcd.h (PARAMS): Remove macro.
60676         (gcd): Use ANSI C function declarations.
60677         * lib/gcd.c (gcd): Likewise.
60678
60679 2002-11-15  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/strcspn.c: Include <stddef.h>.
60682         (strcspn): Use ANSI C function declaration. Change return type to
60683         size_t. Use NULL.
60684         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60685         (strpbrk): Use NULL.
60686         * lib/strpbrk.h (PARAMS): Remove macro.
60687         (strpbrk): Use ANSI C function declaration.
60688         * lib/strstr.c: Don't include <sys/types.h>.
60689         * lib/strstr.h (PARAMS): Remove macro.
60690         (strstr): Use ANSI C function declarations.
60691
60692 2002-11-14  Karl Berry  <karl@gnu.org>
60693
60694         * config/mkinstalldirs: `do' on separate line, instead of
60695         `for var; do'.
60696
60697 2002-11-06  Bruno Haible  <bruno@clisp.org>
60698
60699         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60700         * lib/gcd.c (gcd): Likewise.
60701
60702 2002-11-05  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/gcd.h: New file, from gettext-0.11.5.
60705         * lib/gcd.c: New file, from gettext-0.11.5.
60706
60707 2002-11-05  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60710         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60711         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60712         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60713
60714         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60715         <libintl.h>.
60716         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60717         <libintl.h>.
60718
60719         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60720         * lib/human.c: Include gettext.h instead of <libintl.h>.
60721         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60722         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60723         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60724         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60725         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60726         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60727         (textdomain): Remove definition.
60728         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60729
60730         * lib/long-options.c: Remove include of <libintl.h> and definition of
60731         _.
60732         * lib/same.c: Remove include of <libintl.h> and definition of _.
60733
60734 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60735
60736         * lib/config.charset: A few additions for Solaris.
60737
60738 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60739
60740         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60741         * lib/localcharset.c (locale_charset): Declare as extern "C".
60742
60743 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60744
60745         * lib/config.charset: msdos in uk_UA uses CP1125.
60746
60747 2002-11-04  Bruno Haible  <bruno@clisp.org>
60748
60749         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60750         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60751         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60752         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60753         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60754
60755 2002-11-04  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/localcharset.c (locale_charset): Don't return an empty string.
60758
60759 2002-11-04  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60762         aliases.
60763
60764 2002-11-04  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/config.charset: Update for newest glibc. Add canonical names
60767         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60768
60769 2002-11-04  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/config.charset: Add support for NetBSD.
60772
60773 2002-11-04  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60776
60777 2002-11-01  Bruno Haible  <bruno@clisp.org>
60778
60779         * configure.in: Add AC_CONFIG_AUX_DIR call.
60780         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60781         test/Makefile.
60782         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60783
60784 2002-09-28  Karl Berry  <karl@gnu.org>
60785
60786         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60787         installed automake until the next release, since changes have been
60788         made.
60789
60790 2002-09-25  Karl Berry  <karl@gnu.org>
60791
60792         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60793         * lib/getopt*: copy from libc/posix.
60794         * lib/gettext.h: copy from gettext.
60795         * lib/.cppi-disable: add strdup.c, gettext.h.
60796
60797 2002-09-25  Karl Berry  <karl@gnu.org>
60798
60799         * config/srclist.txt: enable gettext.h check.
60800         * config/config.{guess,sub}: update from prep.
60801         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60802                 from automake 1.6.3.
60803         See srclist*.
60804
60805 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60806
60807         * regex.c (PATFETCH): Remove the translating fetch.
60808         (PATFETCH_RAW): Rename to PATFETCH.
60809         (set_image_of_range): New fun.
60810         (SET_RANGE_TABLE_WORK_AREA): Use it.
60811         (regex_compile): Don't translate the pattern chars so eagerly.
60812         Only do it when inserting an `exactn' bytecode or when handling
60813         a char-range.
60814         (mutually_exclusive_p): Avoid empty statement.
60815
60816 2002-07-06  Jim Meyering  <meyering@lucent.com>
60817
60818         * m4/README: Don't mention Makefile.am.in.
60819         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60820
60821 2002-07-01  Jim Meyering  <meyering@lucent.com>
60822
60823         * lib/c-stack.c: Include sys/time.h.
60824         From Volker Borchert.
60825
60826 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60827
60828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60829
60830 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60831
60832         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60833         New macro.  Use it uniformly instead of
60834         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60835         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60836         reported by Vin Shelton.
60837
60838 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60839
60840         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60841         Do not assume SA_SIGINFO behavior.
60842         Bug reported by Jim Meyering on NetBSD 1.5.2.
60843
60844 2002-06-22  Jim Meyering  <meyering@lucent.com>
60845
60846         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60847         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60848
60849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60850         now that configure.ac uses AC_GNU_SOURCE.
60851         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60852         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60853
60854         Update to latest tools.  Suggestions from Paul Eggert.
60855         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60856         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60857         * m4/fnmatch.m4: Likewise.
60858         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60859         to AC_HEADER_STDBOOL
60860
60861 2002-06-22  Jim Meyering  <meyering@lucent.com>
60862
60863         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60864         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60865
60866 2002-06-22  Jim Meyering  <meyering@lucent.com>
60867
60868         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60869
60870         * lib/exitfail.c, exitfail.h: Likewise.
60871         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60872
60873         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60874         of fnmatch.h.
60875         (EXTRA_DIST): Add fnmatch_loop.c.
60876         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60877
60878         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60879         * lib/fnmatch.c: Update from diffutils-2.8.2.
60880         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60881         * lib/fnmatch.h: Remove file.
60882
60883 2002-06-21  Jim Meyering  <meyering@lucent.com>
60884
60885         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60886         * m4/mbrtowc.m4: Likewise.
60887
60888         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60889         * m4/mbswidth.m4: Reflect name change:
60890         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60891         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60892
60893         * m4/lib-link.m4: Update from gettext-0.11.2.
60894         * m4/gettext.m4: Likewise.
60895
60896         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60897         From Alfred M. Szmidt.
60898
60899 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60900
60901         * lib/file-type.h: Report an error if neither S_ISREG nor
60902         S_IFREG is defined, instead of using a test specific to glibc
60903         2.2.  This should be safe, since POSIX requires S_ISREG and
60904         Unix Version 7 had S_IFREG.  We don't need to check for
60905         <sys/types.h> since we don't use any symbols that it defines.
60906
60907 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60908
60909         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60910         $@-t, so that each temporary file name is unique and valid in the first
60911         8 characters, for operation under DOS.
60912
60913 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60914
60915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60916
60917 2002-06-15  Jim Meyering  <meyering@lucent.com>
60918
60919         Work even with DJGPP 2.03, which lacks support for symlinks.
60920         From Richard Dawe.
60921         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60922         is defined.
60923         * lib/lchown.c (S_ISLNK): Likewise.
60924
60925 2002-06-15  Jim Meyering  <meyering@lucent.com>
60926
60927         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60928         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60929         have been included before this file.
60930
60931 2002-06-14  Jim Meyering  <meyering@lucent.com>
60932
60933         * lib/file-type.h: Use the version from diffutils-2.8.2.
60934         * lib/file-type.c: Likewise.
60935
60936 2002-06-07  Jim Meyering  <meyering@lucent.com>
60937
60938         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60939         They're needed at least for NetBSD 1.5.2.
60940         ($statxfs_includes): Include those same headers.
60941         ($statxfs_includes): Include sys/vfs.h if available.
60942         ($statxfs_includes): Likewise for sys/statvfs.h.
60943         Check for the following members in both structs statfs and statvfs:
60944         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60945
60946 2002-06-01  Jim Meyering  <meyering@lucent.com>
60947
60948         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60949         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60950
60951 2002-05-28  Jim Meyering  <meyering@lucent.com>
60952
60953         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60954         Reported by Volker Borchert.
60955
60956 2002-05-27  Jim Meyering  <meyering@lucent.com>
60957
60958         Fix a problem seen only on nonconforming systems whereby ls.c's
60959         use of localtime, and then of gettimeofday would cause trouble:
60960         the localtime call used to initialize rpl_gettimeofday's save
60961         mechanism would clobber ls's current local time information so
60962         that in any long listing the first file would always be listed
60963         with date 1970-01-01.  Analysis by Volker Borchert.
60964
60965         * lib/gettimeofday.c (localtime): Undefine.
60966         (rpl_localtime): New function.
60967
60968 2002-05-27  Jim Meyering  <meyering@lucent.com>
60969
60970         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60971         localtime.
60972
60973         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60974         use the replacement function; it wouldn't resolve at link time.
60975         Reported by Volker Borchert.
60976
60977 2002-05-22  Jim Meyering  <meyering@lucent.com>
60978
60979         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60980         file-type.h.
60981         * lib/file-type.h: New file.
60982         * lib/file-type.c (file_type): New file/function.  Extracted from
60983         diffutils.
60984
60985 2002-04-30  Jim Meyering  <meyering@lucent.com>
60986
60987         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60988
60989 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60990
60991         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60992
60993 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60994
60995         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60996         Do not check for alloca.h (no longer used) or stdbool.h (was never
60997         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60998
60999 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61000
61001         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61002
61003 2002-04-29  Jim Meyering  <meyering@lucent.com>
61004
61005         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61006         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61007         Use AC_FUNC_STRNLEN here instead.
61008
61009         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61010         With autoconf-2.53a, it's part of AC_PROG_CC.
61011
61012 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61013
61014         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61015         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61016
61017 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61018
61019         * lib/sig2str.h, lib/sig2str.c: New files.
61020         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61021
61022 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61023
61024         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61025         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61026         of 127, since 64 is the largest conceivable number for ancient
61027         nonstandard hosts.
61028         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61029
61030 2002-04-28  Jim Meyering  <meyering@lucent.com>
61031
61032         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61033
61034 2002-04-24  Jim Meyering  <meyering@lucent.com>
61035
61036         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61037         (jm_PREREQ): Use it.
61038
61039         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61040         mach/mach.h fcntl.h.
61041         Check for this function: setlocale.
61042
61043 2002-04-24  Jim Meyering  <meyering@lucent.com>
61044
61045         * lib/gettext.h: New file, from Gettext.
61046         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61047         (libfetish_a_SOURCES): Add gettext.h.
61048
61049 2002-04-16  Jim Meyering  <meyering@lucent.com>
61050
61051         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61052         ut_pid, ut_id, ut_exit.
61053
61054 2002-04-16  Jim Meyering  <meyering@lucent.com>
61055
61056         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61057         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61058         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61059
61060 2002-04-12  Jim Meyering  <meyering@lucent.com>
61061
61062         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61063         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61064         existence of the getmntinfo function.  Needed for Darwin 5.3.
61065
61066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61067         This is necessary at least on Darwin 5.3.
61068
61069         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61070         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61071         strnlen.o in the library, and that makes some versions of ranlib
61072         object.
61073
61074 2002-04-12  Jim Meyering  <meyering@lucent.com>
61075
61076         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61077
61078 2002-04-09  Jim Meyering  <meyering@lucent.com>
61079
61080         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61081         to be more precise.  Rather than saying we're checking whether the
61082         function `works', say what we're testing.
61083         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61084         Reported by Bruno Haible.
61085
61086 2002-03-10  Jim Meyering  <meyering@lucent.com>
61087
61088         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61089         Suggestion from Santiago Vila.
61090
61091 2002-03-08  Jim Meyering  <meyering@lucent.com>
61092
61093         * lib/rename.c: Mention that this wrapper is needed also on
61094         mips-dec-ultrix4.4 systems.
61095
61096 2002-03-02  Jim Meyering  <meyering@lucent.com>
61097
61098         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61099         not HAVE_CLOCK_SETTIME.
61100
61101 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61102
61103         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61104         Check for clock_settime.
61105
61106 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61107
61108         * lib/nanosleep.h: Rename to....
61109         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61110
61111         * lib/gettime.c: New file.
61112         * lib/settime.c: New file.
61113         * lib/stime.c: Remove.
61114
61115         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61116         timespec.h.  Remove nanosleep.h.
61117
61118 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61119
61120         * m4/acl.m4: New file.
61121         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61122         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61123
61124 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61125
61126         * lib/acl.c, lib/acl.h: New files.
61127         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61128
61129 2002-02-24  Jim Meyering  <meyering@lucent.com>
61130
61131         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61132         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61133         cause trouble.  Reported by Nelson Beebe.
61134
61135 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61136
61137         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61138         compilers that don't know that xalloc_die never returns.
61139
61140 2002-02-20  Jim Meyering  <meyering@lucent.com>
61141
61142         * lib/getdate.c: Regenerate using bison-1.33.
61143
61144 2002-02-17  Jim Meyering  <meyering@lucent.com>
61145
61146         * config/config.guess (main): Don't use `head -1'; it's no longer
61147         portable. Use `sed 1q' instead.
61148
61149 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61150
61151         * m4/codeset.m4: Upgrade to gettext-0.11.
61152         * m4/gettext.m4: Upgrade to gettext-0.11.
61153         * m4/glibc21.m4: Upgrade to gettext-0.11.
61154         * m4/iconv.m4: Upgrade to gettext-0.11.
61155         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61156         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61157         * m4/lib-ld.m4: New file, from gettext-0.11.
61158         * m4/lib-link.m4: New file, from gettext-0.11.
61159         * m4/lib-prefix.m4: New file, from gettext-0.11.
61160         * m4/progtest.m4: Upgrade to gettext-0.11.
61161
61162 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61163
61164         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61165         (jm_PREREQ): Use it.
61166
61167 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61168
61169         * lib/posixver.c, lib/posixver.h: New files.
61170         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61171
61172 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61173             Bruno Haible  <bruno@clisp.org>
61174
61175         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61176         (fwrite_success_callback): New declaration.
61177         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61178         print_unicode_char. Call failure callback instead of error.
61179         (fwrite_success_callback): New function.
61180         (exit_failure_callback): New function.
61181         (fallback_failure_callback): New function.
61182         (print_unicode_char): Call unicode_to_mb.
61183
61184 2002-01-26  Jim Meyering  <meyering@lucent.com>
61185
61186         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61187         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61188
61189 2002-01-26  Jim Meyering  <meyering@lucent.com>
61190
61191         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61192
61193 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61194
61195         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61196
61197 2002-01-22  Jim Meyering  <meyering@lucent.com>
61198
61199         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61200         Otherwise, some versions of automake would omit the rule that makes
61201         Makefile from Makefile.in.
61202
61203 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61204
61205         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61206         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61207         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61208         (memcoll): Set errno to zero if there is no error.
61209
61210         * lib/quotearg.c (quotearg_buffer_restyled):
61211         Fix bug with quoting buffers containing NUL when backslashing escapes.
61212         This bug was exposed by the other changes in this patch.
61213         (quotearg_n_options): New arg ARGSIZE.
61214         All callers changed.
61215         (quoting_options_from_style): New function.
61216         (quotearg_n_style): Use it.
61217         (quotearg_n_style_mem): New function.
61218
61219         * lib/quotearg.h (quotearg_n_style_mem): New function.
61220
61221 2002-01-19  Jim Meyering  <meyering@lucent.com>
61222
61223         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61224         Remove useless quotes: DF_PROG="df".
61225         * m4/strnlen.m4: New file.
61226
61227 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61228
61229         * lib/backupfile.c (ISDIGIT): Comment fix.
61230         * lib/getdate.y (ISDIGIT): Likewise.
61231         * lib/posixtm.c (ISDIGIT, year): Likewise.
61232         * lib/strverscmp.c (ISDIGIT): Likewise.
61233         * lib/userspec.c (ISDIGIT): Likewise.
61234
61235 2002-01-16  Jim Meyering  <meyering@lucent.com>
61236
61237         * lib/getdate.y: Add three semicolons, each just before a closing
61238         brace. Bison (as of version 1.31) no longer papers over that mistake.
61239
61240 2002-01-05  Jim Meyering  <meyering@lucent.com>
61241
61242         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61243
61244 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61245
61246         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61247         not silently exit merely because the output buffer happens to
61248         have nothing pending.
61249
61250 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61251
61252         See the big note in ../ChangeLog.
61253         * lib/human.c (suffixes): Prefer K to k for 1024.
61254         (generate_suffix_backwards): New function.
61255         (human_readable_inexact): Use it.
61256         * lib/xstrtol.c (__xstrtol): If there is no number but there
61257         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61258         Accept 'K' as well as 'k'.
61259
61260 2001-12-15  Jim Meyering  <meyering@lucent.com>
61261
61262         * lib/regex.h (__restrict_arr): Update from libc.
61263
61264         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61265         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61266         (STREQ): Define.
61267
61268 2001-12-14  Jim Meyering  <meyering@lucent.com>
61269
61270         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61271         Suggestion from Bruno Haible.
61272
61273 2001-12-10  Jim Meyering  <meyering@lucent.com>
61274
61275         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61276         xrealloc, Instead, include "xalloc.h".
61277         (initbuffer): Don't cast xmalloc return value to char*.
61278         (readline): Reword comment.
61279         Don't cast xrealloc return value to char*
61280         Return NULL, not 0.
61281
61282 2001-12-09  Jim Meyering  <meyering@lucent.com>
61283
61284         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61285         about `signed and unsigned type in conditional expression'.
61286         * lib/posixtm.c (posix_time_parse): Likewise.
61287
61288         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61289
61290         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61291         to avoid a pedantic warning.
61292
61293         * lib/getstr.c: Don't include assert.h.
61294         (getstr): Remove warning-evoking assertions.
61295         Return -1 if offset parameter is out of bounds.
61296         Change the type of a local from int to size_t.
61297
61298         * lib/strftime.c (my_strftime_localtime_r): Include this function
61299         definition in the `#if ! HAVE_TM_GMTOFF' block.
61300
61301         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61302         Include xalloc.h instead.
61303
61304 2001-12-02  Jim Meyering  <meyering@lucent.com>
61305
61306         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61307         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61308         included.
61309
61310         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61311         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61312
61313 2001-11-30  Akim Demaille  <akim@epita.fr>
61314
61315         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61316         before being defined.
61317
61318 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61319
61320         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61321         First arg is int, not unsigned.
61322         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61323         (SIZE_MAX, UINT_MAX): New macros.
61324         (quotearg_n_options): Abort if N is negative.
61325         Avoid overflow check on hosts where size_t is 64 bits and int
61326         is 32 bits, as overflow is impossible there.
61327         Fix off-by-one typo that caused unnecessary reallocation.
61328
61329 2001-11-27  Jim Meyering  <meyering@lucent.com>
61330
61331         * lib/tempname.c: Merge with version from libc.
61332         * lib/regex.c: Likewise.
61333
61334         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61335         systems for which STDC_HEADERS is 0, it was not included, resulting in
61336         a warning about an integer-to-pointer conversion problem with getenv.
61337         Reported by Volker Borchert.
61338
61339 2001-11-26  Jim Meyering  <meyering@lucent.com>
61340
61341         * lib/gtod.h: Remove file.
61342         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61343         * lib/gettimeofday.c: Don't include gtod.h.
61344         (GTOD_init): Remove function.
61345         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61346         Suggestion from Volker Borchert.
61347
61348 2001-11-23  Jim Meyering  <meyering@lucent.com>
61349
61350         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61351         it.
61352         * lib/hash.c (struct hash_table): Define it here instead.
61353
61354 2001-11-22  Jim Meyering  <meyering@lucent.com>
61355
61356         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61357
61358 2001-11-20  Jim Meyering  <meyering@lucent.com>
61359
61360         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61361         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61362
61363 2001-11-19  Jim Meyering  <meyering@lucent.com>
61364
61365         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61366         directory.  Use "conftestXXXXXX" as the template.
61367         Suggestion from Paul Eggert.
61368
61369         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61370         immediately, so the test doesn't mistakenly hit the max-open-files
61371         limit.
61372
61373 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61374
61375         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61376         (TEMPORARIES): New macro.
61377         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61378         removes an artificial limitation (e.g. HP-UX 10.20, where
61379         TMP_MAX is 17576).
61380
61381 2001-11-18  Jim Meyering  <meyering@lucent.com>
61382
61383         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61384
61385 2001-11-18  Jim Meyering  <meyering@lucent.com>
61386
61387         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61388         on SunOS 4.
61389
61390         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61391         files will be created before anything else.
61392
61393 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61394
61395         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61396         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61397
61398 2001-11-17  Jim Meyering  <meyering@lucent.com>
61399
61400         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61401         Prompted by a report from Bob Proulx.
61402
61403         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61404         Instead, require UTILS_FUNC_MKSTEMP.
61405
61406 2001-11-17  Jim Meyering  <meyering@lucent.com>
61407
61408         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61409         Now, that's done as part of AC_FUNC_STRTOD.
61410
61411 2001-11-17  Jim Meyering  <meyering@lucent.com>
61412
61413         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61414         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61415         rather than group writable.  Patch by Juan F. Codagnone.
61416
61417         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61418         xrealloc, Instead, include "xalloc.h".
61419
61420         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61421         Remove explicit declarations of xmalloc, xrealloc,
61422         and xstrdup.  Instead, include "xalloc.h".
61423
61424         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61425         unlocked-io.h.
61426         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61427         Likewise.
61428         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61429
61430         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61431         Reported by Padraig Brady.
61432
61433         * lib/mkstemp.c: #undef mkstemp.
61434         Include config.h.
61435         (rpl_mkstemp): Rename from mkstemp.
61436         Protoize.
61437
61438 2001-11-16  Jim Meyering  <meyering@lucent.com>
61439
61440         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61441         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61442         determine the amount of total physical memory, use pstat_getstatic.
61443         HPUX-11 doesn't define _SC_PHYS_PAGES.
61444         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61445         If sysconf couldn't be used to determine the amount of available
61446         physical memory, use both pstat_getstatic and pstat_getdynamic.
61447         Based on a patch from Bob Proulx.
61448
61449 2001-11-10  Jim Meyering  <meyering@lucent.com>
61450
61451         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61452         (jm_PREREQ): Use it.
61453
61454 2001-11-09  Jim Meyering  <meyering@lucent.com>
61455
61456         * m4/jm-macros.m4: Require autoconf-2.52f.
61457         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61458         Use these AC_-prefixed names, not the AM_-prefixed ones.
61459
61460         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61461
61462 2001-11-05  Jim Meyering  <meyering@lucent.com>
61463
61464         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61465
61466 2001-11-04  Jim Meyering  <meyering@lucent.com>
61467
61468         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61469         $DEFS.
61470
61471 2001-11-03  Jim Meyering  <meyering@lucent.com>
61472
61473         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61474         of AC_DEFUN.
61475
61476         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61477         know the name of the variable in the macro definition.
61478
61479 2001-11-03  Jim Meyering  <meyering@lucent.com>
61480
61481         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61482         in argmatch_to_argument call.
61483
61484         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61485         argument.
61486
61487         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61488         e.g., a fault due to an attempt to free a NULL pointer.
61489
61490 2001-11-01  Jim Meyering  <meyering@lucent.com>
61491
61492         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61493         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61494
61495 2001-11-01  Jim Meyering  <meyering@lucent.com>
61496
61497         * lib/dirfd.c, lib/dirfd.h: New files.
61498         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61499
61500         * lib/hash.c (hash_print) [TESTING]: Clean up.
61501
61502 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61503
61504         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61505         to avoid a warning if -Wall.
61506
61507 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61508
61509         * README: New file
61510         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61511         (per RMS's instructions, this is now the canonical source)
61512         * lgpl/, gpl/: New directories.
61513
61514 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61515
61516         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61517
61518 2001-10-21  Jim Meyering  <meyering@lucent.com>
61519
61520         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61521         this code would end up calling gettext even in packages built
61522         with --disable-nls.
61523         * lib/getopt.c (_): Likewise.
61524         * lib/regex.c (_): Likewise.
61525
61526 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61527
61528         * m4/error.m4 (jm_PREREQ_ERROR):
61529         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61530         AC_FUNC_STRERROR_R does that.
61531         Check for strerror declaration.
61532
61533         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61534         are supposed to have them these days.
61535         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61536         Merge changes from latest Autoconf CVS.
61537         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61538         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61539         POSIX decided to standardize on the int flavor of strerror_r.
61540
61541 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61542
61543         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61544         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61545         Use strerror_r that is only a macro, even if it is not a function.
61546         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61547         (private_strerror): Use prototypes, not old-style function definition.
61548         (print_errno_message): New function.
61549         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61550         char*-flavored one.
61551         (error_tail, error, error_at_line): Use it.
61552
61553 2001-10-11  Jim Meyering  <meyering@lucent.com>
61554
61555         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61556         and quote_n (1, ... to avoid clobbering a buffer.
61557
61558 2001-10-05  Jim Meyering  <meyering@lucent.com>
61559
61560         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61561         hash-pjw.h.
61562         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61563         * lib/hash-pjw.h: New file.
61564
61565 2001-09-30  Jim Meyering  <meyering@lucent.com>
61566
61567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61568         `struct fsstat' has the `f_fstypename' member.
61569         Use that to define FS_TYPE, which is now used to make
61570         the getfsstat link test tighter.
61571
61572 2001-09-30  Jim Meyering  <meyering@lucent.com>
61573
61574         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61575         Include <sys/ucred.h>, for Apple Darwin.
61576         Include sys/mount.h and sys/fs_types.h only if available.
61577         (FS_TYPE): Define.
61578         (read_filesystem_list): Use FS_TYPE.
61579
61580 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61581
61582         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61583         a boolean context.
61584
61585 2001-09-29  Jim Meyering  <meyering@lucent.com>
61586
61587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61588         [one-argument getmntent function]): Include stdio.h before mntent.h.
61589         SunOS 4.1.x needs it for the declaration of `FILE'.
61590         Patch by Volker Borchert.
61591
61592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61593         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61594         sys/fs_types.h, and make the link-test for getfsstat guard #include
61595         directives with appropriate #if HAVE_*_H tests so that we can
61596         detect getfsstat on Apple Darwin1.3.7 systems.
61597         Reported by Nelson Beebe.
61598         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61599
61600 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61601
61602         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61603         #defines strtoimax.  Also treat the other strto* functions
61604         like strtoimax.
61605
61606         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61607         Check for strtoul and strtoumax,
61608         as those declarations are made even in the signed case.
61609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61610         Likewise, for strtol and strtoimax.
61611
61612 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61613
61614         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61615         #defines strtoimax.  Also treat the other strto* functions
61616         like strtoimax.
61617
61618         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61619         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61620         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61621
61622 2001-09-26  Jim Meyering  <meyering@lucent.com>
61623
61624         Most macros in unlocked-io.h had the wrong number of arguments.
61625         * lib/gen-uio: New script.
61626         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61627         * lib/unlocked-io.hin: Remove file.
61628         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61629         rather than trying to embed it here.
61630         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61631         Reported by Padraig Brady.
61632
61633 2001-09-25  Volker Borchert  <bt@teknon.de>
61634
61635         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61636         `result'.
61637
61638 2001-09-24  Jim Meyering  <meyering@lucent.com>
61639
61640         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61641
61642 2001-09-23  Jim Meyering  <meyering@lucent.com>
61643
61644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61645         instead of the mere test for existence of mntent.h.  The latter
61646         would get a false-positive on AIX 3.4 systems.
61647         In the outer getmntent if-block, don't die if neither of the getmntent
61648         tests succeeds.  Instead, just fall through and continue with the
61649         remaining tests.
61650
61651 2001-09-23  Jim Meyering  <meyering@lucent.com>
61652
61653         * lib/mountlist.c: Remove useless parentheses in #if directives.
61654         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61655         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61656
61657 2001-09-22  Jim Meyering  <meyering@lucent.com>
61658
61659         * m4/gettext.m4: New file.  From gettext.
61660         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61661         * m4/progtest.m4: Likewise
61662         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61663         * m4/glibc21.m4: Likewise.
61664
61665         * m4/libintl.m4: Remove.  No longer used.
61666
61667 2001-09-22  Jim Meyering  <meyering@lucent.com>
61668
61669         * lib/localcharset.c: Update from latest gettext.
61670         * lib/config.charset: Likewise.
61671
61672 2001-09-20  Jim Meyering  <meyering@lucent.com>
61673
61674         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61675         strtoimax.
61676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61677         strtoumax.
61678
61679 2001-09-20  Jim Meyering  <meyering@lucent.com>
61680
61681         * lib/xstrtol.c (strtoimax): Guard declaration with
61682         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61683         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61684         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61685         (strtoumax): Likewise, for completeness (it wasn't necessary).
61686
61687 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61688
61689         * lib/strtoimax.c (HAVE_LONG_LONG):
61690         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61691         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61692         to work around bug in IBM C compiler.
61693
61694 2001-09-17  Jim Meyering  <meyering@lucent.com>
61695
61696         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61697         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61698         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61699         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61700         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61701         whenever the right hand side need not be expanded by the shell.
61702
61703 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61704
61705         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61706         library.  It's not correct, as some older glibcs are buggy.
61707         fnmatch wasn't fixed until glibc 2.2.
61708
61709         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61710         special shell magic here.
61711
61712 2001-09-16  Jim Meyering  <meyering@lucent.com>
61713
61714         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61715         * m4/jm-macros.m4: Require it.
61716
61717 2001-09-16  Jim Meyering  <meyering@lucent.com>
61718
61719         * lib/mkdir.c: New file.
61720
61721 2001-09-15  Jim Meyering  <meyering@lucent.com>
61722
61723         * m4/jm-macros.m4: Check for help2man.
61724
61725 2001-09-11  Jim Meyering  <meyering@lucent.com>
61726
61727         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61728         The body, by Paul Eggert, was moved here from configure.in.
61729         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61730
61731 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61732
61733         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61734         (jm_PREREQ): Use it.
61735
61736 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61737
61738         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61739         Use ssize_t, not int, to store result of readlink.
61740         Check for ssize_t overflow as well as size_t overflow,
61741         as POSIX says the result of readlink is implementation-defined
61742         when ssize_t overflows.
61743         Remove unnecessary cast to char*.
61744         Use free+malloc instead of realloc, as the storage doesn't need
61745         to be preserved and it's clearer and can be more efficient that way.
61746         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61747         * lib/xreadlink.h (xreadlink): Update prototype.
61748
61749 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61750
61751         * lib/xgetcwd.c: Revert some of the previous change; intead,
61752         fix the HAVE_GETCWD_NULL code to behave more like the
61753         !HAVE_GETCWD_NULL code used to.
61754
61755         Include "xalloc.h".
61756         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61757         invoke xalloc_die.
61758
61759 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61760
61761         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61762         sys/param.h, as pathmax.h includes them.
61763
61764 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61765
61766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61767         (jm_PREREQ_XGETCWD): New macro.
61768
61769         * m4/getcwd.m4: New file.
61770
61771 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61772
61773         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61774         like the HAVE_GETCWD_NULL code.
61775         Include pathmax.h if not HAVE_GETCWD.
61776         Do not include xalloc.h.
61777         (INITIAL_BUFFER_SIZE): New symbol.
61778         Do not use xmalloc / xrealloc, since the caller is responsible for
61779         handling errors.  Preserve errno around `free' during failure.
61780         Do not overrun buffer when using getwd.
61781
61782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61783
61784         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61785         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61786         getcwd (NULL, 0).
61787
61788 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61789
61790         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61791         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61792         spotted by Jim Meyering.
61793
61794 2001-09-03  Jim Meyering  <meyering@lucent.com>
61795
61796         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61797         failure.
61798
61799 2001-09-02  Jim Meyering  <meyering@lucent.com>
61800
61801         * lib/error.c: Update from GNU libc.
61802
61803 2001-09-01  Jim Meyering  <meyering@lucent.com>
61804
61805         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61806         Used by df.
61807
61808 2001-09-01  Jim Meyering  <meyering@lucent.com>
61809
61810         * lib/xreadlink.c: New file.
61811         * lib/xreadlink.h: New file.
61812         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61813         xreadlink.h.
61814
61815         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61816         doesn't conflict with sparc Solaris 7's definition in
61817         /usr/include/sys/int_types.h.
61818
61819         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61820         files.
61821         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61822         and strncasecmp as r-values.  Unixware didn't have declarations.
61823
61824 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61825
61826         * lib/xstrtol.h: Add copyright notice.
61827         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61828         LONGINT_INVALID_SUFFIX_CHAR.
61829
61830 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61831
61832         * lib/xstrtol.c (strtoimax): New decl.
61833
61834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61835
61836         * lib/xgetcwd.c: Don't include pathmax.h.
61837         Include stdlib.h and unistd.h if available.
61838         Include xalloc.h.
61839         (xmalloc, xstrdup, free): Remove decls.
61840         (xgetcwd): Don't assume sizes fit in unsigned.
61841         Check for overflow when computing sizes.
61842         Simplify reallocation code.
61843
61844 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61845
61846         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61847         a directory's st_size can have an arbitrary value, so the old
61848         usage could waste an arbitrary amount of memory.  All uses
61849         changed.
61850         * lib/savedir.h: Update prototype.
61851
61852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61853
61854         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61855
61856         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61857         old strtoimax.c.
61858
61859         Also, make the following further changes to make this file's
61860         configuration more similar to that of strtol.c:
61861         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61862         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61863         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61864         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61865         changed to signed values.
61866
61867         And make the following changes as well:
61868         Fix copyright notice, as 1999 was missing.
61869         (verify): New macro.
61870         (strtoimax): Check sizes at compile-time, not run-time.
61871         Prefer strtol to strtoll if both work.
61872         (main): Remove; it was not that useful and was a pain to maintain.
61873
61874         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61875
61876 2001-08-31  Jim Meyering  <meyering@lucent.com>
61877
61878         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61879         Use an initial, malloc'd, buffer of length 128 rather than
61880         a statically allocated one of length 1024.
61881
61882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61883
61884         Simplify code, partly by assuming autoconf 2.52 semantics.
61885
61886         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61887
61888         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61889         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61890         All uses removed.
61891         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61892         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61893         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61894         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61895         jm_AC_HEADER_INTTYPES_H.
61896         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61897
61898         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61899
61900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61901         Quote first arg of AC_DEFUN.
61902         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61903         since they are needed to parse the include file even if we need
61904         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61906         but with opposite signedness.
61907
61908 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61909
61910         Merge 'exclude' changes from tar 1.13.22.
61911         This fixes one or two unlikely storage allocation overflow bugs,
61912         but doesn't change user-visible behavior otherwise.
61913
61914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61915
61916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61917         (jm_PREREQ_EXCLUDE): New macro.
61918
61919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61920
61921         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61922         tm to be declared.
61923
61924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61925
61926         * lib/hash.c: Remove '2001' from copyright notice.
61927
61928 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61929
61930         * lib/full-write.h: New file.
61931         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61932         * lib/full-write.c: Correct credits, as cccp.c no longer
61933         exists and anyway it was so heavily changed from the old cccp
61934         code as to be unrecognizable.  Include full-write.h.
61935         (full_write) Return size_t, with short writes meaning failure.
61936         All callers changed.  This fixes a bug with large buffers
61937         on 64-bit hosts.
61938         * lib/utime.c: Include full-write.h.
61939
61940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61941
61942         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61943         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61944         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61945         Include if available.
61946         (<xalloc.h>): Include
61947         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61948         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61949         collide with FNM macros.
61950         (struct patopts): New struct.
61951         (struct exclude): Use it, as exclude patterns now come with options.
61952         (new_exclude): Support above changes.
61953         (new_exclude, add_exclude_file):
61954         Initial size must now be a power of two to simplify overflow checking.
61955         (free_exclude, fnmatch_no_wildcards): New function.
61956         (excluded_filename): No longer requires options arg, as the options
61957         are determined by add_exclude.  Now returns bool, not int.
61958         (excluded_filename, add_exclude):
61959         Add support for the fancy new exclusion options.
61960         (add_exclude, add_exclude_file): Now takes int options arg.
61961         Check for arithmetic overflow when computing sizes.
61962         (add_exclude_file): xrealloc might modify errno, so don't
61963         realloc until after errno might be used.
61964
61965         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61966         New macros.
61967         (free_exclude): New decl.
61968         (add_exclude, add_exclude_file): Now takes int options arg.
61969         (excluded_filename): No longer requires options arg, as the options
61970         are determined by add_exclude.  Now returns bool, not int.
61971
61972 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61973
61974         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61975
61976 2001-08-27  Jim Meyering  <meyering@lucent.com>
61977
61978         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61979
61980         * lib/version-etc.c (N_): Remove definition.
61981         Revert most of last change.
61982         Instead, simply don't mark the `Copyright...' string for translation.
61983         Based on advice from Paul Eggert.
61984
61985         * lib/strtoxmax.c: Tweak comment.
61986
61987 2001-08-26  Jim Meyering  <meyering@lucent.com>
61988
61989         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61990
61991         * m4/xstrtoimax.m4: New file.
61992         * m4/xstrtoumax.m4: Add comments explaining why we
61993         AC_REPLACE_FUNCS(strtol).
61994
61995 2001-08-26  Jim Meyering  <meyering@lucent.com>
61996
61997         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61998         of copyright with `%s' so translators don't get an untranslated
61999         message in 2002.
62000         (COPYRIGHT_YEAR): Define.
62001         (version_etc): Use fprintf rather than fputs.
62002         Suggestion from Ulrich Drepper.
62003
62004         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62005
62006         * lib/strtoll.c: New file, from GNU libc.
62007         * lib/xstrtoimax.c: New file.
62008
62009         * lib/xstrtol.h: Add xstrtoimax.
62010         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62011         * lib/strtoimax.c: New file.  Likewise, but first define
62012         STRTOUXMAX_SIGNED.
62013
62014         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62015         ...
62016         * lib/strtoxmax.c: ... then renamed to this.
62017
62018 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62019
62020         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62021         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62022         (jm_AC_TYPE_INTMAX_T): New macro.
62023         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62024
62025         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62026
62027         * m4/longlong.m4: Renamed from ulonglong.m4.
62028         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62029         * m4/uintmax_t.m4: Removed.
62030
62031 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62032
62033         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62034         Port to Solaris 8, where 'sed' requires a space after the 'r'
62035         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62036         Redirect output to $tmp just once.
62037
62038 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62039
62040         * lib/addext.c (<errno.h>): Include.
62041         (errno): Declare if not defined.
62042         (addext): Work correctly when pathconf returns -1 and leaves
62043         errno alone because there is no limit.  Also, work even if
62044         pathconf returns a value greater than SIZE_MAX.
62045
62046 2001-08-12  Jim Meyering  <meyering@lucent.com>
62047
62048         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62049         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62050         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62051         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62052         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62053         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62054         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62055         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62056         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62057         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62058         utime.m4, utimes.m4, xstrtoumax.m4:
62059         Quote the first argument in each use of AC_DEFUN.
62060
62061 2001-08-12  Jim Meyering  <meyering@lucent.com>
62062
62063         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62064         Simply `return getcwd (NULL, 0);'.
62065         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62066         Use 1300 as initial value for length, not PATH_MAX.
62067
62068         * lib/pathmax.h: Clean up cpp syntax.
62069
62070 2001-08-12  Jim Meyering  <meyering@lucent.com>
62071
62072         * lib/gettimeofday.c: New file.
62073         * lib/gtod.h: New file.
62074         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62075
62076 2001-08-05  Jim Meyering  <meyering@lucent.com>
62077
62078         * m4/jm-macros.m4: Require autoconf-2.52.
62079
62080 2001-08-04  Jim Meyering  <meyering@lucent.com>
62081
62082         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62083         stmt, to get in sync with glibc.
62084
62085 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62086
62087         The following changes are from gettext 0.10.39 as maintained by
62088         Bruno Haible.
62089
62090         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62091         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62092         with inverted sense.  All uses changed.
62093
62094         * lib/mbswidth.c: Don't include <limits.h>.
62095         Include <stdlib.h> and <string.h> unconditionally.
62096         (iswcntrl, mbsinit, ISCNTRL): New macros.
62097         (mbsnwidth): Use K&R style function declarations.
62098         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62099         can optimize it when MB_CUR_MAX == 1.
62100         The width of control characters is zero, not 1.
62101
62102 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62103
62104         The following changes are from gettext 0.10.39 as maintained by
62105         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62106
62107         * m4/codeset.m4: Upgrade to serial AM1.
62108         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62109         all uses changed.  Quote first arg of AC_DEFUN.
62110         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62111
62112         * m4/iconv.m4: Upgrade to serial AM2.
62113         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62114         Add --with-libconv-prefix.
62115         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62116         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62117         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62118         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62119         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62120
62121         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62122         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62123         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62124         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62125         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62126         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62127         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62128         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62129         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62130
62131         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62132         string.h any more.
62133
62134         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62135         not the default value.
62136
62137         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62139         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62140         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62141         Also check for iswcntrl, used for wcwidth fallback.
62142         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62143         to Autoconf 2.13.
62144
62145 2001-08-03  Jim Meyering  <meyering@lucent.com>
62146
62147         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62148         as it was in the original.  Reported by Paul Eggert.
62149
62150 2001-07-16  Jim Meyering  <meyering@lucent.com>
62151
62152         * m4/gettimeofday.m4: New file.
62153         Prompted by a report from Bernhard Baehr.
62154
62155 2001-07-15  Jim Meyering  <meyering@lucent.com>
62156
62157         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62158         stuff. Now it's in ../Makefile.cfg.
62159
62160 2001-07-15  Jim Meyering  <meyering@lucent.com>
62161
62162         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62163         (BUILT_SOURCES): Add unlocked-io.h.
62164         (io_functions): Define.
62165         (unlocked-io.h): New rule.
62166         (DISTCLEANFILES): Add unlocked-io.h.
62167         (all-local): Depend on unlocked-io.h, to ensure it is created.
62168
62169         * lib/unlocked-io.hin: New file
62170
62171         * lib/regex.c: Update from glibc.
62172
62173 2001-07-05  Jim Meyering  <meyering@lucent.com>
62174
62175         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62176         recommendation.
62177         (libfetish_a_SOURCES): Put all .h files here instead.
62178         Remove a thus-exposed (better checks in automake) duplicate and
62179         two unnecessary .h files.
62180
62181 2001-07-04  Jim Meyering  <meyering@lucent.com>
62182
62183         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62184         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62185         distcheck failure.
62186
62187 2001-07-02  Jim Meyering  <meyering@lucent.com>
62188
62189         The following changes were prompted by suggestions from Bruno Haible.
62190
62191         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62192         is now generated.
62193         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62194         definition of EXTRA_DIST.
62195         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62196         ensure that the generated file is created/updated whenever the list
62197         of $(unlocked_functions) is changed.
62198         (jm-glibc-io.m4): New rule.
62199         (unlocked-io.h): New rule -- currently unused.
62200
62201 2001-06-24  Jim Meyering  <meyering@lucent.com>
62202
62203         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62204         unmatched right bracket, rather than kludging it with an extra,
62205         falsely-matching quote in a comment.  Patch by Akim Demaille.
62206
62207 2001-06-11  Jim Meyering  <meyering@lucent.com>
62208
62209         * lib/regex.c: Update from GNU libc.
62210
62211 2001-05-27  Jim Meyering  <meyering@lucent.com>
62212
62213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62214         Check for ut_type in struct utmp.
62215
62216 2001-05-27  Jim Meyering  <meyering@lucent.com>
62217
62218         * lib/readutmp.h (UT_TYPE): Define.
62219
62220 2001-05-24  Jim Meyering  <meyering@lucent.com>
62221
62222         * lib/argmatch.c: Include "quote.h".
62223         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62224         quote function.  Reported by Göran Uddeborg.
62225
62226 2001-05-22  Jim Meyering  <meyering@lucent.com>
62227
62228         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62229         now that we use the package-supplied version unconditionally.
62230         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62231
62232 2001-05-21  Jim Meyering  <meyering@lucent.com>
62233
62234         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62235         shell syntax errors.
62236
62237 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62238
62239         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62240
62241 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62242
62243         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62244         Don't bother to check library strftime, since
62245         we'll be using our own my_strftime function anyway.
62246         Define my_strftime instead of strftime.
62247
62248 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62249
62250         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62251         which is not yet declared.
62252
62253 2001-05-15  Jim Meyering  <meyering@lucent.com>
62254
62255         * m4/regex.m4: Use proper quoting so brackets appear in the test
62256         program.
62257         Reported by, and with help from, Bruno Haible.
62258
62259 2001-05-13  Jim Meyering  <meyering@lucent.com>
62260
62261         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62262         undefined.
62263
62264 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62265
62266         dirname code cleanup.  base_name now behaves more compatibly
62267         with POSIX basename when given file names that have trailing
62268         slashes, and similarly for dir_name.  Add new primitives
62269         base_len and dir_len.  Put the directory-name-related decls
62270         into dirname.h.
62271
62272         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62273         * lib/backupfile.c (base_name): Likewise.
62274         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62275         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62276         * lib/makepath.c (strip_trailing_slashes): Likewise.
62277         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62278         ISSLASH): Likewise.
62279         * lib/rename.c (strip_trailing_slashes): Likewise.
62280         * lib/same.c (base_name): Likewise.
62281         * lib/stripslash.c (ISSLASH): Likewise.
62282
62283         * lib/addext.c: Include <dirname.h> after size_t is defined.
62284         * lib/backupfile.c: Likewise.
62285
62286         * lib/addext.c (addext): Use base_len to trim redundant
62287         trailing slashes instead of doing it ourselves.
62288         But do not trim the last slash if it is not redundant.
62289
62290         * lib/backupfile.c (find_backup_file_name,
62291         max_backup_version): Use base_len instead of rolling it ourselves.
62292         Handle the case of "" and (on DOS) "C:" correctly.
62293
62294         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62295         needed. Include <string.h>, <dirname.h>.
62296         (base_name): Allow file names ending in slashes, other than names
62297         that are all slashes.  In this case, return the basename followed
62298         by the slashes.  This is more general, and can be used in places
62299         where the original base_name purposely had an assertion failure.
62300         (base_len): New function.
62301
62302         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62303         Do not include <assert.h>; no longer needed.
62304         Include xalloc.h.
62305         (memrchr): Remove decl.
62306         (dir_name_r): Remove.
62307         (dir_len): Renamed from dirlen.  All callers changed.
62308         Rewrite in terms of base_name, for simplicity and consistency.
62309         (dir_name): Never return NULL.  All callers changed.
62310         Do not include <stdlib.h> in test program; no longer needed.
62311         return 0; is fine for test program.
62312
62313         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62314         New macros.
62315         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62316
62317         * lib/path-concat.c (path_concat): Use base_len to compute
62318         base length, not strlen; this means we cannot rely on memcpy
62319         to null-terminate.
62320
62321         * lib/same.c (STREQ): Remove.
62322         (same_name): Handle the case where the basename ends in trailing '/'.
62323
62324         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62325         a slash was stripped.  Do not strip the last slash after a
62326         file system prefix.
62327
62328 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62329
62330         * lib/Makefile.am (libfetish_a_SOURCES):
62331         Add strftime.c, since we now compile it on all hosts.
62332
62333         * lib/strftime.c (my_strftime):
62334         Define to nstrftime if emacs, but only if my_strftime is not defined.
62335         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62336         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62337         Add one more extra argument: a nanoseconds value.
62338         All uses changed.
62339         (ns): New macro.
62340         (my_strftime function): Add %N format.
62341         (emacs_strftimeu): Renamed from emacs_strftime,
62342         with extra ut argument.
62343
62344 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62345
62346         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62347
62348 2001-04-21  Jim Meyering  <meyering@lucent.com>
62349
62350         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62351         doesn't interfere.
62352
62353 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62354
62355         * m4/ftruncate.m4: Check for chsize.
62356         Link with ftruncate.o unconditionally if ftruncate is missing.
62357         This was required when cross-compiling to i586-mingw32msvc.
62358
62359 2001-04-08  Jim Meyering  <meyering@lucent.com>
62360
62361         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62362         recomputed; that's necessary when the offset spans a DST transition.
62363         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62364
62365 2001-04-02  Jim Meyering  <meyering@lucent.com>
62366
62367         * lib/regex.h, regex.c: Update from GNU libc.
62368
62369 2001-03-24  Jim Meyering  <meyering@lucent.com>
62370
62371         * m4/jm-macros.m4: Require autoconf-2.49d.
62372
62373 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62374
62375         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62376
62377 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62378
62379         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62380
62381 2001-03-17  Jim Meyering  <meyering@lucent.com>
62382
62383         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62384         now that the version in autoconf is equivalent.
62385         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62386
62387         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62388         Suggestion from Akim Demaille.
62389
62390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62391         (jm_PREREQ_TEMPNAME): New function.
62392
62393 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62394
62395         * lib/tempname.c (uint64_t): Define to uintmax_t if
62396         not defined, and if UINT64_MAX is not defined.
62397         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62398         Reported by John David Anglin.
62399
62400 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62401
62402         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62403         resolve alias if codeset is empty.
62404         * lib/config.charset (BeOS): Use wildcard syntax.
62405
62406 2001-03-13  Jim Meyering  <meyering@lucent.com>
62407
62408         * lib/path-concat.c (path_concat)
62409         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62410         concatenating e.g., `C:' and `foo'.
62411         From Bruno Haible.
62412
62413 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62414
62415         * lib/localcharset.c (locale_charset): Don't use
62416         setlocale(LC_CTYPE,NULL). Don't return NULL.
62417         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62418
62419 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62420
62421         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62422         support for DOS/DJGPP.
62423
62424 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62425
62426         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62427         lacks mkstemp.  Compile our own tempname.c if we compile our own
62428         mkstemp.c, as mkstemp relies on tempname.
62429
62430 2001-03-01  Jim Meyering  <meyering@lucent.com>
62431
62432         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62433         AH_VERBATIM really does output its argument verbatim.
62434
62435 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62436
62437         * lib/Makefile.am (libfetish_a_SOURCES):
62438         Add dup-safer.c, fopen-safer.c.
62439         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62440
62441         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62442         * lib/unistd-safer.h: New files.
62443
62444 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62445
62446         The mkstemp replacement is taken from glibc 2.2.2, with some
62447         portability fixes for use outside glibc, as follows:
62448
62449         * lib/tempname.c (struct_stat64): New macro.
62450         (direxists, __gen_tempname): Use it.
62451         This avoids a portability problem with Solaris 8.
62452
62453         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62454         (<stddef.h>, <stdint.h>, <string.h>):
62455         Include only if STDC_HEADERS || _LIBC.
62456         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62457         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62458         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62459         (__set_errno): Define this macro if <errno.h> doesn't.
62460         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62461         Define these macros if <stdio.h> doesn't.
62462         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62463         Define these macros if <sys/stat.h>
62464         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62465         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62466         __xstat64): Define if not _LIBC.
62467         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62468         (__gen_tempname): Invoke gettimeofday only if
62469         HAVE_GETTIMEOFDAY || _LIBC;
62470         otherwise, fall back on plain "time".
62471         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62472
62473         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62474
62475         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62476
62477 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62478
62479         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62480
62481 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62482
62483         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62484         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62485         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62486         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62487
62488 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62489
62490         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62491         Remove workaround macros for hosts that have mbrtowc but not
62492         mbstate_t, as we now insist on proper declarations for both
62493         before using mbrtowc.
62494
62495 2001-02-17  Jim Meyering  <meyering@lucent.com>
62496
62497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62498         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62499         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62500         UnixWare 7.1.1.
62501
62502         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62503         rather than AC_CACHE_VAL.
62504
62505 2001-02-17  Jim Meyering  <meyering@lucent.com>
62506
62507         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62508         around included file name.
62509
62510         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62511
62512         * lib/strftime.c: Update from GNU libc (the only changes were to
62513         comments).
62514
62515 2001-02-17  Jim Meyering  <meyering@lucent.com>
62516
62517         * lib/regex.c: Update from libc.
62518
62519 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62520
62521         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62522         clash.
62523
62524 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62525
62526         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62527         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62528         Reported by Mark Hounschell via Paul Eggert.
62529
62530 2001-02-07  Jim Meyering  <meyering@lucent.com>
62531
62532         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62533
62534 2001-02-05  Jim Meyering  <meyering@lucent.com>
62535
62536         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62537         it includes the patch required for `large file' support with at least
62538         HP-UX's 10.20 /bin/cc.
62539
62540 2001-02-03  Jim Meyering  <meyering@lucent.com>
62541
62542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62543         AS_IF, now that it works once again (mysteriously).
62544         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62545
62546 2001-01-30  Jim Meyering  <meyering@lucent.com>
62547
62548         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62549         * m4/chown.m4: Rename conftestchown to conftest.chown.
62550         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62551         s/conftestdir2/conftest.d2/.
62552         * m4/utimes.m4: s/conftestdata/conftest.data/
62553         Inspired by Pavel Roskin's change in autoconf.
62554
62555 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62556
62557         * lib/config.charset: Update for FreeBSD 4.2.
62558
62559 2001-01-27  Jim Meyering  <meyering@lucent.com>
62560
62561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62562         a use of AS_IF.
62563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62564
62565 2001-01-26  Jim Meyering  <meyering@lucent.com>
62566
62567         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62568         quotearg.c includes it.
62569
62570 2001-01-26  Jim Meyering  <meyering@lucent.com>
62571
62572         * lib/quotearg.c: Include stddef.h.
62573         * lib/quote.c: Include stddef.h.
62574         Reported by Axel Kittenberger.
62575
62576         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62577         line in double quotes so that it evokes a better diagnostic.
62578         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62579         Reported by Axel Kittenberger.
62580
62581 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62582
62583         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62584         as if it was a `charset'.
62585
62586 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62587
62588         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62589         has const.
62590
62591 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62592
62593         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62594         to avoid a warning.  Add back 'const' to inptr.
62595
62596 2001-01-20  Jim Meyering  <meyering@lucent.com>
62597
62598         Be sure that headers are checked before used in code compiled
62599         for the type checks.
62600         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62601         In place of that, invoke jm_CHECK_ALL_TYPES.
62602         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62603         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62604         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62605         The check for ssize_t was mistakenly run before the test for unistd.h.
62606
62607         The configure-time check for stdbool.h was missing.
62608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62609         (jm_PREREQ_HASH): New function.
62610
62611 2001-01-17  Jim Meyering  <meyering@lucent.com>
62612
62613         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62614         for autoconf-2.49c.
62615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62616
62617 2001-01-16  Jim Meyering  <meyering@lucent.com>
62618
62619         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62620         From Bruno Haible.
62621
62622 2001-01-14  Jim Meyering  <meyering@lucent.com>
62623
62624         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62625         foo and bar.  Create conftestdir/ in the script, not in the C code.
62626         Remove directories in the script, not in the C code.
62627         Remove conftestdir{,2} before trying to create the directory.
62628         Make the entire configure script fail if the mkdir fails.
62629
62630 2001-01-14  Jim Meyering  <meyering@lucent.com>
62631
62632         * lib/rename.c: New file.  From Volker Borchert.
62633         Include stdlib.h, string.h or strings.h, and xalloc.h.
62634         Use strip_trailing_slashes rather than open-coding it.
62635
62636 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62637
62638         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62639
62640 2001-01-03  Jim Meyering  <meyering@lucent.com>
62641
62642         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62643         of local `inptr' to avoid warning with some system declarations of
62644         iconv.
62645
62646 2001-01-02  Volker Borchert  <bt@teknon.de>
62647
62648         * m4/rename.m4: New file.
62649         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62650
62651 2001-01-01  Jim Meyering  <meyering@lucent.com>
62652
62653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62654         even on systems with utmpx.h.  It's necessary for the declaration of
62655         utmp's ut_user member.  Reported by Andreas Jaeger.
62656
62657         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62658         available. They are required for the declarations of getgrgid and
62659         getpwuid resp.
62660         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62661         Reported by Andreas Jaeger.
62662
62663 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62664
62665         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62666         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62667         so `make install' also works in VPATH builds.
62668
62669 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62670
62671         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62672         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62673         can be used in subdirectories.
62674
62675 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62676
62677         * lib/modechange.c: Do not assume that mode_t uses the
62678         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62679         the other-execute bit of FOO even if S_IXOTH != 1.
62680
62681         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62682         WOTH, XOTH, ALLM): New macros.
62683         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62684          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62685         Use them.
62686         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62687         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62688         (mode_compile):
62689         No need to use uintmax_t; unsigned long is long enough.
62690         Don't bother to get suffix since we don't use it.
62691
62692 2000-12-26  Jim Meyering  <meyering@lucent.com>
62693
62694         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62695         better with autoheader.
62696
62697 2000-12-24  Jim Meyering  <meyering@lucent.com>
62698
62699         * lib/hash.c (is_prime): Return explicit boolean values.
62700         (hash_get_first): Return NULL to appease Irix5.6's 89.
62701         Reported by Nelson Beebe.
62702
62703 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62704
62705         * lib/localcharset.c (locale_charset): Add support for Win32.
62706
62707 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62708
62709         * lib/physmem.h, lib/physmem.c: New files.
62710
62711         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62712         (noinst_HEADERS): Add physmem.h.
62713
62714         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62715         't' for compatibility with Solaris 8 sort.
62716
62717 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62718
62719         * lib/config.charset: Add support for BeOS.
62720
62721 2000-12-17  Jim Meyering  <meyering@lucent.com>
62722
62723         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62724         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62725
62726 2000-12-16  Jim Meyering  <meyering@lucent.com>
62727
62728         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62729         N and M) would have treated it like `chown N:N FILE'.
62730
62731         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62732
62733 2000-12-16  Jim Meyering  <meyering@lucent.com>
62734
62735         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62736         SHELLS_FILE to a file name that's useful on djgpp systems.
62737         Include stdlib.h.
62738         (ADDITIONAL_DEFAULT_SHELLS): Define.
62739         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62740         Based mostly on a patch from Prashant TR.
62741
62742 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62743
62744         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62745         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62746         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62747
62748 2000-12-08  Andreas Schwab  <schwab@suse.de>
62749
62750         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62751         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62752
62753 2000-12-07  Jim Meyering  <meyering@lucent.com>
62754
62755         * lib/stripslash.c (ISSLASH): Define.
62756         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62757         `/'.
62758         From Prashant TR.
62759
62760         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62761         (dir_name_r): Declare this function as static.
62762         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62763         manifest itself on a name containing a mix of slashes and
62764         backslashes.
62765         Make this function work with names starting with a DOS-style
62766         drive letter and colon prefix.
62767         (dir_name): Append `.' if necessary.
62768         Based mostly on patches from Prashant TR and Eli Zaretskii.
62769
62770         * lib/dirname.h (dir_name_r): Remove prototype.
62771
62772 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62773
62774         * m4/off_t-format.m4: Remove this file.
62775         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62776
62777 2000-12-06  Jim Meyering  <meyering@lucent.com>
62778
62779         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62780         replacement strtoull, we may well need the replacement strtoul, too.
62781         Check for declarations of strtoul and strtoull.
62782         Check for strtol.  Mainly as a cue to cause automake to include
62783         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62784         Check for limits.h -- strtol.c needs it.
62785
62786 2000-12-05  Jim Meyering  <meyering@lucent.com>
62787
62788         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62789
62790 2000-12-04  Jim Meyering  <meyering@lucent.com>
62791
62792         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62793         Also include memory.h, stdlib.h, unistd.h if appropriate.
62794         Reported by Andreas Jaeger (conflicting declaration of malloc).
62795
62796 2000-12-02  Jim Meyering  <meyering@lucent.com>
62797
62798         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62799         * m4/jm-macros.m4 (jm_MACROS): require it.
62800
62801 2000-12-02  Jim Meyering  <meyering@lucent.com>
62802
62803         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62804
62805 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62806
62807         * lib/memrchr.c: Include <config.h> before any system include file.
62808
62809 2000-11-30  Jim Meyering  <meyering@lucent.com>
62810
62811         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62812
62813 2000-11-30  Jim Meyering  <meyering@lucent.com>
62814
62815         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62816
62817 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62818
62819         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62820
62821 2000-11-26  Jim Meyering  <meyering@lucent.com>
62822
62823         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62824
62825 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62826
62827         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62828         size of (size_t) -1; it's not portable.
62829
62830 2000-11-17  Jim Meyering  <meyering@lucent.com>
62831
62832         * lib/strstr.c: Update from GNU libc.
62833
62834 2000-11-17  Akim Demaille  <akim@epita.fr>
62835
62836         * lib/obstack.h: Formatting changes.
62837         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62838         prevent type checking.
62839         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62840         cast the value to (void *): assigning a `foo *' to a `void *'
62841         variable is valid.
62842         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62843
62844 2000-11-16  Jim Meyering  <meyering@lucent.com>
62845
62846         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62847
62848 2000-11-11  Jim Meyering  <meyering@lucent.com>
62849
62850         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62851
62852 2000-11-10  Jim Meyering  <meyering@lucent.com>
62853
62854         * lib/obstack.h: Update from GNU libc.
62855         * lib/obstack.c: Likewise.
62856
62857 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62858
62859         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62860
62861 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62862
62863         * lib/getusershell.c (setusershell): Use rewind rather than
62864         fseek/fseeko, to avoid configuration hassles with fseeko.
62865         Don't bother opening SHELLS_FILE if shellstream is NULL;
62866         it's not necessary.
62867
62868 2000-11-05  Jim Meyering  <meyering@lucent.com>
62869
62870         * lib/makepath.h (make_dir): Declare.
62871         * lib/makepath.c (make_dir): Remove `static' attribute.
62872         Tweak a comment.
62873
62874 2000-11-04  Jim Meyering  <meyering@lucent.com>
62875
62876         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62877
62878 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62879
62880         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62881         last one in a bucket, advance to the next bucket.
62882
62883 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62884
62885         * lib/fnmatch.c: Do not comment out all the code if we are using
62886         the GNU C library, because in some cases we are replacing buggy
62887         code in the GNU C library itself.
62888
62889 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62890
62891         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62892         (regex_compile): Catch bogus \(\1\).
62893
62894 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62895
62896         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62897         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62898         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62899
62900 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62901
62902         * lib/error.h, getline.h, modechange.h:
62903         Remove "2000" from Copyright line, as the file hasn't been
62904         changed this year other than in the copyright notice.
62905
62906         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62907         was changed this year.
62908
62909 2000-10-29  Jim Meyering  <meyering@lucent.com>
62910
62911         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62912         renaming.
62913         * m4/ls-mntd-fs.m4: Likewise
62914
62915 2000-10-29  Jim Meyering  <meyering@lucent.com>
62916
62917         * lib/xstat.in: Fix grammar in comment.
62918
62919 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62920
62921         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62922         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62923         doesn't define __restrict_arr.
62924
62925 2000-10-28  Jim Meyering  <meyering@lucent.com>
62926
62927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62928         (jm_PREREQ_MEMCHR): New function.
62929
62930 2000-10-28  Jim Meyering  <meyering@lucent.com>
62931
62932         * lib/memchr.c: Update from libc.
62933         Adjust for portability:
62934         [HAVE_STDLIB_H]: Include stdlib.h.
62935         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62936         Undef __memchr, too.
62937         [!weak_alias]: Define __memchr to memchr.
62938
62939         * lib/regex.c: Update from libc.
62940         * lib/regex.h: Likewise.
62941         * lib/getopt1.c: Likewise.
62942         * lib/memcmp.c: Likewise.
62943
62944         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62945         Avoid using fseek, when possible -- it's broken by design.
62946         Patch by Ulrich Drepper.
62947
62948 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62949
62950         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62951         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62952         Giving in to popular pressure to shut up the compiler with casts.
62953
62954 2000-10-26  Jim Meyering  <meyering@lucent.com>
62955
62956         * lib/strftime.c: Update from libc.
62957
62958 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62959
62960         * regex.c: More `unsigned char' -> `re_char' changes.
62961         Also change several `int' into `re_wchar_t'.
62962         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62963         (PUSH_FAILURE_POINTER): Don't cast any more.
62964         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62965         We want GCC to complain, since this piece of code makes
62966         re_match non-reentrant, which *should* be fixed.
62967         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62968         (EXTEND_BUFFER): Use RETALLOC.
62969         (SET_LIST_BIT): Don't cast.
62970         (re_wchar_t): New type.
62971         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62972         that those two functions will always properly return.
62973         (IMMEDIATE_QUIT_CHECK): Cast to void.
62974         (analyse_first): Use recursion rather than an explicit stack.
62975         (re_compile_fastmap): Can't fail anymore.
62976         (re_search_2): Don't check re_compile_fastmap for failure.
62977         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62978         Now also sets the new value (passed in a new argument).
62979         (re_match_2_internal): Use it.
62980         Also, use a new var `reg' of type size_t when looping through regs
62981         rather than reuse the inappropriate `mcnt'.
62982
62983 2000-10-25  Jim Meyering  <meyering@lucent.com>
62984
62985         * lib/obstack.c: Update from libc.
62986
62987 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62988
62989         * regex.c (regex_compile): Change the way of handling a range from
62990         a char less than 256 to a char not less than 256.
62991
62992 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62993
62994         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62995         NT-Emacs only.
62996         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62997         so that re_search functions only quit when callers expect them to.
62998
62999 2000-10-23  Jim Meyering  <meyering@lucent.com>
63000
63001         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63002         wrong.  That set_locale call must not have any side effects.
63003         From Paul Eggert.
63004
63005 2000-10-22  Jim Meyering  <meyering@lucent.com>
63006
63007         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63008         [CYCLIC]: Remove now-unused definition.
63009
63010         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63011         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63012         Suggestion from Ulrich Drepper.
63013
63014 2000-10-21  Jim Meyering  <meyering@lucent.com>
63015
63016         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63017         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63019
63020 2000-10-21  Jim Meyering  <meyering@lucent.com>
63021
63022         * lib/dirname.c (memrchr): Declare if necessary.
63023         (dir_name): Remove the restriction that there be no
63024         trailing slashes.  Now, this code skips past them, effectively
63025         ignoring them.
63026         [TEST_DIRNAME] (main): New unit tests.
63027
63028         * lib/memrchr.c: New file from GNU libc.
63029         Undef __memrchr, too.
63030         [!weak_alias]: Define __memrchr to memrchr.
63031         Guard weak_alias use with `#ifdef weak_alias'.
63032
63033 2000-10-21  Jim Meyering  <meyering@lucent.com>
63034
63035         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63036         (dir_name): Use dir_name_r.
63037         * lib/dirname.h (dir_name_r): Declare it.
63038
63039 2000-10-17  Jim Meyering  <meyering@lucent.com>
63040
63041         * lib/quote.h (PARAMS): Define and use.
63042         Reported by Akim Demaille.
63043
63044         * lib/getopt.c: Update from libc.
63045
63046 2000-10-16  Jim Meyering  <meyering@lucent.com>
63047
63048         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63049         setlocale.
63050         From Jan Fedak.
63051
63052 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63053
63054         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63055
63056 2000-09-25  Jim Meyering  <meyering@lucent.com>
63057
63058         * lib/md5.h (rol): Define (from GnuPG).
63059
63060         * lib/sha.c: Give credit (GnuPG) where due.
63061         (M): Use rol rather than open-coding it.
63062         Add a FIXME comment.
63063
63064 2000-09-21  Jim Meyering  <meyering@lucent.com>
63065
63066         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63067         Reported by Michael Stone.
63068
63069 2000-09-20  Jim Meyering  <meyering@lucent.com>
63070
63071         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63072         (noinst_HEADERS): Add sha.h.
63073         Based on code from Scott G. Miller and from GnuPG.
63074
63075 2000-09-18  Jim Meyering  <meyering@lucent.com>
63076
63077         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63078         LIBS. Otherwise, everyone ends up linking with -lelf for some
63079         configurations.
63080         Reported by Mike Stone.
63081
63082 2000-09-15  Jim Meyering  <meyering@lucent.com>
63083
63084         * lib/regex.c: Update from libc.
63085
63086 2000-09-10  Jim Meyering  <meyering@lucent.com>
63087
63088         * lib/getopt.c (_getopt_internal): Update from glibc.
63089
63090 2000-09-09  Jim Meyering  <meyering@lucent.com>
63091
63092         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63093         think it should be used as a general replacement for isascii.
63094         * lib/fnmatch.c: Likewise.
63095         * lib/mbswidth.c: Likewise
63096         * lib/regex.c: Likewise.
63097
63098         Don't use atoi.
63099         * lib/userspec.c: Include sys/param.h and limits.h.
63100         Include xstrtol.h.
63101         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63102         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63103         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63104         UID, GID.  Check range.
63105
63106 2000-09-06  Jim Meyering  <meyering@lucent.com>
63107
63108         * lib/getopt.c (_getopt_internal): Update from glibc.
63109
63110 2000-08-30  Jim Meyering  <meyering@lucent.com>
63111
63112         * lib/strftime.c: Merge in changes from GNU libc.
63113
63114 2000-08-26  Jim Meyering  <meyering@lucent.com>
63115
63116         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63117         * m4/fpending.m4: New file.
63118
63119 2000-08-26  Jim Meyering  <meyering@lucent.com>
63120
63121         * lib/closeout.c: Include "__fpending.h".
63122         (close_stdout_status): Return right away if there's nothing to flush.
63123
63124         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63125         * lib/__fpending.c: New file.
63126         * lib/__fpending.h: New file.
63127
63128 2000-08-20  Jim Meyering  <meyering@lucent.com>
63129
63130         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63131         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63132         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63133
63134 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63135
63136         Improve fileutils installation on systems where running
63137         programs (like install) can't be unlinked.
63138         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63139         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63140
63141 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63142
63143         Standardize on "memory exhausted" instead of "Memory exhausted"
63144         or "virtual memory exhausted".
63145         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63146         "virtual memory exhausted".
63147         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63148         our own message.
63149         * lib/userspec.c (parse_user_spec): Likewise.
63150         * lib/bumpalloc.h: comment fix
63151         * lib/same.c, userspec.c: Include xalloc.h.
63152
63153         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63154         not char *const and pointing to a constant array.
63155         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63156         (xrealloc): Comment fix.
63157
63158         * lib/userspec.c (parse_user_spec):
63159         Don't translate a message until just before returning,
63160         to avoid unnecessary translation.
63161
63162 2000-08-07  Jim Meyering  <meyering@lucent.com>
63163
63164         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63165         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63166         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63167         getgroups.c, gethostname.c, getopt.h, group-member.c,
63168         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63169         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63170         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63171         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63172         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63173         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63174         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63175         yesno.c: Back out Copyright date changes for each file with no change
63176         this year.  This eases coordination with other programs using the same
63177         source code modules.  From Paul Eggert.
63178
63179 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63180
63181         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63182         not char, for compatibility with glibc 2.1.3 strftime.c.
63183
63184 2000-08-03  Greg McGary  <greg@mcgary.org>
63185
63186         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63187         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63188         (EXTEND_BUFFER): Use them.
63189
63190 2000-08-01  Jim Meyering  <meyering@lucent.com>
63191
63192         * lib/dirname.c (ISSLASH): Define.
63193         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63194         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63195         both `\' and `/' may be use as path separators.
63196         Based on a patch from Prashant TR.
63197
63198 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63199
63200         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63201         slot vector a constant, since it might get modified.
63202
63203 2000-07-31  Jim Meyering  <meyering@lucent.com>
63204
63205         * lib/xmalloc.c: Use `virtual memory exhausted', not
63206         `Memory exhausted'.
63207         * lib/obstack.c (print_and_abort): Likewise.
63208
63209 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63210
63211         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63212         buffer, so that the caller can always quote one small
63213         component of a "memory exhausted" message in slot 0.
63214         From a suggestion by Jim Meyering.
63215
63216 2000-07-30  Jim Meyering  <meyering@lucent.com>
63217
63218         * lib/makepath.c (make_path): Quote the other instance, too.
63219
63220         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63221         (STATIC_BUF_SIZE): Define.
63222         (quotearg_n_options): Use only statically allocated storage when
63223         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63224         than STATIC_BUF_SIZE.
63225
63226 2000-07-29  Jim Meyering  <meyering@lucent.com>
63227
63228         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63229         * lib/dirname.c (dir_name): Likewise.
63230
63231         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63232         `/'.
63233
63234         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63235         (dir_name): Assert that there are no trailing slashes.
63236
63237 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63238
63239         * lib/mbswidth.h (mbswidth): Add a flags argument.
63240         (mbswidth): New declaration.
63241         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63242         * lib/mbswidth.c (mbswidth): Add a flags argument.
63243         (mbsnwidth): New function.
63244
63245 2000-07-24  Jim Meyering  <meyering@lucent.com>
63246
63247         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63248
63249 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63250
63251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63252
63253 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63254
63255         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63256         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63257         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63258         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63259         invoke multibyte primitives.
63260
63261 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63262
63263         * lib/quotearg.c:
63264         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63265         so that mbstate_t is always defined.
63266
63267         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63268         be 1 in at least one GCC installation, and this configuration
63269         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63270         performance on hosts that have mbrtowc but have only unibyte
63271         locales, but I assume these hosts are rare.
63272
63273 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63274
63275         * lib/mbswidth.c (_XOPEN_SOURCE):
63276         Don't define; this causes problems on Solaris 7.
63277         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63278
63279 2000-07-23  Jim Meyering  <meyering@lucent.com>
63280
63281         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63282         too: getgrgid, getpwuid, getuid.
63283
63284 2000-07-23  Jim Meyering  <meyering@lucent.com>
63285
63286         * lib/basename.c (base_name): Add an assertion.
63287
63288 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63289
63290         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63291         shadow its mbsinit function.
63292
63293 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63294
63295         * lib/mbswidth.h: New file.
63296         * lib/mbswidth.c: New file.
63297         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63298         (noinst_HEADERS): Add mbswidth.h.
63299
63300 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63301
63302         * lib/config.charset: Add support for FreeBSD. Improve support for
63303         HP-UX and IRIX 6.
63304
63305 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63306
63307         * m4/mbswidth.m4: New file.
63308         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63309
63310 2000-07-15  Jim Meyering  <meyering@lucent.com>
63311
63312         * lib/makepath.c: Include quote.h.
63313         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63314         corresponding argument in a `quote (...)' call.
63315         Give better diagnostics.
63316
63317         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63318         (noinst_HEADERS): Add quote.h.
63319
63320         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63321         from tar's src/misc.c.
63322         * lib/quote.h: New file.  Prototypes for same.
63323
63324 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63325
63326         From a suggestion by Bruno Haible.
63327         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63328         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63329         to decide whether to define the BeOS workaround macro;
63330         this adjusts to the change to AC_MBSTATE_T.
63331
63332 2000-07-14  Jim Meyering  <meyering@lucent.com>
63333
63334         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63335         jm_AC_TYPE_UINTMAX_T.
63336
63337 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63338
63339         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63340
63341         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63342         quotearg_buffer_restyled): Add support for
63343         clocale_quoting_style.  Undo previous change to
63344         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63345         and "{RIGHT QUOTATION MARK}" msgids.
63346
63347 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63348
63349         From a suggestion by Bruno Haible.
63350         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63351         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63352         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63353         and mbstate_t, to a single-part test that simply defines mbstate_t.
63354         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63355         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63356
63357 2000-07-10  Jim Meyering  <meyering@lucent.com>
63358
63359         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63360
63361         * m4/gnu-source.m4: Output to confdefs.h directly.
63362         Suggestion from Akim Demaille.
63363
63364 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63365
63366         The old behavior of quoting `like this' doesn't look good with
63367         newer, ISO-style fonts.  See:
63368         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63369
63370         Instead, quote "like this" by default.  Let the translator
63371         tailor the locale-specific quoting behavior by providing
63372         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63373
63374         * lib/quotearg.c (N_): New macro.
63375         (gettext_default): New function.
63376         (quotearg_buffer_restyled): Use
63377         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63378         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63379
63380 2000-07-09  Jim Meyering  <meyering@lucent.com>
63381
63382         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63383         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63384
63385         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63387
63388 2000-07-09  Jim Meyering  <meyering@lucent.com>
63389
63390         * lib/Most files: Update copyright dates to include 2000.
63391
63392 2000-07-08  Jim Meyering  <meyering@lucent.com>
63393
63394         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63395         if not defined.
63396         (xgethostname): Remove now-unnecessary #ifdef.
63397         Move declaration of `err' into loop where it's used.
63398
63399 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63400         and Bruno Haible  <haible@clisp.cons.org>
63401
63402         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63403         only if the test for an object-type mbstate_t fails.  This
63404         prevents us from mistakenly reporting that mbstate_t is a
63405         system object type after we "#define mbstate_t int" to work
63406         around its lack.
63407
63408 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63409         and Bruno Haible  <haible@clisp.cons.org>
63410
63411         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63412
63413 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63414
63415         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63416         to strerror_r.
63417         Include <ctype.h> for use of isalpha.
63418
63419 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63420
63421         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63422         by allocating a larger buffer. Test the gethostname return value for
63423         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63424         returns an error and ENAMETOOLONG isn't defined.
63425
63426 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63427
63428         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63429         dimension.
63430
63431 2000-07-04  Jim Meyering  <meyering@lucent.com>
63432
63433         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63434         of the deprecated AC_CHECKING.
63435
63436 2000-07-04  Jim Meyering  <meyering@lucent.com>
63437
63438         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63439         Reported by Bruno Haible.
63440
63441 2000-07-04  Jim Meyering  <meyering@lucent.com>
63442
63443         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63444         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63445         lacks mbrtowc.
63446
63447 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63448
63449         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63450         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63451
63452 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63453         and Bruno Haible  <haible@clisp.cons.org>
63454
63455         * lib/quotearg.c (mbrtowc):
63456         Assign to *pwc, and return 1 only if result is nonzero.
63457         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63458
63459 2000-07-03  Jim Meyering  <meyering@lucent.com>
63460
63461         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63462
63463 2000-07-03  Jim Meyering  <meyering@lucent.com>
63464
63465         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63466         This is necessary to get a definition of e.g., UTMP_FILE on
63467         HP-UX 10.20.
63468         From Bob Proulx.
63469
63470 2000-07-02  Jim Meyering  <meyering@lucent.com>
63471
63472         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63473
63474         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63475         AC_LIBOBJ(function_name).
63476         * m4/chown.m4: Likewise.
63477         * m4/fnmatch.m4: Likewise.
63478         * m4/ftruncate.m4: Likewise.
63479         * m4/getgroups.m4: Likewise.
63480         * m4/getline.m4: Likewise.
63481         * m4/group-member.m4: Likewise.
63482         * m4/jm-macros.m4: Likewise.
63483         * m4/lstat.m4: Likewise.
63484         * m4/malloc.m4: Likewise.
63485         * m4/memcmp.m4: Likewise.
63486         * m4/nanosleep.m4: Likewise.
63487         * m4/putenv.m4: Likewise.
63488         * m4/realloc.m4: Likewise.
63489         * m4/regex.m4: Likewise.
63490         * m4/stat.m4: Likewise.
63491         * m4/strftime.m4: Likewise.
63492
63493 2000-07-02  Jim Meyering  <meyering@lucent.com>
63494
63495         * lib/quotearg.c (mbstate_t): Don't define here.
63496
63497 2000-07-02  Jim Meyering  <meyering@lucent.com>
63498
63499         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63500
63501 2000-07-01  Jim Meyering  <meyering@lucent.com>
63502
63503         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63504
63505 2000-07-01  Jim Meyering  <meyering@lucent.com>
63506
63507         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63508         problem.
63509
63510 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63511
63512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63513         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63514
63515 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63516
63517         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63518         per change in ../m4/ls-mntd-fs.m4.
63519         (read_filesystem_list): Ignore symbolic links.
63520
63521 2000-06-29  Jim Meyering  <meyering@lucent.com>
63522
63523         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63524         for declaration of strcmp.
63525
63526         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63527
63528         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63529         Avoid warning by casting result to `char *' to remove `const'.
63530
63531 2000-06-28  Jim Meyering  <meyering@lucent.com>
63532
63533         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63534         included by quotearg.c, for which we perform this test.  From
63535         Bruno Haible.
63536
63537 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63538
63539         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63541         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63542
63543 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63544
63545         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63546
63547 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63548
63549         savedir now sets errno on failure and invokes xmalloc to get memory.
63550         Fix a couple of other minor bugs while we're at it.
63551
63552         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63553         (NAMLEN): Remove macro.
63554         (malloc, realloc): Remove decls.
63555         (stpcpy): Likewise.
63556         ("xalloc.h"): Include.
63557         (NAME_SIZE_DEFAULT): New macro.
63558         (savedir): Use xmalloc / xrealloc to allocate memory.
63559         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63560         Skip "" directory entries.
63561         Use strlen to calculate directory entry length, since the old method
63562         is rarely used these days and isn't worth supporting.
63563         Don't use a pointer after freeing it.
63564         Check for integer overflow when calculating allocation size.
63565         Use memcpy to copy entries, instead of stpcpy.
63566         Set errno properly when returning NULL.
63567         Check for readdir error.
63568
63569 2000-06-26  Jim Meyering  <meyering@lucent.com>
63570
63571         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63572
63573 2000-06-25  Jim Meyering  <meyering@lucent.com>
63574
63575         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63576         Linux header bug when _XOPEN_SOURCE is defined to 500.
63577
63578 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63579
63580         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63581         deficiency.
63582
63583 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63584
63585         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63586         Include xalloc.h.
63587         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63588
63589 2000-06-24  Jim Meyering  <meyering@lucent.com>
63590
63591         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63592         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63593         for which strerror does return char*, but which lacks a conveniently
63594         accessible declaration of the function.  If the compile-test says
63595         strerror_r doesn't work, then resort to a `run'-test that works on
63596         BeOS and segfaults on DEC Unix.
63597
63598 2000-06-24  Jim Meyering  <meyering@lucent.com>
63599
63600         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63601
63602 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63603
63604         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63606
63607 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63608
63609         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63610         (mbrtowc, mbstate_t): Define substitutes if
63611         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63612         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63613         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63614
63615 2000-06-23  Jim Meyering  <meyering@lucent.com>
63616
63617         * m4/afs.m4: Add missing AC_MSG_RESULT.
63618         Reported by Bruno Haible.
63619
63620         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63621         Suggestion from Bruno Haible.
63622
63623 2000-06-23  Jim Meyering  <meyering@lucent.com>
63624
63625         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63626
63627 2000-06-21  Jim Meyering  <meyering@lucent.com>
63628
63629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63630
63631 2000-06-21  Jim Meyering  <meyering@lucent.com>
63632
63633         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63634         (noinst_HEADERS): Add getstr.h.
63635
63636         * lib/getline.c (getstr): Move into a separate file.
63637         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63638         the following changes: new parameter, delim2; both delim[12]
63639         parameters have type `int', not `char'.  The latter would lose
63640         with 8-bit delimiters.
63641         * lib/getstr.h: New file.
63642
63643 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63644
63645         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63646         than 1024, return a memory chunk of least possible size, instead
63647         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63648         Use free/xmalloc instead of xrealloc to avoid copying for very long
63649         paths.
63650
63651 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63652
63653         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63654         the empty string.
63655
63656 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63657
63658         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63659         address, not strdup.  Include <stdlib.h> and don't declare free().
63660
63661 2000-06-19  Jim Meyering  <meyering@lucent.com>
63662
63663         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63664
63665 2000-06-18  Jim Meyering  <meyering@lucent.com>
63666
63667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63668
63669         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63670         `checking whether...' message to be consistent with that of the
63671         lstat test.
63672
63673 2000-06-18  Jim Meyering  <meyering@lucent.com>
63674
63675         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63676         Besides, these days every porting target provides a mkdir function.
63677
63678         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63679         needed. (this snippet comes from src/system.h).
63680
63681 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63682
63683         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63684
63685 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63686
63687         * lib/human.c (adjust_value): New function.
63688         (human_readable_inexact): Apply rounding style even when
63689         printing approximate values.
63690
63691 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63692
63693         * lib/human.c (human_readable_inexact): Allow an input block
63694         size that is not a multiple of the output block size, and vice versa.
63695         Reported by Piergiorgio Sartor.
63696
63697 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63698
63699         * lib/getdate.y (get_date): Apply relative times after time
63700         zone indicator, not before.  Reported by Todd A. Jacobs.
63701
63702 2000-06-13  Jim Meyering  <meyering@lucent.com>
63703
63704         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63705
63706         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63707
63708 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63709
63710         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63711
63712 2000-06-12  Jim Meyering  <meyering@lucent.com>
63713
63714         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63715         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63716         optional argument.
63717         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63718         the optional argument, `lib'.
63719
63720 2000-06-08  Jim Meyering  <meyering@lucent.com>
63721
63722         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63723
63724 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63725
63726         Rewrite largefile configuration so that we don't need to run
63727         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63728         AC_CANONICAL_HOST in configure.in -- jmm]
63729
63730         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63731         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63732         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63733         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63734         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63735         All uses changed.
63736         Instead of inspecting the output of getconf, try to compile the
63737         test program without and with the macro definition.
63738         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63739         for getconf.  Instead, check for the needed flags by compiling
63740         test programs.
63741
63742 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63743
63744         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63745
63746 2000-06-04  Jim Meyering  <meyering@lucent.com>
63747
63748         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63749         SunOS 4.1.4 for which gid_t is an unsigned type.
63750
63751 2000-06-03  Jim Meyering  <meyering@lucent.com>
63752
63753         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63754         now that autoconf requires that.
63755
63756         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63757         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63758         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63759
63760 2000-06-03  Jim Meyering  <meyering@lucent.com>
63761
63762         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63763
63764 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63765
63766         * m4/glibc21.m4: New file.
63767         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63768
63769 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63770
63771         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63772         newer, don't install charset.alias.
63773         * lib/config.charset: Change the Linux/glibc rules so they become empty
63774         on glibc-2.1 or newer.
63775
63776 2000-06-02  Jim Meyering  <meyering@lucent.com>
63777
63778         * lib/mountlist.c: Back out last change.  Instead, do this...
63779         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63780         me_dummy member using the same `ignore'-testing code.
63781         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63782         fs_type strings.
63783         From Mark D. Roth.
63784
63785 2000-05-29  Jim Meyering  <meyering@lucent.com>
63786
63787         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63788         mounts with the `ignore' attribute.  Based on a patch from
63789         Mark D. Roth.
63790
63791 2000-05-28  Jim Meyering  <meyering@lucent.com>
63792
63793         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63794         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63795         * m4/stat.m4: Likewise.
63796         * m4/lstat.m4: Likewise.
63797         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63798
63799         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63800         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63801
63802 2000-05-26  Jim Meyering  <meyering@lucent.com>
63803
63804         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63805
63806 2000-05-24  Jim Meyering  <meyering@lucent.com>
63807
63808         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63809         autoconf requires that.
63810         * m4/lib-check.m4: Likewise.
63811         * m4/jm-macros.m4: Likewise.
63812         * m4/strftime.m4: Likewise.
63813
63814         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63815         AC_CHECK_DECLS, now that autoconf requires that.
63816
63817 2000-05-22  Jim Meyering  <meyering@lucent.com>
63818
63819         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63820         * m4/lstat.m4: Likewise.
63821
63822 2000-05-22  Jim Meyering  <meyering@lucent.com>
63823
63824         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63825
63826 2000-05-20  Jim Meyering  <meyering@lucent.com>
63827
63828         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63829         (jm_PREREQ): Use it.
63830
63831 2000-05-18  Jim Meyering  <meyering@lucent.com>
63832
63833         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63834         back, too, since it may have been modified by allocate_entry.
63835         (hash_delete): Rewrite to use neither the assignment operator
63836         nor the comma operator in an if-expression.
63837
63838 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63839
63840         * lib/closeout.c:
63841         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63842         Remove; no longer needed.
63843         "quotearg.h": Add include.
63844         (file_name): Do not bother to explicitly initialize to NULL; it's less
63845         efficient on some hosts.
63846         (close_stdout_status): Remove test as to whether stdout was already
63847         closed; it breaks for the case "echo x | sort >&-".
63848         Quote file name colons.
63849         Do not assume that _("write error") lacks format strings.
63850
63851 2000-05-15  Jim Meyering  <meyering@lucent.com>
63852
63853         * lib/version-etc.c (version_etc_copyright): Update the copyright
63854         string used in all --version output.
63855
63856 2000-05-14  Jim Meyering  <meyering@lucent.com>
63857
63858         * lib/closeout.c (close_stdout_set_file_name): New function.
63859         (close_stdout_status): Use new file-scoped global.
63860         Return right away if fstat says the stdout file descriptor is invalid.
63861         * lib/closeout.h (close_stdout_set_file_name): Declare.
63862
63863 2000-05-10  Jim Meyering  <meyering@lucent.com>
63864
63865         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63866         (close_stdout_set_status): New function.
63867         * lib/closeout.h (close_stdout_set_status): Declare.
63868
63869 2000-05-09  Jim Meyering  <meyering@lucent.com>
63870
63871         * m4/gettext.m4: Rename this...
63872         * m4/libintl.m4: ...to this.
63873
63874 2000-05-08  Jim Meyering  <meyering@lucent.com>
63875
63876         * lib/long-options.c: Don't include closeout.h.
63877         (parse_long_options): Don't call close_stdout for --version.
63878
63879 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63880
63881         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63882         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63883         2.1.3 bug.  This avoids a clash when files like regex.c define
63884         _GNU_SOURCE.
63885
63886 2000-05-06  Jim Meyering  <meyering@lucent.com>
63887
63888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63889         (AC_REPLACE_FUNCS): Add strnlen.
63890
63891         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63892         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63893
63894         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63895         AC_SEARCH_LIBS call for nanosleep.
63896         (LIB_NANOSLEEP): Set and AC_SUBST.
63897
63898 2000-05-06  Jim Meyering  <meyering@lucent.com>
63899
63900         * lib/strnlen.c: Undefine __strnlen and strnlen.
63901         [!weak_alias]: Define __strnlen to strnlen.
63902
63903         * lib/atexit.c: New file, from libiberty.
63904
63905 2000-05-06  Jim Meyering  <meyering@lucent.com>
63906
63907         * lib/closeout.c (close_stdout_status): Also check for errors on the
63908         stderr stream.
63909
63910 2000-05-05  Jim Meyering  <meyering@lucent.com>
63911
63912         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63913         AC_SEARCH_LIBS call for clock_gettime.
63914         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63915
63916         * m4/search-libs.m4: Update from autoconf.
63917
63918         su doesn't work on Solaris 2.6.
63919         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63920         <shadow.h>.  Reported by Dragos Harabor.
63921
63922 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63923
63924         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63925         memcpy instead of xmalloc, xrealloc, path_concat.
63926         (locale_charset): Treat empty environment variables as absent.
63927         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63928
63929 2000-05-04  Jim Meyering  <meyering@lucent.com>
63930
63931         * lib/getopt.c: Update from glibc.
63932         * lib/obstack.c: Likewise.
63933         * lib/obstack.h: Likewise.
63934         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63935         file
63936
63937         * lib/regex.h: Likewise.
63938         * lib/strndup.c: Likewise.
63939         * lib/strnlen.c: New file, from glibc.
63940
63941 2000-05-03  Jim Meyering  <meyering@lucent.com>
63942
63943         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63944
63945 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63946
63947         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63948         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63949         compile-time test, rather than inspecting host and OS, to
63950         decide whether to define _LARGEFILE_SOURCE.
63951
63952 2000-05-01  Jim Meyering  <meyering@lucent.com>
63953
63954         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63955
63956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63957         Based on a patch from Bruno Haible.
63958
63959 2000-05-01  Jim Meyering  <meyering@lucent.com>
63960
63961         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63962
63963 2000-04-29  Jim Meyering  <meyering@lucent.com>
63964
63965         * lib/path-concat.c: Declare strdup only if it's not defined.
63966         * lib/canon-host.c: Likewise.
63967
63968 2000-04-28  Jim Meyering  <meyering@lucent.com>
63969
63970         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63971         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63972         is included first, then limits.h is included by locale.h by libintl.h.
63973         From John David Anglin.
63974
63975 2000-04-25  Jim Meyering  <meyering@lucent.com>
63976
63977         * lib/makepath.c (S_IRWXUGO): Define.
63978         (make_path): Always perform explicit chmod if MODE specifies any
63979         of the `special' permission bits.  Prompted by a bug report against
63980         install from Mate Wierdl and Joost van Baal.
63981
63982 2000-04-18  Jim Meyering  <meyering@lucent.com>
63983
63984         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63985         (jm_PREREQ): Use it.
63986
63987 2000-04-18  Jim Meyering  <meyering@lucent.com>
63988
63989         * lib/README: New file.
63990
63991         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63992         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63993
63994 2000-04-17  Jim Meyering  <meyering@lucent.com>
63995
63996         Get it right :-)
63997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63998         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63999         Suggestion from Akim Demaille.
64000
64001 2000-04-17  Jim Meyering  <meyering@lucent.com>
64002
64003         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64004         the definition of it to rpl_strftime also defined-away the system's
64005         declaration.
64006
64007 2000-04-15  Jim Meyering  <meyering@lucent.com>
64008
64009         Use `C' to denote so-called `contiguous' files, the same way
64010         that tar does.
64011         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64012         (ftypelet): Use S_ISCTG.
64013         From Michael Deutschmann.
64014
64015 2000-04-14  Jim Meyering  <meyering@lucent.com>
64016
64017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64018         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64019         clobbered.
64020
64021 2000-04-14  Jim Meyering  <meyering@lucent.com>
64022
64023         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64024
64025 2000-04-13  Jim Meyering  <meyering@lucent.com>
64026
64027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64028         AH_VERBATIM to insert required #ifndef into config.h.in.
64029         Suggestion from Akim Demaille.
64030
64031 2000-04-12  Jim Meyering  <meyering@lucent.com>
64032
64033         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64034         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64035         Christian Krackowizer.
64036
64037         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64038         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64039         (AC_SYS_LARGEFILE): Require.
64040         (AM_C_PROTOTYPES): Require.
64041
64042 2000-04-08  Jim Meyering  <meyering@lucent.com>
64043
64044         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64045         names don't conflict.  Reported by Eli Zaretskii.
64046
64047 2000-04-07  Jim Meyering  <meyering@lucent.com>
64048
64049         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64050         sys/types.h, to work around system header problems on AIX 3.2.5.
64051         From Bruno Haible.
64052
64053 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64054
64055         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64056         bug.  Deal with the different error behavior of Irix iconv.
64057
64058 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64059
64060         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64061         IRIX if the installer said otherwise.
64062
64063 2000-04-05  Jim Meyering  <meyering@lucent.com>
64064
64065         Portability tweaks required for ultrix4.3.
64066         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64067         (jm_CHECK_DECLS): Add getutent to the list of functions.
64068         (_jm_DECL_HEADERS): Add utmpx.h.
64069         From John David Anglin.
64070
64071         * m4/strftime.m4: Back out the 2000-04-02 change.
64072         Instead of that change, simply undefine putenv in the test program.
64073
64074 2000-04-05  Jim Meyering  <meyering@lucent.com>
64075
64076         Portability tweaks required for ultrix4.3.
64077         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64078         getutent.
64079         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64080         * lib/canon-host.c: Declare strdup.
64081         * lib/path-concat.c: Likewise.
64082         From John David Anglin.
64083
64084 2000-04-04  Jim Meyering  <meyering@lucent.com>
64085
64086         Be more DOS 8.3-friendly.
64087         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64088         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64089         * lib/Makefile.am: Reflect renaming.
64090         Reported by Eli Zaretskii.
64091
64092         Use a temporary file name that won't clash with `charset.alias'
64093         in the DOS 8.3 name space.
64094         * lib/Makefile.am (charset_tmp): Define.
64095         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64096         (uninstall-local): Likewise.
64097         Reported by Eli Zaretskii.
64098
64099 2000-04-03  Jim Meyering  <meyering@lucent.com>
64100
64101         * m4/gettext.m4: Fix typo in comment.
64102
64103         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64104         textutils/configure.in).  Suggestion from Paul Eggert.
64105         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64106
64107 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64108
64109         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64110         variable in the shell rather than using putenv, which isn't
64111         portable.  This avoids the configure-time inter-test dependency
64112         on the potentially-renamed putenv function.
64113
64114 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64115
64116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64117         before checking struct stat.st_blksize, so that
64118         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64119
64120 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64121
64122         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64123         since strftime.c uses HAVE_STRFTIME to decide whether to use
64124         the underlying strftime.
64125
64126 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64127
64128         * lib/time/strftime.c (my_strftime): Make sure we call the system
64129         strftime, not ourselves, when invoking the underlying strftime.
64130
64131 2000-03-24  Jim Meyering  <meyering@lucent.com>
64132
64133         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64134         (charset_alias): Define.
64135         (install-exec-local): Factor out common code.
64136         (uninstall-local): Split lines longer than 80.
64137         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64138         (SUFFIXES): Define.
64139         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64140         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64141
64142 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64143
64144         * lib/config.charset: Output a line containing "Packages using this
64145         file".
64146         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64147         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64148         ref-del.sed): New rules.
64149
64150 2000-03-17  Jim Meyering  <meyering@lucent.com>
64151
64152         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64153         Otherwise, include <strings.h>
64154
64155 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64156
64157         * lib/unicodeio.c (utf8_wctomb): New function.
64158         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64159         format instead of in UCS-4 with platform dependent endianness.
64160
64161 2000-03-10  Jim Meyering  <meyering@lucent.com>
64162
64163         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64164         From Marco Franzen.
64165
64166 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64167
64168         * lib/savedir.c (savedir): Work even if directory size is
64169         negative; this can happen with some screwy NFS configurations.
64170
64171 2000-03-06  Jim Meyering  <meyering@lucent.com>
64172
64173         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64174         if it's NULL (because we ran out of memory).  From Bruno Haible.
64175
64176 2000-03-05  Jim Meyering  <meyering@lucent.com>
64177
64178         * lib/localcharset.c ("path-concat.h"): Include.
64179         (get_charset_aliases): Use path_concat instead of ANSI string
64180         concatenation.
64181
64182         * lib/unicodeio.h (PARAMS): Define.
64183         Use it to guard prototype.
64184
64185 2000-03-04  Jim Meyering  <meyering@lucent.com>
64186
64187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64188         for lib/localcharset.c.
64189
64190 2000-03-04  Jim Meyering  <meyering@lucent.com>
64191
64192         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64193         installing into it.
64194         (uninstall-local): Uncomment this rule so `make distcheck' works
64195         once again.
64196
64197         * lib/unicodeio.c (<errno.h>): Include it.
64198         (errno): Declare if not defined.
64199
64200         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64201
64202         * lib/config.charset: New version, incorporating remarks from a linux
64203         i18n mailing list.  From Bruno Haible.
64204
64205 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64206
64207         * m4/codeset.m4: New file.
64208         * m4/iconv.m4: New file.
64209         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64210
64211 2000-03-03  Jim Meyering  <meyering@lucent.com>
64212
64213         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64214
64215 2000-03-02  Jim Meyering  <meyering@lucent.com>
64216
64217         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64218         the messages come out on separate lines.
64219
64220         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64221         rather than jm_CHECK_DECLARATIONS.
64222         * m4/decl.m4: Remove now-unused file.
64223
64224         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64225         geteuid.
64226
64227 2000-03-02  Jim Meyering  <meyering@lucent.com>
64228
64229         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64230
64231 2000-03-01  Jim Meyering  <meyering@lucent.com>
64232
64233         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64234         * lib/unicodeio.c: Likewise.
64235
64236 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64237
64238         * lib/config.charset: New file.
64239         * lib/localcharset.c: New file.
64240         * lib/unicodeio.h, lib/unicodeio.c: New files.
64241         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64242         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64243         (noinst_HEADERS): Add unicodeio.h.
64244         (all-local, install-exec-local, charset.alias): New targets.
64245
64246 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64247
64248         * lib/quotearg.c (ALERT_CHAR): New macro.
64249         (quotearg_buffer_restyled): Use it.
64250
64251 2000-02-27  Jim Meyering  <meyering@lucent.com>
64252
64253         * m4/check-decl.m4: Add getenv to the list.
64254
64255 2000-02-27  Jim Meyering  <meyering@lucent.com>
64256
64257         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64258         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64259
64260         * lib/backupfile.c: Guard inclusion of stdlib.h with
64261         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64262         Declare malloc if needed.
64263
64264         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64265         `#ifndef HAVE_DECL..'
64266         now that autoconf always defines the HAVE_DECL_ symbols.
64267         * lib/human.c: Likewise.
64268         * lib/same.c: Likewise.
64269         * lib/strtoumax.c: Likewise.
64270
64271         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64272         declaration check was not run.
64273         * lib/hash.c: Likewise.
64274         * lib/human.c: Likewise.
64275         * lib/same.c: Likewise.
64276         * lib/strtoumax.c: Likewise.
64277
64278         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64279         `.', then first look up the entire `.'-containing string as a login
64280         name.
64281
64282 2000-02-23  Jim Meyering  <meyering@lucent.com>
64283
64284         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64285         in place of my hack.
64286
64287 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64288
64289         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64290         (textint): New typedef.
64291         (parser_control): Member year changed from int to textint.
64292         All uses changed.
64293         (YYSTYPE): Removed; replaced by %union with int and textint members.
64294         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64295         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64296         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64297         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64298         (date, number, to_year): Use width of number in digits, not its value,
64299         to determine whether it's a 2-digit year, or a 2-digit time.
64300         (yylex): Store number of digits of numeric tokens.
64301         Reported by John Kendall.
64302
64303         (parser_control): Changed from struct parser_control to typedef (for
64304         consistency).  All uses changed.
64305
64306         (tID): Removed; not used.
64307         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64308
64309 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64310
64311         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64312         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64313
64314 2000-02-12  Jim Meyering  <meyering@lucent.com>
64315
64316         * lib/userspec.c (ISDIGIT): Define it.
64317         (isdigit): Remove definition.
64318         (is_number): Use ISDIGIT, not isdigit.
64319         <libintl.h>: Include.
64320         (_ and N_): Define.
64321         (parse_user_spec): Mark translatable strings.
64322
64323 2000-02-10  Jim Meyering  <meyering@lucent.com>
64324
64325         With these changes, nanosleep.[ch] are finally enough like the other
64326         lib/* replacement files to compile on a few more losing systems.
64327
64328         * lib/nanosleep.h: Don't include config.h.
64329         Remove prototype from declaration of nanosleep.
64330         (PARAMS): Remove now-unneeded definition.
64331         * lib/nanosleep.c: #undef nanosleep.
64332         (rpl_nanosleep): Rename from nanosleep.
64333
64334 2000-02-10  Jim Meyering  <meyering@lucent.com>
64335
64336         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64337         gnu_nanosleep to rpl_nanosleep.
64338
64339 2000-02-09  Jim Meyering  <meyering@lucent.com>
64340
64341         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64342         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64343
64344 2000-02-08  Akim Demaille  <akim@epita.fr>
64345
64346         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64347         `[' and `]' and remove uses of `changequote'.
64348         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64349         (AC_SYS_LARGEFILE): Likewise.
64350         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64351         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64352         of changequote.
64353         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64354         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64355         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64356         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64357
64358 2000-02-05  Jim Meyering  <meyering@lucent.com>
64359
64360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64361         Remove explicit use of AC_HEADER_TIME.  It is required by
64362         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64363         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64364         in autoconf whereby the expansion of the latter ended up preceding
64365         the expansion of its prerequisite, AC_HEADER_TIME.
64366         Reported by Volker Borchert.
64367
64368 2000-02-03  Jim Meyering  <meyering@lucent.com>
64369
64370         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64371
64372 2000-02-03  Jim Meyering  <meyering@lucent.com>
64373
64374         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64375         rather than with `#if HAVE_UTMPNAME'.
64376
64377 2000-02-02  Jim Meyering  <meyering@lucent.com>
64378
64379         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64380         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64381         Reported by Eli Zaretskii.
64382
64383 2000-02-01  Jim Meyering  <meyering@lucent.com>
64384
64385         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64386
64387 2000-01-31  Jim Meyering  <meyering@lucent.com>
64388
64389         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64390         functions.  Add the time.h and sys/time.h headers along with the
64391         AC_REQUIRE'ment of AC_HEADER_TIME.
64392
64393 2000-01-31  Jim Meyering  <meyering@lucent.com>
64394
64395         * lib/nanosleep.h (nanosleep): Guard declaration with
64396         `#if ! HAVE_DECL_NANOSLEEP'.
64397         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64398         the declaration in that vendor's sys/timers.h.
64399         Reported by Christian Krackowizer.
64400
64401         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64402         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64403         (ISPRINT): Likewise.
64404         Reported by Tom Tromey.
64405
64406 2000-01-30  Jim Meyering  <meyering@lucent.com>
64407
64408         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64409
64410         * m4/prereq.m4 (utmp_includes): Define.
64411         Check for ut_user and ut_name members in both struct utmpx
64412         and struct utmp.
64413
64414 2000-01-30  Jim Meyering  <meyering@lucent.com>
64415
64416         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64417         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64418         header files where only utmpx.ut_user is declared.
64419
64420         * lib/readutmp.h (UT_USER): Define.
64421
64422 2000-01-29  Jim Meyering  <meyering@lucent.com>
64423
64424         * m4/lib-check.m4: New file containing library-related checks from
64425         fileutils and sh-utils (textutils had none).
64426
64427 2000-01-28  Jim Meyering  <meyering@lucent.com>
64428
64429         * m4/perl.m4: Change format of warning message to look more like that
64430         from the missing script.  Suggestion from François Pinard.
64431
64432 2000-01-25  Jim Meyering  <meyering@lucent.com>
64433
64434         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64435         well as time.h in the compile check.
64436         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64437         Fix typo in cross-compiling case: s/yes/no/.
64438
64439 2000-01-23  Jim Meyering  <meyering@lucent.com>
64440
64441         * m4/jm-macros.m4: Move df-related tests here from
64442         fileutils/configure.in
64443
64444         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64445         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64446
64447         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64448         s/space/ac_fsusage_space/.
64449         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64450
64451         * m4/ftruncate.m4: New file (derived from part of
64452         fileutils/configure.in).
64453         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64454         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64455
64456         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64457         AC_SUBST these here, rather than just in sh-util/configure.in, so
64458         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64459         all the same.
64460         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64461         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64462         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64463         (AC_SUBST(POW_LIBM)): Likewise.
64464         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64465
64466 2000-01-23  Jim Meyering  <meyering@lucent.com>
64467
64468         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64469         obstack.c.
64470
64471 2000-01-22  Jim Meyering  <meyering@lucent.com>
64472
64473         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64474
64475         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64476
64477         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64478         configure.in
64479         (AC_CHECK_HEADERS): Likewise for sh-utils.
64480         (AC_CHECK_HEADERS): Likewise for textutils.
64481         Merge the three lists of headers.
64482
64483         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64484         from fileutils' configure.in.
64485
64486         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64487         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64488         check-decl.m4.
64489
64490         * m4/check-decl.m4: Use #if rather than #ifdef.
64491         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64492         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64493         (_jm_DECL_HEADERS): Define new function.
64494         (jm_CHECK_DECLARATIONS): Require it.
64495
64496 2000-01-22  Jim Meyering  <meyering@lucent.com>
64497
64498         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64499         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64500         Required for some AIX systems.  Reported by Christian Krackowizer.
64501         [TESTING] (main): New function.
64502
64503         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64504         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64505         letters.
64506
64507         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64508         iswprint.
64509
64510         * lib/strverscmp.c (ISDIGIT): Define.
64511         (strverscmp): Use ISDIGIT, not isdigit.
64512
64513 2000-01-19  Jim Meyering  <meyering@lucent.com>
64514
64515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64516         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64517         defines `struct timespec' in <sys/time.h>
64518
64519         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64520         Thanks to Akim for explaining.
64521
64522 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64523
64524         * lib/nanosleep.c (nanosleep):
64525         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64526         POSIX.1 doesn't require SA_INTERRUPT and some systems
64527         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64528         it's been part of POSIX.1 since day 1 (in 1988).
64529
64530 2000-01-17  Jim Meyering  <meyering@lucent.com>
64531
64532         * lib/interlock: Remove unused file.  Reported by François Pinard.
64533
64534 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64535
64536         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64537         alert, backslash, formfeed, and vertical tab unnecessarily in
64538         shell quoting style.
64539
64540 2000-01-16  Jim Meyering  <meyering@lucent.com>
64541
64542         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64543         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64544         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64545         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64546
64547 2000-01-16  Jim Meyering  <meyering@lucent.com>
64548
64549         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64550         because the latter didn't work.
64551
64552 2000-01-15  Jim Meyering  <meyering@lucent.com>
64553
64554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64555         (AC_REPLACE_FUNCS): Add memcpy and memset.
64556         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64557         Add strpbrk.
64558         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64559
64560 2000-01-12  Jim Meyering  <meyering@lucent.com>
64561
64562         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64563         (jm_PREREQ): Use it.
64564         (jm_PREREQ_READUTMP): New macro.
64565         (jm_PREREQ): Use it.
64566
64567 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64568
64569         Quote multibyte characters correctly.
64570         * m4/c-bs-a.m4: New file.
64571         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64572         (jm_PREREQ): Use it.
64573
64574 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64575
64576         * m4/uintmax_t.m4: Port to autoconf 2.13.
64577
64578 2000-01-08  Jim Meyering  <meyering@ascend.com>
64579
64580         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64581         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64582
64583 2000-01-04  Jim Meyering  <meyering@ascend.com>
64584
64585         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64586         jm_STRUCT_DIRENT_D_TYPE.
64587         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64588         jm_STRUCT_DIRENT_D_INO.
64589         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64590         jm_STRUCT_UTIMBUF.
64591         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64592         renamings.
64593         * m4/utime.m4: Likewise.
64594
64595         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64596         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64597
64598 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64599
64600         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64601         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64602
64603 2000-01-02  Jim Meyering  <meyering@ascend.com>
64604
64605         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64606         remember if this is necessary.
64607
64608 1999-12-26  Jim Meyering  <meyering@ascend.com>
64609
64610         * m4/jm-macros.m4: Use it here.
64611         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64612
64613 1999-12-23  Jim Meyering  <meyering@ascend.com>
64614
64615         * m4/jm-macros.m4: Check for clock_gettime (moved from
64616         fileutils/configure.in)
64617         Check for gettimeofday.
64618
64619 1999-12-20  Jim Meyering  <meyering@ascend.com>
64620
64621         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64622         autoconf-2.14a-1999-12-20.
64623
64624 1999-12-19  Jim Meyering  <meyering@ascend.com>
64625
64626         * m4/lstat-slash.m4: New file.
64627         * m4/jm-macros.m4: Use the new macro:
64628         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64629
64630 1999-12-07  Jim Meyering  <meyering@ascend.com>
64631
64632         * m4/perl.m4: Require that File::Compare be available, too.
64633         Too many systems seem to lack it.
64634
64635         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64636         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64637
64638 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64639
64640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64641         problem with the QNX 4.25 shell, which doesn't propagate exit
64642         status of failed commands inside shell assignments.
64643
64644 1999-11-17  Jim Meyering  <meyering@ascend.com>
64645
64646         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64647
64648 1999-11-07  Jim Meyering  <meyering@ascend.com>
64649
64650         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64651
64652 1999-11-06  Jim Meyering  <meyering@ascend.com>
64653
64654         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64655         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64656
64657 1999-11-05  Jim Meyering  <meyering@ascend.com>
64658
64659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64660         configure.in of textutils, fileutils, and sh-utils into this one
64661         (shared between those packages) file.
64662         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64663         AC_STRUCT_ST_BLKSIZE.
64664
64665 1999-11-03  Jim Meyering  <meyering@ascend.com>
64666
64667         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64668         of AC_CHECK_TYPE checks includes unistd.h.
64669         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64670         Suggestion from Akim Demaille.
64671
64672 1999-10-30  Jim Meyering  <meyering@ascend.com>
64673
64674         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64675         m4-quoted string.
64676         * m4/ls-mntd-fs.m4: Likewise.
64677         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64678         * m4/jm-winsz1.m4: Likewise.
64679
64680         * m4/const.m4: Remove file, since the fix made it into the experimental
64681         version of autoconf.
64682         * m4/mktime.m4: Likewise.
64683
64684         * m4/check-type.m4: Remove file, now that the latest version of
64685         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64686
64687         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64688         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64689         AC_CHECK_TYPE.
64690
64691 1999-10-04  Jim Meyering  <meyering@ascend.com>
64692
64693         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64694
64695 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64696
64697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64698         2.95.1 bug with HP-UX 10.20.
64699
64700 1999-09-17  Jim Meyering  <meyering@ascend.com>
64701
64702         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64703         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64704         due to missing strdup (against sh-utils-2.0).
64705
64706 1999-08-29  Jim Meyering  <meyering@ascend.com>
64707
64708         * m4/jm-macros.m4: Require jm_BISON.
64709         * m4/bison.m4: New file.
64710
64711 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64712
64713         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64714         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64715
64716 1999-08-05  Jim Meyering  <meyering@ascend.com>
64717
64718         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64719         to avoid conflicts with `conftest' on 8+3 filesystems.
64720         Suggestion from Eli Zaretskii.
64721
64722 1999-08-04  Jim Meyering  <meyering@ascend.com>
64723
64724         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64725         fileutils and sh-utils (textutils's getline test was inadequate).
64726         (AM_FUNC_GETLINE): Run this test.
64727         (AC_CHECK_FUNCS): Check for getdelim.
64728         Reported by Bob Proulx.
64729
64730 1999-08-02  Jim Meyering  <meyering@ascend.com>
64731
64732         * m4/jm-macros.m4: Add a comment.
64733
64734 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64735
64736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64737         <inttypes.h> defines strtoumax as a macro (and not as a
64738         function).
64739
64740 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64741
64742         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64743         that we can shift, multiply and divide unsigned long long
64744         values; Ultrix cc can't do it.
64745
64746 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64747
64748         * m4/mktime.m4: New file, which is a preview of what should appear
64749         in the next public autoconf release.
64750
64751 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64752
64753         * m4/lfs.m4: Remove this file.
64754         * m4/largefile.m4: New file.  It contains the old contents of
64755         lfs.m4, except that all names with prefix AC_LFS have been
64756         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64757         compatible with future autoconf versions.  Also, some minor m4
64758         quoting problems have been fixed.
64759
64760 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64761
64762         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64763         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64764         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64765         and simplify the shell code.
64766
64767 1999-08-01  Jim Meyering  <meyering@ascend.com>
64768
64769         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64770         m4.
64771
64772 1999-07-20  Jim Meyering  <meyering@ascend.com>
64773
64774         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64775
64776 1999-07-15  Jim Meyering  <meyering@ascend.com>
64777
64778         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64779
64780 1999-05-22  Jim Meyering  <meyering@ascend.com>
64781
64782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64783
64784 1999-05-20  Jim Meyering  <meyering@ascend.com>
64785
64786         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64787         Add a colon after each `then' in case $4 is empty.
64788
64789 1999-05-16  Jim Meyering  <meyering@ascend.com>
64790
64791         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64792
64793 1999-05-10  Jim Meyering  <meyering@ascend.com>
64794
64795         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64796
64797         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64798         AC_FUNC_MKTIME.
64799
64800 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64801
64802         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64803
64804 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64805
64806         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64807         not CPPFLAGS, so that linking works correctly in IRIX.
64808
64809 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64810
64811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64812
64813 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64814
64815         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64816         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64818         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64819         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64820
64821         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64822
64823 1999-04-20  Jim Meyering  <meyering@ascend.com>
64824
64825         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64826         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64827         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64828
64829 1999-04-18  Jim Meyering  <meyering@ascend.com>
64830
64831         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64832         * m4/jm-macros.m4: Use it.
64833
64834 1999-04-06  Jim Meyering  <meyering@ascend.com>
64835
64836         * m4/strftime.m4: Remove test for %f.
64837
64838 1999-03-29  Jim Meyering  <meyering@ascend.com>
64839
64840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64841         superset of the AC_TYPE_* checks in the textutils, fileutils,
64842         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64843         AC_TYPE_PID_T.
64844
64845 1999-03-28  Jim Meyering  <meyering@ascend.com>
64846
64847         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64848         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64849         replaced e.g., in the *.sh files of the sh-utils.
64850
64851 1999-03-20  Jim Meyering  <meyering@ascend.com>
64852
64853         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64854         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64855         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64856
64857 1999-03-19  Jim Meyering  <meyering@ascend.com>
64858
64859         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64860
64861 1999-03-12  Jim Meyering  <meyering@ascend.com>
64862
64863         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64864
64865 1999-03-07  Jim Meyering  <meyering@ascend.com>
64866
64867         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64868         declared.
64869
64870 1999-02-17  Jim Meyering  <meyering@ascend.com>
64871
64872         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64873         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64874
64875 1999-02-07  Jim Meyering  <meyering@ascend.com>
64876
64877         * m4/group-member.m4: New file -- extracted from sh-utils'
64878         configure.in.
64879
64880         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64881         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64882
64883 1999-02-06  Jim Meyering  <meyering@ascend.com>
64884
64885         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64886         * m4/fnmatch.m4: Likewise.
64887         * m4/getgroups.m4: Likewise.
64888         * m4/lstat.m4: Likewise.
64889         * m4/malloc.m4: Likewise.
64890         * m4/putenv.m4: Likewise.
64891         * m4/realloc.m4: Likewise.
64892         * m4/regex.m4: Likewise.
64893         * m4/stat.m4: Likewise.
64894         * m4/strftime.m4: Likewise.
64895         Suggestion from Alain Magloire.
64896
64897         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64898         * m4/fnmatch.m4: Likewise.
64899         * m4/getgroups.m4: Likewise.
64900         * m4/getline.m4: Likewise.
64901         * m4/lstat.m4: Likewise.
64902         * m4/malloc.m4: Likewise.
64903         * m4/memcmp.m4: Likewise.
64904         * m4/putenv.m4: Likewise.
64905         * m4/realloc.m4: Likewise.
64906         * m4/regex.m4: Likewise.
64907         * m4/stat.m4: Likewise.
64908         * m4/strftime.m4: Likewise.
64909         Suggestion from Alain Magloire.
64910
64911         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64912         an argument.
64913
64914         * m4/regex.m4: Add a run-time Test for proper operation of
64915         re_compile_pattern.
64916
64917 1999-01-31  Jim Meyering  <meyering@ascend.com>
64918
64919         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64920
64921 1999-01-30  Jim Meyering  <meyering@ascend.com>
64922
64923         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64924
64925         * m4/jm-mktime.m4: Make this a wrapper around the official
64926         AM_FUNC_MKTIME rather than my private copy, now that the official one
64927         is up to date.
64928         * m4/mktime.m4: Remove file.
64929
64930         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64931         * m4/uptime.m4: Likewise.
64932         * m4/uintmax_t.m4: Likewise.
64933
64934 1999-01-28  Jim Meyering  <meyering@ascend.com>
64935
64936         * m4/jm-macros.m4: Use jm_AFS.
64937         * m4/afs.m4: New file (from fileutils' configure.in).
64938
64939         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64940         * m4/chown.m4: Likewise.
64941         * m4/d-ino.m4: Likewise.
64942         * m4/d-type.m4: Likewise.
64943         * m4/fnmatch.m4: Likewise.
64944         * m4/getgroups.m4: Likewise.
64945         * m4/gettext.m4: Likewise.
64946         * m4/jm-mktime.m4: Likewise.
64947         * m4/jm-winsz2.m4: Likewise.
64948         * m4/lcmessage.m4: Likewise.
64949         * m4/ls-mntd-fs.m4: Likewise.
64950         * m4/malloc.m4: Likewise.
64951         * m4/memcmp.m4: Likewise.
64952         * m4/putenv.m4: Likewise.
64953         * m4/realloc.m4: Likewise.
64954         * m4/st_mtim.m4: Likewise.
64955         * m4/strftime.m4: Likewise.
64956
64957 1999-01-16  Jim Meyering  <meyering@ascend.com>
64958
64959         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64960         (ARGMATCH_DIE_DECL): Define.
64961
64962 1999-01-12  Jim Meyering  <meyering@ascend.com>
64963
64964         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64965         Reported by Lars Hecking.
64966
64967 1999-01-10  Jim Meyering  <meyering@ascend.com>
64968
64969         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64970         gross kludge.
64971         * m4/inttypes_h.m4: Likewise.
64972         * m4/lstat.m4: Likewise.
64973         * m4/malloc.m4: Likewise.
64974         * m4/readdir.m4: Likewise.
64975         * m4/realloc.m4: Likewise.
64976         * m4/st_dm_mode.m4: Likewise.
64977         * m4/stat.m4: Likewise.
64978         * m4/utimbuf.m4: Likewise.
64979         * m4/utimes.m4: Likewise.
64980
64981         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64982         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64983         comments in config.h.in are meaningful.
64984
64985         * m4/jm-macros.m4: Require autoconf-2.13 here.
64986
64987         * m4/regex.m4: By default, don't use the included regex.c on systems
64988         with glibc 2.  Suggestion from Uli Drepper.
64989
64990 1999-01-02  Jim Meyering  <meyering@ascend.com>
64991
64992         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64993
64994 1998-12-18  Jim Meyering  <meyering@ascend.com>
64995
64996         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64997         Based on a suggestion from Lars Hecking.
64998
64999 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65000
65001         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65002
65003 1998-11-16  Jim Meyering  <meyering@ascend.com>
65004
65005         * m4/lfs.m4: Double-quote the `uname...` expression.
65006
65007 1998-11-14  Jim Meyering  <meyering@ascend.com>
65008
65009         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65010         * m4/stat.m4: Likewise.
65011
65012 1998-11-03  Jim Meyering  <meyering@ascend.com>
65013
65014         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65015         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65016
65017 1998-10-18  Jim Meyering  <meyering@ascend.com>
65018
65019         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65020
65021 1998-10-17  Jim Meyering  <meyering@ascend.com>
65022
65023         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65024         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65025         calls for those previously hard-coded headers.  Instead, take a new
65026         parameter.
65027         (jm_CHECK_DECLARATIONS): Reflect interface change.
65028         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65029         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65030
65031         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65032
65033 1998-10-14  Jim Meyering  <meyering@ascend.com>
65034
65035         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65036         instead of "TZ=America/Vancouver".  From Paul Eggert.
65037
65038 1998-10-11  Jim Meyering  <meyering@ascend.com>
65039
65040         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65041         This adds a test for a recently added compatibility fix for mktime.c.
65042         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65043
65044 1998-09-27  Jim Meyering  <meyering@ascend.com>
65045
65046         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65047
65048         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65049         ../configure.in, including a change from Gordon Matzigkeit to allow
65050         cross-compiling for the Hurd.
65051
65052         * m4/glibc.m4: New file/macro to test for the GNU C Library
65053         versions 1 and 2.  From Gordon Matzigkeit.
65054         Indent.
65055
65056 1998-09-21  Jim Meyering  <meyering@ascend.com>
65057
65058         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65059
65060 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65061
65062         Port nanosecond-resolution times to UnixWare 2.1.2 and
65063         pedantic Solaris 2.6.
65064
65065         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65066         AC_STRUCT_ST_MTIM.
65067         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65068         Generate name of ns member, instead of just 1 or undef.
65069         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65070
65071 1998-08-15  Jim Meyering  <meyering@ascend.com>
65072
65073         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65074         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65075         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65076         instead of jm_TYPE_SSIZE_T.
65077
65078 1998-08-12  Jim Meyering  <meyering@ascend.com>
65079
65080         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65081
65082 1998-08-02  Jim Meyering  <meyering@ascend.com>
65083
65084         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65085         in acconfig.h manually.
65086
65087 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65088
65089         * m4/st_mtim.m4: New file.
65090
65091 1998-07-28  Jim Meyering  <meyering@ascend.com>
65092
65093         * m4/utimes.m4: Undef stat.
65094
65095 1998-07-25  Jim Meyering  <meyering@ascend.com>
65096
65097         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65098         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65099
65100 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65101
65102         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65103         uid and gid actually remain unchanged.
65104
65105 1998-07-07  Jim Meyering  <meyering@ascend.com>
65106
65107         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65108
65109 1998-07-04  Jim Meyering  <meyering@ascend.com>
65110
65111         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65112         to prove that this macro can be used in packages without regex.c.
65113
65114 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65115
65116         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65117         is to be used.
65118
65119 1998-07-03  Jim Meyering  <meyering@ascend.com>
65120
65121         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65122
65123         * m4/gettext.m4: New file -- from gettext-0.10.35.
65124         * m4/lcmessage.m4: Likewise.
65125         * m4/progtest.m4: Likewise.
65126
65127         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65128         * m4/jm-macros.m4: Require the new macro.
65129
65130 1998-06-29  Jim Meyering  <meyering@ascend.com>
65131
65132         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65133         for the definition of NGROUPS (used in a system header included
65134         by sys/mount.h).
65135
65136 1998-06-28  Jim Meyering  <meyering@ascend.com>
65137
65138         * m4/ls-mntd-fs.m4: New file.
65139         * m4/fstypename.m4: New file.
65140
65141         * m4/jm-macros.m4: Require the new macro.
65142         * m4/jm-glibc-io.m4: New file.
65143
65144 1998-05-19  Jim Meyering  <meyering@ascend.com>
65145
65146         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65147         * m4/lchown.m4: New file.
65148
65149         * m4/Makefile.am.in: New file.
65150         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65151
65152 1998-05-14  Jim Meyering  <meyering@ascend.com>
65153
65154         * m4/Makefile.am (EXTRA_DIST): Add them.
65155         * m4/jm-macros.m4: New file.
65156         * m4/utimbuf.m4: New file.
65157
65158 1998-05-12  Jim Meyering  <meyering@ascend.com>
65159
65160         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65161
65162 1998-05-11  Jim Meyering  <meyering@ascend.com>
65163
65164         * m4/isc-posix.m4: New file.
65165
65166 1998-05-10  Jim Meyering  <meyering@ascend.com>
65167
65168         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65169
65170 1998-05-09  Jim Meyering  <meyering@ascend.com>
65171
65172         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65173         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65174         with automake.
65175
65176         * m4/ssize_t.m4: New file.
65177         * m4/mktime.m4: Remove file -- the new automake has this now.
65178
65179 1998-04-26  Jim Meyering  <meyering@ascend.com>
65180
65181         * m4/assert.m4: New file.
65182         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65183
65184 1998-04-05  Jim Meyering  <meyering@ascend.com>
65185
65186         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65187         (jm_PREREQ): Use it here.
65188
65189 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65190
65191         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65192         in acconfig.h.
65193
65194 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65195
65196         * m4/prereq.m4: New file.
65197         * m4/error.m4: New file.
65198         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65199
65200 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65201
65202         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65203         cache-check for the same variable -- that defeated the purpose of
65204         the test; the test program was never run.  This was a problem only
65205         on systems with losing getline functions -- HP-UX 10.20 is one.
65206         Reported by Bjorn Helgaas.
65207
65208 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65209
65210         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65211
65212 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65213
65214         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65215
65216         * m4/const.m4: New file.  Use an initializer in this declaration
65217         typedef int charset[2]; const charset x;
65218         Reported by Bob Glickstein.
65219
65220 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65221
65222         * m4/chown.m4: Fix reversed types on -1 args to chown.
65223         From Kaveh Ghazi.
65224
65225 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65226
65227         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65228         Add lseek and memchr.
65229
65230         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65231         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65232         have a 20-character limit on names.
65233
65234 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65235
65236         * m4/inttypes_h.m4: New file.
65237         * m4/uintmax_t.m4: New file.
65238         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65239
65240
65241         -----
65242
65243         Local Variables:
65244         coding: utf-8
65245         End:
65246
65247         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65248
65249         Copying and distribution of this file, with or without
65250         modification, are permitted provided the copyright notice
65251         and this notice are preserved.