btowc: Avoid warning.
[pspp] / ChangeLog
1 2010-04-04  Bruno Haible  <bruno@clisp.org>
2
3         btowc: Avoid warning.
4         * lib/btowc.c: Include <stdlib.h>.
5         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6
7 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8             Bruno Haible  <bruno@clisp.org>
9
10         wchar: Port to NetBSD 1.5.
11         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12         * lib/wctype.in.h (WEOF): Likewise.
13
14 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15             Bruno Haible  <bruno@clisp.org>
16
17         Port extended stdio to NetBSD 1.5.
18         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20         older.
21
22 2010-04-04  Bruno Haible  <bruno@clisp.org>
23
24         string: Remove unused substitution.
25         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26         HAVE_DECL_STRERROR.
27         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28
29 2010-04-04  Bruno Haible  <bruno@clisp.org>
30
31         strtod: Avoid a possible C++ test error.
32         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33         set REPLACE_STRTOD.
34
35 2010-04-04  Bruno Haible  <bruno@clisp.org>
36
37         strerror: Update documentation.
38         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
39
40 2010-04-04  Bruno Haible  <bruno@clisp.org>
41
42         stdio: Fix some C++ test errors on Solaris 8 with GCC.
43         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
44         _GL_CXXALIAS_SYS_CAST.
45
46 2010-04-04  Bruno Haible  <bruno@clisp.org>
47
48         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
50         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
51         REPLACE_FREXPL to 1.
52         * doc/posix-functions/frexpl.texi: Update documentation.
53
54 2010-04-04  Bruno Haible  <bruno@clisp.org>
55
56         math: Fix some C++ test errors on Solaris 8 and Cygwin.
57         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
58
59 2010-04-04  Bruno Haible  <bruno@clisp.org>
60
61         Implement nanosleep for native Windows.
62         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
63
64 2010-04-04  Bruno Haible  <bruno@clisp.org>
65
66         math: Fix some C++ test errors on Solaris 8.
67         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68
69 2010-04-04  Bruno Haible  <bruno@clisp.org>
70
71         math: Fix some C++ test errors on Cygwin.
72         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
73         truncl): Provide declaration if the system does not have it.
74         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
75         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
76         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
77         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
78         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
79         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
80         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
81         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
82         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
83         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
84         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
85         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
86         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
87         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
88         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
89         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
90         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
91         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
92         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
93         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
94         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
95         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
96
97 2010-04-04  Bruno Haible  <bruno@clisp.org>
98
99         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
100         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
101         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
102         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
103         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
104         * m4/isinf.m4 (gl_ISINF): Likewise.
105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
106
107 2010-04-04  Bruno Haible  <bruno@clisp.org>
108
109         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
110         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
111
112 2010-04-04  Bruno Haible  <bruno@clisp.org>
113
114         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
115         * modules/tmpfile (configure.ac): Update.
116
117         tmpfile: Fix C++ test error on mingw.
118         * lib/stdio.in.h (tmpfile): New declaration.
119         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
120         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
121         * modules/tmpfile (Depends-on): Add stdio.
122         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
123         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
124         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
125         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
126         REPLACE_TMPFILE.
127         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
128
129 2010-04-04  Bruno Haible  <bruno@clisp.org>
130
131         ioctl: Fix C++ test error on mingw.
132         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
133         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
134         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
135
136 2010-04-03  Bruno Haible  <bruno@clisp.org>
137
138         wcwidth: Fix C++ test error on mingw.
139         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
141         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
142
143 2010-04-03  Bruno Haible  <bruno@clisp.org>
144
145         nanosleep: Fix C++ test error on mingw.
146         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
147         * lib/time.in.h (nanosleep): Use modern idiom.
148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
149         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
150         REPLACE_NANOSLEEP to 1.
151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
152         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
153
154 2010-04-03  Bruno Haible  <bruno@clisp.org>
155
156         strptime: Fix C++ test error on mingw.
157         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
158         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
159         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
160         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
161         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
162         not REPLACE_STRPTIME.
163         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
164         REPLACE_STRPTIME.
165
166 2010-04-03  Bruno Haible  <bruno@clisp.org>
167
168         timegm: Fix C++ test error on mingw.
169         * lib/time.in.h (timegm): Use modern idiom.
170         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
171         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
172         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
173         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
174
175 2010-04-03  Bruno Haible  <bruno@clisp.org>
176
177         timegm: Assume declaration if function exists.
178         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
179         if it exists. Don't clobber ac_cv_func_timegm.
180
181 2010-04-03  Bruno Haible  <bruno@clisp.org>
182
183         time_r: Fix C++ test error on mingw.
184         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
185         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
186         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
187         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
188         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
189
190 2010-04-03  Bruno Haible  <bruno@clisp.org>
191
192         time_r: Minor updates.
193         * modules/time_r (Description): Mention the provided functions.
194         * lib/time_r.c: Don't include <string.h>.
195         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
196         * doc/posix-functions/localtime_r.texi: Likewise.
197
198 2010-04-03  Bruno Haible  <bruno@clisp.org>
199
200         time: Fix regression introduced on 2010-03-08.
201         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
202         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
203
204 2010-04-03  Jim Meyering  <meyering@redhat.com>
205
206         maint.mk: don't silently disable project-specific syntax-check rules
207         * top/maint.mk (_prohibit_regexp): Define, to help people realize
208         that they need to convert their project-specific syntax-check rules
209         to use the new _sc_search_regexp.
210
211 2010-04-03  Bruno Haible  <bruno@clisp.org>
212
213         fchdir: Fix regression introduced on 2010-03-08.
214         * lib/unistd.in.h (fchdir): Fix declaration.
215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
217         REPLACE_FCHDIR.
218         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
219         REPLACE_FCHDIR.
220
221 2010-04-03  Bruno Haible  <bruno@clisp.org>
222
223         getpagesize: Fix C++ test error on mingw.
224         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
225         system does not declare the function.
226         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
227         declared.
228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
229         HAVE_DECL_GETPAGESIZE.
230         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
231
232 2010-04-03  Bruno Haible  <bruno@clisp.org>
233
234         stdio: Make C++ tests work on mingw.
235         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
236         does not declare the function.
237
238 2010-04-03  Bruno Haible  <bruno@clisp.org>
239
240         ftello: Fix C++ test error on mingw.
241         * lib/stdio.in.h (ftello): Use modern idiom.
242         * lib/ftello.c (ftello): Renamed from rpl_ftello.
243         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
244         is missing and that it needs to be replaced.
245         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
247         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
248
249 2010-04-03  Bruno Haible  <bruno@clisp.org>
250
251         fseeko: Fix C++ test error on mingw.
252         * lib/stdio.in.h (fseeko): Use modern idiom.
253         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
255         is missing and that it needs to be replaced.
256         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
258         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
259
260 2010-04-03  Bruno Haible  <bruno@clisp.org>
261
262         mkstemp: Fix C++ test error on mingw.
263         * lib/stdlib.in.h (mkstemp): Use modern idiom.
264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
265         function is missing and that it needs to be replaced.
266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
267         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
268
269 2010-04-03  Bruno Haible  <bruno@clisp.org>
270
271         stpncpy: Fix C++ test error on mingw.
272         * lib/string.in.h (stpncpy): Use modern idiom.
273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
274         function is missing and that it needs to be replaced.
275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
276         REPLACE_STPNCPY.
277         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
278
279 2010-04-03  Bruno Haible  <bruno@clisp.org>
280
281         sys_stat: Fix C++ test error on mingw.
282         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
283         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
284
285 2010-04-03  Bruno Haible  <bruno@clisp.org>
286
287         pty: Update doc.
288         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
289
290 2010-04-03  Bruno Haible  <bruno@clisp.org>
291
292         unistd: Fix C++ test error on mingw.
293         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
294
295 2010-04-03  Bruno Haible  <bruno@clisp.org>
296
297         Update doc regarding mingw.
298         * doc/glibc-functions/openpty.texi: Update regarding mingw.
299         * doc/glibc-functions/login_tty.texi: Likewise.
300         * doc/glibc-functions/forkpty.texi: Likewise.
301
302 2010-04-03  Bruno Haible  <bruno@clisp.org>
303
304         stdlib: Avoid compilation failure of c-strtold on mingw.
305         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
306
307 2010-04-03  Bruno Haible  <bruno@clisp.org>
308
309         locale: Make C++ tests work on Cygwin and mingw.
310         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
311         cannot provide the function.
312         Reported by Simon Josefsson.
313
314 2010-04-03  Bruno Haible  <bruno@clisp.org>
315
316         localename: Port to MacOS X 10.6.
317         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
318         memory layout of the locales in MacOS X 10.6 as well.
319         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
320
321 2010-04-02  Bruno Haible  <bruno@clisp.org>
322
323         gnulib-tool: Ensure that long-running tests are executed last.
324         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
325         running tests after the one for the other tests.
326
327 2010-04-02  Bruno Haible  <bruno@clisp.org>
328
329         gnulib-tool: Ensure the tests in the main directory are executed first.
330         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
331         start with the current directory.
332
333 2010-04-02  Bruno Haible  <bruno@clisp.org>
334
335         Tests for module 'havelib', moved here from GNU gettext.
336         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
337         modifications.
338         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
339         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
340         with modifications.
341         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
342         modifications.
343         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
344         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
345         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
346         with modifications.
347         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
348         with modifications.
349         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
350         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
351         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
352         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
353         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
354         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
355         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
356         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
357         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
358         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
359         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
360         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
361         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
362         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
363         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
364         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
365         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
366         with modifications.
367         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
368         with modifications.
369         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
370         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
371         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
372         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
373         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
374         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
375         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
376         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
377         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
378         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
379         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
380         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
381         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
382         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
383         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
384         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
385         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
386         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
387         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
388         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
389         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
390         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
391         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
392         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
393         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
394         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
395         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
396         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
397         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
398         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
399         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
400         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
401         * tests/havelib/rpathx/rpathx.c: New file, from
402         gettext/autoconf-lib-link.
403         * tests/havelib/rpathx/Makefile.am: New file, from
404         gettext/autoconf-lib-link.
405         * tests/havelib/rpathx/configure.ac: New file, from
406         gettext/autoconf-lib-link with modifications.
407         * tests/havelib/rpathy/rpathy.c: New file, from
408         gettext/autoconf-lib-link.
409         * tests/havelib/rpathy/Makefile.am: New file, from
410         gettext/autoconf-lib-link.
411         * tests/havelib/rpathy/configure.ac: New file, from
412         gettext/autoconf-lib-link with modifications.
413         * tests/havelib/rpathz/rpathz.c: New file, from
414         gettext/autoconf-lib-link.
415         * tests/havelib/rpathz/Makefile.am: New file, from
416         gettext/autoconf-lib-link.
417         * tests/havelib/rpathz/configure.ac: New file, from
418         gettext/autoconf-lib-link with modifications.
419         * tests/havelib/rpathlx/usex.c: New file, from
420         gettext/autoconf-lib-link.
421         * tests/havelib/rpathlx/Makefile.am: New file, from
422         gettext/autoconf-lib-link.
423         * tests/havelib/rpathlx/configure.ac: New file, from
424         gettext/autoconf-lib-link with modifications.
425         * tests/havelib/rpathly/usey.c: New file, from
426         gettext/autoconf-lib-link.
427         * tests/havelib/rpathly/Makefile.am: New file, from
428         gettext/autoconf-lib-link.
429         * tests/havelib/rpathly/configure.ac: New file, from
430         gettext/autoconf-lib-link with modifications.
431         * tests/havelib/rpathlz/usez.c: New file, from
432         gettext/autoconf-lib-link.
433         * tests/havelib/rpathlz/Makefile.am: New file, from
434         gettext/autoconf-lib-link.
435         * tests/havelib/rpathlz/configure.ac: New file, from
436         gettext/autoconf-lib-link with modifications.
437         * tests/havelib/rpathlyx/usey.c: New file, from
438         gettext/autoconf-lib-link.
439         * tests/havelib/rpathlyx/Makefile.am: New file, from
440         gettext/autoconf-lib-link.
441         * tests/havelib/rpathlyx/configure.ac: New file, from
442         gettext/autoconf-lib-link with modifications.
443         * tests/havelib/rpathlzyx/usez.c: New file, from
444         gettext/autoconf-lib-link.
445         * tests/havelib/rpathlzyx/Makefile.am: New file, from
446         gettext/autoconf-lib-link.
447         * tests/havelib/rpathlzyx/configure.ac: New file, from
448         gettext/autoconf-lib-link with modifications.
449         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
450         with modifications.
451
452 2010-04-02  Bruno Haible  <bruno@clisp.org>
453
454         gnulib-tool: Create distributed built sources also for the tests.
455         * gnulib-tool (func_create_testdir): Also generate distributed built
456         sources in the tests directory.
457
458 2010-04-02  Bruno Haible  <bruno@clisp.org>
459
460         gnulib-tool: Obey user's environment variables.
461         * gnulib-tool (func_create_testdir): When creating built sources,
462         respect the environment variables for autoconf, automake, etc. given by
463         the user.
464
465 2010-04-02  Bruno Haible  <bruno@clisp.org>
466
467         gnulib-tool: Provide the value of --m4-base to modules.
468         * gnulib-tool (func_import, func_create_testdir): Emit a definition
469         of gl_m4_base.
470
471 2010-04-02  Eric Blake  <eblake@redhat.com>
472
473         maint.mk: fix some fallout
474         * NEWS: Document the incompatible change, and its effect on cfg.mk.
475         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
476
477 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
478
479         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
480         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
481         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
482         (sc_cast_of_x_alloc_return_value): Likewise.
483         (sc_cast_of_alloca_return_value): Likewise.
484         (sc_space_tab): Likewise.
485         (sc_prohibit_atoi_atof): Likewise.
486         (sc_prohibit_magic_number_exit): Likewise.
487         (sc_error_exit_success): Likewise.
488         (sc_file_system): Likewise.
489         (sc_prohibit_have_config_h): Likewise.
490         (sc_require_config_h): Likewise.
491         (sc_prohibit_HAVE_MBRTOWC): Likewise.
492         (sc_obsolete_symbols): Likewise.
493         (sc_changelog): Likewise.
494         (sc_program_name): Likewise.
495         (sc_the_the): Likewise.
496         (sc_trailing_blank): Likewise.
497         (sc_two_space_separator_in_usage): Likewise.
498         (sc_useless_cpp_parens): Likewise.
499         (sc_GPL_version): Likewise.
500         (sc_GFDL_version): Likewise.
501         (sc_texinfo_acronym): Likewise.
502         (sc_prohibit_cvs_keyword): Likewise.
503         (sc_prohibit_stat_st_blocks): Likewise.
504         (sc_prohibit_S_IS_definition): Likewise.
505         (sc_redundant_const): Likewise.
506         (sc_makefile_TAB_only_indentation): Likewise.
507         (sc_m4_quote_check): Likewise.
508         (sc_makefile_path_separator_check): Likewise.
509         (sc_copyright_check): Likewise.
510         (sc_Wundef_boolean): Likewise.
511         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
512
513         maint.mk: match 0 or more whitespace-before-function-call '('
514         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
515         that have zero or two-and-more spaces between the function name
516         and the open parenthesis.
517         (sc_error_message_warn_fatal): Likewise.
518         (sc_error_message_uppercase): Likewise.
519         (sc_error_message_period): Likewise.
520
521 2010-03-31  Eric Blake  <eblake@redhat.com>
522
523         maint.mk: check for [ as well as test
524         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
525         Based on a libvirt report by Matthias Bolte.
526
527         gnumakefile: don't squelch _version output
528         * top/GNUmakefile (_version): Create one-shot dependency rather
529         than using $(shell) when version must be regenerated.
530         (_autoreconf): Run verbosely, by default.
531
532         sys_time: avoid compiler warnings
533         * lib/sys_time.in.h (includes): Ensure gcc pragma is
534         unconditional, fixing regression from 2010-03-29.
535         Reported by Simon Josefsson.
536
537 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
538
539         maint.mk: s/_header_without_use/_sc_header_without_use/
540         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
541         (sc_prohibit_assert_without_use): Use the new name.
542         (sc_prohibit_close_stream_without_use): Likewise.
543         (sc_prohibit_getopt_without_use): Likewise.
544         (sc_prohibit_quotearg_without_use): Likewise.
545         (sc_prohibit_quote_without_use): Likewise.
546         (sc_prohibit_long_options_without_use): Likewise.
547         (sc_prohibit_inttostr_without_use): Likewise.
548         (sc_prohibit_ignore_value_without_use): Likewise.
549         (sc_prohibit_error_without_use): Likewise.
550         (sc_prohibit_xalloc_without_use): Likewise.
551         (sc_prohibit_hash_without_use): Likewise.
552         (sc_prohibit_hash_pjw_without_use): Likewise.
553         (sc_prohibit_safe_read_without_use): Likewise.
554         (sc_prohibit_argmatch_without_use): Likewise.
555         (sc_prohibit_canonicalize_without_use): Likewise.
556         (sc_prohibit_root_dev_ino_without_use): Likewise.
557         (sc_prohibit_openat_without_use): Likewise.
558         (sc_prohibit_c_ctype_without_use): Likewise.
559         (sc_prohibit_signal_without_use): Likewise.
560         (sc_prohibit_intprops_without_use): Likewise.
561
562 2010-03-30  Eric Blake  <eblake@redhat.com>
563
564         maint: improve module indicators
565         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
566         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
567         columns, and avoid extra macro expansion.
568
569         fdopendir: work around FreeBSD bug
570         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
571         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
572         * modules/dirent (Makefile.am): Substitute it.
573         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
574         declaration.
575         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
576         fix.
577         Reported by Christian Weisgerber <naddy@mips.inka.de>.
578
579 2010-03-29  Bruno Haible  <bruno@clisp.org>
580
581         Emit #pragma system_header after the inclusion guard, not before.
582         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
583         guard that spans the entire file, not before. This enables an
584         optimization in GCC's preprocessor.
585         * lib/ctype.in.h: Likewise.
586         * lib/dirent.in.h: Likewise.
587         * lib/errno.in.h: Likewise.
588         * lib/float.in.h: Likewise.
589         * lib/getopt.in.h: Likewise.
590         * lib/iconv.in.h: Likewise.
591         * lib/langinfo.in.h: Likewise.
592         * lib/locale.in.h: Likewise.
593         * lib/math.in.h: Likewise.
594         * lib/netdb.in.h: Likewise.
595         * lib/netinet_in.in.h: Likewise.
596         * lib/pty.in.h: Likewise.
597         * lib/sched.in.h: Likewise.
598         * lib/se-selinux.in.h: Likewise.
599         * lib/search.in.h: Likewise.
600         * lib/spawn.in.h: Likewise.
601         * lib/stdarg.in.h: Likewise.
602         * lib/stdint.in.h: Likewise.
603         * lib/string.in.h: Likewise.
604         * lib/strings.in.h: Likewise.
605         * lib/sys_file.in.h: Likewise.
606         * lib/sys_ioctl.in.h: Likewise.
607         * lib/sys_time.in.h: Likewise.
608         * lib/sys_times.in.h: Likewise.
609         * lib/sys_utsname.in.h: Likewise.
610         * lib/sys_wait.in.h: Likewise.
611         * lib/sysexits.in.h: Likewise.
612         * lib/wctype.in.h: Likewise.
613
614 2010-03-28  James Youngman  <jay@gnu.org>
615
616         save-cwd: don't leak a file descriptor when the caller execs.
617         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
618         saved file descriptor.
619         * modules/save-cwd (Depends-on): Depend on cloexec.
620
621 2010-03-29  Bruno Haible  <bruno@clisp.org>
622
623         Remove vestiges of fts-lgpl module.
624         * lib/fts_.h: Assume GNULIB_FTS is 1.
625         * lib/fts.c: Likewise.
626         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
627
628 2010-03-28  Bruno Haible  <bruno@clisp.org>
629
630         Fix definition of tests witness macro.
631         * gnulib-tool (func_import): Fix definition of witness macro.
632
633 2010-03-28  Bruno Haible  <bruno@clisp.org>
634
635         Fix ioctl's protoype on glibc systems.
636         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
637         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
638         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
639         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
640         signature. If not, arrange to replace the ioctl function.
641         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
642         REPLACE_IOCTL.
643         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
644         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
645         Reported by Ludovic Courtès <ludo@gnu.org>.
646
647 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
648
649         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
650         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
651         made it so grep -r --include=GLOB* ... did not work.
652
653 2010-03-26  Jim Meyering  <meyering@redhat.com>
654             Eric Blake  <eblake@redhat.com>
655
656         maint.mk: prohibit use of test's -o and -a operators
657         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
658
659 2010-03-28  Bruno Haible  <bruno@clisp.org>
660
661         Remove unused GNULIB_XYZ macro definitions.
662         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
663         invocation.
664
665 2010-03-28  Bruno Haible  <bruno@clisp.org>
666
667         Mark privileged tests modules.
668         * modules/idpriv-drop-tests (Status): New section.
669         * modules/idpriv-droptemp-tests (Status): New section.
670
671 2010-03-28  Bruno Haible  <bruno@clisp.org>
672
673         Split C++ tests into separate tests modules.
674         * modules/dirent-c++-tests: New file, extracted from
675         modules/dirent-tests.
676         * modules/dirent-tests: Depend on it.
677         * modules/fcntl-h-c++-tests: New file, extracted from
678         modules/fcntl-h-tests.
679         * modules/fcntl-h-tests: Depend on it.
680         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
681         * modules/glob-tests: Depend on it.
682         * modules/iconv-h-c++-tests: New file, extracted from
683         modules/iconv-h-tests.
684         * modules/iconv-h-tests: Depend on it.
685         * modules/langinfo-c++-tests: New file, extracted from
686         modules/langinfo-tests.
687         * modules/langinfo-tests: Depend on it.
688         * modules/locale-c++-tests: New file, extracted from
689         modules/locale-tests.
690         * modules/locale-tests: Depend on it.
691         * modules/math-c++-tests: New file, extracted from modules/math-tests.
692         * modules/math-tests: Depend on it.
693         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
694         * modules/pty-tests: Depend on it.
695         * modules/search-c++-tests: New file, extracted from
696         modules/search-tests.
697         * modules/search-tests: Depend on it.
698         * modules/signal-c++-tests: New file, extracted from
699         modules/signal-tests.
700         * modules/signal-tests: Depend on it.
701         * modules/spawn-c++-tests: New file, extracted from
702         modules/spawn-tests.
703         * modules/spawn-tests: Depend on it.
704         * modules/stdio-c++-tests: New file, extracted from
705         modules/stdio-tests.
706         * modules/stdio-tests: Depend on it.
707         * modules/stdlib-c++-tests: New file, extracted from
708         modules/stdlib-tests.
709         * modules/stdlib-tests: Depend on it.
710         * modules/string-c++-tests: New file, extracted from
711         modules/string-tests.
712         * modules/string-tests: Depend on it.
713         * modules/sys_ioctl-c++-tests: New file, extracted from
714         modules/sys_ioctl-tests.
715         * modules/sys_ioctl-tests: Depend on it.
716         * modules/sys_select-c++-tests: New file, extracted from
717         modules/sys_select-tests.
718         * modules/sys_select-tests: Depend on it.
719         * modules/sys_socket-c++-tests: New file, extracted from
720         modules/sys_socket-tests.
721         * modules/sys_socket-tests: Depend on it.
722         * modules/sys_stat-c++-tests: New file, extracted from
723         modules/sys_stat-tests.
724         * modules/sys_stat-tests: Depend on it.
725         * modules/sys_time-c++-tests: New file, extracted from
726         modules/sys_time-tests.
727         * modules/sys_time-tests: Depend on it.
728         * modules/time-c++-tests: New file, extracted from modules/time-tests.
729         * modules/time-tests: Depend on it.
730         * modules/unistd-c++-tests: New file, extracted from
731         modules/unistd-tests.
732         * modules/unistd-tests: Depend on it.
733         * modules/wchar-c++-tests: New file, extracted from
734         modules/wchar-tests.
735         * modules/wchar-tests: Depend on it.
736         * modules/wctype-c++-tests: New file, extracted from
737         modules/wctype-tests.
738         * modules/wctype-tests: Depend on it.
739         Reported by Simon Josefsson.
740
741 2010-03-28  Bruno Haible  <bruno@clisp.org>
742
743         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
744         * gnulib-tool (func_exists_module): New function, extracted from
745         func_verify_module.
746         (func_verify_module): Use it.
747         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
748         'foo' only if 'foo' exists.
749         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
750         module.
751
752 2010-03-28  Bruno Haible  <bruno@clisp.org>
753
754         gnulib-tool: Add support for special categories of tests.
755         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
756         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
757         (func_usage): Document them.
758         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
759         inc_unportable_tests, inc_all_tests): New variables.
760         (func_acceptable): Consider these variables.
761         (func_modules_transitive_closure): Make it work when the 'Status' field
762         consists of multiple words.
763         (func_import): Store and restore the values of inc_cxx_tests,
764         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
765         inc_all_tests in gnulib-comp.m4.
766         (func_create_testdir): Set inc_all_tests to true.
767         * doc/gnulib.texi (Extra tests modules): New section.
768         Suggested by Jim Meyering.
769
770 2010-03-28  Bruno Haible  <bruno@clisp.org>
771
772         ansi-c++-opt: Allow turning off the C++ build by default.
773         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
774         gl_CXX_CHOICE_DEFAULT_NO is defined.
775         Requested by Eric Blake.
776
777 2010-03-28  Bruno Haible  <bruno@clisp.org>
778
779         unistd: Avoid #define replacements in C++ mode.
780         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
781         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
782         setsockopt, shutdown, select): In C++, attach a warning to the function
783         if possible, rather than #defining the symbol to a dysfunctional alias.
784         Reported by John W. Eaton <jwe@gnu.org>.
785
786 2010-03-28  Bruno Haible  <bruno@clisp.org>
787
788         Fix link errors on mingw.
789         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
790         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
791         $(LIBSOCKET).
792         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
793         $(LIBSOCKET).
794
795 2010-03-28  Bruno Haible  <bruno@clisp.org>
796             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
797
798         lib-ignore: Determine different options for different compilers.
799         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
800         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
801         Add comments.
802         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
803         * NEWS: Mention the change.
804
805 2010-03-27  Bruno Haible  <bruno@clisp.org>
806
807         Remove unused GNULIB_XYZ macro definitions.
808         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
809         * modules/fseek (configure.ac): Likewise.
810         * modules/ioctl (configure.ac): Likewise.
811         * modules/open (configure.ac): Likewise.
812         * modules/stdlib-safer (configure.ac): Likewise.
813
814 2010-03-27  Bruno Haible  <bruno@clisp.org>
815
816         Add a remark about certain modules.
817         * modules/malloc (Comment): New section.
818         * modules/realloc (Comment): Likewise.
819         * modules/sigpipe (Comment): Likewise.
820
821 2010-03-27  Bruno Haible  <bruno@clisp.org>
822
823         Resolve conflict between the two kinds of module indicators.
824         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
825         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
826         * modules/canonicalize (configure.ac): Invoke
827         gl_MODULE_INDICATOR_FOR_TESTS.
828         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
829         GNULIB_XYZ.
830         * tests/test-dirent-c++.cc: Likewise.
831         * tests/test-dirent-safer.c: Likewise.
832         * tests/test-dup2.c: Likewise.
833         * tests/test-fchdir.c: Likewise.
834         * tests/test-fcntl-h-c++.cc: Likewise.
835         * tests/test-getopt.c: Likewise.
836         * tests/test-getopt.h: Likewise.
837         * tests/test-langinfo-c++.cc: Likewise.
838         * tests/test-locale-c++.cc: Likewise.
839         * tests/test-math-c++.cc: Likewise.
840         * tests/test-pty-c++.cc: Likewise.
841         * tests/test-search-c++.cc: Likewise.
842         * tests/test-signal-c++.cc: Likewise.
843         * tests/test-spawn-c++.cc: Likewise.
844         * tests/test-stdio-c++.cc: Likewise.
845         * tests/test-stdlib-c++.cc: Likewise.
846         * tests/test-string-c++.cc: Likewise.
847         * tests/test-sys_ioctl-c++.cc: Likewise.
848         * tests/test-sys_select-c++.cc: Likewise.
849         * tests/test-sys_socket-c++.cc: Likewise.
850         * tests/test-sys_stat-c++.cc: Likewise.
851         * tests/test-sys_time-c++.cc: Likewise.
852         * tests/test-time-c++.cc: Likewise.
853         * tests/test-unistd-c++.cc: Likewise.
854         * tests/test-wchar-c++.cc: Likewise.
855         * tests/uninorm/test-u8-nfc.c: Likewise.
856         * tests/uninorm/test-u8-nfd.c: Likewise.
857         * tests/uninorm/test-u8-nfkc.c: Likewise.
858         * tests/uninorm/test-u8-nfkd.c: Likewise.
859         * tests/uninorm/test-u16-nfc.c: Likewise.
860         * tests/uninorm/test-u16-nfd.c: Likewise.
861         * tests/uninorm/test-u16-nfkc.c: Likewise.
862         * tests/uninorm/test-u16-nfkd.c: Likewise.
863         * tests/uninorm/test-u32-nfc.c: Likewise.
864         * tests/uninorm/test-u32-nfc-big.c: Likewise.
865         * tests/uninorm/test-u32-nfd.c: Likewise.
866         * tests/uninorm/test-u32-nfd-big.c: Likewise.
867         * tests/uninorm/test-u32-nfkc.c: Likewise.
868         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
869         * tests/uninorm/test-u32-nfkd.c: Likewise.
870         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
871         * tests/uninorm/test-u32-normalize-big.c: Likewise.
872
873 2010-03-27  Bruno Haible  <bruno@clisp.org>
874
875         Distinguish two kinds of module indicators.
876         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
877         gl_MODULE_INDICATOR.
878         (gl_MODULE_INDICATOR): New macro.
879         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
880         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
881         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
882         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
883         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
884         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
885         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
886         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
887         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
888         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
889         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
890         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
892         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
893         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
894         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
895         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
896         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
897         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
898         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
899         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
900         * modules/cloexec (configure.ac): Likewise.
901         * modules/getopt-gnu (configure.ac): Likewise.
902         * modules/uninorm/u8-normalize (configure.ac): Likewise.
903         * modules/uninorm/u16-normalize (configure.ac): Likewise.
904         * modules/uninorm/u32-normalize (configure.ac): Likewise.
905         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
906
907 2010-03-27  Bruno Haible  <bruno@clisp.org>
908
909         New module description field 'Comment'.
910         * gnulib-tool: New option --extract-comment.
911         (func_usage): Document it.
912         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
913         (func_get_comment): New function.
914         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
915
916 2010-03-27  Bruno Haible  <bruno@clisp.org>
917
918         Addendum to 2010-02-07 commit.
919         * gnulib-tool (func_usage): Document --extract-applicability option.
920
921 2010-03-27  Bruno Haible  <bruno@clisp.org>
922
923         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
924         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
925         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
926         rather than link errors.
927
928 2010-03-27  Bruno Haible  <bruno@clisp.org>
929
930         Avoid side effects from tests-related modules on the compilation of lib.
931         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
932         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
933         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
934         parameter. Emit into AM_CPPFLAGS a definition of the designated C
935         macro.
936         (func_import): Define a witness macro. Assign it a value that depends
937         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
938         tests-related modules.
939         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
940         Reported by Jim Meyering.
941
942 2010-03-27  Bruno Haible  <bruno@clisp.org>
943
944         Factorize common .m4 code.
945         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
946         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
947         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
948         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
949         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
950         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
951         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
952         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
953         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
954         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
955         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
956         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
957         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
958         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
959         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
960         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
961         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
962         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
964         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
965         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
966         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
967         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
968         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
969         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
970         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
971         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
972         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
973         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
974         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
975         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
976         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
977
978 2010-03-27  Bruno Haible  <bruno@clisp.org>
979
980         Fix a compilation error on Cygwin with g++ >= 4.3.
981         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
982         if it is undefined or if we alias it to chmod.
983         (lstat): Don't warn about the use of this function if it is undefined
984         or if we alias it to stat.
985         Reported by Simon Josefsson.
986
987 2010-03-27  Bruno Haible  <bruno@clisp.org>
988
989         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
990         * modules/getlogin (configure.ac): Update.
991
992         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
993         * modules/getlogin_r (configure.ac): Update.
994
995         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
997         * modules/inet_ntop (configure.ac): Update.
998
999         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1000         * modules/inet_pton (configure.ac): Update.
1001
1002         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1003         * modules/mbslen (configure.ac): Update.
1004
1005         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1006         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1007         * modules/forkpty (configure.ac): Update.
1008         * modules/openpty (configure.ac): Update.
1009
1010 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1011
1012         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1013         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1014
1015 2010-03-25  Eric Blake  <eblake@redhat.com>
1016
1017         maint: use pragma consistently across replacement headers
1018         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1019         * lib/dirent.in.h (system_header): Likewise.
1020         * lib/errno.in.h (system_header): Likewise.
1021         * lib/float.in.h (system_header): Likewise.
1022         * lib/getopt.in.h (system_header): Likewise.
1023         * lib/iconv.in.h (system_header): Likewise.
1024         * lib/inttypes.in.h (system_header): Likewise.
1025         * lib/langinfo.in.h (system_header): Likewise.
1026         * lib/locale.in.h (system_header): Likewise.
1027         * lib/math.in.h (system_header): Likewise.
1028         * lib/netdb.in.h (system_header): Likewise.
1029         * lib/netinet_in.in.h (system_header): Likewise.
1030         * lib/pty.in.h (system_header): Likewise.
1031         * lib/sched.in.h (system_header): Likewise.
1032         * lib/se-selinux.in.h (system_header): Likewise.
1033         * lib/search.in.h (system_header): Likewise.
1034         * lib/spawn.in.h (system_header): Likewise.
1035         * lib/stdarg.in.h (system_header): Likewise.
1036         * lib/stdint.in.h (system_header): Likewise.
1037         * lib/string.in.h (system_header): Likewise.
1038         * lib/strings.in.h (system_header): Likewise.
1039         * lib/sys_file.in.h (system_header): Likewise.
1040         * lib/sys_ioctl.in.h (system_header): Likewise.
1041         * lib/sys_socket.in.h (system_header): Likewise.
1042         * lib/sys_times.in.h (system_header): Likewise.
1043         * lib/sys_utsname.in.h (system_header): Likewise.
1044         * lib/sys_wait.in.h (system_header): Likewise.
1045         * lib/sysexits.in.h (system_header): Likewise.
1046         * lib/unistd.in.h (system_header): Likewise.
1047         * lib/wctype.in.h (system_header): Likewise.
1048
1049         arpa/inet: fix mingw compilation warning
1050         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1051         Reported by Matthew Bolte.
1052
1053 2010-03-25  Bruno Haible  <bruno@clisp.org>
1054
1055         Avoid collision between gnulib wrapper and libintl wrapper.
1056         * lib/printf.c (printf): Don't define if a printf wrapper is already
1057         defined in intl/printf.c.
1058         Reported by Michel Boaventura <michel@michelboaventura.com>.
1059
1060 2010-03-25  Bruno Haible  <bruno@clisp.org>
1061
1062         Use ANSI C.
1063         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1064
1065 2010-03-25  Bruno Haible  <bruno@clisp.org>
1066
1067         Minor formatting changes.
1068         * lib/acosl.c: Insert space before function argument list.
1069         * lib/argz.c: Likewise.
1070         * lib/asinl.c: Likewise.
1071         * lib/expl.c: Likewise.
1072         * lib/gen-uni-tables.c: Likewise.
1073         * lib/gettext.h: Likewise.
1074         * lib/glthread/lock.h: Likewise.
1075         * lib/tanl.c: Likewise.
1076         * lib/uniname/uniname.c: Likewise.
1077         * tests/test-idpriv-drop.c: Likewise.
1078         * tests/test-idpriv-droptemp.c: Likewise.
1079         * tests/test-lock.c: Likewise.
1080         * tests/test-tls.c: Likewise.
1081         * lib/argp-help.c: Insert space before function-like macro argument
1082         list.
1083         * lib/memcmp.c: Likewise.
1084         * tests/test-base64.c: Likewise.
1085         * lib/localename.c: Insert space before sizeof's argument list.
1086         * lib/safe-alloc.h: Likewise.
1087         * lib/file-set.h: Insert space before macro argument list.
1088         * tests/test-argp.c: Likewise.
1089         * lib/argp-namefrob.h: Insert space before function parameter list.
1090         * lib/getaddrinfo.c: Likewise.
1091         * lib/netdb.in.h: Likewise.
1092         * lib/parse-duration.h: Likewise.
1093         * lib/parse-duration.c: Likewise.
1094         * lib/poll.c: Likewise.
1095         * lib/select.c: Likewise.
1096         * lib/trim.h: Likewise.
1097         * tests/test-usleep.c: Likewise.
1098         * lib/ldexpl.c: Insert space before function parameter list and before
1099         function argument list.
1100         * lib/logl.c: Likewise.
1101         * lib/sqrtl.c: Likewise.
1102         * lib/trim.c: Likewise.
1103         * lib/cosl.c: Use GNU style indentation. Insert space before function
1104         argument list.
1105         * lib/sinl.c: Likewise.
1106         * lib/tsearch.c: Insert space after 'for'.
1107         Reported by Jim Meyering.
1108
1109 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1110
1111         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1112         config header before grepping, as it's not present before
1113         autoreconf/configure are run.  Reported by Simon Josefsson.
1114
1115 2010-03-23  Bruno Haible  <bruno@clisp.org>
1116
1117         pt_chown: Make it work with automake < 1.11.
1118         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1119         Reported by Simon Josefsson.
1120
1121 2010-03-23  Bruno Haible  <bruno@clisp.org>
1122
1123         pt_chown: Don't depend on GPLed modules.
1124         * lib/pt_chown.c: Don't include idpriv.h.
1125         (main): Don't drop privileges.
1126         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1127         Reported by Simon Josefsson.
1128
1129 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1130
1131         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1132         suggestions from karl@freefriends.org (Karl Berry).
1133
1134 2010-03-22  Eric Blake  <eblake@redhat.com>
1135
1136         gethostname: further tweaks
1137         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1138         are overriding gethostname.
1139         Suggested by Bruno Haible.
1140
1141 2010-03-21  Bruno Haible  <bruno@clisp.org>
1142
1143         Fix comments.
1144         * lib/forkpty.c (rpl_forkpty): Fix comment.
1145         * lib/openpty.c (rpl_openpty): Likewise.
1146         Reported by Eric Blake.
1147
1148 2010-03-22  Eric Blake  <eblake@redhat.com>
1149
1150         gethostname: fix build on mingw
1151         * lib/unistd.in.h (includes): Work around fact that mingw
1152         <winsock2.h> re-includes <unistd.h>, by avoiding any
1153         redeclarations if we are being included by <winsock2.h>.
1154         Reported by Matthias Bolte.
1155
1156 2010-03-21  Bruno Haible  <bruno@clisp.org>
1157
1158         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1159         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1160         modifications.
1161         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1162         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1163         provide the replacement.
1164         * modules/forkpty (Depends-on): Add openpty, login_tty.
1165         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1166         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1167         * doc/glibc-functions/forkpty.texi: More supported platforms.
1168         * config/srclist.txt: Add forkpty.c (commented).
1169
1170 2010-03-21  Bruno Haible  <bruno@clisp.org>
1171
1172         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1173         (Makefile.am): Verify that PTY_LIB is defined.
1174
1175         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1176
1177 2010-03-21  Bruno Haible  <bruno@clisp.org>
1178
1179         Tests for module 'login_tty'.
1180         * modules/login_tty-tests: New file.
1181         * tests/test-login_tty.c: New file.
1182
1183         New module 'login_tty'.
1184         * lib/login_tty.c: New file.
1185         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1186         * modules/login_tty: New file.
1187         * doc/glibc-functions/login_tty.texi: Mention the new module.
1188
1189 2010-03-21  Bruno Haible  <bruno@clisp.org>
1190
1191         login_tty: Documentation.
1192         * doc/glibc-functions/login_tty.texi: New file.
1193         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1194
1195 2010-03-21  Bruno Haible  <bruno@clisp.org>
1196
1197         pty: Consistent macro naming.
1198         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1199         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1200         * modules/pty (configure.ac): Update.
1201
1202 2010-03-21  Bruno Haible  <bruno@clisp.org>
1203
1204         Tests for openpty: Make stricter.
1205         * tests/test-openpty.c (main): Add test of canonical processing and
1206         erase.
1207         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1208
1209         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1210         * lib/openpty.c (openpty): New replacement function.
1211         * lib/pty.in.h: Include <termios.h>.
1212         (openpty): Update declaration. Add comments.
1213         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1214         is not declared, arrange to provide the replacement. Check for _getpty
1215         and posix_openpt.
1216         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1217         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1218         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1219         * modules/pty-tests (test_pty_c___LDADD): New variable.
1220         * doc/glibc-functions/openpty.texi: More supported platforms.
1221
1222 2010-03-21  Bruno Haible  <bruno@clisp.org>
1223
1224         setenv: Tweaks.
1225         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1226         the test program.
1227         * doc/posix-functions/setenv.texi: Update platforms list.
1228
1229 2010-03-21  Bruno Haible  <bruno@clisp.org>
1230
1231         New module 'unlockpt'.
1232         * lib/unlockpt.c: New file, from glibc with modifications.
1233         * m4/unlockpt.m4: New file.
1234         * modules/unlockpt: New file.
1235         * lib/stdlib.in.h (unlockpt): New declaration.
1236         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1237         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1238         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1239         HAVE_UNLOCKPT.
1240         * doc/posix-functions/unlockpt.texi: Mention the new module.
1241         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1242         * config/srclist.txt: Add unlockpt.c (commented).
1243
1244 2010-03-21  Jim Meyering  <meyering@redhat.com>
1245
1246         maint.mk: prohibit inclusion of "intprops.h" without use
1247         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1248
1249 2010-03-21  Bruno Haible  <bruno@clisp.org>
1250
1251         New module 'grantpt'.
1252         * lib/grantpt.c: New file, from glibc with modifications.
1253         * m4/grantpt.m4: New file.
1254         * modules/grantpt: New file.
1255         * lib/stdlib.in.h (grantpt): New declaration.
1256         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1257         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1258         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1259         HAVE_GRANTPT.
1260         * doc/posix-functions/grantpt.texi: Mention the new module.
1261         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1262         * config/srclist.txt: Add grantpt.c (commented).
1263
1264 2010-03-21  Bruno Haible  <bruno@clisp.org>
1265
1266         New module 'pt_chown'.
1267         * lib/pt_chown.c: New file, from glibc with modifications.
1268         * lib/pty-private.h: New file, from glibc with modifications.
1269         * modules/pt_chown: New file.
1270         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1271
1272 2010-03-21  Bruno Haible  <bruno@clisp.org>
1273
1274         Tests for module 'ptsname'.
1275         * modules/ptsname-tests: New file.
1276         * tests/test-ptsname.c: New file.
1277
1278         New module 'ptsname'.
1279         * lib/ptsname.c: New file, from glibc with modifications.
1280         * m4/ptsname.m4: New file.
1281         * modules/ptsname: New file.
1282         * lib/stdlib.in.h (ptsname): New declaration.
1283         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1284         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1285         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1286         HAVE_PTSNAME.
1287         * doc/posix-functions/ptsname.texi: Mention the new module.
1288         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1289         * config/srclist.txt: Add ptsname.c (commented).
1290
1291 2010-03-21  Bruno Haible  <bruno@clisp.org>
1292
1293         Tests for module 'ttyname_r'.
1294         * modules/ttyname_r-tests: New file.
1295         * tests/test-ttyname_r.c: New file.
1296
1297         New module 'ttyname_r'.
1298         * lib/ttyname_r.c: New file.
1299         * m4/ttyname_r.m4: New file.
1300         * modules/ttyname_r: New file.
1301         * lib/unistd.in.h (ttyname_r): New declaration.
1302         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1303         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1304         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1305         HAVE_TTYNAME_R.
1306         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1307         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1308
1309 2010-03-20  Bruno Haible  <bruno@clisp.org>
1310
1311         signal: Undefine macro definitions in C++ mode.
1312         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1313         sigfillset): Undefine macro definitions from the system header in C++
1314         mode.
1315         Reported by John W. Eaton <jwe@gnu.org>.
1316
1317 2010-03-20  Bruno Haible  <bruno@clisp.org>
1318
1319         Ensure no #include statements inside extern "C" { ... }.
1320         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1321         contain #include statements.
1322         * lib/time.in.h: Likewise.
1323
1324 2010-03-20  Bruno Haible  <bruno@clisp.org>
1325
1326         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1327         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1328         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1329         Reported by John W. Eaton <jwe@gnu.org>.
1330
1331 2010-03-20  Bruno Haible  <bruno@clisp.org>
1332
1333         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1334         Reported by Jim Meyering.
1335
1336 2010-03-20  Bruno Haible  <bruno@clisp.org>
1337
1338         pipe: Set errno upon failure.
1339         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1340         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1341         errno value in error message.
1342
1343 2010-03-20  Bruno Haible  <bruno@clisp.org>
1344             Jim Meyering  <meyering@redhat.com>
1345
1346         lchown: Avoid "unused variable" warning.
1347         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1348
1349 2010-03-20  Bruno Haible  <bruno@clisp.org>
1350
1351         Work around unlink() bug on MacOS X 10.5.6.
1352         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1353         attempting to unlink a parent directory.
1354         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1355         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1356         activate for the replacement function.
1357         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1358
1359 2010-03-20  Bruno Haible  <bruno@clisp.org>
1360
1361         Fix link errors on Solaris 8.
1362         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1363         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1364
1365 2010-03-19  Jim Meyering  <meyering@redhat.com>
1366
1367         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1368         The _LIBC implementation of build_range_exp correctly honors the
1369         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1370         However, the non-_LIBC implementation would ignore that syntax-bit
1371         flag and return REG_ERANGE unconditionally.
1372         This change makes it honor that flag.
1373         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1374         Make two pointer parameters "const".
1375         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1376         (parse_bracket_exp): Update caller.
1377
1378         regex.m4: correct the reversed range endpoint ([b-a]) test
1379         * m4/regex.m4: When requiring that [b-a] evoke failure,
1380         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1381         test pass once again for x86-based systems.
1382
1383 2010-03-19  Bruno Haible  <bruno@clisp.org>
1384
1385         scandir: Fix link error on Solaris 8.
1386         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1387         macros.
1388
1389 2010-03-19  Bruno Haible  <bruno@clisp.org>
1390
1391         getusershell: Fix documentation.
1392         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1393         module.
1394         * doc/glibc-functions/setusershell.texi: Likewise.
1395
1396         getusershell: Provide declaration, missing on Solaris 9.
1397         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1398         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1399         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1400         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1402         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1403         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1404         HAVE_GETUSERSHELL.
1405         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1406
1407 2010-03-19  Bruno Haible  <bruno@clisp.org>
1408
1409         wctype: Provide iswblank function.
1410         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1411         exists and is fine.
1412         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1413         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1414         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1415         * doc/posix-functions/iswblank.texi: Update.
1416
1417 2010-03-19  Bruno Haible  <bruno@clisp.org>
1418
1419         Tests of module 'pty' in C++ mode.
1420         * modules/pty-tests: New file.
1421         * tests/test-pty-c++.cc: New file.
1422         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1423
1424 2010-03-19  Eric Blake  <eblake@redhat.com>
1425
1426         logb: fix documentation
1427         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1428         1.5 declaration bug.
1429
1430         forkpty, openpty: prefer glibc's const-safe prototype
1431         * lib/forkpty.c (rpl_forkpty): New file.
1432         * lib/openpty.c (rpl_openpty): Likewise.
1433         * modules/forkpty (Files): Distribute it.
1434         * modules/openpty (Files): Likewise.
1435         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1436         check...
1437         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1438         replacement for for non-const BSD signature.
1439         * modules/pty (Makefile.am): Substitute witnesses.
1440         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1441         * tests/test-forkpty.c: Update signature check.
1442         * tests/test-openpty.c: Likewise.
1443         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1444         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1445
1446         forkpty, openpty: split functions into new modules
1447         * modules/pty (Makefile.am): Substitute new witnesses.
1448         (Libraries): Move library detection...
1449         * modules/forkpty: ...into new module.
1450         * modules/openpty: Another new module.
1451         * modules/pty-tests: Rename and split...
1452         * modules/forkpty-tests: ...to this...
1453         * modules/openpty-tests: ...and this.
1454         * tests/test-pty.c: Rename and split...
1455         * tests/test-forkpty.c: ...to this...
1456         * tests/test-openpty.c: ...and this.
1457         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1458         (gl_PTY): Split library searching...
1459         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1460         (gl_FORKPTY, gl_OPENPTY): New macros.
1461         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1462         * NEWS: Mention the split.
1463         * MODULES.html.sh (Misc): Document the modules.
1464         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1465         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1466
1467         pty: improve replacement header
1468         * lib/pty.in.h: New file.
1469         * modules/pty (Files): Ship it.
1470         (Makefile.am): Always build replacement.
1471         * m4/pty.m4: Rename...
1472         * m4/pty_h.m4: ...to this.
1473         (gl_PTY): Modernize setting of witness macros; update check of
1474         forkpty to take proper advantage of cache.
1475         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1476
1477         getopt: avoid compiler warning
1478         * lib/getopt.c (attribute_hidden): Remove unused macro.
1479
1480 2010-03-18  Bruno Haible  <bruno@clisp.org>
1481
1482         Fix link errors on Solaris 8.
1483         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1484         * modules/search-tests (test_search_c___LDADD): Likewise.
1485         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1486         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1487         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1488         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1489         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1490         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1491         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1492
1493 2010-03-18  Bruno Haible  <bruno@clisp.org>
1494
1495         Fix bug introduced on 2010-03-14.
1496         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1497         (gl_SPAWN_H): Require it.
1498         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1499         Reported by Simon Josefsson.
1500
1501 2010-03-18  Bruno Haible  <bruno@clisp.org>
1502
1503         Fix typo introduced on 2009-12-31.
1504         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1505         posix_spawn_file_actions_adddup2.
1506
1507 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1508         and Eric Blake  <eblake@redhat.com>
1509
1510         test-vc-list-files-git: make more robust
1511         * tests/test-vc-list-files-git.sh: Unset problematic environment
1512         variables.  Chain commands together.
1513
1514 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1515
1516         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1517         `AC_CHECK_DECL' invocation.
1518
1519 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1520
1521         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1522         appears before executable statements. Suggested by Petr Sumbera
1523         <Petr.Sumbera@Sun.COM>.
1524
1525 2010-03-14  Bruno Haible  <bruno@clisp.org>
1526
1527         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1528         portability problems. Instead use a simpler test.
1529         (main): Check that invalid arguments are rejected only on Linux.
1530
1531 2010-03-14  Bruno Haible  <bruno@clisp.org>
1532
1533         Fix bug introduced on 2009-12-31.
1534         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1535         gl_PREREQ_SYS_H_WINSOCK2 always.
1536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1537         SYS_SOCKET_H variable.
1538         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1539         Update comments.
1540         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1541         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1542         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1543         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1544         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1545
1546 2010-03-14  Bruno Haible  <bruno@clisp.org>
1547
1548         Fix values returned by sinl, cosl.
1549         * lib/trigl.h: Add specification comments.
1550         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1551         that combines the values from the precomputed table with the values of
1552         the Chebyshev polynomials.
1553
1554 2010-03-14  Bruno Haible  <bruno@clisp.org>
1555
1556         Fix compilation error when modules 'posix_spawn[p]' are not used.
1557         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1558         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1559
1560 2010-03-14  Bruno Haible  <bruno@clisp.org>
1561
1562         Fix compilation error on mingw when module 'time_r' is not used.
1563         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1564         is 1.
1565         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1566         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1567         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1568         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1569
1570 2010-03-14  Bruno Haible  <bruno@clisp.org>
1571
1572         Fix compilation error with Sun C.
1573         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1574         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1575         instead of GCC specific ULONG_LONG_MAX.
1576         * lib/xstrtoll.c: Likewise.
1577         * lib/xstrtoull.c: Likewise.
1578
1579 2010-03-13  Bruno Haible  <bruno@clisp.org>
1580
1581         Allow the user to disable C++ code and tests.
1582         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1583         (gl_PROG_ANSI_CXX): Require it.
1584
1585 2010-03-13  Bruno Haible  <bruno@clisp.org>
1586
1587         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1588         cases.
1589
1590 2010-03-13  Bruno Haible  <bruno@clisp.org>
1591
1592         Test that gnulib does not break the standard C++ headers.
1593         * tests/test-locale-c++2.cc: New file.
1594         * modules/locale-tests (Files): Add it.
1595         (Makefile.am): Compile it for test-locale-c++.
1596         * tests/test-math-c++2.cc: New file.
1597         * modules/math-tests (Files): Add it.
1598         (Makefile.am): Compile it for test-math-c++.
1599         * tests/test-signal-c++2.cc: New file.
1600         * modules/signal-tests (Files): Add it.
1601         (Makefile.am): Compile it for test-signal-c++.
1602         * tests/test-stdio-c++2.cc: New file.
1603         * modules/stdio-tests (Files): Add it.
1604         (Makefile.am): Compile it for test-stdio-c++.
1605         * tests/test-stdlib-c++2.cc: New file.
1606         * modules/stdlib-tests (Files): Add it.
1607         (Makefile.am): Compile it for test-stdlib-c++.
1608         * tests/test-string-c++2.cc: New file.
1609         * modules/string-tests (Files): Add it.
1610         (Makefile.am): Compile it for test-string-c++.
1611         * tests/test-time-c++2.cc: New file.
1612         * modules/time-tests (Files): Add it.
1613         (Makefile.am): Compile it for test-time-c++.
1614         Reported by John W. Eaton <jwe@gnu.org>.
1615
1616 2010-03-13  Bruno Haible  <bruno@clisp.org>
1617
1618         * gnulib-tool (func_usage): Clarify which options are available for
1619         --create-testdir and --create-megatestdir.
1620
1621 2010-03-13  Bruno Haible  <bruno@clisp.org>
1622
1623         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1624         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1625         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1626         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1627         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1628         when appropriate.
1629         Reported by Jim Meyering.
1630
1631 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1632
1633         * gnulib-tool (func_import): Explain origin of code.
1634
1635 2010-03-12  Bruno Haible  <bruno@clisp.org>
1636
1637         Fix problem with automake's definition of CXXLINK.
1638         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1639         Reported by Simon Josefsson and Ludovic Courtès.
1640
1641 2010-03-12  Bruno Haible  <bruno@clisp.org>
1642
1643         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1644         stable releases.
1645
1646 2010-03-11  Bruno Haible  <bruno@clisp.org>
1647
1648         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1649         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1650         whether the system provides one variant or multiple variants of the
1651         function.
1652         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1653         C++ compilers.
1654         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1655         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1656         Reported by Jim Meyering.
1657
1658 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1659
1660         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1661
1662 2010-03-08  Bruno Haible  <bruno@clisp.org>
1663
1664         gnulib-tool: Add support for --libtool in --create-testdir.
1665         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1666         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1667
1668 2010-03-08  Eric Blake  <eblake@redhat.com>
1669
1670         gnulib-tool.texi: mention possibility of git submodule
1671         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1672         submodules.
1673         * doc/.gitignore: Ignore another generated file.
1674
1675 2010-03-08  Karl Berry  <karl@gnu.org>
1676
1677         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1678         of committing gnulib files while skipping others.
1679
1680 2010-03-07  Bruno Haible  <bruno@clisp.org>
1681
1682         Tests of module 'wctype' in C++ mode.
1683         * tests/test-wctype-c++.cc: New file.
1684         * modules/wctype-tests (Files): Add it and tests/signature.h.
1685         (Depends-on): Add ansi-c++-opt.
1686         (Makefile.am): Arrange to compile and run test-wctype-c++.
1687
1688         Tests of module 'wchar' in C++ mode.
1689         * tests/test-wchar-c++.cc: New file.
1690         * modules/wchar-tests (Files): Add it and tests/signature.h.
1691         (Depends-on): Add ansi-c++-opt.
1692         (Makefile.am): Arrange to compile and run test-wchar-c++.
1693         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1694         gl_MODULE_INDICATOR.
1695
1696         Tests of module 'unistd' in C++ mode.
1697         * tests/test-unistd-c++.cc: New file.
1698         * modules/unistd-tests (Files): Add it and tests/signature.h.
1699         (Depends-on): Add ansi-c++-opt.
1700         (Makefile.am): Arrange to compile and run test-unistd-c++.
1701         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1702         gl_MODULE_INDICATOR.
1703
1704         Tests of module 'time' in C++ mode.
1705         * tests/test-time-c++.cc: New file.
1706         * modules/time-tests (Files): Add it and tests/signature.h.
1707         (Depends-on): Add ansi-c++-opt.
1708         (Makefile.am): Arrange to compile and run test-time-c++.
1709         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1710
1711         Tests of module 'sys_time' in C++ mode.
1712         * tests/test-sys_time-c++.cc: New file.
1713         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1714         (Depends-on): Add ansi-c++-opt.
1715         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1716         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1717         gl_MODULE_INDICATOR.
1718
1719         Tests of module 'sys_stat' in C++ mode.
1720         * tests/test-sys_stat-c++.cc: New file.
1721         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1722         (Depends-on): Add ansi-c++-opt.
1723         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1724         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1725         gl_MODULE_INDICATOR.
1726
1727         Tests of module 'sys_socket' in C++ mode.
1728         * tests/test-sys_socket-c++.cc: New file.
1729         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1730         (Depends-on): Add ansi-c++-opt.
1731         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1732         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1733         gl_MODULE_INDICATOR.
1734
1735         Tests of module 'sys_select' in C++ mode.
1736         * tests/test-sys_select-c++.cc: New file.
1737         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1738         (Depends-on): Add ansi-c++-opt.
1739         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1740         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1741         gl_MODULE_INDICATOR.
1742
1743         Tests of module 'sys_ioctl' in C++ mode.
1744         * tests/test-sys_ioctl-c++.cc: New file.
1745         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1746         (Depends-on): Add ansi-c++-opt.
1747         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1748         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1749         gl_MODULE_INDICATOR.
1750
1751         Tests of module 'string' in C++ mode.
1752         * tests/test-string-c++.cc: New file.
1753         * modules/string-tests (Files): Add it and tests/signature.h.
1754         (Depends-on): Add ansi-c++-opt.
1755         (Makefile.am): Arrange to compile and run test-string-c++.
1756         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1757         gl_MODULE_INDICATOR.
1758
1759         Tests of module 'stdlib' in C++ mode.
1760         * tests/test-stdlib-c++.cc: New file.
1761         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1762         (Depends-on): Add ansi-c++-opt.
1763         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1764         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1765         gl_MODULE_INDICATOR.
1766
1767         Tests of module 'stdio' in C++ mode.
1768         * tests/test-stdio-c++.cc: New file.
1769         * modules/stdio-tests (Files): Add it and tests/signature.h.
1770         (Depends-on): Add ansi-c++-opt.
1771         (Makefile.am): Arrange to compile and run test-stdio-c++.
1772         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1773         gl_MODULE_INDICATOR.
1774
1775         Tests of module 'spawn' in C++ mode.
1776         * tests/test-spawn-c++.cc: New file.
1777         * modules/spawn-tests (Files): Add it and tests/signature.h.
1778         (Depends-on): Add ansi-c++-opt.
1779         (Makefile.am): Arrange to compile and run test-spawn-c++.
1780         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1781         gl_MODULE_INDICATOR.
1782
1783         Tests of module 'signal' in C++ mode.
1784         * tests/test-signal-c++.cc: New file.
1785         * modules/signal-tests (Files): Add it and tests/signature.h.
1786         (Depends-on): Add ansi-c++-opt.
1787         (Makefile.am): Arrange to compile and run test-signal-c++.
1788         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1789         gl_MODULE_INDICATOR.
1790
1791         Tests of module 'search' in C++ mode.
1792         * tests/test-search-c++.cc: New file.
1793         * modules/search-tests (Files): Add it and tests/signature.h.
1794         (Depends-on): Add ansi-c++-opt.
1795         (Makefile.am): Arrange to compile and run test-search-c++.
1796         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1797         gl_MODULE_INDICATOR.
1798
1799         Tests of module 'math' in C++ mode.
1800         * tests/test-math-c++.cc: New file.
1801         * modules/math-tests (Files): Add it and tests/signature.h.
1802         (Depends-on): Add ansi-c++-opt.
1803         (Makefile.am): Arrange to compile and run test-math-c++.
1804         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1805
1806         Tests of module 'locale' in C++ mode.
1807         * tests/test-locale-c++.cc: New file.
1808         * modules/locale-tests (Files): Add it and tests/signature.h.
1809         (Depends-on): Add ansi-c++-opt.
1810         (Makefile.am): Arrange to compile and run test-locale-c++.
1811         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1812         gl_MODULE_INDICATOR.
1813
1814         Tests of module 'langinfo' in C++ mode.
1815         * tests/test-langinfo-c++.cc: New file.
1816         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1817         (Depends-on): Add ansi-c++-opt.
1818         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1819         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1820         gl_MODULE_INDICATOR.
1821
1822         Tests of module 'iconv-h' in C++ mode.
1823         * tests/test-iconv-h-c++.cc: New file.
1824         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1825         (Depends-on): Add ansi-c++-opt.
1826         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1827
1828         Tests of module 'glob' in C++ mode.
1829         * tests/test-glob-c++.cc: New file.
1830         * modules/glob-tests (Files): Add it.
1831         (Depends-on): Add ansi-c++-opt.
1832         (Makefile.am): Arrange to compile and run test-glob-c++.
1833
1834         Tests of module 'fcntl-h' in C++ mode.
1835         * tests/test-fcntl-h-c++.cc: New file.
1836         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1837         (Depends-on): Add ansi-c++-opt.
1838         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1839         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1840         gl_MODULE_INDICATOR.
1841
1842         Tests of module 'dirent' in C++ mode.
1843         * tests/test-dirent-c++.cc: New file.
1844         * modules/dirent-tests (Files): Add it and tests/signature.h.
1845         (Depends-on): Add ansi-c++-opt.
1846         (Makefile.am): Arrange to compile and run test-dirent-c++.
1847         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1848         gl_MODULE_INDICATOR.
1849
1850         New module 'ansi-c++-opt'.
1851         * modules/ansi-c++-opt: New file.
1852         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1853
1854         Document C++ namespace mode.
1855         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1856
1857         wctype: Avoid #define replacements in C++ mode.
1858         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1859         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1860         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1861         In C++, define a namespaced alias symbol.
1862         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1863         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1864         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1865         rule.
1866
1867         wchar: Avoid #define replacements in C++ mode.
1868         * lib/wchar.in.h: Include c++defs.h.
1869         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1870         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1871         symbol.
1872         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1873         * modules/wchar (Depends-on): Add c++defs.
1874         (Makefile.am): Update wchar.h rule.
1875
1876         unistd: Avoid #define replacements in C++ mode.
1877         * lib/unistd.in.h: Include c++defs.h.
1878         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1879         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1880         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1881         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1882         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1883         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1884         symbol.
1885         (environ): Update.
1886         * modules/unistd (Depends-on): Add c++defs.
1887         (Makefile.am): Update unistd.h rule.
1888
1889         time: Avoid #define replacements in C++ mode.
1890         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1891         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1892         define a namespaced alias symbol.
1893         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1894         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1895         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1896         * modules/time (Depends-on): Add c++defs, warn-on-use.
1897         (Makefile.am): Update time.h rule.
1898         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1899         * modules/nanosleep (configure.ac): Likewise.
1900         * modules/strptime (configure.ac): Likewise.
1901         * modules/timegm (configure.ac): Likewise.
1902
1903         sys_time: Avoid #define replacements in C++ mode.
1904         * lib/sys_time.in.h: Include c++defs.h.
1905         (gettimeofday): In C++, define a namespaced alias symbol.
1906         * modules/sys_time (Depends-on): Add c++defs.
1907         (Makefile.am): Update sys/time.h rule.
1908
1909         sys_stat: Avoid #define replacements in C++ mode.
1910         * lib/sys_stat.in.h: Include c++defs.h.
1911         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1912         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1913         namespaced alias symbol.
1914         In C++, define a namespaced alias symbol.
1915         * modules/sys_stat (Depends-on): Add c++defs.
1916         (Makefile.am): Update sys/stat.h rule.
1917
1918         sys_socket: Avoid #define replacements in C++ mode.
1919         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1920         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1921         definitions also when the system has a <sys/socket.h>.
1922         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1923         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1924         In C++, define a namespaced alias symbol.
1925         * modules/sys_socket (Depends-on): Add c++defs.
1926         (Makefile.am): Update sys/socket.h rule.
1927
1928         sys_select: Avoid #define replacements in C++ mode.
1929         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1930         definitions also when the system has a <sys/select.h>.
1931         (select): In C++, define a namespaced alias symbol.
1932         * modules/sys_select (Depends-on): Add c++defs.
1933         (Makefile.am): Update sys/select.h rule.
1934
1935         sys_ioctl: Avoid #define replacements in C++ mode.
1936         * lib/sys_ioctl.in.h: Include c++defs.h.
1937         (ioctl): In C++, define a namespaced alias symbol.
1938         * modules/sys_ioctl (Depends-on): Add c++defs.
1939         (Makefile.am): Update sys/ioctl.h rule.
1940
1941         string: Avoid #define replacements in C++ mode.
1942         * lib/string.in.h: Include c++defs.h.
1943         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1944         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1945         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1946         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1947         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1948         * modules/string (Depends-on): Add c++defs.
1949         (Makefile.am): Update string.h rule.
1950
1951         stdlib: Avoid #define replacements in C++ mode.
1952         * lib/stdlib.in.h: Include c++defs.h.
1953         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1954         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1955         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1956         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1957         symbol.
1958         * modules/stdlib (Depends-on): Add c++defs.
1959         (Makefile.am): Update stdlib.h rule.
1960
1961         stdio: Avoid #define replacements in C++ mode.
1962         * lib/stdio.in.h: Include c++defs.h.
1963         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1964         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1965         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1966         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1967         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1968         namespaced alias symbol.
1969         * modules/stdio (Depends-on): Add c++defs.
1970         (Makefile.am): Update stdio.h rule.
1971
1972         spawn: Avoid #define replacements in C++ mode.
1973         * lib/spawn.in.h: Include c++defs.h.
1974         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1975         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1976         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1977         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1978         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1979         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1980         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1981         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1982         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1983         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1984         In C++, define a namespaced alias symbol.
1985         * modules/spawn (Depends-on): Add c++defs.
1986         (Makefile.am): Update spawn.h rule.
1987
1988         signal: Avoid #define replacements in C++ mode.
1989         * lib/signal.in.h: Include c++defs.h.
1990         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1991         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1992         namespaced alias symbol.
1993         * modules/signal (Depends-on): Add c++defs.
1994         (Makefile.am): Update signal.h rule.
1995
1996         search: Avoid #define replacements in C++ mode.
1997         * lib/search.in.h: Include c++defs.h.
1998         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1999         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2000         symbol.
2001         * modules/search (Depends-on): Add c++defs.
2002         (Makefile.am): Update search.h rule.
2003
2004         math: Avoid #define replacements in C++ mode.
2005         * lib/math.in.h: Include c++defs.h.
2006         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2007         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2008         trunc, truncl): In C++, define a namespaced alias symbol.
2009         * modules/math (Depends-on): Add c++defs.
2010         (Makefile.am): Update math.h rule.
2011
2012         locale: Avoid #define replacements in C++ mode.
2013         * lib/locale.in.h: Include c++defs.h.
2014         (duplocale): In C++, define a namespaced alias symbol.
2015         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2016         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2017         * modules/locale (Depends-on): Add c++defs.
2018         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2019
2020         langinfo: Avoid #define replacements in C++ mode.
2021         * lib/langinfo.in.h: Include c++defs.h.
2022         (nl_langinfo): In C++, define a namespaced alias symbol.
2023         * modules/langinfo (Depends-on): Add c++defs.
2024         (Makefile.am): Update langinfo.h rule.
2025
2026         iconv-h: Avoid #define replacements in C++ mode.
2027         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2028         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2029         symbol.
2030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2031         whenever iconv is present.
2032         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2033         (Makefile.am): Update iconv.h rule.
2034
2035         glob: Avoid #define replacements in C++ mode.
2036         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2037         (_gl_glob_errfunc_fn): New type.
2038         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2039         symbol.
2040         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2041         (Makefile.am): Update glob.h rule.
2042
2043         fcntl-h: Avoid #define replacements in C++ mode.
2044         * lib/fcntl.in.h: Include c++defs.h.
2045         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2046         * modules/fcntl-h (Depends-on): Add c++defs.
2047         (Makefile.am): Update fcntl.h rule.
2048
2049         dirent: Avoid #define replacements in C++ mode.
2050         * lib/dirent.in.h: Include c++defs.h.
2051         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2052         namespaced alias symbol.
2053         (dirfd): Update declaration.
2054         * modules/dirent (Depends-on): Add c++defs.
2055         (Makefile.am): Update dirent.h rule.
2056
2057         ctype: Make it usable in C++ code.
2058         * lib/ctype.in.h: Include c++defs.h.
2059         (isblank): Declare as extern "C".
2060         * modules/ctype (Depends-on): Add c++defs.
2061         (Makefile.am): Update ctype.h rule.
2062
2063         New module 'c++defs'.
2064         * modules/c++defs: New file.
2065         * build-aux/c++defs.h: New file.
2066         Reported by John W. Eaton <jwe@gnu.org>.
2067
2068 2010-03-07  Bruno Haible  <bruno@clisp.org>
2069
2070         logb: Provide missing declaration for Cygwin.
2071         * lib/math.in.h (logb): New declaration.
2072         * m4/logb.m4: New file.
2073         * modules/logb (Files): Add m4/logb.m4.
2074         (Depends-on): Add math.
2075         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2076         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2078         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2079         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2080
2081 2010-03-07  Bruno Haible  <bruno@clisp.org>
2082
2083         Fix test-cond link error.
2084         * tests/test-cond.c: Include <stdio.h>.
2085
2086 2010-03-07  Bruno Haible  <bruno@clisp.org>
2087
2088         Fix test-dirent-safer link error.
2089         * modules/dirent-safer-tests (Makefile.am): Define
2090         test_dirent_safer_LDADD.
2091
2092 2010-03-07  Bruno Haible  <bruno@clisp.org>
2093
2094         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2095         among default module list.
2096
2097 2010-03-07  Bruno Haible  <bruno@clisp.org>
2098
2099         Fix link error on platforms with GNU libiconv.
2100         * modules/unistr/u8-strcoll-tests (Makefile): Define
2101         test_u8_strcoll_LDADD.
2102         * modules/unistr/u16-strcoll-tests (Makefile): Define
2103         test_u16_strcoll_LDADD.
2104         * modules/unistr/u32-strcoll-tests (Makefile): Define
2105         test_u32_strcoll_LDADD.
2106
2107 2010-03-07  Bruno Haible  <bruno@clisp.org>
2108
2109         Use POSIX declarations for socket functions.
2110         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2111         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2112         rpl_sendto): Change declaration to match POSIX.
2113         * lib/connect.c (rpl_connect): Likewise.
2114         * lib/accept.c (rpl_accept): Likewise.
2115         * lib/bind.c (rpl_bind): Likewise.
2116         * lib/getpeername.c (rpl_getpeername): Likewise.
2117         * lib/getsockname.c (rpl_getsockname): Likewise.
2118         * lib/recv.c (rpl_recv): Likewise.
2119         * lib/send.c (rpl_send): Likewise.
2120         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2121         * lib/sendto.c (rpl_sendto): Likewise.
2122
2123 2010-03-06  Bruno Haible  <bruno@clisp.org>
2124
2125         Clarify access, euidaccess, faccessat.
2126         * doc/posix-functions/faccessat.texi: Mention security problem under
2127         "Other problems", not "Portability problems".
2128         * doc/posix-functions/access.texi: Likewise. Mention a related security
2129         problem.
2130         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2131         * lib/euidaccess.c: Add comments about platforms.
2132         * lib/unistd.in.h (access, euidaccess): Add warnings.
2133
2134 2010-03-07  Bruno Haible  <bruno@clisp.org>
2135
2136         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2137         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2138         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2139         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2140         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2141         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2142         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2143         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2144         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2145         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2146         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2147         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2148         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2149         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2150         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2151         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2152         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2153         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2154         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2155         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2156         Likewise.
2157         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2158         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2159         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2160         Likewise.
2161         * tests/test-spawn.c (main): Make it work when
2162         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2163
2164 2010-03-07  Bruno Haible  <bruno@clisp.org>
2165
2166         Fix incorrect Makefile.am generation in German locale.
2167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2168         Execute sed command with character range in C locale.
2169
2170 2010-03-06  Bruno Haible  <bruno@clisp.org>
2171
2172         Tests for module 'iconv-h'.
2173         * modules/iconv-h-tests: New file.
2174         * tests/test-iconv-h.c: New file.
2175
2176         New module 'iconv-h'.
2177         * modules/iconv-h: New file.
2178         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2179         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2180         (configure.ac): Remove gl_ICONV_H.
2181         (Makefile.am): Remove rule for iconv.h.
2182
2183 2010-03-06  Bruno Haible  <bruno@clisp.org>
2184
2185         More consistent naming of *.m4 files.
2186         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2187         * modules/wctype (Files): Update.
2188
2189         More consistent naming of *.m4 files.
2190         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2191         * modules/wchar (Files): Update.
2192
2193 2010-03-06  Jim Meyering  <meyering@redhat.com>
2194
2195         euidaccess: relax license to LGPLv2+
2196         * modules/euidaccess (License): Relax to LGPLv2+.
2197
2198 2010-03-06  Bruno Haible  <bruno@clisp.org>
2199
2200         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2201         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2202         (Makefile.am): Augment lib_SOURCES instead.
2203
2204 2010-03-04  Jim Meyering  <meyering@redhat.com>
2205
2206         utime: remove obsolete module
2207         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2208         unnecessary for years, and has been marked as obsolete for 10 months.
2209         * modules/utime: Remove file.
2210         * lib/utime.c: Remove file.
2211         * m4/utime.m4: Remove file.
2212         * m4/utimes-null.m4: Remove file.
2213         * doc/posix-functions/utime.texi (utime): Remove reference to
2214         the module.  Move the sole "fixed by gnulib" item into the
2215         "problems not fixed by Gnulib" list.
2216         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2217
2218 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2219
2220         * modules/exit (License): Relax license to LGPLv2+.
2221         (Status): Mark as obsolete.
2222         * NEWS: Mention deprecated 'exit' module.
2223         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2224         of now obsolete 'exit'.
2225
2226 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2227
2228         fts-lgpl: remove unused module
2229         * modules/fts-lgpl: Remove.
2230         * MODULES.html.sh (func_all_modules): Adjust.
2231         * check-module (find_included_lib_files): Adjust.
2232         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2233
2234 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2235
2236         copy-acl: enhance Solaris ACL error handling
2237         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2238         * lib/set-mode-acl.c (qset_acl): Likewise.
2239
2240 2010-03-02  Bruno Haible  <bruno@clisp.org>
2241
2242         spawn: Don't override the system defined values on FreeBSD 8.
2243         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2244         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2245         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2246         if HAVE_POSIX_SPAWN is 1.
2247         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2248
2249 2010-03-01  Bruno Haible  <bruno@clisp.org>
2250
2251         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2252         regarding Automake.
2253
2254 2010-02-25  Bruno Haible  <bruno@clisp.org>
2255
2256         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2257         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2258         setting, not afterwards.
2259         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2260
2261 2010-02-24  Eric Blake  <eblake@redhat.com>
2262
2263         bootstrap, git-version-gen: use timestamp
2264         * build-aux/git-version-gen (scriptversion): Force UTC.
2265         * build-aux/bootstrap (scriptversion): New variable.
2266
2267         bootstrap: allow older git
2268         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2269         older than 1.6.4.  Requested by the libvirt project.
2270
2271 2010-02-23  Eric Blake  <eblake@redhat.com>
2272
2273         warn-on-use: work with old autoconf
2274         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2275         AS_VAR semantics of autoconf 2.60.
2276         Reported by Bruno Haible.
2277
2278         bootstrap: improve some comments
2279         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2280         clarification comments.
2281
2282         gettimeofday: provide correct function
2283         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2284         when replacement is declared, otherwise provide gettimeofday.
2285         Reported by Michael Goffioul.
2286
2287 2010-02-23  Jim Meyering  <meyering@redhat.com>
2288
2289         lib-ignore: relax license to "unlimited", not LGPLv2+
2290         * modules/lib-ignore (License): Relax to "unlimited".
2291
2292 2010-02-23  Jim Meyering  <meyering@redhat.com>
2293
2294         lib-ignore: relax license to LGPLv2+
2295         * modules/lib-ignore (License): Relax to LGPLv2+.
2296
2297 2010-02-22  Eric Blake  <eblake@redhat.com>
2298
2299         lseek: avoid bash 3.2 broken pipe bug
2300         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2301         warning from bash 3.2.
2302         Reported by Ben Pfaff, with analysis from Bruno Haible.
2303
2304         bootstrap: support non-FSF copyright holder
2305         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2306         bootstrap.conf override of COPYRIGHT_HOLDER.
2307         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2308
2309         bootstrap: interoperate with gettext 0.14.1
2310         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2311
2312         bootstrap: allow for alternate submodule location
2313         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2314         hardcoding submodule location.
2315         (gnulib_mk): Allow direct use of Makefile.am.
2316
2317         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2318         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2319         rather than reconfiguring where the submodule points.
2320
2321         gettimeofday: restore support for platforms that lack function
2322         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2323         replacement if function is missing.
2324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2325         * modules/sys_time (Makefile.am): Substitute it.
2326         * lib/sys_time.in.h (gettimeofday): Check it.
2327         Reported by Michael Goffioul.
2328
2329 2010-02-21  Bruno Haible  <bruno@clisp.org>
2330
2331         * lib/stdio.in.h (obstack_printf): Fix typo.
2332
2333 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2334
2335         vc-list-files: use bzr ls's -R option
2336         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2337         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2338
2339 2010-02-21  Jim Meyering  <meyering@redhat.com>
2340
2341         init.sh: fix EXEEXT shims to work also for names like test-prog
2342         * tests/init.sh: Re-exec a better shell, when needed.
2343         If the current shell lacks support for posix $(...), an init.sh-using
2344         test will now try to find a shell that supports that.  If EXEEXT is
2345         nonempty, we also require support for hyphen-in-alias-name and shell
2346         substitutions like ${var#glob}.  Failure to find such a shell results
2347         in a skipped test.
2348
2349 2010-02-21  Bruno Haible  <bruno@clisp.org>
2350
2351         Really work around around "broken pipe" error message from bash 3.2.
2352         * gnulib-tool (func_reset_sigpipe): Remove function.
2353         (echo): In bash 3.2, define to a function that uses printf.
2354         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2355
2356 2010-02-20  Bruno Haible  <bruno@clisp.org>
2357
2358         Restore support for automake 1.9.6 with autoconf 2.61.
2359         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2360         Reported by James Youngman <jay@gnu.org>.
2361
2362 2010-02-20  Bruno Haible  <bruno@clisp.org>
2363
2364         Improve *printf warning condition.
2365         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2366         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2367         and the function is overridden due to SIGPIPE emulation.
2368
2369 2010-02-20  Bruno Haible  <bruno@clisp.org>
2370
2371         * lib/stdio.in.h: Tweak comments.
2372
2373 2010-02-19  Bruno Haible  <bruno@clisp.org>
2374
2375         Make it easier to find modules. New gnulib-tool option '--find'.
2376         * gnulib-tool: New option --find.
2377         (func_usage): Document it.
2378         (func_sanitize_modulelist): New function, extracted from
2379         func_all_modules.
2380         (func_all_modules): Invoke it.
2381         * doc/gnulib-tool.texi (Which modules?): New node.
2382
2383 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2384
2385         * lib/sys_select.in.h: Provide select replacement even if
2386         sys/select.h exists on a system, for Interix.
2387
2388 2010-02-18  Jim Meyering  <meyering@redhat.com>
2389
2390         init.sh: don't use $(...) just yet
2391         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2392         to accommodate e.g., Solaris' /bin/sh.
2393
2394 2010-02-17  Bruno Haible  <bruno@clisp.org>
2395
2396         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2397         Reported by Ludovic Courtès <ludo@gnu.org>.
2398
2399 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2400
2401         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2402         linking with -lintl.
2403
2404 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2405
2406         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2407         if not provided by the system's netdb.h.  Reported by
2408         ludo@gnu.org (Ludovic Courtès).
2409
2410 2010-02-15  Jim Meyering  <meyering@redhat.com>
2411
2412         init.sh: improve portability and efficiency
2413         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2414         "dummy" in a for loop.
2415         Use '!', not '^' to select the complement of a character set used
2416         in a "case" statement.
2417         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2418         Suggestions from Eric Blake.
2419
2420         init.sh: automatically accommodate programs with the .exe suffix
2421         Automatically arrange for an invocation of "prog" to execute the
2422         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2423         may use the simpler "prog", yet still work when built on a system
2424         that requires specifying the added suffix.
2425         Do this by constructing a function named "prog" that invokes
2426         "prog.exe" for each .exe file in selected directories.
2427         * tests/init.sh (find_exe_basenames_): New function.
2428         (create_exe_shim_functions_): New function.
2429         (path_prepend_): Use it.
2430
2431         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2432         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2433         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2434
2435 2010-02-14  Jim Meyering  <meyering@redhat.com>
2436
2437         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2438         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2439         (sc_prohibit_hash_pjw_without_use): New rule.
2440
2441         maint.mk: allow the default upload destination dir to be overridden
2442         * top/maint.mk (upload_dest_dir_): Define with a default that
2443         preserves the status quo.
2444         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2445         Reported by Peter Simons.
2446
2447         maint.mk: prohibit inclusion of "hash.h" without_use
2448         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2449
2450 2010-02-10  Jim Meyering  <meyering@redhat.com>
2451
2452         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2453         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2454
2455 2010-02-09  Eric Blake  <ebb9@byu.net>
2456         and Bruno Haible  <bruno@clisp.org>
2457
2458         obstack-printf-posix: ensure declaration
2459         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2460         extracted from gl_FUNC_OBSTACK_PRINTF.
2461         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2462         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2463         Likewise.
2464         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2465         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2466         0.
2467
2468 2010-02-08  Bruno Haible  <bruno@clisp.org>
2469
2470         gnulib-tool: Fix typo in 2010-02-07 commit.
2471         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2472         Reported by Eric Blake.
2473
2474 2010-02-07  Bruno Haible  <bruno@clisp.org>
2475
2476         gnulib-tool: Fix up caching patches.
2477         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2478         option --no-cache. Use associative arrays when supported by the shell.
2479         (sed_comments): New variable.
2480         (modcache): Renamed from do_cache.
2481         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2482         abbreviate unnecessarily.
2483         (have_associative): New variable.
2484         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2485         way also for ksh and zsh.
2486         (func_init_sed_convert_to_cache_statements): New function, extracted
2487         from func_cache_lookup_module. Add support for associative arrays.
2488         Don't set the c_MODULE_cached variable here. Ignore all lines before
2489         the first field header. Remove only the final newline, not all trailing
2490         newlines. Support empty fields correctly. Limit the use of 'eval' to
2491         assignments.
2492         (func_get_description, func_get_status, func_get_notice,
2493         func_get_applicability, func_get_filelist, func_get_dependencies,
2494         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2495         func_get_automake_snippet, func_get_include_directive,
2496         func_get_link_directive, func_get_license, func_get_maintainer):
2497         Update documentation. List the unoptimized code first. Add support for
2498         associative arrays. Limit the use of 'eval' to assignments.
2499         (func_get_applicability): Undo stylistic pessimisations.
2500         (func_get_automake_snippet, func_get_include_directive): Reduce code
2501         duplication.
2502         (func_modules_transitive_closure, func_modules_add_dummy,
2503         func_modules_notice, func_modules_to_filelist, func_add_file,
2504         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2505         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2506         func_create_testdir, func_create_megatestdir): Update documentation.
2507
2508 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2509
2510         * gnulib-tool (func_cache_lookup_module): Store the module name
2511         belonging to the cache variable; error out if two different
2512         module names map to the same cache variable name.
2513
2514 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2515
2516         gnulib-tool: Make caching optional.
2517         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2518         Update matching short versions of --no-changelog.
2519         (func_usage): Update.
2520         (sed_extract_cache_prog): Renamed from ...
2521         (sed_extract_prog): ... this; revert to old extraction script.
2522         (func_get_description, func_get_status)
2523         (func_get_notice, func_get_applicability, func_get_filelist)
2524         (func_get_dependencies, func_get_autoconf_early_snippet)
2525         (func_get_autoconf_snippet, func_get_automake_snippet)
2526         (func_get_include_directive, func_get_link_directive)
2527         (func_get_license, func_get_maintainer): If $do_cache is false,
2528         use old, non-caching extraction scripts.
2529         Suggestion by Bruno Haible.
2530
2531 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2532
2533         gnulib-tool: cache module metainformation.
2534         * gnulib-tool (sed_extract_prog): Match newline before each
2535         header, and rewrite header to a shell variable suffix.
2536         (func_cache_var, func_cache_lookup_module): New functions,
2537         to turn a module name into a cache variable prefix, and to
2538         look up and cache module metainformation.
2539         (func_get_description, func_get_status)
2540         (func_get_notice, func_get_applicability, func_get_filelist)
2541         (func_get_dependencies, func_get_autoconf_early_snippet)
2542         (func_get_autoconf_snippet, func_get_automake_snippet)
2543         (func_get_include_directive, func_get_link_directive)
2544         (func_get_license, func_get_maintainer): Use
2545         func_cache_lookup_module.
2546
2547 2010-02-07  Bruno Haible  <bruno@clisp.org>
2548
2549         fnctl: Fix missing dependency.
2550         * modules/fcntl (Depends-on): Add getdtablesize.
2551         Reported by John W. Eaton <jwe@gnu.org>.
2552
2553 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2554
2555         Argp: fix recognition of short alias options.
2556
2557         * lib/argp-parse.c (convert_options): Fix improper use of
2558         `|' between character values.
2559         * tests/test-argp.c (group1_option): New alias option
2560         --read (-r).
2561         (group1_parser): Special handling for 'r'.
2562         (test15): New test case.
2563         (test_fun): Add test15.
2564         * tests/test-argp-2.sh: Update expected --help and --usage
2565         outputs.
2566
2567 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2568
2569         * tests/test-argp.c: Fix indentation.
2570
2571 2010-02-04  Eric Blake  <ebb9@byu.net>
2572
2573         gettimeofday: expose type of second argument
2574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2575         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2576         * tests/test-gettimeofday.c: Use it to silence warning.
2577         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2578         the issue.
2579
2580 2010-02-03  Jim Meyering  <meyering@redhat.com>
2581
2582         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2583         * lib/regcomp.c (TYPE_SIGNED): Define.
2584         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2585
2586         regcomp.c: avoid a new -Wshadow warning
2587         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2588
2589 2010-02-01  Jim Meyering  <meyering@redhat.com>
2590
2591         removing useless parentheses in cpp #define directives
2592         For motivation, see commit c0221df4, "define STREQ(a,b)
2593         consistently, removing useless parentheses"
2594         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2595         * lib/mountlist.c (MNT_IGNORE): Likewise.
2596         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2597
2598 2010-02-01  Eric Blake  <ebb9@byu.net>
2599
2600         sys_time: use link-warning
2601         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2602         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2603         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2604         * modules/sys_time (Depends-on): Add warn-on-use.
2605         (Makefile.am): Always build replacement.
2606         (configure.ac): Update substitutions.
2607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2608         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2609         bother with SYS_TIME_H.
2610         * modules/gettimeofday (configure.ac): Declare indicator.
2611         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2612         in use.
2613
2614         closein-tests: silence compiler warning
2615         * tests/test-closein.c (main): Ignore fread result.
2616         * modules/closein-tests (Depends-on): Add ignore-value.
2617
2618         tests: silence warning about system return
2619         * tests/test-areadlink-with-size.c (main): Ignore system result.
2620         * tests/test-areadlink.c (main): Likewise.
2621         * tests/test-areadlinkat-with-size.c (main): Likewise.
2622         * tests/test-areadlinkat.c (main): Likewise.
2623         * tests/test-canonicalize-lgpl.c (main): Likewise.
2624         * tests/test-canonicalize.c (main): Likewise.
2625         * tests/test-chown.c (main): Likewise.
2626         * tests/test-fchownat.c (main): Likewise.
2627         * tests/test-fdutimensat.c (main): Likewise.
2628         * tests/test-fstatat.c (main): Likewise.
2629         * tests/test-futimens.c (main): Likewise.
2630         * tests/test-lchown.c (main): Likewise.
2631         * tests/test-link.c (main): Likewise.
2632         * tests/test-linkat.c (main): Likewise.
2633         * tests/test-lstat.c (main): Likewise.
2634         * tests/test-mkdir.c (main): Likewise.
2635         * tests/test-mkdirat.c (main): Likewise.
2636         * tests/test-mkfifo.c (main): Likewise.
2637         * tests/test-mkfifoat.c (main): Likewise.
2638         * tests/test-mknod.c (main): Likewise.
2639         * tests/test-readlink.c (main): Likewise.
2640         * tests/test-remove.c (main): Likewise.
2641         * tests/test-rename.c (main): Likewise.
2642         * tests/test-renameat.c (main): Likewise.
2643         * tests/test-rmdir.c (main): Likewise.
2644         * tests/test-symlink.c (main): Likewise.
2645         * tests/test-symlinkat.c (main): Likewise.
2646         * tests/test-unlink.c (main): Likewise.
2647         * tests/test-unlinkat.c (main): Likewise.
2648         * tests/test-utimens.c (main): Likewise.
2649         * tests/test-utimensat.c (main): Likewise.
2650         * modules/areadlink-tests (Depends-on): Add ignore-value.
2651         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2652         * modules/areadlinkat-tests (Depends-on): Likewise.
2653         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2654         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2655         * modules/canonicalize-tests (Depends-on): Likewise.
2656         * modules/chown-tests (Depends-on): Likewise.
2657         * modules/fdutimensat-tests (Depends-on): Likewise.
2658         * modules/futimens-tests (Depends-on): Likewise.
2659         * modules/lchown-tests (Depends-on): Likewise.
2660         * modules/link-tests (Depends-on): Likewise.
2661         * modules/linkat-tests (Depends-on): Likewise.
2662         * modules/lstat-tests (Depends-on): Likewise.
2663         * modules/mkdir-tests (Depends-on): Likewise.
2664         * modules/mkfifo-tests (Depends-on): Likewise.
2665         * modules/mkfifoat-tests (Depends-on): Likewise.
2666         * modules/mknod-tests (Depends-on): Likewise.
2667         * modules/openat-tests (Depends-on): Likewise.
2668         * modules/readlink-tests (Depends-on): Likewise.
2669         * modules/remove-tests (Depends-on): Likewise.
2670         * modules/rename-tests (Depends-on): Likewise.
2671         * modules/renameat-tests (Depends-on): Likewise.
2672         * modules/rmdir-tests (Depends-on): Likewise.
2673         * modules/symlink-tests (Depends-on): Likewise.
2674         * modules/symlinkat-tests (Depends-on): Likewise.
2675         * modules/unlink-tests (Depends-on): Likewise.
2676         * modules/utimens-tests (Depends-on): Likewise.
2677         * modules/utimensat-tests (Depends-on): Likewise.
2678
2679 2010-01-31  Bruno Haible  <bruno@clisp.org>
2680
2681         Perform the same test for many <math.h> functions.
2682         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2683         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2684         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2685         of gl_MATHFUNC.
2686         * modules/acos (configure.ac): Likewise.
2687         * modules/asin (configure.ac): Likewise.
2688         * modules/atan (configure.ac): Likewise.
2689         * modules/atan2 (configure.ac): Likewise.
2690         * modules/cbrt (configure.ac): Likewise.
2691         * modules/copysign (configure.ac): Likewise.
2692         * modules/cos (configure.ac): Likewise.
2693         * modules/cosh (configure.ac): Likewise.
2694         * modules/erf (configure.ac): Likewise.
2695         * modules/erfc (configure.ac): Likewise.
2696         * modules/exp (configure.ac): Likewise.
2697         * modules/fmod (configure.ac): Likewise.
2698         * modules/hypot (configure.ac): Likewise.
2699         * modules/j0 (configure.ac): Likewise.
2700         * modules/j1 (configure.ac): Likewise.
2701         * modules/jn (configure.ac): Likewise.
2702         * modules/lgamma (configure.ac): Likewise.
2703         * modules/log (configure.ac): Likewise.
2704         * modules/log10 (configure.ac): Likewise.
2705         * modules/log1p (configure.ac): Likewise.
2706         * modules/pow (configure.ac): Likewise.
2707         * modules/remainder (configure.ac): Likewise.
2708         * modules/sin (configure.ac): Likewise.
2709         * modules/sinh (configure.ac): Likewise.
2710         * modules/tan (configure.ac): Likewise.
2711         * modules/tanh (configure.ac): Likewise.
2712         * modules/y0 (configure.ac): Likewise.
2713         * modules/y1 (configure.ac): Likewise.
2714         * modules/yn (configure.ac): Likewise.
2715         Suggested by Paolo Bonzini.
2716
2717 2010-01-31  Bruno Haible  <bruno@clisp.org>
2718
2719         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2720
2721 2010-01-31  Bruno Haible  <bruno@clisp.org>
2722
2723         Work around getdelim() bug on FreeBSD 8.0.
2724         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2725         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2726         not work.
2727         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2728         is 1.
2729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2730         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2731         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2732         a non-zero size.
2733         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2734
2735 2010-01-31  Bruno Haible  <bruno@clisp.org>
2736
2737         Work around getline() bug on FreeBSD 8.0.
2738         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2739         and a non-zero size.
2740         * tests/test-getline.c (main): Likewise.
2741         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2742         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2743
2744 2010-01-28  Eric Blake  <ebb9@byu.net>
2745
2746         regex: fix build failure
2747         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2748         platforms.
2749
2750 2010-01-28  Jim Meyering  <meyering@redhat.com>
2751
2752         regex: do not ignore memory allocation failure
2753         * lib/regex_internal.c (create_cd_newstate): Detect
2754         re_node_set_init_copy failure.   Extracted from glibc commit
2755         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2756
2757         regex: sync more white-space changes from libc
2758         * lib/regex_internal.c: White-space only changes.
2759         * lib/regexec.c: Likewise.
2760
2761         regex: add many uses of __attribute_warn_unused_result__
2762         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2763         * lib/regexec.c: Likewise.
2764         Extracted from a messy glibc commit.
2765
2766         regcomp.c: spelling and merge-artifact from glibc
2767         * lib/regcomp.c: Merge remainder of glibc's
2768         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2769
2770         regcomp.c: sync white-space changes from glibc
2771         * lib/regcomp.c: Merge to accommodate white space
2772         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2773
2774         regcomp.c: do not ignore internal return values
2775         * lib/regcomp.c: Do not ignore internal return values.
2776         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2777         but without its white-space changes and spelling fixes.
2778
2779         regex_internal.h: define __attribute_warn_unused_result__
2780         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2781
2782         maint: add a syntax-check rule to check for vulnerable Makefile.in
2783         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2784
2785 2010-01-27  Jim Meyering  <meyering@redhat.com>
2786
2787         ncftpput-ftp: clean up spaces
2788         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2789         Remove trailing blanks.
2790
2791 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2792
2793         * build-aux/git-version-gen: Fix copyright statement.
2794         * build-aux/gnupload: Likewise.
2795         * tests/test-arcfour.c: Likewise.
2796         * tests/test-arctwo.c: Likewise.
2797         * tests/test-count-one-bits.c: Likewise.
2798         * tests/test-crc.c: Likewise.
2799         * tests/test-des.c: Likewise.
2800         * tests/test-gc-arcfour.c: Likewise.
2801         * tests/test-gc-arctwo.c: Likewise.
2802         * tests/test-gc-des.c: Likewise.
2803         * tests/test-gc-hmac-md5.c: Likewise.
2804         * tests/test-gc-hmac-sha1.c: Likewise.
2805         * tests/test-gc-md2.c: Likewise.
2806         * tests/test-gc-md4.c: Likewise.
2807         * tests/test-gc-md5.c: Likewise.
2808         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2809         * tests/test-gc-rijndael.c: Likewise.
2810         * tests/test-gc-sha1.c: Likewise.
2811         * tests/test-gc.c: Likewise.
2812         * tests/test-gethostname.c: Likewise.
2813         * tests/test-gettimeofday.c: Likewise.
2814         * tests/test-hash.c: Likewise.
2815         * tests/test-hmac-md5.c: Likewise.
2816         * tests/test-hmac-sha1.c: Likewise.
2817         * tests/test-md2.c: Likewise.
2818         * tests/test-md4.c: Likewise.
2819         * tests/test-md5.c: Likewise.
2820         * tests/test-memchr.c: Likewise.
2821         * tests/test-memchr2.c: Likewise.
2822         * tests/test-memcmp.c: Likewise.
2823         * tests/test-memmem.c: Likewise.
2824         * tests/test-memrchr.c: Likewise.
2825         * tests/test-rawmemchr.c: Likewise.
2826         * tests/test-read-file.c: Likewise.
2827         * tests/test-rijndael.c: Likewise.
2828         * tests/test-sockets.c: Likewise.
2829         * tests/test-strchrnul.c: Likewise.
2830         * tests/test-strstr.c: Likewise.
2831         * tests/test-strtod.c: Likewise.
2832         * build-aux/ncftpput-ftp: Likewise.
2833
2834 2010-01-26  Eric Blake  <ebb9@byu.net>
2835
2836         ignore-value: update recommended header name
2837         * modules/ignore-value (Include): Only use <> for headers that
2838         exist in glibc.
2839
2840 2010-01-26  Jim Meyering  <meyering@redhat.com>
2841
2842         test-userspec.c: avoid compiler warnings
2843         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2844         and "initialization discards qualifiers..." warnings.
2845         Put the first "uid" in its own scope, and make char* members "const".
2846
2847 2010-01-25  Bruno Haible  <bruno@clisp.org>
2848
2849         gnulib-tool: Make warning diagnostics consistent.
2850         * gnulib-tool (func_warning): New function.
2851         Use it everywhere where gnulib-tool produces output to stderr and it is
2852         not a fatal error.
2853
2854 2010-01-25  Bruno Haible  <bruno@clisp.org>
2855
2856         Fix test dependencies.
2857         * modules/xstrtol-tests (Depends-on): Add inttypes.
2858         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2859
2860 2010-01-25 Pádraig Brady <P@draigBrady.com>
2861
2862         syntax-check: detect incorrect boolean macro values in config.h
2863         * modules/maintainer-makefile (configure.ac): Parameterize the location
2864         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2865         The logic is from Eric Blake and the location indicated by Jim Meyering.
2866         Note the more natural CONFIG_HEADER name is prohibited by automake
2867         for backwards compatibility reasons.
2868         * top/maint.mk (sc_Wundef_boolean): New rule.
2869
2870 2010-01-25  Jim Meyering  <meyering@redhat.com>
2871
2872         bootstrap: detect MacOS 10.6's shasum, too
2873         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2874         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2875
2876 2010-01-23  Jim Meyering  <meyering@redhat.com>
2877
2878         xstrtoll: new module
2879         * modules/xstrtoll: New file.
2880         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2881         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2882         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2883         ./configure fails if you use this module and lack "long long".
2884         * modules/xstrtoll-tests: New module.
2885         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2886         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2887         new init.sh-based test framework.
2888
2889 2010-01-24  Bruno Haible  <bruno@clisp.org>
2890
2891         Tests for module 'yn'.
2892         * modules/yn-tests: New file.
2893         * tests/test-yn.c: New file.
2894
2895         Tests for module 'y1'.
2896         * modules/y1-tests: New file.
2897         * tests/test-y1.c: New file.
2898
2899         Tests for module 'y0'.
2900         * modules/y0-tests: New file.
2901         * tests/test-y0.c: New file.
2902
2903         Tests for module 'tanh'.
2904         * modules/tanh-tests: New file.
2905         * tests/test-tanh.c: New file.
2906
2907         Tests for module 'tan'.
2908         * modules/tan-tests: New file.
2909         * tests/test-tan.c: New file.
2910
2911         Tests for module 'sqrt'.
2912         * modules/sqrt-tests: New file.
2913         * tests/test-sqrt.c: New file.
2914
2915         Tests for module 'sinh'.
2916         * modules/sinh-tests: New file.
2917         * tests/test-sinh.c: New file.
2918
2919         Tests for module 'sin'.
2920         * modules/sin-tests: New file.
2921         * tests/test-sin.c: New file.
2922
2923         Tests for module 'rint'.
2924         * modules/rint-tests: New file.
2925         * tests/test-rint.c: New file.
2926
2927         Tests for module 'remainder'.
2928         * modules/remainder-tests: New file.
2929         * tests/test-remainder.c: New file.
2930
2931         Tests for module 'pow'.
2932         * modules/pow-tests: New file.
2933         * tests/test-pow.c: New file.
2934
2935         Tests for module 'nextafter'.
2936         * modules/nextafter-tests: New file.
2937         * tests/test-nextafter.c: New file.
2938
2939         Tests for module 'modf'.
2940         * modules/modf-tests: New file.
2941         * tests/test-modf.c: New file.
2942
2943         Tests for module 'logb'.
2944         * modules/logb-tests: New file.
2945         * tests/test-logb.c: New file.
2946
2947         Tests for module 'log1p'.
2948         * modules/log1p-tests: New file.
2949         * tests/test-log1p.c: New file.
2950
2951         Tests for module 'log10'.
2952         * modules/log10-tests: New file.
2953         * tests/test-log10.c: New file.
2954
2955         Tests for module 'log'.
2956         * modules/log-tests: New file.
2957         * tests/test-log.c: New file.
2958
2959         Tests for module 'lgamma'.
2960         * modules/lgamma-tests: New file.
2961         * tests/test-lgamma.c: New file.
2962
2963         Tests for module 'ldexp'.
2964         * modules/ldexp-tests: New file.
2965         * tests/test-ldexp.c: New file.
2966
2967         Tests for module 'jn'.
2968         * modules/jn-tests: New file.
2969         * tests/test-jn.c: New file.
2970
2971         Tests for module 'j1'.
2972         * modules/j1-tests: New file.
2973         * tests/test-j1.c: New file.
2974
2975         Tests for module 'j0'.
2976         * modules/j0-tests: New file.
2977         * tests/test-j0.c: New file.
2978
2979         Tests for module 'hypot'.
2980         * modules/hypot-tests: New file.
2981         * tests/test-hypot.c: New file.
2982
2983         Tests for module 'fmod'.
2984         * modules/fmod-tests: New file.
2985         * tests/test-fmod.c: New file.
2986
2987         Tests for module 'fabs'.
2988         * modules/fabs-tests: New file.
2989         * tests/test-fabs.c: New file.
2990
2991         Tests for module 'exp'.
2992         * modules/exp-tests: New file.
2993         * tests/test-exp.c: New file.
2994
2995         Tests for module 'erfc'.
2996         * modules/erfc-tests: New file.
2997         * tests/test-erfc.c: New file.
2998
2999         Tests for module 'erf'.
3000         * modules/erf-tests: New file.
3001         * tests/test-erf.c: New file.
3002
3003         Tests for module 'cosh'.
3004         * modules/cosh-tests: New file.
3005         * tests/test-cosh.c: New file.
3006
3007         Tests for module 'cos'.
3008         * modules/cos-tests: New file.
3009         * tests/test-cos.c: New file.
3010
3011         Tests for module 'copysign'.
3012         * modules/copysign-tests: New file.
3013         * tests/test-copysign.c: New file.
3014
3015         Tests for module 'cbrt'.
3016         * modules/cbrt-tests: New file.
3017         * tests/test-cbrt.c: New file.
3018
3019         Tests for module 'atan2'.
3020         * modules/atan2-tests: New file.
3021         * tests/test-atan2.c: New file.
3022
3023         Tests for module 'atan'.
3024         * modules/atan-tests: New file.
3025         * tests/test-atan.c: New file.
3026
3027         Tests for module 'asin'.
3028         * modules/asin-tests: New file.
3029         * tests/test-asin.c: New file.
3030
3031         Tests for module 'acos'.
3032         * modules/acos-tests: New file.
3033         * tests/test-acos.c: New file.
3034
3035 2010-01-24  Bruno Haible  <bruno@clisp.org>
3036
3037         Fix tests for common <math.h> functions.
3038         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3039         code snippet that references the function pointer, rather than merely
3040         calling the function. Substitute the FUNC_LIBM variable.
3041         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3042         * modules/acos (configure.ac): Likewise.
3043         * modules/asin (configure.ac): Likewise.
3044         * modules/atan (configure.ac): Likewise.
3045         * modules/atan2 (configure.ac): Likewise.
3046         * modules/cbrt (configure.ac): Likewise.
3047         * modules/copysign (configure.ac): Likewise.
3048         * modules/cos (configure.ac): Likewise.
3049         * modules/cosh (configure.ac): Likewise.
3050         * modules/erf (configure.ac): Likewise.
3051         * modules/erfc (configure.ac): Likewise.
3052         * modules/exp (configure.ac): Likewise.
3053         * modules/fabs (configure.ac): Likewise.
3054         * modules/fmod (configure.ac): Likewise.
3055         * modules/hypot (configure.ac): Likewise.
3056         * modules/j0 (configure.ac): Likewise.
3057         * modules/j1 (configure.ac): Likewise.
3058         * modules/jn (configure.ac): Likewise.
3059         * modules/ldexp (configure.ac): Likewise.
3060         * modules/lgamma (configure.ac): Likewise.
3061         * modules/log (configure.ac): Likewise.
3062         * modules/log10 (configure.ac): Likewise.
3063         * modules/log1p (configure.ac): Likewise.
3064         * modules/logb (configure.ac): Likewise.
3065         * modules/modf (configure.ac): Likewise.
3066         * modules/nextafter (configure.ac): Likewise.
3067         * modules/pow (configure.ac): Likewise.
3068         * modules/remainder (configure.ac): Likewise.
3069         * modules/rint (configure.ac): Likewise.
3070         * modules/sin (configure.ac): Likewise.
3071         * modules/sinh (configure.ac): Likewise.
3072         * modules/tan (configure.ac): Likewise.
3073         * modules/tanh (configure.ac): Likewise.
3074         * modules/y0 (configure.ac): Likewise.
3075         * modules/y1 (configure.ac): Likewise.
3076         * modules/yn (configure.ac): Likewise.
3077
3078 2010-01-24  Bruno Haible  <bruno@clisp.org>
3079
3080         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3081         * tests/test-acosl.c (x): New variable.
3082         (main): Store argument in x and fetch it from x.
3083         * tests/test-asinl.c (x): New variable.
3084         (main): Store argument in x and fetch it from x.
3085         * tests/test-atanl.c (x): New variable.
3086         (main): Store argument in x and fetch it from x.
3087         * tests/test-cosl.c (x): New variable.
3088         (main): Store argument in x and fetch it from x.
3089         * tests/test-expl.c (x): New variable.
3090         (main): Store argument in x and fetch it from x.
3091         * tests/test-logl.c (x): New variable.
3092         (main): Store argument in x and fetch it from x.
3093         * tests/test-sinl.c (x): New variable.
3094         (main): Store argument in x and fetch it from x.
3095         * tests/test-sqrtl.c (x): New variable.
3096         (main): Store argument in x and fetch it from x.
3097         * tests/test-tanl.c (x): New variable.
3098         (main): Store argument in x and fetch it from x.
3099
3100 2010-01-24  Bruno Haible  <bruno@clisp.org>
3101
3102         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3103         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3104         assignments to the initial TESTS_ENVIRONMENT.
3105         * doc/gnulib.texi (Unit test modules): Document it.
3106         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3107         TESTS_ENVIRONMENT.
3108         * modules/btowc-tests (Makefile.am): Likewise.
3109         * modules/c-stack-tests (Makefile.am): Likewise.
3110         * modules/c-strcase-tests (Makefile.am): Likewise.
3111         * modules/copy-file-tests (Makefile.am): Likewise.
3112         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3113         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3114         * modules/mbrtowc-tests (Makefile.am): Likewise.
3115         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3116         * modules/mbscasestr-tests (Makefile.am): Likewise.
3117         * modules/mbschr-tests (Makefile.am): Likewise.
3118         * modules/mbscspn-tests (Makefile.am): Likewise.
3119         * modules/mbsinit-tests (Makefile.am): Likewise.
3120         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3121         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3122         * modules/mbspbrk-tests (Makefile.am): Likewise.
3123         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3124         * modules/mbsrchr-tests (Makefile.am): Likewise.
3125         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3126         * modules/mbsspn-tests (Makefile.am): Likewise.
3127         * modules/mbsstr-tests (Makefile.am): Likewise.
3128         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3129         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3130         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3131         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3132         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3133         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3134         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3135         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3136         * modules/wcrtomb-tests (Makefile.am): Likewise.
3137         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3138         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3139         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3140         assignments from TESTS_ENVIRONMENT.
3141         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3142         augmentation.
3143         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3144         * modules/atexit-tests (Makefile.am): Likewise.
3145         * modules/binary-io-tests (Makefile.am): Likewise.
3146         * modules/closein-tests (Makefile.am): Likewise.
3147         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3148         * modules/exclude-tests (Makefile.am): Likewise.
3149         * modules/fflush-tests (Makefile.am): Likewise.
3150         * modules/fpending-tests (Makefile.am): Likewise.
3151         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3152         * modules/freadahead-tests (Makefile.am): Likewise.
3153         * modules/freadptr-tests (Makefile.am): Likewise.
3154         * modules/freadseek-tests (Makefile.am): Likewise.
3155         * modules/fseek-tests (Makefile.am): Likewise.
3156         * modules/fseeko-tests (Makefile.am): Likewise.
3157         * modules/ftell-tests (Makefile.am): Likewise.
3158         * modules/ftello-tests (Makefile.am): Likewise.
3159         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3160         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3161         * modules/lseek-tests (Makefile.am): Likewise.
3162         * modules/parse-duration-tests (Makefile.am): Likewise.
3163         * modules/perror-tests (Makefile.am): Likewise.
3164         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3165         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3166         * modules/pipe-tests (Makefile.am): Likewise.
3167         * modules/pread-tests (Makefile.am): Likewise.
3168         * modules/printf-posix-tests (Makefile.am): Likewise.
3169         * modules/select-tests (Makefile.am): Likewise.
3170         * modules/sigpipe-tests (Makefile.am): Likewise.
3171         * modules/tsearch-tests (Makefile.am): Likewise.
3172         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3173         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3174         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3175         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3176         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3177         * modules/version-etc-tests (Makefile.am): Likewise.
3178         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3179         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3180         * modules/xalloc-die-tests (Makefile.am): Likewise.
3181         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3182         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3183         * modules/xstrtol-tests (Makefile.am): Likewise.
3184         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3185         * modules/yesno-tests (Makefile.am): Likewise.
3186         Suggested by Jim Meyering.
3187
3188 2010-01-24  Bruno Haible  <bruno@clisp.org>
3189
3190         More documentation.
3191         * doc/gnulib.texi (Writing modules): New chapter.
3192         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3193         the new chapter.
3194
3195 2010-01-24  Jim Meyering  <meyering@redhat.com>
3196
3197         maint.mk: do not prepend "./" after filtering
3198         * top/maint.mk (_prepend_srcdir_prefix): New variable
3199         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3200         "./" when $(srcdir) is ".".
3201
3202         define STREQ(a,b) consistently, removing useless parentheses
3203         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3204         since the only risk is that "a" or "b" contains an unparenthesized
3205         comma, but if either did that, STREQ would have 3 or more arguments.
3206         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3207         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3208         * lib/hash-triple.c (STREQ): Likewise.
3209         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3210         * lib/getugroups.c (STREQ): Likewise.
3211
3212 2010-01-23  Jim Meyering  <meyering@redhat.com>
3213
3214         maint.mk: fix syntax-check in a non-srcdir build directory
3215         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3216         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3217
3218 2010-01-22  Jim Meyering  <meyering@redhat.com>
3219
3220         userspec: add unit tests
3221         * tests/test-userspec.c: New file.
3222         * modules/userspec-tests: Likewise.
3223
3224 2010-01-21  Jim Meyering  <meyering@redhat.com>
3225
3226         maint.mk: handle source file names containing "." robustly
3227         * top/maint.mk (_dot_escaped_srcdir): Define.
3228         (VC_LIST): Use it in LHS of sed substitution.
3229
3230 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3231
3232         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3233         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3234         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3235         from a non-srcdir build.
3236
3237 2010-01-20  Eric Blake  <ebb9@byu.net>
3238
3239         warn-on-use: use instead of link-warning
3240         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3241         * modules/unistd (Depends-on, Makefile.am): Likewise.
3242         * modules/arpa_inet (Depends-on): Replace link-warning with
3243         warn-on-use.
3244         (Makefile.am): Update rules accordingly.
3245         * modules/ctype (Depends-on, Makefile.am): Likewise.
3246         * modules/dirent (Depends-on, Makefile.am): Likewise.
3247         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3248         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3249         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3250         * modules/locale (Depends-on, Makefile.am): Likewise.
3251         * modules/math (Depends-on, Makefile.am): Likewise.
3252         * modules/search (Depends-on, Makefile.am): Likewise.
3253         * modules/signal (Depends-on, Makefile.am): Likewise.
3254         * modules/spawn (Depends-on, Makefile.am): Likewise.
3255         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3256         * modules/string (Depends-on, Makefile.am): Likewise.
3257         * modules/strings (Depends-on, Makefile.am): Likewise.
3258         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3259         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3260         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3261         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3262         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3263         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3264         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3265         * modules/wchar (Depends-on, Makefile.am): Likewise.
3266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3267         should be poisoned.
3268         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3269         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3270         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3272         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3273         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3274         * m4/math_h.m4 (gl_MATH_H): Likewise.
3275         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3276         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3277         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3278         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3279         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3280         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3281         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3282         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3283         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3286         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3287         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3288         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3289         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3290         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3291         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3292         GL_LINK_WARNING.
3293         * lib/ctype.in.h: Likewise.
3294         * lib/dirent.in.h: Likewise.
3295         * lib/fcntl.in.h: Likewise.
3296         * lib/inttypes.in.h: Likewise.
3297         * lib/langinfo.in.h: Likewise.
3298         * lib/locale.in.h: Likewise.
3299         * lib/math.in.h: Likewise.
3300         * lib/search.in.h: Likewise.
3301         * lib/signal.in.h: Likewise.
3302         * lib/spawn.in.h: Likewise.
3303         * lib/stdio.in.h: Likewise.
3304         * lib/stdlib.in.h: Likewise.
3305         * lib/string.in.h: Likewise.
3306         * lib/strings.in.h: Likewise.
3307         * lib/sys_file.in.h: Likewise.
3308         * lib/sys_ioctl.in.h: Likewise.
3309         * lib/sys_select.in.h: Likewise.
3310         * lib/sys_socket.in.h: Likewise.
3311         * lib/sys_stat.in.h: Likewise.
3312         * lib/sys_times.in.h: Likewise.
3313         * lib/sys_utsname.in.h: Likewise.
3314         * lib/unistd.in.h: Likewise.
3315         * lib/wchar.in.h: Likewise.
3316
3317 2010-01-20  Bruno Haible  <bruno@clisp.org>
3318
3319         Avoid duplicate -lm.
3320         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3321         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3323         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3324         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3325         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3326         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3327         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3328         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3329         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3330         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3331         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3332         Reported by Paolo Bonzini.
3333
3334 2010-01-19  Bruno Haible  <bruno@clisp.org>
3335
3336         langinfo, nl_langinfo: Relicense under LGPLv2+.
3337         * modules/langinfo (License): Change to LGPLv2+.
3338         * modules/nl_langinfo (License): Likewise.
3339         Patch by David Lutterkort <lutter@redhat.com>.
3340
3341 2010-01-19  Bruno Haible  <bruno@clisp.org>
3342
3343         Avoid compilation error with cc on OSF/1 5.1.
3344         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3345         statement, not before.
3346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3347
3348 2010-01-18  Bruno Haible  <bruno@clisp.org>
3349
3350         Avoid a link error due to the __printf__ symbol.
3351         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3352         and 2.6.x.
3353         (__format__, __printf__): Remove definitions.
3354         * lib/argp-fmtstream.h: Likewise.
3355         * lib/argp.h: Likewise.
3356         * lib/error.h: Likewise.
3357         * lib/vasnprintf.h: Likewise.
3358         * lib/xprintf.h: Likewise.
3359         * lib/xvasprintf.h: Likewise.
3360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3361
3362 2010-01-18  Bruno Haible  <bruno@clisp.org>
3363
3364         Tests for module 'tanl'.
3365         * modules/tanl-tests: New file.
3366         * tests/test-tanl.c: New file.
3367
3368         Tests for module 'sqrtl'.
3369         * modules/sqrtl-tests: New file.
3370         * tests/test-sqrtl.c: New file.
3371
3372         Tests for module 'sinl'.
3373         * modules/sinl-tests: New file.
3374         * tests/test-sinl.c: New file.
3375
3376         Tests for module 'logl'.
3377         * modules/logl-tests: New file.
3378         * tests/test-logl.c: New file.
3379
3380         Tests for module 'expl'.
3381         * modules/expl-tests: New file.
3382         * tests/test-expl.c: New file.
3383
3384         Tests for module 'cosl'.
3385         * modules/cosl-tests: New file.
3386         * tests/test-cosl.c: New file.
3387
3388         Tests for module 'atanl'.
3389         * modules/atanl-tests: New file.
3390         * tests/test-atanl.c: New file.
3391
3392         Tests for module 'asinl'.
3393         * modules/asinl-tests: New file.
3394         * tests/test-asinl.c: New file.
3395
3396         Tests for module 'acosl'.
3397         * modules/acosl-tests: New file.
3398         * tests/test-acosl.c: New file.
3399
3400         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3401         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3402         tanl): Use the standard gnulib idiom.
3403         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3404         * lib/sinl.c: Likewise.
3405         * lib/tanl.c: Don't include trigl.c.
3406         (kernel_tanl): Make static.
3407         * lib/sincosl.c: Include trigl.h first.
3408         * lib/trigl.c: Likewise.
3409         * m4/acosl.m4: New file.
3410         * m4/asinl.m4: New file.
3411         * m4/atanl.m4: New file.
3412         * m4/cosl.m4: New file.
3413         * m4/expl.m4: New file.
3414         * m4/logl.m4: New file.
3415         * m4/sinl.m4: New file.
3416         * m4/sqrtl.m4: New file.
3417         * m4/tanl.m4: New file.
3418         * m4/mathl.m4: Remove file.
3419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3420         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3421         Don't initialize GNULIB_MATHL.
3422         * modules/acosl: New file.
3423         * modules/asinl: New file.
3424         * modules/atanl: New file.
3425         * modules/cosl: New file.
3426         * modules/expl: New file.
3427         * modules/logl: New file.
3428         * modules/sinl: New file.
3429         * modules/sqrtl: New file.
3430         * modules/tanl: New file.
3431         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3432         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3433         substitute GNULIB_MATHL.
3434         * modules/mathl: Rewritten.
3435         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3436         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3437         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3438         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3439         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3440         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3441         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3442         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3443         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3444
3445 2010-01-18  Bruno Haible  <bruno@clisp.org>
3446
3447         sqrt: Make gl_FUNC_SQRT requirable.
3448         * m4/sqrt.m4: New file.
3449         * modules/sqrt (Files): Add it.
3450         (configure.ac): Invoke gl_FUNC_SQRT.
3451
3452 2010-01-18  Bruno Haible  <bruno@clisp.org>
3453
3454         New modules for common <math.h> functions.
3455         * m4/mathfunc.m4: New file.
3456         * modules/acos: New file.
3457         * modules/asin: New file.
3458         * modules/atan: New file.
3459         * modules/atan2: New file.
3460         * modules/cbrt: New file.
3461         * modules/copysign: New file.
3462         * modules/cos: New file.
3463         * modules/cosh: New file.
3464         * modules/erf: New file.
3465         * modules/erfc: New file.
3466         * modules/exp: New file.
3467         * modules/fabs: New file.
3468         * modules/fmod: New file.
3469         * modules/hypot: New file.
3470         * modules/j0: New file.
3471         * modules/j1: New file.
3472         * modules/jn: New file.
3473         * modules/ldexp: New file.
3474         * modules/lgamma: New file.
3475         * modules/log: New file.
3476         * modules/log10: New file.
3477         * modules/log1p: New file.
3478         * modules/logb: New file.
3479         * modules/modf: New file.
3480         * modules/nextafter: New file.
3481         * modules/pow: New file.
3482         * modules/remainder: New file.
3483         * modules/rint: New file.
3484         * modules/sin: New file.
3485         * modules/sinh: New file.
3486         * modules/sqrt: New file.
3487         * modules/tan: New file.
3488         * modules/tanh: New file.
3489         * modules/y0: New file.
3490         * modules/y1: New file.
3491         * modules/yn: New file.
3492         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3493         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3494         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3495         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3496         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3497         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3498         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3499         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3500         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3501         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3502         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3503         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3504         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3505         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3506         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3507         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3508         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3509         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3510         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3511         * doc/posix-functions/log.texi: Mention the 'log' module.
3512         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3513         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3514         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3515         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3516         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3517         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3518         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3519         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3520         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3521         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3522         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3523         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3524         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3525         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3526         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3527         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3528
3529 2010-01-18  Jim Meyering  <meyering@redhat.com>
3530
3531         ignore-value: relax license to LGPLv2+
3532         * modules/ignore-value (License): Relax to LGPLv2+.
3533
3534         getdate: don't leak when TZ contains two or more '"'s
3535         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3536         double quote in TZ after the first one.
3537
3538         readtokens: do not leak internal token_lengths buffer
3539         * lib/readtokens.c (readtokens): Free the local, lengths,
3540         when the supplied "token_lengths" parameter is NULL.
3541
3542 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3543
3544         Fix a couple of missing LIBTHREAD link failures on AIX.
3545         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3546         $(LIBTHREAD).
3547         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3548
3549         Link test-poll against INET_PTON_LIB.
3550         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3551         for inet_pton on Solaris 10.
3552
3553 2010-01-17  Bruno Haible  <bruno@clisp.org>
3554
3555         unistdio/*-sprintf: Fix typo in module description.
3556         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3557         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3558         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3559         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3560         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3561         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3562         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3563         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3564
3565 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3566
3567         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3568         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3569         variables in shell case patterns, for AIX and HP-UX ksh.
3570
3571         Split large sed scripts, for HP-UX sed.
3572         * modules/stdio: Split sed scripts around 50 sed commands,
3573         to avoid HP-UX limit of 99 commands, in the near future.
3574         * modules/string: Likewise.
3575         * modules/unistd: Likewise.
3576
3577         gnulib-tool: avoid writing in the current directory.
3578         * gnulib-tool (func_emit_lib_Makefile_am)
3579         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3580         not in the current directory, so concurrent gnulib-tool
3581         instances do not interfere.
3582
3583 2010-01-16  Jim Meyering  <meyering@redhat.com>
3584
3585         doc: update users.txt
3586         * users.txt: Add grep.
3587         (diffutils, gzip): Update URLs.
3588
3589 2010-01-12  Bruno Haible  <bruno@clisp.org>
3590
3591         posix_spawn: Avoid test failure on Cygwin.
3592         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3593         characters.
3594         Reported by Simon Josefsson.
3595
3596 2010-01-12  Bruno Haible  <bruno@clisp.org>
3597
3598         * tests/test-cond.c (main): When skipping the test, show the reason.
3599
3600 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3601
3602         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3603
3604 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3605
3606         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3607         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3608
3609 2010-01-12  Eric Blake  <ebb9@byu.net>
3610
3611         build: guarantee AS_VAR_IF
3612         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3613         (gl_AS_VAR_IF): Move...
3614         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3615         Reported by Simon Josefsson.
3616
3617 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3618
3619         * lib/stdio.in.h: Fix typo.
3620
3621 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3622
3623         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3624         libgpg-error.
3625
3626 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3627
3628         * tests/test-xalloc-die.sh: Use $EXEEXT.
3629
3630 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3631             Bruno Haible  <bruno@clisp.org>
3632
3633         getlogin, getlogin_r: Avoid test failure.
3634         * tests/test-getlogin.c: Include <stdio.h>.
3635         (main): Skip the test when the function fails because stdin is not a
3636         tty.
3637         * tests/test-getlogin_r.c: Include <stdio.h>.
3638         (main): Skip the test when the function fails because stdin is not a
3639         tty.
3640
3641 2010-01-11  Eric Blake  <ebb9@byu.net>
3642
3643         tests: avoid more large file warnings
3644         * tests/test-fflush.c: Avoid warning about ftell use.
3645         * tests/test-fseek.c: Avoid warning about fseek use.
3646
3647 2010-01-10  Bruno Haible  <bruno@clisp.org>
3648
3649         nproc: Work better on Linux when /proc and /sys are not mounted.
3650         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3651         as lower bound when, on glibc/Linux systems,
3652         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3653         Suggested by Pádraig Brady <P@draigbrady.com>.
3654         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3655
3656         nproc: Refactor.
3657         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3658         extracted from num_processors.
3659         (num_processors): Call it.
3660
3661 2010-01-11  Jim Meyering  <meyering@redhat.com>
3662
3663         utimecmp: avoid new warning from upcoming gcc-4.5.0
3664         * lib/utimecmp.c (BILLION): Define using #define rather than an
3665         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3666
3667 2010-01-11  Eric Blake  <ebb9@byu.net>
3668
3669         math: add portability warnings for classification macros
3670         * modules/math (Depends-on): Add warn-on-use.
3671         (Makefile.am): Provide new substitutions.
3672         * m4/math_h.m4 (gl_MATH_H): Require inline.
3673         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3674         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3675         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3676         implement warnings.
3677
3678         unistd: warn on use of environ without module
3679         * modules/unistd (Depends-on): Add warn-on-use.
3680         (Makefile.am): Provide new substitutions.
3681         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3682         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3683
3684         stdio: warn on suspicious uses
3685         * modules/stdio (Depends-on): Add warn-on-use.
3686         (Makefile.am): Provide new substitutions.
3687         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3688         fseeko.
3689         * lib/stdio.in.h (gets): Always warn on use.
3690         (fseek, ftell): Adjust when warnings are issued, and honor
3691         _GL_NO_LARGE_FILES as a way to silence the warning.
3692         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3693         any warning about large file offsets.
3694         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3695         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3696         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3697         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3698         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3699         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3700         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3701         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3702
3703         warn-on-use: new module
3704         * modules/warn-on-use: New file.
3705         * build-aux/warn-on-use.h: Likewise.
3706         * m4/warn-on-use.m4: Likewise.
3707         * MODULES.html.sh (Support for building): Mention it.
3708
3709 2010-01-10  Bruno Haible  <bruno@clisp.org>
3710
3711         Tests for module 'unistr/u32-strdup'.
3712         * modules/unistr/u32-strdup-tests: New file.
3713         * tests/unistr/test-u32-strdup.c: New file.
3714
3715         Tests for module 'unistr/u16-strdup'.
3716         * modules/unistr/u16-strdup-tests: New file.
3717         * tests/unistr/test-u16-strdup.c: New file.
3718
3719         Tests for module 'unistr/u8-strdup'.
3720         * modules/unistr/u8-strdup-tests: New file.
3721         * tests/unistr/test-u8-strdup.c: New file.
3722         * tests/unistr/test-strdup.h: New file.
3723
3724         Tests for module 'unistr/u32-strncmp'.
3725         * modules/unistr/u32-strncmp-tests: New file.
3726         * tests/unistr/test-u32-strncmp.c: New file.
3727
3728         Tests for module 'unistr/u16-strncmp'.
3729         * modules/unistr/u16-strncmp-tests: New file.
3730         * tests/unistr/test-u16-strncmp.c: New file.
3731
3732         Tests for module 'unistr/u8-strncmp'.
3733         * modules/unistr/u8-strncmp-tests: New file.
3734         * tests/unistr/test-u8-strncmp.c: New file.
3735         * tests/unistr/test-strncmp.h: New file.
3736
3737         Tests for module 'unistr/u32-strcoll'.
3738         * modules/unistr/u32-strcoll-tests: New file.
3739         * tests/unistr/test-u32-strcoll.c: New file.
3740
3741         Tests for module 'unistr/u16-strcoll'.
3742         * modules/unistr/u16-strcoll-tests: New file.
3743         * tests/unistr/test-u16-strcoll.c: New file.
3744
3745         Tests for module 'unistr/u8-strcoll'.
3746         * modules/unistr/u8-strcoll-tests: New file.
3747         * tests/unistr/test-u8-strcoll.c: New file.
3748
3749         Tests for module 'unistr/u32-strcmp'.
3750         * modules/unistr/u32-strcmp-tests: New file.
3751         * tests/unistr/test-u32-strcmp.c: New file.
3752         * tests/unistr/test-u32-strcmp.h: New file.
3753
3754         Tests for module 'unistr/u16-strcmp'.
3755         * modules/unistr/u16-strcmp-tests: New file.
3756         * tests/unistr/test-u16-strcmp.c: New file.
3757         * tests/unistr/test-u16-strcmp.h: New file.
3758
3759         Tests for module 'unistr/u8-strcmp'.
3760         * modules/unistr/u8-strcmp-tests: New file.
3761         * tests/unistr/test-u8-strcmp.c: New file.
3762         * tests/unistr/test-u8-strcmp.h: New file.
3763         * tests/unistr/test-strcmp.h: New file.
3764
3765         Tests for module 'unistr/u32-strncat'.
3766         * modules/unistr/u32-strncat-tests: New file.
3767         * tests/unistr/test-u32-strncat.c: New file.
3768
3769         Tests for module 'unistr/u16-strncat'.
3770         * modules/unistr/u16-strncat-tests: New file.
3771         * tests/unistr/test-u16-strncat.c: New file.
3772
3773         Tests for module 'unistr/u8-strncat'.
3774         * modules/unistr/u8-strncat-tests: New file.
3775         * tests/unistr/test-u8-strncat.c: New file.
3776         * tests/unistr/test-strncat.h: New file.
3777
3778         Tests for module 'unistr/u32-strcat'.
3779         * modules/unistr/u32-strcat-tests: New file.
3780         * tests/unistr/test-u32-strcat.c: New file.
3781
3782         Tests for module 'unistr/u16-strcat'.
3783         * modules/unistr/u16-strcat-tests: New file.
3784         * tests/unistr/test-u16-strcat.c: New file.
3785
3786         Tests for module 'unistr/u8-strcat'.
3787         * modules/unistr/u8-strcat-tests: New file.
3788         * tests/unistr/test-u8-strcat.c: New file.
3789         * tests/unistr/test-strcat.h: New file.
3790
3791         Tests for module 'unistr/u32-stpncpy'.
3792         * modules/unistr/u32-stpncpy-tests: New file.
3793         * tests/unistr/test-u32-stpncpy.c: New file.
3794
3795         Tests for module 'unistr/u16-stpncpy'.
3796         * modules/unistr/u16-stpncpy-tests: New file.
3797         * tests/unistr/test-u16-stpncpy.c: New file.
3798
3799         Tests for module 'unistr/u8-stpncpy'.
3800         * modules/unistr/u8-stpncpy-tests: New file.
3801         * tests/unistr/test-u8-stpncpy.c: New file.
3802         * tests/unistr/test-stpncpy.h: New file.
3803
3804         Tests for module 'unistr/u32-strncpy'.
3805         * modules/unistr/u32-strncpy-tests: New file.
3806         * tests/unistr/test-u32-strncpy.c: New file.
3807
3808         Tests for module 'unistr/u16-strncpy'.
3809         * modules/unistr/u16-strncpy-tests: New file.
3810         * tests/unistr/test-u16-strncpy.c: New file.
3811
3812         Tests for module 'unistr/u8-strncpy'.
3813         * modules/unistr/u8-strncpy-tests: New file.
3814         * tests/unistr/test-u8-strncpy.c: New file.
3815         * tests/unistr/test-strncpy.h: New file.
3816
3817         Tests for module 'unistr/u32-stpcpy'.
3818         * modules/unistr/u32-stpcpy-tests: New file.
3819         * tests/unistr/test-u32-stpcpy.c: New file.
3820
3821         Tests for module 'unistr/u16-stpcpy'.
3822         * modules/unistr/u16-stpcpy-tests: New file.
3823         * tests/unistr/test-u16-stpcpy.c: New file.
3824
3825         Tests for module 'unistr/u8-stpcpy'.
3826         * modules/unistr/u8-stpcpy-tests: New file.
3827         * tests/unistr/test-u8-stpcpy.c: New file.
3828         * tests/unistr/test-stpcpy.h: New file.
3829
3830         Tests for module 'unistr/u32-strcpy'.
3831         * modules/unistr/u32-strcpy-tests: New file.
3832         * tests/unistr/test-u32-strcpy.c: New file.
3833
3834         Tests for module 'unistr/u16-strcpy'.
3835         * modules/unistr/u16-strcpy-tests: New file.
3836         * tests/unistr/test-u16-strcpy.c: New file.
3837
3838         Tests for module 'unistr/u8-strcpy'.
3839         * modules/unistr/u8-strcpy-tests: New file.
3840         * tests/unistr/test-u8-strcpy.c: New file.
3841         * tests/unistr/test-strcpy.h: New file.
3842
3843         Tests for module 'unistr/u32-strnlen'.
3844         * modules/unistr/u32-strnlen-tests: New file.
3845         * tests/unistr/test-u32-strnlen.c: New file.
3846
3847         Tests for module 'unistr/u16-strnlen'.
3848         * modules/unistr/u16-strnlen-tests: New file.
3849         * tests/unistr/test-u16-strnlen.c: New file.
3850
3851         Tests for module 'unistr/u8-strnlen'.
3852         * modules/unistr/u8-strnlen-tests: New file.
3853         * tests/unistr/test-u8-strnlen.c: New file.
3854         * tests/unistr/test-strnlen.h: New file.
3855
3856         Tests for module 'unistr/u32-strlen'.
3857         * modules/unistr/u32-strlen-tests: New file.
3858         * tests/unistr/test-u32-strlen.c: New file.
3859
3860         Tests for module 'unistr/u16-strlen'.
3861         * modules/unistr/u16-strlen-tests: New file.
3862         * tests/unistr/test-u16-strlen.c: New file.
3863
3864         Tests for module 'unistr/u8-strlen'.
3865         * modules/unistr/u8-strlen-tests: New file.
3866         * tests/unistr/test-u8-strlen.c: New file.
3867
3868         Tests for module 'unistr/u32-prev'.
3869         * modules/unistr/u32-prev-tests: New file.
3870         * tests/unistr/test-u32-prev.c: New file.
3871
3872         Tests for module 'unistr/u16-prev'.
3873         * modules/unistr/u16-prev-tests: New file.
3874         * tests/unistr/test-u16-prev.c: New file.
3875
3876         Tests for module 'unistr/u8-prev'.
3877         * modules/unistr/u8-prev-tests: New file.
3878         * tests/unistr/test-u8-prev.c: New file.
3879
3880         Tests for module 'unistr/u32-next'.
3881         * modules/unistr/u32-next-tests: New file.
3882         * tests/unistr/test-u32-next.c: New file.
3883
3884         Tests for module 'unistr/u16-next'.
3885         * modules/unistr/u16-next-tests: New file.
3886         * tests/unistr/test-u16-next.c: New file.
3887
3888         Tests for module 'unistr/u8-next'.
3889         * modules/unistr/u8-next-tests: New file.
3890         * tests/unistr/test-u8-next.c: New file.
3891
3892         Tests for module 'unistr/u32-strmbtouc'.
3893         * modules/unistr/u32-strmbtouc-tests: New file.
3894         * tests/unistr/test-u32-strmbtouc.c: New file.
3895
3896         Tests for module 'unistr/u16-strmbtouc'.
3897         * modules/unistr/u16-strmbtouc-tests: New file.
3898         * tests/unistr/test-u16-strmbtouc.c: New file.
3899
3900         Tests for module 'unistr/u8-strmbtouc'.
3901         * modules/unistr/u8-strmbtouc-tests: New file.
3902         * tests/unistr/test-u8-strmbtouc.c: New file.
3903
3904         Tests for module 'unistr/u32-strmblen'.
3905         * modules/unistr/u32-strmblen-tests: New file.
3906         * tests/unistr/test-u32-strmblen.c: New file.
3907
3908         Tests for module 'unistr/u16-strmblen'.
3909         * modules/unistr/u16-strmblen-tests: New file.
3910         * tests/unistr/test-u16-strmblen.c: New file.
3911
3912         Tests for module 'unistr/u8-strmblen'.
3913         * modules/unistr/u8-strmblen-tests: New file.
3914         * tests/unistr/test-u8-strmblen.c: New file.
3915
3916         Tests for module 'unistr/u32-cpy-alloc'.
3917         * modules/unistr/u32-cpy-alloc-tests: New file.
3918         * tests/unistr/test-u32-cpy-alloc.c: New file.
3919
3920         Tests for module 'unistr/u16-cpy-alloc'.
3921         * modules/unistr/u16-cpy-alloc-tests: New file.
3922         * tests/unistr/test-u16-cpy-alloc.c: New file.
3923
3924         Tests for module 'unistr/u8-cpy-alloc'.
3925         * modules/unistr/u8-cpy-alloc-tests: New file.
3926         * tests/unistr/test-u8-cpy-alloc.c: New file.
3927         * tests/unistr/test-cpy-alloc.h: New file.
3928
3929         Tests for module 'unistr/u32-mbsnlen'.
3930         * modules/unistr/u32-mbsnlen-tests: New file.
3931         * tests/unistr/test-u32-mbsnlen.c: New file.
3932
3933         Tests for module 'unistr/u16-mbsnlen'.
3934         * modules/unistr/u16-mbsnlen-tests: New file.
3935         * tests/unistr/test-u16-mbsnlen.c: New file.
3936
3937         Tests for module 'unistr/u8-mbsnlen'.
3938         * modules/unistr/u8-mbsnlen-tests: New file.
3939         * tests/unistr/test-u8-mbsnlen.c: New file.
3940
3941         Tests for module 'unistr/u32-chr'.
3942         * modules/unistr/u32-chr-tests: New file.
3943         * tests/unistr/test-u32-chr.c: New file.
3944
3945         Tests for module 'unistr/u16-chr'.
3946         * modules/unistr/u16-chr-tests: New file.
3947         * tests/unistr/test-u16-chr.c: New file.
3948
3949         Tests for module 'unistr/u8-chr'.
3950         * modules/unistr/u8-chr-tests: New file.
3951         * tests/unistr/test-u8-chr.c: New file.
3952         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3953
3954         Tests for module 'unistr/u32-cmp2'.
3955         * modules/unistr/u32-cmp2-tests: New file.
3956         * tests/unistr/test-u32-cmp2.c: New file.
3957
3958         Tests for module 'unistr/u16-cmp2'.
3959         * modules/unistr/u16-cmp2-tests: New file.
3960         * tests/unistr/test-u16-cmp2.c: New file.
3961
3962         Tests for module 'unistr/u8-cmp2'.
3963         * modules/unistr/u8-cmp2-tests: New file.
3964         * tests/unistr/test-u8-cmp2.c: New file.
3965         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3966
3967         Tests for module 'unistr/u32-cmp'.
3968         * modules/unistr/u32-cmp-tests: New file.
3969         * tests/unistr/test-u32-cmp.c: New file.
3970
3971         Tests for module 'unistr/u16-cmp'.
3972         * modules/unistr/u16-cmp-tests: New file.
3973         * tests/unistr/test-u16-cmp.c: New file.
3974
3975         Tests for module 'unistr/u8-cmp'.
3976         * modules/unistr/u8-cmp-tests: New file.
3977         * tests/unistr/test-u8-cmp.c: New file.
3978         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3979
3980         Tests for module 'unistr/u32-set'.
3981         * modules/unistr/u32-set-tests: New file.
3982         * tests/unistr/test-u32-set.c: New file.
3983
3984         Tests for module 'unistr/u16-set'.
3985         * modules/unistr/u16-set-tests: New file.
3986         * tests/unistr/test-u16-set.c: New file.
3987
3988         Tests for module 'unistr/u8-set'.
3989         * modules/unistr/u8-set-tests: New file.
3990         * tests/unistr/test-u8-set.c: New file.
3991         * tests/unistr/test-set.h: New file.
3992
3993         Tests for module 'unistr/u32-move'.
3994         * modules/unistr/u32-move-tests: New file.
3995         * tests/unistr/test-u32-move.c: New file.
3996
3997         Tests for module 'unistr/u16-move'.
3998         * modules/unistr/u16-move-tests: New file.
3999         * tests/unistr/test-u16-move.c: New file.
4000
4001         Tests for module 'unistr/u8-move'.
4002         * modules/unistr/u8-move-tests: New file.
4003         * tests/unistr/test-u8-move.c: New file.
4004         * tests/unistr/test-move.h: New file.
4005
4006         Tests for module 'unistr/u32-cpy'.
4007         * modules/unistr/u32-cpy-tests: New file.
4008         * tests/unistr/test-u32-cpy.c: New file.
4009
4010         Tests for module 'unistr/u16-cpy'.
4011         * modules/unistr/u16-cpy-tests: New file.
4012         * tests/unistr/test-u16-cpy.c: New file.
4013
4014         Tests for module 'unistr/u8-cpy'.
4015         * modules/unistr/u8-cpy-tests: New file.
4016         * tests/unistr/test-u8-cpy.c: New file.
4017         * tests/unistr/test-cpy.h: New file.
4018
4019 2010-01-09  Bruno Haible  <bruno@clisp.org>
4020
4021         Tests for module 'unistr/u32-uctomb'.
4022         * modules/unistr/u32-uctomb-tests: New file.
4023         * tests/unistr/test-u32-uctomb.c: New file.
4024
4025         Tests for module 'unistr/u16-uctomb'.
4026         * modules/unistr/u16-uctomb-tests: New file.
4027         * tests/unistr/test-u16-uctomb.c: New file.
4028
4029         Tests for module 'unistr/u8-uctomb'.
4030         * modules/unistr/u8-uctomb-tests: New file.
4031         * tests/unistr/test-u8-uctomb.c: New file.
4032
4033         Tests for module 'unistr/u32-mbtoucr'.
4034         * modules/unistr/u32-mbtoucr-tests: New file.
4035         * tests/unistr/test-u32-mbtoucr.c: New file.
4036
4037         Tests for module 'unistr/u16-mbtoucr'.
4038         * modules/unistr/u16-mbtoucr-tests: New file.
4039         * tests/unistr/test-u16-mbtoucr.c: New file.
4040
4041         Tests for module 'unistr/u8-mbtoucr'.
4042         * modules/unistr/u8-mbtoucr-tests: New file.
4043         * tests/unistr/test-u8-mbtoucr.c: New file.
4044
4045         Tests for module 'unistr/u32-mbtouc'.
4046         * modules/unistr/u32-mbtouc-tests: New file.
4047         * tests/unistr/test-u32-mbtouc.c: New file.
4048
4049         Tests for module 'unistr/u16-mbtouc'.
4050         * modules/unistr/u16-mbtouc-tests: New file.
4051         * tests/unistr/test-u16-mbtouc.c: New file.
4052
4053         Tests for module 'unistr/u8-mbtouc'.
4054         * modules/unistr/u8-mbtouc-tests: New file.
4055         * tests/unistr/test-u8-mbtouc.c: New file.
4056
4057         Tests for module 'unistr/u32-mbtouc-unsafe'.
4058         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4059         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4060         * tests/unistr/test-u32-mbtouc.h: New file.
4061
4062         Tests for module 'unistr/u16-mbtouc-unsafe'.
4063         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4064         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4065         * tests/unistr/test-u16-mbtouc.h: New file.
4066
4067         Tests for module 'unistr/u8-mbtouc-unsafe'.
4068         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4069         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4070         * tests/unistr/test-u8-mbtouc.h: New file.
4071
4072         Tests for module 'unistr/u32-mblen'.
4073         * modules/unistr/u32-mblen-tests: New file.
4074         * tests/unistr/test-u32-mblen.c: New file.
4075
4076         Tests for module 'unistr/u16-mblen'.
4077         * modules/unistr/u16-mblen-tests: New file.
4078         * tests/unistr/test-u16-mblen.c: New file.
4079
4080         Tests for module 'unistr/u8-mblen'.
4081         * modules/unistr/u8-mblen-tests: New file.
4082         * tests/unistr/test-u8-mblen.c: New file.
4083
4084         Tests for module 'unistr/u32-to-u16'.
4085         * modules/unistr/u32-to-u16-tests: New file.
4086         * tests/unistr/test-u32-to-u16.c: New file.
4087
4088         Tests for module 'unistr/u32-to-u8'.
4089         * modules/unistr/u32-to-u8-tests: New file.
4090         * tests/unistr/test-u32-to-u8.c: New file.
4091
4092         Tests for module 'unistr/u16-to-u32'.
4093         * modules/unistr/u16-to-u32-tests: New file.
4094         * tests/unistr/test-u16-to-u32.c: New file.
4095
4096         Tests for module 'unistr/u16-to-u8'.
4097         * modules/unistr/u16-to-u8-tests: New file.
4098         * tests/unistr/test-u16-to-u8.c: New file.
4099
4100         Tests for module 'unistr/u8-to-u32'.
4101         * modules/unistr/u8-to-u32-tests: New file.
4102         * tests/unistr/test-u8-to-u32.c: New file.
4103
4104         Tests for module 'unistr/u8-to-u16'.
4105         * modules/unistr/u8-to-u16-tests: New file.
4106         * tests/unistr/test-u8-to-u16.c: New file.
4107
4108         Tests for module 'unistr/u32-check'.
4109         * modules/unistr/u32-check-tests: New file.
4110         * tests/unistr/test-u32-check.c: New file.
4111
4112         Tests for module 'unistr/u16-check'.
4113         * modules/unistr/u16-check-tests: New file.
4114         * tests/unistr/test-u16-check.c: New file.
4115
4116         Tests for module 'unistr/u8-check'.
4117         * modules/unistr/u8-check-tests: New file.
4118         * tests/unistr/test-u8-check.c: New file.
4119
4120         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4121         (category_equals): New function.
4122         (main): Add more tests.
4123         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4124
4125         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4126
4127 2010-01-10  Bruno Haible  <bruno@clisp.org>
4128
4129         unistr/u*-strcoll: Try harder to distinguish different strings.
4130         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4131         compare s1 and s2 to see if they are different.
4132
4133 2010-01-10  Bruno Haible  <bruno@clisp.org>
4134
4135         unistr/u*-stpncpy: Fix the return value.
4136         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4137         description of the return value consistent with stpncpy in glibc.
4138         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4139         written non-NUL unit.
4140
4141 2010-01-10  Bruno Haible  <bruno@clisp.org>
4142
4143         unistr/u*-next: Add missing dependencies.
4144         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4145         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4146         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4147
4148 2010-01-10  Bruno Haible  <bruno@clisp.org>
4149
4150         unistr/u8-mbsnlen: Fix return value for incomplete character.
4151         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4152         u8_mblen.
4153         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4154         Remove unistr/u8-mblen.
4155         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4156         u16_mblen.
4157         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4158         Remove unistr/u16-mblen.
4159
4160 2010-01-10  Bruno Haible  <bruno@clisp.org>
4161
4162         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4163         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4164         Reported by Brian Gough <bjg@gnu.org> and
4165         Chris Clayton <chris2553@googlemail.com> via
4166         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4167
4168 2010-01-09  Bruno Haible  <bruno@clisp.org>
4169
4170         unistr/u16-to-u32: Reject invalid input.
4171         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4172         u16_mbtouc.
4173         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4174         Remove unistr/u16-mbtouc.
4175
4176         unistr/u16-to-u8: Reject invalid input.
4177         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4178         u16_mbtouc.
4179         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4180         Remove unistr/u16-mbtouc.
4181
4182         unistr/u8-to-u32: Reject invalid input.
4183         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4184         u8_mbtouc.
4185         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4186         Remove unistr/u8-mbtouc.
4187
4188         unistr/u8-to-u16: Reject invalid input.
4189         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4190         u8_mbtouc.
4191         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4192         Remove unistr/u8-mbtouc.
4193
4194 2010-01-09  Bruno Haible  <bruno@clisp.org>
4195
4196         Tests for module 'getlogin'.
4197         * modules/getlogin-tests: New file.
4198         * tests/test-getlogin.c: New file.
4199
4200         New module 'getlogin'.
4201         * lib/unistd.in.h (getlogin): New declaration.
4202         * lib/getlogin.c: New file.
4203         * m4/getlogin.m4: New file.
4204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4205         HAVE_GETLOGIN.
4206         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4207         HAVE_GETLOGIN.
4208         * modules/getlogin: New file.
4209         * doc/posix-functions/getlogin.texi: Mention the new module.
4210         Reported by John W. Eaton <jwe@gnu.org>.
4211
4212 2010-01-09  Bruno Haible  <bruno@clisp.org>
4213
4214         getlogin_r: Support for native Windows.
4215         * lib/getlogin_r.c: Include <windows.h>
4216         (getlogin_r): Implement for native Windows.
4217         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4218         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4219         via John W. Eaton <jwe@gnu.org>.
4220
4221 2010-01-09  Bruno Haible  <bruno@clisp.org>
4222
4223         getlogin_r: Small fixes.
4224         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4225         succeeds.
4226         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4227         before testing whether getlogin_r is declared. No need to set
4228         HAVE_DECL_GETLOGIN_R to 1.
4229         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4230
4231 2010-01-09  Bruno Haible  <bruno@clisp.org>
4232
4233         * lib/unistd.in.h (getlogin_r): Add comment.
4234
4235 2010-01-09  Bruno Haible  <bruno@clisp.org>
4236
4237         Tests for module 'getlogin_r'.
4238         * modules/getlogin_r-tests: New file.
4239         * tests/test-getlogin_r.c: New file.
4240
4241 2010-01-09  Jim Meyering  <meyering@redhat.com>
4242
4243         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4244         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4245         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4246
4247 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4248
4249         * lib/dup2.c (rpl_dup2): Improve comment.
4250
4251 2010-01-08  Eric Blake  <ebb9@byu.net>
4252
4253         maint.mk: allow packages to add makefile @@ exceptions
4254         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4255         (sc_makefile_check): Rename...
4256         (sc_makefile_at_at_check): ...to this, and use hook.
4257
4258         dup2: work around mingw bug
4259         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4260         Reported by Simon Josefsson.
4261
4262 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4263
4264         glob: Fix C++ compilation.
4265         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4266         C++.
4267
4268 2010-01-07  Bruno Haible  <bruno@clisp.org>
4269
4270         Fix indentation of wctype.in.h, broken since 2007-01-06.
4271         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4272
4273 2010-01-07  Bruno Haible  <bruno@clisp.org>
4274
4275         mbslen: Avoid collision with system function.
4276         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4277         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4278         * m4/mbslen.m4: New file.
4279         * modules/mbslen (Files): Add it.
4280         (configure.ac): Invoke gl_MBSLEN.
4281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4282         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4283         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4284         via Ian Beckwith <ianb@erislabs.net>.
4285
4286 2010-01-07  Bruno Haible  <bruno@clisp.org>
4287
4288         dirent: Document the last fix.
4289         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4290
4291 2010-01-07  Bruno Haible  <bruno@clisp.org>
4292
4293         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4294         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4295         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4296         va_list are defined.
4297         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4298         Reported by Eric Blake.
4299
4300 2010-01-07  Bruno Haible  <bruno@clisp.org>
4301
4302         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4303         * modules/xlist (Depends-on): Add 'list',
4304         * modules/xoset (Depends-on): Add 'oset'.
4305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4306
4307 2010-01-07  Bruno Haible  <bruno@clisp.org>
4308
4309         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4310         * doc/posix-functions/strncasecmp.texi: Likewise.
4311
4312 2010-01-07  Bruno Haible  <bruno@clisp.org>
4313
4314         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4315
4316 2010-01-07  John W. Eaton  <jwe@octave.org>
4317
4318         wctype: allow C++ use
4319         * lib/wctype.in.h: Add extern "C" block for C++.
4320
4321 2010-01-06  Eric Blake  <ebb9@byu.net>
4322
4323         maint.mk: detect incorrect GFDL usage
4324         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4325
4326 2010-01-06  Jim Meyering  <meyering@redhat.com>
4327         and Eric Blake  <ebb9@byu.net>
4328
4329         maint.mk: ignore multi-line copyright in NEWS
4330         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4331
4332 2010-01-06  Eric Blake  <ebb9@byu.net>
4333
4334         select: add missing dependency
4335         * modules/select-tests (Depends-on): Move sockets dependency...
4336         * modules/select (Depends-on): ...here.
4337         Reported by Ian Beckwith.
4338
4339         doc: regenerate INSTALL
4340         * doc/INSTALL: Reflect recent autoconf update.
4341         * doc/INSTALL.ISO: Likewise.
4342         * doc/INSTALL.UTF-8: Likewise.
4343
4344         pread: fix compilation on glibc
4345         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4346         Reported by Ralf Wildenhues.
4347
4348         dirent: fix test failure
4349         * lib/dirent.in.h (includes): Guarantee ino_t.
4350         Reported by Ralf Wildenhues.
4351
4352 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4353
4354         linkat, renameat: avoid bad free
4355         * lib/at-func2.c (at_func2): Fix typo.
4356         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4357
4358 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4359
4360         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4361         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4362         to avoid failure of symlink test later.
4363
4364 2010-01-06  Eric Blake  <ebb9@byu.net>
4365
4366         stdio, unistd: guarantee ssize_t
4367         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4368         2008 are exposed when needed.
4369         * lib/stdio.in.h (includes): Likewise.
4370         Reported by Ralf Wildenhues.
4371
4372 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4373
4374         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4375         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4376         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4377
4378 2010-01-06  Jim Meyering  <meyering@redhat.com>
4379
4380         readtokens: this module *does* require xalloc.h
4381         It uses only functions that were omitted by the old syntax-check rule.
4382         * lib/readtokens.c: Include "xalloc.h" once again.
4383         * modules/readtokens (Depends-on): Add xalloc.
4384         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4385
4386 2010-01-05  Eric Blake  <ebb9@byu.net>
4387
4388         maint: support 'make announcement' from a VPATH build
4389         * top/maint.mk (announcement): Look for correct NEWS file.
4390
4391 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4392
4393         utimens (fdutimens): ignore a negative FD, per contract
4394         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4395         when we have a valid file descriptor.  Otherwise, using a brand
4396         new glibc (with just-patched futimens that now fails with EBADF)
4397         would cause this function to fail with ENOSYS.
4398         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4399         See also http://bugzilla.redhat.com/552320.
4400
4401 2010-01-05  Eric Blake  <ebb9@byu.net>
4402
4403         strcase: document what it provides
4404         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4405         gnulib module.
4406         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4407         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4408
4409 2010-01-05  Jim Meyering  <meyering@redhat.com>
4410
4411         maint: remove useless inclusions of "xalloc.h"
4412         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4413         * lib/readtokens.c: Likewise.
4414         * lib/same.c: Likewise.
4415         * modules/getloadavg (Depends-on): Remove xalloc.
4416         * modules/readtokens: Likewise.
4417         * modules/same: Likewise.
4418
4419         maint.mk: include 4 more function names in alloca.h-checking regexp
4420         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4421         regexp.  Before, we would give a false-positive (saying alloca.h
4422         is included unnecessarily) when the only uses involved omitted symbols.
4423
4424         xalloc.h: use consistent formatting
4425         * lib/xalloc.h: Move declarations to start in the first column.
4426
4427 2010-01-05  Eric Blake  <ebb9@byu.net>
4428
4429         mkdir: avoid xalloc
4430         * lib/mkdir.c (includes): Drop unused header.
4431         Reported by John W. Eaton.
4432
4433 2010-01-04  Jim Meyering  <meyering@redhat.com>
4434
4435         nl_langinfo: avoid configure-time syntax error
4436         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4437         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4438         the empty string.  Don't let that provoke a shell syntax error.
4439
4440         regcomp, regexec, fnmatch: avoid array bounds read error
4441         * lib/regcomp.c (build_equiv_class): From glibc:
4442         Use only the low 24 bits of a findidx return value as an index
4443         into the weights array.  Patch by Ulrich Drepper:
4444         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4445         * lib/regexec.c (check_node_accept_bytes): Likewise.
4446         * lib/fnmatch_loop.c (FCT): Likewise.
4447
4448         regcomp: skip collseq lookup when there are no rules
4449         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4450         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4451
4452         regcomp: recognize ill-formed { } expressions
4453         * lib/regcomp.c (parse_dup_op): From glibc:
4454         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4455
4456         regcomp: fix typo in comment
4457         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4458         s/satisfy/satisfies/.
4459
4460         regcomp: sync from glibc: remove dead store
4461         * lib/regcomp.c (duplicate_node_closure): Remove useless
4462         search_duplicated_node call and dead store.
4463
4464         regcomp: sync from glibc; always use nl_langinfo
4465         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4466         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4467         * modules/regex (Depends-on): Add nl_langinfo.
4468
4469 2010-01-04  Eric Blake  <ebb9@byu.net>
4470
4471         fdopendir: fix configure test
4472         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4473
4474 2010-01-01  Bruno Haible  <bruno@clisp.org>
4475
4476         wchar: Remove unused configure check.
4477         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4478
4479 2010-01-01  Eric Blake  <ebb9@byu.net>
4480
4481         headers: make check of system header explicit
4482         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4483         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4484         ourselves.
4485         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4486         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4487         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4488         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4489         internals.
4490         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4491         missing.
4492         Suggested by Bruno Haible.
4493
4494 2010-01-01  Jim Meyering  <meyering@redhat.com>
4495
4496         ChangeLog: tweak to eliminate unnecessary copyright line
4497         * ChangeLog: Remove a copyright line that was mistakenly updated
4498         by today's update-copyright run.  Reported by Eric Blake.
4499
4500         test-update-copyright: don't let envvar setting cause test failure
4501         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4502
4503 2010-01-01  Bruno Haible  <bruno@clisp.org>
4504
4505         localename: Avoid gcc warning.
4506         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4507         function if it is not used.
4508
4509 2010-01-01  Jim Meyering  <meyering@redhat.com>
4510
4511         update nearly all FSF copyright year lists to include 2010
4512         Use the same procedure as for 2009, outlined in
4513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4514
4515         version-etc: set COPYRIGHT_YEAR to 2010
4516         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4517
4518 2009-12-31  Eric Blake  <ebb9@byu.net>
4519
4520         doc: correct availability of cygwin 1.5.x getopt
4521         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4522         variables.
4523         * doc/posix-functions/opterr.texi (opterr): Likewise.
4524         * doc/posix-functions/optind.texi (optind): Likewise.
4525         * doc/posix-functions/optopt.texi (optopt): Likewise.
4526         * doc/posix-functions/tzname.texi (tzname): Likewise.
4527
4528         openat: update maintainer
4529         * modules/openat (Maintainer): Add myself.
4530
4531         utimens: avoid shadowing warning
4532         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4533         buffers into one, to avoid shadowing, as well as avoiding a
4534         redundant stat.
4535         Reported by Jim Meyering.
4536
4537         test-dup2: avoid compiler warning
4538         * tests/test-dup2.c (is_inheritable): Only define if used.
4539
4540 2010-01-01  Bruno Haible  <bruno@clisp.org>
4541
4542         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4543         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4544         defined, use wctomb instead of wcrtomb.
4545
4546 2010-01-01  Bruno Haible  <bruno@clisp.org>
4547
4548         iconv: Reject native Solaris iconv.
4549         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4550         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4551
4552 2009-12-31  Bruno Haible  <bruno@clisp.org>
4553
4554         * tests/test-signal.c (main): Remove test of 'SIG'.
4555
4556 2009-12-31  Bruno Haible  <bruno@clisp.org>
4557
4558         spawn: Fix incomplete fix.
4559         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4560         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4561         warnings for GNULIB_POSIXCHECK again.
4562         Reported by Eric Blake.
4563
4564 2009-12-31  Bruno Haible  <bruno@clisp.org>
4565
4566         Avoid namespace pollution on glibc systems.
4567         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4568         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4569         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4570         glibc systems.
4571
4572 2009-12-31  Bruno Haible  <bruno@clisp.org>
4573
4574         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4575         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4576         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4577         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4578         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4579         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4580         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4581
4582 2009-12-31  Bruno Haible  <bruno@clisp.org>
4583
4584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4585         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4586         afterwards.
4587
4588 2009-12-31  Bruno Haible  <bruno@clisp.org>
4589
4590         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4591         SYS_UTSNAME_H.
4592
4593 2009-12-31  Bruno Haible  <bruno@clisp.org>
4594
4595         spawn: Fix misapplied patch.
4596         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4597         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4598         warnings for GNULIB_POSIXCHECK.
4599
4600 2009-12-31  Bruno Haible  <bruno@clisp.org>
4601
4602         times: Update after sys_times changed.
4603         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4604         * modules/times (Files): Add it.
4605         (configure.ac): Invoke gl_FUNC_TIMES.
4606
4607 2009-12-31  Bruno Haible  <bruno@clisp.org>
4608
4609         Use AC_C_INLINE where necessary.
4610         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4611         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4613         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4614         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4615         * m4/mbiter.m4 (gl_MBITER): Likewise.
4616         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4617         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4618         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4619         * modules/u64 (configure.ac): Likewise.
4620
4621 2009-12-31  Bruno Haible  <bruno@clisp.org>
4622
4623         Use AC_C_INLINE instead of module 'inline' where possible.
4624         * modules/inline (Description): Clarify purpose.
4625         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4626         * modules/count-one-bits (Depends-on): Remove inline.
4627         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4628         * modules/openat (Depends-on): Remove inline.
4629         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4630         instead of depending on module 'inline'.
4631         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4632         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4633         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4634         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4635         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4636         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4637         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4638         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4639         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4640         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4641         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4642         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4643         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4644         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4645         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4646         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4647         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4648         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4649         Likewise.
4650         * modules/unictype/property-ascii-hex-digit (Depends-on,
4651         configure.ac): Likewise.
4652         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4653         configure.ac): Likewise.
4654         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4655         configure.ac): Likewise.
4656         * modules/unictype/property-bidi-block-separator (Depends-on,
4657         configure.ac): Likewise.
4658         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4659         configure.ac): Likewise.
4660         * modules/unictype/property-bidi-common-separator (Depends-on,
4661         configure.ac): Likewise.
4662         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4663         Likewise.
4664         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4665         configure.ac): Likewise.
4666         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4667         configure.ac): Likewise.
4668         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4669         configure.ac): Likewise.
4670         * modules/unictype/property-bidi-european-digit (Depends-on,
4671         configure.ac): Likewise.
4672         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4673         configure.ac): Likewise.
4674         * modules/unictype/property-bidi-left-to-right (Depends-on,
4675         configure.ac): Likewise.
4676         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4677         configure.ac): Likewise.
4678         * modules/unictype/property-bidi-other-neutral (Depends-on,
4679         configure.ac): Likewise.
4680         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4681         Likewise.
4682         * modules/unictype/property-bidi-segment-separator (Depends-on,
4683         configure.ac): Likewise.
4684         * modules/unictype/property-bidi-whitespace (Depends-on,
4685         configure.ac): Likewise.
4686         * modules/unictype/property-combining (Depends-on, configure.ac):
4687         Likewise.
4688         * modules/unictype/property-composite (Depends-on, configure.ac):
4689         Likewise.
4690         * modules/unictype/property-currency-symbol (Depends-on,
4691         configure.ac): Likewise.
4692         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4693         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4694         Likewise.
4695         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4696         configure.ac): Likewise.
4697         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4698         Likewise.
4699         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4700         Likewise.
4701         * modules/unictype/property-extender (Depends-on, configure.ac):
4702         Likewise.
4703         * modules/unictype/property-format-control (Depends-on, configure.ac):
4704         Likewise.
4705         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4706         Likewise.
4707         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4708         Likewise.
4709         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4710         Likewise.
4711         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4712         Likewise.
4713         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4714         Likewise.
4715         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4716         Likewise.
4717         * modules/unictype/property-id-start (Depends-on, configure.ac):
4718         Likewise.
4719         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4720         Likewise.
4721         * modules/unictype/property-ids-binary-operator (Depends-on,
4722         configure.ac): Likewise.
4723         * modules/unictype/property-ids-trinary-operator (Depends-on,
4724         configure.ac): Likewise.
4725         * modules/unictype/property-ignorable-control (Depends-on,
4726         configure.ac): Likewise.
4727         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4728         Likewise.
4729         * modules/unictype/property-join-control (Depends-on, configure.ac):
4730         Likewise.
4731         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4732         Likewise.
4733         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4734         Likewise.
4735         * modules/unictype/property-logical-order-exception (Depends-on,
4736         configure.ac): Likewise.
4737         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4738         Likewise.
4739         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4740         * modules/unictype/property-non-break (Depends-on, configure.ac):
4741         Likewise.
4742         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4743         Likewise.
4744         * modules/unictype/property-numeric (Depends-on, configure.ac):
4745         Likewise.
4746         * modules/unictype/property-other-alphabetic (Depends-on,
4747         configure.ac): Likewise.
4748         * modules/unictype/property-other-default-ignorable-code-point
4749         (Depends-on, configure.ac): Likewise.
4750         * modules/unictype/property-other-grapheme-extend (Depends-on,
4751         configure.ac): Likewise.
4752         * modules/unictype/property-other-id-continue (Depends-on,
4753         configure.ac): Likewise.
4754         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4755         Likewise.
4756         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4757         Likewise.
4758         * modules/unictype/property-other-math (Depends-on, configure.ac):
4759         Likewise.
4760         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4761         Likewise.
4762         * modules/unictype/property-paired-punctuation (Depends-on,
4763         configure.ac): Likewise.
4764         * modules/unictype/property-paragraph-separator (Depends-on,
4765         configure.ac): Likewise.
4766         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4767         Likewise.
4768         * modules/unictype/property-pattern-white-space (Depends-on,
4769         configure.ac): Likewise.
4770         * modules/unictype/property-private-use (Depends-on, configure.ac):
4771         Likewise.
4772         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4773         Likewise.
4774         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4775         Likewise.
4776         * modules/unictype/property-radical (Depends-on, configure.ac):
4777         Likewise.
4778         * modules/unictype/property-sentence-terminal (Depends-on,
4779         configure.ac): Likewise.
4780         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4781         Likewise.
4782         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4783         * modules/unictype/property-terminal-punctuation (Depends-on,
4784         configure.ac): Likewise.
4785         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4786         Likewise.
4787         * modules/unictype/property-unassigned-code-value (Depends-on,
4788         configure.ac): Likewise.
4789         * modules/unictype/property-unified-ideograph (Depends-on,
4790         configure.ac): Likewise.
4791         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4792         Likewise.
4793         * modules/unictype/property-variation-selector (Depends-on,
4794         configure.ac): Likewise.
4795         * modules/unictype/property-white-space (Depends-on, configure.ac):
4796         Likewise.
4797         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4798         Likewise.
4799         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4800         Likewise.
4801         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4802         Likewise.
4803         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4804         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4805         Likewise.
4806
4807 2009-12-31  Bruno Haible  <bruno@clisp.org>
4808
4809         Remove unnecessary AC_C_INLINE invocation.
4810         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4811         since 2009-08-21.
4812
4813 2009-12-31  Jim Meyering  <meyering@redhat.com>
4814
4815         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4816         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4817         With this change, we can all remove the gpg_key_ID = ... definition
4818         from our respective cfg.mk files.
4819
4820         maint.mk: create announcement template in ~/, not in /tmp
4821         * top/maint.mk (emit_upload_commands): Adjust.
4822         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4823         Remove temporary file, .ci-msg.
4824
4825 2009-12-31  Eric Blake  <ebb9@byu.net>
4826
4827         link-warning: always build headers with link warnings
4828         * modules/arpa_inet (Makefile.am): Always build replacement
4829         header.
4830         * modules/ctype (Makefile.am): Likewise.
4831         * modules/dirent (Makefile.am): Likewise.
4832         * modules/inttypes (Makefile.am): Likewise.
4833         * modules/langinfo (Makefile.am): Likewise.
4834         * modules/locale (Makefile.am): Likewise.
4835         * modules/spawn (Makefile.am): Likewise.
4836         * modules/sys_file (Makefile.am): Likewise.
4837         * modules/sys_ioctl (Makefile.am): Likewise.
4838         * modules/sys_select (Makefile.am): Likewise.
4839         * modules/sys_socket (Makefile.am): Likewise.
4840         * modules/sys_times (Makefile.am): Likewise.
4841         * modules/sys_utsname (Makefile.am): Likewise.
4842         * modules/sys_wait (Makefile.am): Likewise.
4843         * modules/wchar (Makefile.am): Likewise.
4844         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4845         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4846         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4847         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4848         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4849         Likewise.
4850         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4852         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4853         Likewise.
4854         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4855         Likewise.
4856         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4857         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4858         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4860         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4861         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4862         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4863         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4864         (gl_WCHAR_H_DEFAULTS): Likewise.
4865
4866 2009-12-31  Eric Blake  <ebb9@byu.net>
4867
4868         signal, spawn: use link warnings
4869         * lib/signal.in.h (sigset_t): Make unconditional.
4870         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4871         (sigpending, sigprocmask, sigaction): Add link warnings.
4872         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4873         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4874         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4875         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4876         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4877         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4878         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4879         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4880         (posix_spawn_file_actions_destroy)
4881         (posix_spawn_file_actions_addopen)
4882         (posix_spawn_file_actions_addclose)
4883         (posix_spawn_file_actions_adddup2): Likewise.
4884         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4885         * tests/test-signal.c (main): Enhance test.
4886
4887         spawn: improve wrapper support
4888         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4889         (gl_SPAWN_H_DEFAULTS): New defaults.
4890         * modules/spawn (Makefile.am): Substitute them.
4891         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4892         Only declare if missing or broken.
4893
4894         sys_times, sys_utsname: use include_next
4895         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4896         header.
4897         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4898         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4899         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4900         * modules/sys_times (Depends-on): Add include_next.
4901         (Makefile.am): Substitute additional values.
4902         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4903         * lib/sys_times.in.h (includes): Include native header, if
4904         available.
4905         * lib/sys_utsname.in.h (includes): Likewise.
4906         * tests/test-sys_times.c (main): Enhance test.
4907
4908         fdutimensat: revert prior patch
4909         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4910         utimens.h.
4911         Reported by Bruno Haible.
4912
4913 2009-12-30  Eric Blake  <ebb9@byu.net>
4914
4915         sys_wait: drop link-warning dependency
4916         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4917         link-warning efforts.
4918         * lib/sys_wait.in.h: Likewise.
4919
4920         fdutimensat: remove bogus dependency
4921         * modules/fdutimensat (Depends-on): Drop inline.
4922
4923         unistd: fix typo
4924         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4925
4926 2009-12-30  Bruno Haible  <bruno@clisp.org>
4927
4928         Fix compilation error with Solaris cc.
4929         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4930         * lib/unicase/u16-is-invariant.c: Likewise.
4931         * lib/unicase/u32-is-invariant.c: Likewise.
4932         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4933
4934 2009-12-30  Bruno Haible  <bruno@clisp.org>
4935
4936         Fix test crash.
4937         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4938         locales.
4939         Reported by Simon Josefsson <simon@josefsson.org>.
4940
4941 2009-12-30  Bruno Haible  <bruno@clisp.org>
4942
4943         Fix compilation error on most platforms.
4944         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4945         Reported by Simon Josefsson <simon@josefsson.org>
4946         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4947
4948 2009-12-30  Eric Blake  <ebb9@byu.net>
4949
4950         futimens, utimensat: work around ntfs-3g bug
4951         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4952         a ctime bug is present, and expand workaround to cover ntfs-3g.
4953         * lib/utimens.c (fdutimens, lutimens): Likewise.
4954         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4955         (validate_timespec): Adjust return value.
4956         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4957         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4958         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4959
4960 2009-12-29  Eric Blake  <ebb9@byu.net>
4961
4962         link-warning: make usage consistent
4963         * modules/ctype (Depends-on): Add link-warning.
4964         (Makefile.am): Update rules accordingly.
4965         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4966         * modules/locale (Depends-on, Makefile.am): Likewise.
4967         * modules/sys_file (Makefile.am): Likewise.
4968         * modules/getopt-posix (Makefile.am): Delete unused link warning
4969         efforts.
4970         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4971         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4972         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4973         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4974
4975         stdio: remove unused variables
4976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4977         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4978         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4979
4980         tests: test more substitute headers
4981         * modules/ctype-tests: New file.
4982         * modules/dirent-tests: Likewise.
4983         * modules/spawn-tests: Likewise.
4984         * modules/sys_file-tests: Likewise.
4985         * modules/sys_ioctl-tests: Likewise.
4986         * modules/sys_wait-tests: Likewise.
4987         * tests/test-ctype.c: Likewise.
4988         * tests/test-dirent.c: Likewise.
4989         * tests/test-spawn.c: Likewise.
4990         * tests/test-sys_file.c: Likewise.
4991         * tests/test-sys_ioctl.c: Likewise.
4992         * tests/test-sys_wait.c: Likewise.
4993         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4994         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4995         whether or not flock is in use.
4996
4997         tests: remove License section from module
4998         * modules/arpa_inet-tests: Remove unneeded section.
4999         * modules/byteswap-tests: Likewise.
5000         * modules/ceilf-tests: Likewise.
5001         * modules/ceill-tests: Likewise.
5002         * modules/crypto/des-tests: Likewise.
5003         * modules/crypto/gc-arcfour-tests: Likewise.
5004         * modules/crypto/gc-arctwo-tests: Likewise.
5005         * modules/crypto/gc-des-tests: Likewise.
5006         * modules/crypto/gc-hmac-md5-tests: Likewise.
5007         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5008         * modules/crypto/gc-md2-tests: Likewise.
5009         * modules/crypto/gc-md4-tests: Likewise.
5010         * modules/crypto/gc-md5-tests: Likewise.
5011         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5012         * modules/crypto/gc-rijndael-tests: Likewise.
5013         * modules/crypto/gc-sha1-tests: Likewise.
5014         * modules/crypto/gc-tests: Likewise.
5015         * modules/crypto/md2-tests: Likewise.
5016         * modules/crypto/md4-tests: Likewise.
5017         * modules/fcntl-h-tests: Likewise.
5018         * modules/floorf-tests: Likewise.
5019         * modules/floorl-tests: Likewise.
5020         * modules/frexp-nolibm-tests: Likewise.
5021         * modules/frexp-tests: Likewise.
5022         * modules/frexpl-nolibm-tests: Likewise.
5023         * modules/frexpl-tests: Likewise.
5024         * modules/getaddrinfo-tests: Likewise.
5025         * modules/inttypes-tests: Likewise.
5026         * modules/isfinite-tests: Likewise.
5027         * modules/isinf-tests: Likewise.
5028         * modules/ldexpl-tests: Likewise.
5029         * modules/locale-tests: Likewise.
5030         * modules/math-tests: Likewise.
5031         * modules/netdb-tests: Likewise.
5032         * modules/netinet_in-tests: Likewise.
5033         * modules/printf-frexp-tests: Likewise.
5034         * modules/printf-frexpl-tests: Likewise.
5035         * modules/priv-set-tests: Likewise.
5036         * modules/random_r-tests: Likewise.
5037         * modules/round-tests: Likewise.
5038         * modules/roundf-tests: Likewise.
5039         * modules/roundl-tests: Likewise.
5040         * modules/search-tests: Likewise.
5041         * modules/select-tests: Likewise.
5042         * modules/signal-tests: Likewise.
5043         * modules/stdbool-tests: Likewise.
5044         * modules/stddef-tests: Likewise.
5045         * modules/stdint-tests: Likewise.
5046         * modules/stdio-tests: Likewise.
5047         * modules/stdlib-tests: Likewise.
5048         * modules/string-tests: Likewise.
5049         * modules/strings-tests: Likewise.
5050         * modules/sys_select-tests: Likewise.
5051         * modules/sys_socket-tests: Likewise.
5052         * modules/sys_stat-tests: Likewise.
5053         * modules/sys_time-tests: Likewise.
5054         * modules/sys_utsname-tests: Likewise.
5055         * modules/sysexits-tests: Likewise.
5056         * modules/time-tests: Likewise.
5057         * modules/trunc-tests: Likewise.
5058         * modules/truncf-tests: Likewise.
5059         * modules/truncl-tests: Likewise.
5060         * modules/tsearch-tests: Likewise.
5061         * modules/unistd-tests: Likewise.
5062         * modules/wchar-tests: Likewise.
5063         * modules/wctype-tests: Likewise.
5064
5065         tests: fix license on several tests
5066         * tests/test-des.c: Update to GPLv3+.
5067         * tests/test-flock.c: Likewise.
5068         * tests/test-fsync.c: Likewise.
5069         * tests/test-futimens.h: Likewise.
5070         * tests/test-gc-arcfour.c: Likewise.
5071         * tests/test-gc-arctwo.c: Likewise.
5072         * tests/test-gc-des.c: Likewise.
5073         * tests/test-gc-hmac-md5.c: Likewise.
5074         * tests/test-gc-hmac-sha1.c: Likewise.
5075         * tests/test-gc-md2.c: Likewise.
5076         * tests/test-gc-md4.c: Likewise.
5077         * tests/test-gc-md5.c: Likewise.
5078         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5079         * tests/test-gc-rijndael.c: Likewise.
5080         * tests/test-gc-sha1.c: Likewise.
5081         * tests/test-gc.c: Likewise.
5082         * tests/test-getcwd.c: Likewise.
5083         * tests/test-link.c: Likewise.
5084         * tests/test-link.h: Likewise.
5085         * tests/test-lutimens.h: Likewise.
5086         * tests/test-md2.c: Likewise.
5087         * tests/test-md4.c: Likewise.
5088         * tests/test-mkdir.h: Likewise.
5089         * tests/test-rename.c: Likewise.
5090         * tests/test-rename.h: Likewise.
5091         * tests/test-safe-alloc.c: Likewise.
5092         * tests/test-utimens-common.h: Likewise.
5093         * tests/test-utimens.h: Likewise.
5094
5095         maint: sync license texts
5096         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5097         * doc/gpl-3.0.texi: Revert copyright year update.
5098         * doc/lgpl-3.0.texi: Likewise.
5099
5100 2009-12-29  Jim Meyering  <meyering@redhat.com>
5101
5102         update nearly all FSF copyright year lists to include 2009
5103         The files named by the following are exempted:
5104             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5105               test -f "$dst" && { echo "$dst"; continue; }
5106               test -d "$dst" || continue
5107               echo "$dst"/$(basename "$src")
5108             done > exempt
5109             git ls-files tests/unictype >> exempt
5110         In the remaining files, convert to all-interval notation if
5111         - there is already at least one year interval like 2000-2003
5112         - the file is maintained by me
5113         - the file is in lib/uni*/, where that style already prevails
5114         Otherwise, use update-copyright's default.
5115
5116 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5117         and Eric Blake  <ebb9@byu.net>
5118
5119         tests: don't require debug system() to pass
5120         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5121         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5122         * tests/test-unlink.h (test_unlink_func): Likewise.
5123         * tests/test-fstatat.c (main): ...into callers.
5124         * tests/test-lstat.c (main): Likewise.
5125         * tests/test-rmdir.c (main): Likewise.
5126         * tests/test-unlink.c (main): Likewise.
5127         * tests/test-unlinkat.c (main): Likewise.
5128         * tests/test-areadlink-with-size.c (main): Don't require a
5129         debug-only system call to pass, aiding cross-testing to mingw.
5130         * tests/test-areadlink.c (main): Likewise.
5131         * tests/test-areadlinkat-with-size.c (main): Likewise.
5132         * tests/test-areadlinkat.c (main): Likewise.
5133         * tests/test-canonicalize-lgpl.c (main): Likewise.
5134         * tests/test-canonicalize.c (main): Likewise.
5135         * tests/test-chown.c (main): Likewise.
5136         * tests/test-fchownat.c (main): Likewise.
5137         * tests/test-lchown.c (main): Likewise.
5138         * tests/test-fdutimensat.c (main): Likewise.
5139         * tests/test-futimens.c (main): Likewise.
5140         * tests/test-link.c (main): Likewise.
5141         * tests/test-linkat.c (main): Likewise.
5142         * tests/test-mkdir.c (main): Likewise.
5143         * tests/test-mkdirat.c (main): Likewise.
5144         * tests/test-mkfifo.c (main): Likewise.
5145         * tests/test-mkfifoat.c (main): Likewise.
5146         * tests/test-mknod.c (main): Likewise.
5147         * tests/test-readlink.c (main): Likewise.
5148         * tests/test-remove.c (main): Likewise.
5149         * tests/test-rename.c (main): Likewise.
5150         * tests/test-renameat.c (main): Likewise.
5151         * tests/test-symlink.c (main): Likewise.
5152         * tests/test-symlinkat.c (main): Likewise.
5153         * tests/test-utimens.c (main): Likewise.
5154         * tests/test-utimensat.c (main): Likewise.
5155
5156 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5157
5158         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5159         on $(UNUSED_PARAMETER_H) to avoid build failure.
5160
5161 2009-12-28  Jim Meyering  <meyering@redhat.com>
5162
5163         update-copyright: you may specify a max. line length other than 72
5164         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5165
5166         maint: use consistent FSF copyright line syntax
5167         * lib/posixtm.c: Add missing comma in FSF copyright line.
5168         * lib/posixtm.h: Likewise.
5169         * lib/getugroups.c: Add missing ", Inc.".
5170
5171         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5172         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5173         FSF copyright line.  Remove trailing blanks.
5174
5175 2009-12-28  Eric Blake  <ebb9@byu.net>
5176
5177         test-dup2: reduce dependencies
5178         * modules/cloexec (Configure.ac): Set witness.
5179         * modules/dup2-tests (Depends-on): Drop cloexec.
5180         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5181         not present.
5182         Suggested by Bruno Haible.
5183
5184 2009-12-26  Bruno Haible  <bruno@clisp.org>
5185
5186         Remove an unneeded dependency.
5187         * modules/fseterr (Depends-on): Remove dup2.
5188
5189 2009-12-26  Eric Blake  <ebb9@byu.net>
5190
5191         tests: use macros.h in more places
5192         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5193         (ASSERT_STREAM): Provide default of stderr.
5194         * tests/test-dirent-safer.c: Include macros.h, using alternate
5195         stream for assertions.
5196         * tests/test-dup-safer.c: Likewise.
5197         * tests/test-freopen-safer.c: Likewise.
5198         * tests/test-getopt.c: Likewise.
5199         * tests/test-openat-safer.c: Likewise.
5200         * tests/test-pipe.c: Likewise.
5201         * tests/test-popen-safer.c: Likewise.
5202         * modules/dirent-safer-tests (Files): Include macros.h.
5203         * modules/unistd-safer-tests (Files): Likewise.
5204         * modules/freopen-safer-tests (Files): Likewise.
5205         * modules/getopt-posix-tests (Files): Likewise.
5206         * modules/openat-safer-tests (Files): Likewise.
5207         * modules/pipe-tests (Files): Likewise.
5208
5209 2009-12-26  Bruno Haible  <bruno@clisp.org>
5210
5211         javacomp: Portability fix.
5212         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5213         that it also works on Solaris.
5214
5215 2009-12-26  Bruno Haible  <bruno@clisp.org>
5216
5217         localename: Fix storage allocation of gl_locale_name_thread's result.
5218         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5219         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5220         all platforms that have 'uselocale'.
5221         (gl_locale_name_thread_unsafe): New function, extracted from
5222         gl_locale_name_thread.
5223         (gl_locale_name_thread): Call struniq on all platforms that have
5224         'uselocale'.
5225         * tests/test-localename.c (test_locale_name_thread): Check that the
5226         resulting strings are permanently allocated.
5227         * modules/localename-tests (Depends-on): Add strdup.
5228
5229 2009-12-26  Bruno Haible  <bruno@clisp.org>
5230
5231         * tests/test-localename.c (categories): Fill in the strings.
5232
5233 2009-12-26  Jim Meyering  <meyering@redhat.com>
5234
5235         isdir: complete the removal of m4/isdir.m4
5236         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5237
5238         isdir: clean up, since at least grep still uses it
5239         * lib/isdir.c: Include "isdir.h".
5240         (S_ISDIR): Remove now-unneeded definition.
5241         * modules/isdir (Files): Add lib/isdir.h.
5242         * lib/isdir.h: New file, with declaration.
5243         * m4/isdir.m4: Remove file -- unneeded.
5244
5245 2009-12-25  Bruno Haible  <bruno@clisp.org>
5246
5247         selinux-h: Make generated .h files standalone.
5248         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5249         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5250         * lib/se-selinux.in.h: Likewise.
5251         * modules/selinux-h (Depends-on): Add unused-parameter.
5252         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5253         selinux/selinux.h and selinux/context.h.
5254         Suggested by Eric Blake.
5255
5256 2009-12-25  Bruno Haible  <bruno@clisp.org>
5257
5258         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5259         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5260         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5261         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5262         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5263
5264 2009-12-24  Bruno Haible  <bruno@clisp.org>
5265
5266         openat: Fix warning.
5267         * lib/openat-proc.c: Include <unistd.h>.
5268
5269 2009-12-24  Bruno Haible  <bruno@clisp.org>
5270
5271         New module 'unused-parameter'.
5272         * build-aux/unused-parameter.h: New file, extracted from earlier
5273         gnulib-common.m4.
5274         * modules/unused-parameter: New file.
5275         * lib/unistr.h: Include unused-parameter.h.
5276         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5277         _GL_UNUSED.
5278         * modules/unistr/base (Depends-on): Add unused-parameter.
5279
5280 2009-12-24  Bruno Haible  <bruno@clisp.org>
5281
5282         Add missing dependencies to 'extensions' module.
5283         * m4/extensions.m4: Add comment.
5284         * modules/accept4 (Depends-on): Add extensions.
5285         * modules/dup3 (Depends-on): Likewise.
5286         * modules/fcntl (Depends-on): Likewise.
5287         * modules/futimens (Depends-on): Likewise.
5288         * modules/mknod (Depends-on): Likewise.
5289         * modules/pipe2 (Depends-on): Likewise.
5290         * modules/stat-time (Depends-on): Likewise.
5291         * modules/strcasestr-simple (Depends-on): Likewise.
5292         * modules/strsignal (Depends-on): Likewise.
5293         * modules/utimensat (Depends-on): Likewise.
5294         * modules/localcharset (Depends-on): Likewise. Needed because of
5295         gl_FCNTL_O_FLAGS.
5296         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5297         AC_TYPE_MBSTATE_T.
5298         * modules/wcsnrtombs (Depends-on): Likewise.
5299         * modules/wcsrtombs (Depends-on): Likewise.
5300
5301 2009-12-24  Bruno Haible  <bruno@clisp.org>
5302
5303         binary-io: Avoid gcc warning due to SET_BINARY.
5304         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5305         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5306
5307 2009-12-24  Bruno Haible  <bruno@clisp.org>
5308
5309         Avoid future namespace pollution on glibc systems.
5310         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5311         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5312         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5313         glibc systems.
5314
5315 2009-12-24  Bruno Haible  <bruno@clisp.org>
5316
5317         Refactor common macros used in tests.
5318         * tests/macros.h: New file.
5319         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5320         and/or <stdlib.h>, if appropriate.
5321         (ASSERT, SIZEOF): Remove macros.
5322         * tests/test-areadlink-with-size.c: Likewise.
5323         * tests/test-areadlinkat.c: Likewise.
5324         * tests/test-areadlinkat-with-size.c: Likewise.
5325         * tests/test-argmatch.c: Likewise.
5326         * tests/test-argv-iter.c: Likewise.
5327         * tests/test-array-mergesort.c: Likewise.
5328         * tests/test-array_list.c: Likewise.
5329         * tests/test-array_oset.c: Likewise.
5330         * tests/test-avltree_list.c: Likewise.
5331         * tests/test-avltree_oset.c: Likewise.
5332         * tests/test-avltreehash_list.c: Likewise.
5333         * tests/test-base64.c: Likewise.
5334         * tests/test-binary-io.c: Likewise.
5335         * tests/test-bitrotate.c: Likewise.
5336         * tests/test-btowc.c: Likewise.
5337         * tests/test-byteswap.c: Likewise.
5338         * tests/test-c-ctype.c: Likewise.
5339         * tests/test-c-stack.c: Likewise.
5340         * tests/test-c-strcasecmp.c: Likewise.
5341         * tests/test-c-strcasestr.c: Likewise.
5342         * tests/test-c-strncasecmp.c: Likewise.
5343         * tests/test-c-strstr.c: Likewise.
5344         * tests/test-canonicalize-lgpl.c: Likewise.
5345         * tests/test-canonicalize.c: Likewise.
5346         * tests/test-carray_list.c: Likewise.
5347         * tests/test-ceilf1.c: Likewise.
5348         * tests/test-ceilf2.c: Likewise.
5349         * tests/test-ceill.c: Likewise.
5350         * tests/test-chown.c: Likewise.
5351         * tests/test-cloexec.c: Likewise.
5352         * tests/test-copy-acl.c: Likewise.
5353         * tests/test-copy-file.c: Likewise.
5354         * tests/test-count-one-bits.c: Likewise.
5355         * tests/test-dprintf-posix.c: Likewise.
5356         * tests/test-dup2.c: Likewise.
5357         * tests/test-dup3.c: Likewise.
5358         * tests/test-duplocale.c: Likewise.
5359         * tests/test-fbufmode.c: Likewise.
5360         * tests/test-fchdir.c: Likewise.
5361         * tests/test-fchownat.c: Likewise.
5362         * tests/test-fcntl-safer.c: Likewise.
5363         * tests/test-fcntl.c: Likewise.
5364         * tests/test-fdopendir.c: Likewise.
5365         * tests/test-fdutimensat.c: Likewise.
5366         * tests/test-fflush2.c: Likewise.
5367         * tests/test-file-has-acl.c: Likewise.
5368         * tests/test-filevercmp.c: Likewise.
5369         * tests/test-flock.c: Likewise.
5370         * tests/test-floorf1.c: Likewise.
5371         * tests/test-floorf2.c: Likewise.
5372         * tests/test-floorl.c: Likewise.
5373         * tests/test-fnmatch.c: Likewise.
5374         * tests/test-fopen.h: Likewise.
5375         * tests/test-fpending.c: Likewise.
5376         * tests/test-fprintf-posix.c: Likewise.
5377         * tests/test-fpurge.c: Likewise.
5378         * tests/test-freadable.c: Likewise.
5379         * tests/test-freadahead.c: Likewise.
5380         * tests/test-freading.c: Likewise.
5381         * tests/test-freadptr.c: Likewise.
5382         * tests/test-freadptr2.c: Likewise.
5383         * tests/test-freadseek.c: Likewise.
5384         * tests/test-freopen.c: Likewise.
5385         * tests/test-frexp.c: Likewise.
5386         * tests/test-frexpl.c: Likewise.
5387         * tests/test-fseek.c: Likewise.
5388         * tests/test-fseeko.c: Likewise.
5389         * tests/test-fstatat.c: Likewise.
5390         * tests/test-fstrcmp.c: Likewise.
5391         * tests/test-fsync.c: Likewise.
5392         * tests/test-ftell.c: Likewise.
5393         * tests/test-ftello.c: Likewise.
5394         * tests/test-func.c: Likewise.
5395         * tests/test-futimens.c: Likewise.
5396         * tests/test-fwritable.c: Likewise.
5397         * tests/test-fwriting.c: Likewise.
5398         * tests/test-getcwd.c: Likewise.
5399         * tests/test-getdate.c: Likewise.
5400         * tests/test-getdelim.c: Likewise.
5401         * tests/test-getdtablesize.c: Likewise.
5402         * tests/test-getgroups.c: Likewise.
5403         * tests/test-getline.c: Likewise.
5404         * tests/test-getndelim2.c: Likewise.
5405         * tests/test-glob.c: Likewise.
5406         * tests/test-hash.c: Likewise.
5407         * tests/test-i-ring.c: Likewise.
5408         * tests/test-iconv-utf.c: Likewise.
5409         * tests/test-iconv.c: Likewise.
5410         * tests/test-idpriv-drop.c: Likewise.
5411         * tests/test-idpriv-droptemp.c: Likewise.
5412         * tests/test-inet_ntop.c: Likewise.
5413         * tests/test-inet_pton.c: Likewise.
5414         * tests/test-isblank.c: Likewise.
5415         * tests/test-isfinite.c: Likewise.
5416         * tests/test-isinf.c: Likewise.
5417         * tests/test-isnan.c: Likewise.
5418         * tests/test-isnand.h: Likewise.
5419         * tests/test-isnanf.h: Likewise.
5420         * tests/test-isnanl.h: Likewise.
5421         * tests/test-lchown.c: Likewise.
5422         * tests/test-ldexpl.c: Likewise.
5423         * tests/test-link.c: Likewise.
5424         * tests/test-linkat.c: Likewise.
5425         * tests/test-linked_list.c: Likewise.
5426         * tests/test-linkedhash_list.c: Likewise.
5427         * tests/test-localename.c: Likewise.
5428         * tests/test-lseek.c: Likewise.
5429         * tests/test-lstat.c: Likewise.
5430         * tests/test-mbmemcasecmp.c: Likewise.
5431         * tests/test-mbmemcasecoll.c: Likewise.
5432         * tests/test-mbrtowc.c: Likewise.
5433         * tests/test-mbscasecmp.c: Likewise.
5434         * tests/test-mbscasestr1.c: Likewise.
5435         * tests/test-mbscasestr2.c: Likewise.
5436         * tests/test-mbscasestr3.c: Likewise.
5437         * tests/test-mbscasestr4.c: Likewise.
5438         * tests/test-mbschr.c: Likewise.
5439         * tests/test-mbscspn.c: Likewise.
5440         * tests/test-mbsinit.c: Likewise.
5441         * tests/test-mbsncasecmp.c: Likewise.
5442         * tests/test-mbsnrtowcs.c: Likewise.
5443         * tests/test-mbspbrk.c: Likewise.
5444         * tests/test-mbspcasecmp.c: Likewise.
5445         * tests/test-mbsrchr.c: Likewise.
5446         * tests/test-mbsrtowcs.c: Likewise.
5447         * tests/test-mbsspn.c: Likewise.
5448         * tests/test-mbsstr1.c: Likewise.
5449         * tests/test-mbsstr2.c: Likewise.
5450         * tests/test-mbsstr3.c: Likewise.
5451         * tests/test-memchr.c: Likewise.
5452         * tests/test-memchr2.c: Likewise.
5453         * tests/test-memcmp.c: Likewise.
5454         * tests/test-memmem.c: Likewise.
5455         * tests/test-memrchr.c: Likewise.
5456         * tests/test-mkdir.c: Likewise.
5457         * tests/test-mkdirat.c: Likewise.
5458         * tests/test-mkfifo.c: Likewise.
5459         * tests/test-mkfifoat.c: Likewise.
5460         * tests/test-mknod.c: Likewise.
5461         * tests/test-nanosleep.c: Likewise.
5462         * tests/test-nl_langinfo.c: Likewise.
5463         * tests/test-obstack-printf.c: Likewise.
5464         * tests/test-open.c: Likewise.
5465         * tests/test-openat.c: Likewise.
5466         * tests/test-pipe-filter-gi1.c: Likewise.
5467         * tests/test-pipe-filter-gi2-main.c: Likewise.
5468         * tests/test-pipe-filter-ii1.c: Likewise.
5469         * tests/test-pipe-filter-ii2-main.c: Likewise.
5470         * tests/test-pipe2.c: Likewise.
5471         * tests/test-popen.h: Likewise.
5472         * tests/test-posixtm.c: Likewise.
5473         * tests/test-pread.c: Likewise.
5474         * tests/test-printf-frexp.c: Likewise.
5475         * tests/test-printf-frexpl.c: Likewise.
5476         * tests/test-printf-posix.c: Likewise.
5477         * tests/test-priv-set.c: Likewise.
5478         * tests/test-quotearg.c: Likewise.
5479         * tests/test-random_r.c: Likewise.
5480         * tests/test-rawmemchr.c: Likewise.
5481         * tests/test-rbtree_list.c: Likewise.
5482         * tests/test-rbtree_oset.c: Likewise.
5483         * tests/test-rbtreehash_list.c: Likewise.
5484         * tests/test-readlink.c: Likewise.
5485         * tests/test-remove.c: Likewise.
5486         * tests/test-rename.c: Likewise.
5487         * tests/test-renameat.c: Likewise.
5488         * tests/test-rmdir.c: Likewise.
5489         * tests/test-round1.c: Likewise.
5490         * tests/test-roundf1.c: Likewise.
5491         * tests/test-roundl.c: Likewise.
5492         * tests/test-safe-alloc.c: Likewise.
5493         * tests/test-sameacls.c: Likewise.
5494         * tests/test-set-mode-acl.c: Likewise.
5495         * tests/test-setenv.c: Likewise.
5496         * tests/test-sigaction.c: Likewise.
5497         * tests/test-signbit.c: Likewise.
5498         * tests/test-sleep.c: Likewise.
5499         * tests/test-snprintf-posix.c: Likewise.
5500         * tests/test-snprintf.c: Likewise.
5501         * tests/test-sprintf-posix.c: Likewise.
5502         * tests/test-stat-time.c: Likewise.
5503         * tests/test-stat.c: Likewise.
5504         * tests/test-strcasestr.c: Likewise.
5505         * tests/test-strchrnul.c: Likewise.
5506         * tests/test-strerror.c: Likewise.
5507         * tests/test-striconv.c: Likewise.
5508         * tests/test-striconveh.c: Likewise.
5509         * tests/test-striconveha.c: Likewise.
5510         * tests/test-strsignal.c: Likewise.
5511         * tests/test-strstr.c: Likewise.
5512         * tests/test-strtod.c: Likewise.
5513         * tests/test-strverscmp.c: Likewise.
5514         * tests/test-symlink.c: Likewise.
5515         * tests/test-symlinkat.c: Likewise.
5516         * tests/test-trunc1.c: Likewise.
5517         * tests/test-trunc2.c: Likewise.
5518         * tests/test-truncf1.c: Likewise.
5519         * tests/test-truncf2.c: Likewise.
5520         * tests/test-truncl.c: Likewise.
5521         * tests/test-uname.c: Likewise.
5522         * tests/test-unlink.c: Likewise.
5523         * tests/test-unlinkat.c: Likewise.
5524         * tests/test-unsetenv.c: Likewise.
5525         * tests/test-usleep.c: Likewise.
5526         * tests/test-utimens.c: Likewise.
5527         * tests/test-utimensat.c: Likewise.
5528         * tests/test-vasnprintf-posix.c: Likewise.
5529         * tests/test-vasnprintf-posix2.c: Likewise.
5530         * tests/test-vasnprintf.c: Likewise.
5531         * tests/test-vasprintf-posix.c: Likewise.
5532         * tests/test-vasprintf.c: Likewise.
5533         * tests/test-vdprintf-posix.c: Likewise.
5534         * tests/test-vfprintf-posix.c: Likewise.
5535         * tests/test-vprintf-posix.c: Likewise.
5536         * tests/test-vsnprintf-posix.c: Likewise.
5537         * tests/test-vsnprintf.c: Likewise.
5538         * tests/test-vsprintf-posix.c: Likewise.
5539         * tests/test-wcrtomb.c: Likewise.
5540         * tests/test-wcsnrtombs.c: Likewise.
5541         * tests/test-wcsrtombs.c: Likewise.
5542         * tests/test-wctype.c: Likewise.
5543         * tests/test-wcwidth.c: Likewise.
5544         * tests/test-xfprintf-posix.c: Likewise.
5545         * tests/test-xmemdup0.c: Likewise.
5546         * tests/test-xprintf-posix.c: Likewise.
5547         * tests/test-xvasprintf.c: Likewise.
5548         * tests/unicase/test-locale-language.c: Likewise.
5549         * tests/unicase/test-mapping-part1.h: Likewise.
5550         * tests/unicase/test-predicate-part1.h: Likewise.
5551         * tests/unicase/test-u8-casecmp.c: Likewise.
5552         * tests/unicase/test-u8-casecoll.c: Likewise.
5553         * tests/unicase/test-u8-casefold.c: Likewise.
5554         * tests/unicase/test-u8-is-cased.c: Likewise.
5555         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5556         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5557         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5558         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5559         * tests/unicase/test-u8-tolower.c: Likewise.
5560         * tests/unicase/test-u8-totitle.c: Likewise.
5561         * tests/unicase/test-u8-toupper.c: Likewise.
5562         * tests/unicase/test-u16-casecmp.c: Likewise.
5563         * tests/unicase/test-u16-casecoll.c: Likewise.
5564         * tests/unicase/test-u16-casefold.c: Likewise.
5565         * tests/unicase/test-u16-is-cased.c: Likewise.
5566         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5567         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5568         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5569         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5570         * tests/unicase/test-u16-tolower.c: Likewise.
5571         * tests/unicase/test-u16-totitle.c: Likewise.
5572         * tests/unicase/test-u16-toupper.c: Likewise.
5573         * tests/unicase/test-u32-casecmp.c: Likewise.
5574         * tests/unicase/test-u32-casecoll.c: Likewise.
5575         * tests/unicase/test-u32-casefold.c: Likewise.
5576         * tests/unicase/test-u32-is-cased.c: Likewise.
5577         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5578         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5579         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5580         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5581         * tests/unicase/test-u32-tolower.c: Likewise.
5582         * tests/unicase/test-u32-totitle.c: Likewise.
5583         * tests/unicase/test-u32-toupper.c: Likewise.
5584         * tests/unicase/test-ulc-casecmp.c: Likewise.
5585         * tests/unicase/test-ulc-casecoll.c: Likewise.
5586         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5587         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5588         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5589         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5590         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5591         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5592         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5593         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5594         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5595         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5596         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5597         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5598         * tests/unictype/test-bidi_byname.c: Likewise.
5599         * tests/unictype/test-bidi_name.c: Likewise.
5600         * tests/unictype/test-bidi_of.c: Likewise.
5601         * tests/unictype/test-bidi_test.c: Likewise.
5602         * tests/unictype/test-block_list.c: Likewise.
5603         * tests/unictype/test-block_of.c: Likewise.
5604         * tests/unictype/test-block_test.c: Likewise.
5605         * tests/unictype/test-categ_and.c: Likewise.
5606         * tests/unictype/test-categ_and_not.c: Likewise.
5607         * tests/unictype/test-categ_byname.c: Likewise.
5608         * tests/unictype/test-categ_name.c: Likewise.
5609         * tests/unictype/test-categ_none.c: Likewise.
5610         * tests/unictype/test-categ_of.c: Likewise.
5611         * tests/unictype/test-categ_or.c: Likewise.
5612         * tests/unictype/test-categ_test_withtable.c: Likewise.
5613         * tests/unictype/test-combining.c: Likewise.
5614         * tests/unictype/test-decdigit.c: Likewise.
5615         * tests/unictype/test-digit.c: Likewise.
5616         * tests/unictype/test-mirror.c: Likewise.
5617         * tests/unictype/test-numeric.c: Likewise.
5618         * tests/unictype/test-pr_byname.c: Likewise.
5619         * tests/unictype/test-pr_test.c: Likewise.
5620         * tests/unictype/test-predicate-part1.h: Likewise.
5621         * tests/unictype/test-scripts.c: Likewise.
5622         * tests/unictype/test-sy_c_ident.c: Likewise.
5623         * tests/unictype/test-sy_java_ident.c: Likewise.
5624         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5625         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5626         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5627         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5628         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5629         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5630         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5631         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5632         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5633         * tests/uninorm/test-compat-decomposition.c: Likewise.
5634         * tests/uninorm/test-composition.c: Likewise.
5635         * tests/uninorm/test-decomposing-form.c: Likewise.
5636         * tests/uninorm/test-decomposition.c: Likewise.
5637         * tests/uninorm/test-u8-nfc.c: Likewise.
5638         * tests/uninorm/test-u8-nfd.c: Likewise.
5639         * tests/uninorm/test-u8-nfkc.c: Likewise.
5640         * tests/uninorm/test-u8-nfkd.c: Likewise.
5641         * tests/uninorm/test-u8-normcmp.c: Likewise.
5642         * tests/uninorm/test-u8-normcoll.c: Likewise.
5643         * tests/uninorm/test-u16-nfc.c: Likewise.
5644         * tests/uninorm/test-u16-nfd.c: Likewise.
5645         * tests/uninorm/test-u16-nfkc.c: Likewise.
5646         * tests/uninorm/test-u16-nfkd.c: Likewise.
5647         * tests/uninorm/test-u16-normcmp.c: Likewise.
5648         * tests/uninorm/test-u16-normcoll.c: Likewise.
5649         * tests/uninorm/test-u32-nfc.c: Likewise.
5650         * tests/uninorm/test-u32-nfd.c: Likewise.
5651         * tests/uninorm/test-u32-nfkc.c: Likewise.
5652         * tests/uninorm/test-u32-nfkd.c: Likewise.
5653         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5654         * tests/uninorm/test-u32-normcmp.c: Likewise.
5655         * tests/uninorm/test-u32-normcoll.c: Likewise.
5656         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5657         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5658         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5659         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5660         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5661         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5662         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5663         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5664         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5665         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5666         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5667         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5668         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5669         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5670         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5671         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5672         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5673         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5674         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5675         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5676         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5677         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5678         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5679         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5680         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5681         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5682         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5683         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5684         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5685         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5686         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5687         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5688         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5689         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5690         * tests/uniwidth/test-u8-width.c: Likewise.
5691         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5692         * tests/uniwidth/test-u16-width.c: Likewise.
5693         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5694         * tests/uniwidth/test-u32-width.c: Likewise.
5695         * tests/uniwidth/test-uc_width.c: Likewise.
5696         * tests/uniwidth/test-uc_width2.c: Likewise.
5697         * modules/acl-tests (Files): Add tests/macros.h.
5698         * modules/areadlink-tests (Files): Likewise.
5699         * modules/areadlink-with-size-tests (Files): Likewise.
5700         * modules/areadlinkat-tests (Files): Likewise.
5701         * modules/areadlinkat-with-size-tests (Files): Likewise.
5702         * modules/argmatch-tests (Files): Likewise.
5703         * modules/argv-iter-tests (Files): Likewise.
5704         * modules/array-list-tests (Files): Likewise.
5705         * modules/array-mergesort-tests (Files): Likewise.
5706         * modules/array-oset-tests (Files): Likewise.
5707         * modules/avltree-list-tests (Files): Likewise.
5708         * modules/avltree-oset-tests (Files): Likewise.
5709         * modules/avltreehash-list-tests (Files): Likewise.
5710         * modules/base64-tests (Files): Likewise.
5711         * modules/binary-io-tests (Files): Likewise.
5712         * modules/bitrotate-tests (Files): Likewise.
5713         * modules/btowc-tests (Files): Likewise.
5714         * modules/byteswap-tests (Files): Likewise.
5715         * modules/c-ctype-tests (Files): Likewise.
5716         * modules/c-stack-tests (Files): Likewise.
5717         * modules/c-strcase-tests (Files): Likewise.
5718         * modules/c-strcasestr-tests (Files): Likewise.
5719         * modules/c-strstr-tests (Files): Likewise.
5720         * modules/canonicalize-lgpl-tests (Files): Likewise.
5721         * modules/canonicalize-tests (Files): Likewise.
5722         * modules/carray-list-tests (Files): Likewise.
5723         * modules/ceilf-tests (Files): Likewise.
5724         * modules/ceill-tests (Files): Likewise.
5725         * modules/chown-tests (Files): Likewise.
5726         * modules/cloexec-tests (Files): Likewise.
5727         * modules/copy-file-tests (Files): Likewise.
5728         * modules/count-one-bits-tests (Files): Likewise.
5729         * modules/dprintf-posix-tests (Files): Likewise.
5730         * modules/dup2-tests (Files): Likewise.
5731         * modules/dup3-tests (Files): Likewise.
5732         * modules/duplocale-tests (Files): Likewise.
5733         * modules/fbufmode-tests (Files): Likewise.
5734         * modules/fchdir-tests (Files): Likewise.
5735         * modules/fcntl-safer-tests (Files): Likewise.
5736         * modules/fcntl-tests (Files): Likewise.
5737         * modules/fdopendir-tests (Files): Likewise.
5738         * modules/fdutimensat-tests (Files): Likewise.
5739         * modules/fflush-tests (Files): Likewise.
5740         * modules/filevercmp-tests (Files): Likewise.
5741         * modules/flock-tests (Files): Likewise.
5742         * modules/floorf-tests (Files): Likewise.
5743         * modules/floorl-tests (Files): Likewise.
5744         * modules/fnmatch-tests (Files): Likewise.
5745         * modules/fopen-safer-tests (Files): Likewise.
5746         * modules/fopen-tests (Files): Likewise.
5747         * modules/fpending-tests (Files): Likewise.
5748         * modules/fprintf-posix-tests (Files): Likewise.
5749         * modules/fpurge-tests (Files): Likewise.
5750         * modules/freadable-tests (Files): Likewise.
5751         * modules/freadahead-tests (Files): Likewise.
5752         * modules/freading-tests (Files): Likewise.
5753         * modules/freadptr-tests (Files): Likewise.
5754         * modules/freadseek-tests (Files): Likewise.
5755         * modules/freopen-tests (Files): Likewise.
5756         * modules/frexp-nolibm-tests (Files): Likewise.
5757         * modules/frexp-tests (Files): Likewise.
5758         * modules/frexpl-nolibm-tests (Files): Likewise.
5759         * modules/frexpl-tests (Files): Likewise.
5760         * modules/fseek-tests (Files): Likewise.
5761         * modules/fseeko-tests (Files): Likewise.
5762         * modules/fstrcmp-tests (Files): Likewise.
5763         * modules/fsync-tests (Files): Likewise.
5764         * modules/ftell-tests (Files): Likewise.
5765         * modules/ftello-tests (Files): Likewise.
5766         * modules/func-tests (Files): Likewise.
5767         * modules/futimens-tests (Files): Likewise.
5768         * modules/fwritable-tests (Files): Likewise.
5769         * modules/fwriting-tests (Files): Likewise.
5770         * modules/getcwd-tests (Files): Likewise.
5771         * modules/getdate-tests (Files): Likewise.
5772         * modules/getdelim-tests (Files): Likewise.
5773         * modules/getdtablesize-tests (Files): Likewise.
5774         * modules/getgroups-tests (Files): Likewise.
5775         * modules/getline-tests (Files): Likewise.
5776         * modules/getndelim2-tests (Files): Likewise.
5777         * modules/glob-tests (Files): Likewise.
5778         * modules/hash-tests (Files): Likewise.
5779         * modules/i-ring-tests (Files): Likewise.
5780         * modules/iconv-tests (Files): Likewise.
5781         * modules/iconv_open-utf-tests (Files): Likewise.
5782         * modules/idpriv-drop-tests (Files): Likewise.
5783         * modules/idpriv-droptemp-tests (Files): Likewise.
5784         * modules/inet_ntop-tests (Files): Likewise.
5785         * modules/inet_pton-tests (Files): Likewise.
5786         * modules/isblank-tests (Files): Likewise.
5787         * modules/isfinite-tests (Files): Likewise.
5788         * modules/isinf-tests (Files): Likewise.
5789         * modules/isnan-tests (Files): Likewise.
5790         * modules/isnand-nolibm-tests (Files): Likewise.
5791         * modules/isnand-tests (Files): Likewise.
5792         * modules/isnanf-nolibm-tests (Files): Likewise.
5793         * modules/isnanf-tests (Files): Likewise.
5794         * modules/isnanl-nolibm-tests (Files): Likewise.
5795         * modules/isnanl-tests (Files): Likewise.
5796         * modules/lchown-tests (Files): Likewise.
5797         * modules/ldexpl-tests (Files): Likewise.
5798         * modules/link-tests (Files): Likewise.
5799         * modules/linkat-tests (Files): Likewise.
5800         * modules/linked-list-tests (Files): Likewise.
5801         * modules/linkedhash-list-tests (Files): Likewise.
5802         * modules/localename-tests (Files): Likewise.
5803         * modules/lseek-tests (Files): Likewise.
5804         * modules/lstat-tests (Files): Likewise.
5805         * modules/mbmemcasecmp-tests (Files): Likewise.
5806         * modules/mbmemcasecoll-tests (Files): Likewise.
5807         * modules/mbrtowc-tests (Files): Likewise.
5808         * modules/mbscasecmp-tests (Files): Likewise.
5809         * modules/mbscasestr-tests (Files): Likewise.
5810         * modules/mbschr-tests (Files): Likewise.
5811         * modules/mbscspn-tests (Files): Likewise.
5812         * modules/mbsinit-tests (Files): Likewise.
5813         * modules/mbsncasecmp-tests (Files): Likewise.
5814         * modules/mbsnrtowcs-tests (Files): Likewise.
5815         * modules/mbspbrk-tests (Files): Likewise.
5816         * modules/mbspcasecmp-tests (Files): Likewise.
5817         * modules/mbsrchr-tests (Files): Likewise.
5818         * modules/mbsrtowcs-tests (Files): Likewise.
5819         * modules/mbsspn-tests (Files): Likewise.
5820         * modules/mbsstr-tests (Files): Likewise.
5821         * modules/memchr-tests (Files): Likewise.
5822         * modules/memchr2-tests (Files): Likewise.
5823         * modules/memcmp-tests (Files): Likewise.
5824         * modules/memmem-tests (Files): Likewise.
5825         * modules/memrchr-tests (Files): Likewise.
5826         * modules/mkdir-tests (Files): Likewise.
5827         * modules/mkfifo-tests (Files): Likewise.
5828         * modules/mkfifoat-tests (Files): Likewise.
5829         * modules/mknod-tests (Files): Likewise.
5830         * modules/nanosleep-tests (Files): Likewise.
5831         * modules/nl_langinfo-tests (Files): Likewise.
5832         * modules/obstack-printf-tests (Files): Likewise.
5833         * modules/open-tests (Files): Likewise.
5834         * modules/openat-tests (Files): Likewise.
5835         * modules/pipe-filter-gi-tests (Files): Likewise.
5836         * modules/pipe-filter-ii-tests (Files): Likewise.
5837         * modules/pipe2-tests (Files): Likewise.
5838         * modules/popen-safer-tests (Files): Likewise.
5839         * modules/popen-tests (Files): Likewise.
5840         * modules/posixtm-tests (Files): Likewise.
5841         * modules/pread-tests (Files): Likewise.
5842         * modules/printf-frexp-tests (Files): Likewise.
5843         * modules/printf-frexpl-tests (Files): Likewise.
5844         * modules/printf-posix-tests (Files): Likewise.
5845         * modules/priv-set-tests (Files): Likewise.
5846         * modules/quotearg-tests (Files): Likewise.
5847         * modules/random_r-tests (Files): Likewise.
5848         * modules/rawmemchr-tests (Files): Likewise.
5849         * modules/rbtree-list-tests (Files): Likewise.
5850         * modules/rbtree-oset-tests (Files): Likewise.
5851         * modules/rbtreehash-list-tests (Files): Likewise.
5852         * modules/readlink-tests (Files): Likewise.
5853         * modules/remove-tests (Files): Likewise.
5854         * modules/rename-tests (Files): Likewise.
5855         * modules/renameat-tests (Files): Likewise.
5856         * modules/rmdir-tests (Files): Likewise.
5857         * modules/round-tests (Files): Likewise.
5858         * modules/roundf-tests (Files): Likewise.
5859         * modules/roundl-tests (Files): Likewise.
5860         * modules/safe-alloc-tests (Files): Likewise.
5861         * modules/setenv-tests (Files): Likewise.
5862         * modules/sigaction-tests (Files): Likewise.
5863         * modules/signbit-tests (Files): Likewise.
5864         * modules/sleep-tests (Files): Likewise.
5865         * modules/snprintf-posix-tests (Files): Likewise.
5866         * modules/snprintf-tests (Files): Likewise.
5867         * modules/sprintf-posix-tests (Files): Likewise.
5868         * modules/stat-tests (Files): Likewise.
5869         * modules/stat-time-tests (Files): Likewise.
5870         * modules/strcasestr-tests (Files): Likewise.
5871         * modules/strchrnul-tests (Files): Likewise.
5872         * modules/strerror-tests (Files): Likewise.
5873         * modules/striconv-tests (Files): Likewise.
5874         * modules/striconveh-tests (Files): Likewise.
5875         * modules/striconveha-tests (Files): Likewise.
5876         * modules/strsignal-tests (Files): Likewise.
5877         * modules/strstr-tests (Files): Likewise.
5878         * modules/strtod-tests (Files): Likewise.
5879         * modules/strverscmp-tests (Files): Likewise.
5880         * modules/symlink-tests (Files): Likewise.
5881         * modules/symlinkat-tests (Files): Likewise.
5882         * modules/trunc-tests (Files): Likewise.
5883         * modules/truncf-tests (Files): Likewise.
5884         * modules/truncl-tests (Files): Likewise.
5885         * modules/uname-tests (Files): Likewise.
5886         * modules/unicase/cased-tests (Files): Likewise.
5887         * modules/unicase/ignorable-tests (Files): Likewise.
5888         * modules/unicase/locale-language-tests (Files): Likewise.
5889         * modules/unicase/tolower-tests (Files): Likewise.
5890         * modules/unicase/totitle-tests (Files): Likewise.
5891         * modules/unicase/toupper-tests (Files): Likewise.
5892         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5893         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5894         * modules/unicase/u8-casefold-tests (Files): Likewise.
5895         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5896         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5897         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5898         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5899         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5900         * modules/unicase/u8-tolower-tests (Files): Likewise.
5901         * modules/unicase/u8-totitle-tests (Files): Likewise.
5902         * modules/unicase/u8-toupper-tests (Files): Likewise.
5903         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5904         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5905         * modules/unicase/u16-casefold-tests (Files): Likewise.
5906         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5907         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5908         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5909         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5910         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5911         * modules/unicase/u16-tolower-tests (Files): Likewise.
5912         * modules/unicase/u16-totitle-tests (Files): Likewise.
5913         * modules/unicase/u16-toupper-tests (Files): Likewise.
5914         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5915         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5916         * modules/unicase/u32-casefold-tests (Files): Likewise.
5917         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5918         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5919         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5920         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5921         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5922         * modules/unicase/u32-tolower-tests (Files): Likewise.
5923         * modules/unicase/u32-totitle-tests (Files): Likewise.
5924         * modules/unicase/u32-toupper-tests (Files): Likewise.
5925         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5926         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5927         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5928         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5929         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5930         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5931         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5932         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5933         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5934         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5935         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5936         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5937         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5938         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5939         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5940         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5941         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5942         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5943         * modules/unictype/block-list-tests (Files): Likewise.
5944         * modules/unictype/block-of-tests (Files): Likewise.
5945         * modules/unictype/block-test-tests (Files): Likewise.
5946         * modules/unictype/category-C-tests (Files): Likewise.
5947         * modules/unictype/category-Cc-tests (Files): Likewise.
5948         * modules/unictype/category-Cf-tests (Files): Likewise.
5949         * modules/unictype/category-Cn-tests (Files): Likewise.
5950         * modules/unictype/category-Co-tests (Files): Likewise.
5951         * modules/unictype/category-Cs-tests (Files): Likewise.
5952         * modules/unictype/category-L-tests (Files): Likewise.
5953         * modules/unictype/category-Ll-tests (Files): Likewise.
5954         * modules/unictype/category-Lm-tests (Files): Likewise.
5955         * modules/unictype/category-Lo-tests (Files): Likewise.
5956         * modules/unictype/category-Lt-tests (Files): Likewise.
5957         * modules/unictype/category-Lu-tests (Files): Likewise.
5958         * modules/unictype/category-M-tests (Files): Likewise.
5959         * modules/unictype/category-Mc-tests (Files): Likewise.
5960         * modules/unictype/category-Me-tests (Files): Likewise.
5961         * modules/unictype/category-Mn-tests (Files): Likewise.
5962         * modules/unictype/category-N-tests (Files): Likewise.
5963         * modules/unictype/category-Nd-tests (Files): Likewise.
5964         * modules/unictype/category-Nl-tests (Files): Likewise.
5965         * modules/unictype/category-No-tests (Files): Likewise.
5966         * modules/unictype/category-P-tests (Files): Likewise.
5967         * modules/unictype/category-Pc-tests (Files): Likewise.
5968         * modules/unictype/category-Pd-tests (Files): Likewise.
5969         * modules/unictype/category-Pe-tests (Files): Likewise.
5970         * modules/unictype/category-Pf-tests (Files): Likewise.
5971         * modules/unictype/category-Pi-tests (Files): Likewise.
5972         * modules/unictype/category-Po-tests (Files): Likewise.
5973         * modules/unictype/category-Ps-tests (Files): Likewise.
5974         * modules/unictype/category-S-tests (Files): Likewise.
5975         * modules/unictype/category-Sc-tests (Files): Likewise.
5976         * modules/unictype/category-Sk-tests (Files): Likewise.
5977         * modules/unictype/category-Sm-tests (Files): Likewise.
5978         * modules/unictype/category-So-tests (Files): Likewise.
5979         * modules/unictype/category-Z-tests (Files): Likewise.
5980         * modules/unictype/category-Zl-tests (Files): Likewise.
5981         * modules/unictype/category-Zp-tests (Files): Likewise.
5982         * modules/unictype/category-Zs-tests (Files): Likewise.
5983         * modules/unictype/category-and-not-tests (Files): Likewise.
5984         * modules/unictype/category-and-tests (Files): Likewise.
5985         * modules/unictype/category-byname-tests (Files): Likewise.
5986         * modules/unictype/category-name-tests (Files): Likewise.
5987         * modules/unictype/category-none-tests (Files): Likewise.
5988         * modules/unictype/category-of-tests (Files): Likewise.
5989         * modules/unictype/category-or-tests (Files): Likewise.
5990         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5991         * modules/unictype/combining-class-tests (Files): Likewise.
5992         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5993         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5994         * modules/unictype/ctype-blank-tests (Files): Likewise.
5995         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5996         * modules/unictype/ctype-digit-tests (Files): Likewise.
5997         * modules/unictype/ctype-graph-tests (Files): Likewise.
5998         * modules/unictype/ctype-lower-tests (Files): Likewise.
5999         * modules/unictype/ctype-print-tests (Files): Likewise.
6000         * modules/unictype/ctype-punct-tests (Files): Likewise.
6001         * modules/unictype/ctype-space-tests (Files): Likewise.
6002         * modules/unictype/ctype-upper-tests (Files): Likewise.
6003         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6004         * modules/unictype/decimal-digit-tests (Files): Likewise.
6005         * modules/unictype/digit-tests (Files): Likewise.
6006         * modules/unictype/mirror-tests (Files): Likewise.
6007         * modules/unictype/numeric-tests (Files): Likewise.
6008         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6009         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6010         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6011         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6012         Likewise.
6013         * modules/unictype/property-bidi-block-separator-tests (Files):
6014         Likewise.
6015         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6016         Likewise.
6017         * modules/unictype/property-bidi-common-separator-tests (Files):
6018         Likewise.
6019         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6020         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6021         Likewise.
6022         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6023         Likewise.
6024         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6025         Likewise.
6026         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6027         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6028         Likewise.
6029         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6030         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6031         Likewise.
6032         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6033         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6034         * modules/unictype/property-bidi-segment-separator-tests (Files):
6035         Likewise.
6036         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6037         * modules/unictype/property-byname-tests (Files): Likewise.
6038         * modules/unictype/property-combining-tests (Files): Likewise.
6039         * modules/unictype/property-composite-tests (Files): Likewise.
6040         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6041         * modules/unictype/property-dash-tests (Files): Likewise.
6042         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6043         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6044         Likewise.
6045         * modules/unictype/property-deprecated-tests (Files): Likewise.
6046         * modules/unictype/property-diacritic-tests (Files): Likewise.
6047         * modules/unictype/property-extender-tests (Files): Likewise.
6048         * modules/unictype/property-format-control-tests (Files): Likewise.
6049         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6050         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6051         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6052         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6053         * modules/unictype/property-hyphen-tests (Files): Likewise.
6054         * modules/unictype/property-id-continue-tests (Files): Likewise.
6055         * modules/unictype/property-id-start-tests (Files): Likewise.
6056         * modules/unictype/property-ideographic-tests (Files): Likewise.
6057         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6058         * modules/unictype/property-ids-trinary-operator-tests (Files):
6059         Likewise.
6060         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6061         * modules/unictype/property-iso-control-tests (Files): Likewise.
6062         * modules/unictype/property-join-control-tests (Files): Likewise.
6063         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6064         * modules/unictype/property-line-separator-tests (Files): Likewise.
6065         * modules/unictype/property-logical-order-exception-tests (Files):
6066         Likewise.
6067         * modules/unictype/property-lowercase-tests (Files): Likewise.
6068         * modules/unictype/property-math-tests (Files): Likewise.
6069         * modules/unictype/property-non-break-tests (Files): Likewise.
6070         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6071         * modules/unictype/property-numeric-tests (Files): Likewise.
6072         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6073         * modules/unictype/property-other-default-ignorable-code-point-tests
6074         (Files): Likewise.
6075         * modules/unictype/property-other-grapheme-extend-tests (Files):
6076         Likewise.
6077         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6078         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6079         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6080         * modules/unictype/property-other-math-tests (Files): Likewise.
6081         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6082         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6083         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6084         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6085         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6086         * modules/unictype/property-private-use-tests (Files): Likewise.
6087         * modules/unictype/property-punctuation-tests (Files): Likewise.
6088         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6089         * modules/unictype/property-radical-tests (Files): Likewise.
6090         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6091         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6092         * modules/unictype/property-space-tests (Files): Likewise.
6093         * modules/unictype/property-terminal-punctuation-tests (Files):
6094         Likewise.
6095         * modules/unictype/property-test-tests (Files): Likewise.
6096         * modules/unictype/property-titlecase-tests (Files): Likewise.
6097         * modules/unictype/property-unassigned-code-value-tests (Files):
6098         Likewise.
6099         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6100         * modules/unictype/property-uppercase-tests (Files): Likewise.
6101         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6102         * modules/unictype/property-white-space-tests (Files): Likewise.
6103         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6104         * modules/unictype/property-xid-start-tests (Files): Likewise.
6105         * modules/unictype/property-zero-width-tests (Files): Likewise.
6106         * modules/unictype/scripts-tests (Files): Likewise.
6107         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6108         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6109         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6110         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6111         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6112         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6113         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6114         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6115         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6116         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6117         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6118         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6119         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6120         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6121         * modules/uninorm/composition-tests (Files): Likewise.
6122         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6123         * modules/uninorm/decomposition-tests (Files): Likewise.
6124         * modules/uninorm/filter-tests (Files): Likewise.
6125         * modules/uninorm/nfc-tests (Files): Likewise.
6126         * modules/uninorm/nfd-tests (Files): Likewise.
6127         * modules/uninorm/nfkc-tests (Files): Likewise.
6128         * modules/uninorm/nfkd-tests (Files): Likewise.
6129         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6130         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6131         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6132         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6133         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6134         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6135         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6136         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6137         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6138         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6139         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6140         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6141         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6142         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6143         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6144         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6145         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6146         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6147         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6148         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6149         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6150         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6151         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6152         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6153         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6154         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6155         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6156         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6157         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6158         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6159         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6160         * modules/uniwidth/u8-width-tests (Files): Likewise.
6161         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6162         * modules/uniwidth/u16-width-tests (Files): Likewise.
6163         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6164         * modules/uniwidth/u32-width-tests (Files): Likewise.
6165         * modules/uniwidth/width-tests (Files): Likewise.
6166         * modules/unlink-tests (Files): Likewise.
6167         * modules/unsetenv-tests (Files): Likewise.
6168         * modules/usleep-tests (Files): Likewise.
6169         * modules/utimens-tests (Files): Likewise.
6170         * modules/utimensat-tests (Files): Likewise.
6171         * modules/vasnprintf-posix-tests (Files): Likewise.
6172         * modules/vasnprintf-tests (Files): Likewise.
6173         * modules/vasprintf-posix-tests (Files): Likewise.
6174         * modules/vasprintf-tests (Files): Likewise.
6175         * modules/vdprintf-posix-tests (Files): Likewise.
6176         * modules/vfprintf-posix-tests (Files): Likewise.
6177         * modules/vprintf-posix-tests (Files): Likewise.
6178         * modules/vsnprintf-posix-tests (Files): Likewise.
6179         * modules/vsnprintf-tests (Files): Likewise.
6180         * modules/vsprintf-posix-tests (Files): Likewise.
6181         * modules/wcrtomb-tests (Files): Likewise.
6182         * modules/wcsnrtombs-tests (Files): Likewise.
6183         * modules/wcsrtombs-tests (Files): Likewise.
6184         * modules/wctype-tests (Files): Likewise.
6185         * modules/wcwidth-tests (Files): Likewise.
6186         * modules/xmemdup0-tests (Files): Likewise.
6187         * modules/xprintf-posix-tests (Files): Likewise.
6188         * modules/xvasprintf-tests (Files): Likewise.
6189
6190 2009-12-24  Eric Blake  <ebb9@byu.net>
6191
6192         test-nanosleep: fix typo
6193         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6194         patch.
6195         Reported by Bruno Haible.
6196
6197 2009-12-24  Bruno Haible  <bruno@clisp.org>
6198
6199         Reduce namespace pollution on glibc systems.
6200         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6201         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6202         systems.
6203         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6204         <getopt.h> on glibc systems.
6205         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6206         systems.
6207         * lib/fcntl.c: Include <unistd.h> here instead.
6208
6209 2009-12-24  Bruno Haible  <bruno@clisp.org>
6210
6211         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6212
6213 2009-12-24  Eric Blake  <ebb9@byu.net>
6214
6215         tests: add signature checks
6216         * tests/signature.h (SIGNATURE_CHECK): New file.
6217         * modules/atexit-tests (Files): Use it.
6218         * modules/btowc-tests (Files): Likewise.
6219         * modules/canonicalize-lgpl-tests (Files): Likewise.
6220         * modules/ceilf-tests (Files): Likewise.
6221         * modules/ceill-tests (Files): Likewise.
6222         * modules/chown-tests (Files): Likewise.
6223         * modules/dprintf-posix-tests (Files): Likewise.
6224         * modules/dup2-tests (Files): Likewise.
6225         * modules/dup3-tests (Files): Likewise.
6226         * modules/duplocale-tests (Files): Likewise.
6227         * modules/fchdir-tests (Files): Likewise.
6228         * modules/fcntl-tests (Files): Likewise.
6229         * modules/fdopendir-tests (Files): Likewise.
6230         * modules/fflush-tests (Files): Likewise.
6231         * modules/flock-tests (Files): Likewise.
6232         * modules/floorf-tests (Files): Likewise.
6233         * modules/floorl-tests (Files): Likewise.
6234         * modules/fnmatch-tests (Files): Likewise.
6235         * modules/fopen-tests (Files): Likewise.
6236         * modules/fprintf-posix-tests (Files): Likewise.
6237         * modules/freopen-tests (Files): Likewise.
6238         * modules/frexp-nolibm-tests (Files): Likewise.
6239         * modules/frexp-tests (Files): Likewise.
6240         * modules/frexpl-nolibm-tests (Files): Likewise.
6241         * modules/frexpl-tests (Files): Likewise.
6242         * modules/fseek-tests (Files): Likewise.
6243         * modules/fseeko-tests (Files): Likewise.
6244         * modules/fsync-tests (Files): Likewise.
6245         * modules/ftell-tests (Files): Likewise.
6246         * modules/ftello-tests (Files): Likewise.
6247         * modules/futimens-tests (Files): Likewise.
6248         * modules/getaddrinfo-tests (Files): Likewise.
6249         * modules/getcwd-tests (Files): Likewise.
6250         * modules/getdelim-tests (Files): Likewise.
6251         * modules/getdtablesize-tests (Files): Likewise.
6252         * modules/getgroups-tests (Files): Likewise.
6253         * modules/gethostname-tests (Files): Likewise.
6254         * modules/getline-tests (Files): Likewise.
6255         * modules/getopt-posix-tests (Files): Likewise.
6256         * modules/gettimeofday-tests (Files): Likewise.
6257         * modules/glob-tests (Files): Likewise.
6258         * modules/iconv-tests (Files): Likewise.
6259         * modules/inet_ntop-tests (Files): Likewise.
6260         * modules/inet_pton-tests (Files): Likewise.
6261         * modules/isblank-tests (Files): Likewise.
6262         * modules/lchown-tests (Files): Likewise.
6263         * modules/ldexpl-tests (Files): Likewise.
6264         * modules/link-tests (Files): Likewise.
6265         * modules/linkat-tests (Files): Likewise.
6266         * modules/lseek-tests (Files): Likewise.
6267         * modules/lstat-tests (Files): Likewise.
6268         * modules/mbrtowc-tests (Files): Likewise.
6269         * modules/mbsinit-tests (Files): Likewise.
6270         * modules/mbsnrtowcs-tests (Files): Likewise.
6271         * modules/mbsrtowcs-tests (Files): Likewise.
6272         * modules/memchr-tests (Files): Likewise.
6273         * modules/memcmp-tests (Files): Likewise.
6274         * modules/memmem-tests (Files): Likewise.
6275         * modules/memrchr-tests (Files): Likewise.
6276         * modules/mkdir-tests (Files): Likewise.
6277         * modules/mkfifo-tests (Files): Likewise.
6278         * modules/mkfifoat-tests (Files): Likewise.
6279         * modules/mknod-tests (Files): Likewise.
6280         * modules/nanosleep-tests (Files): Likewise.
6281         * modules/nl_langinfo-tests (Files): Likewise.
6282         * modules/obstack-printf-tests (Files): Likewise.
6283         * modules/open-tests (Files): Likewise.
6284         * modules/openat-tests (Files): Likewise.
6285         * modules/perror-tests (Files): Likewise.
6286         * modules/pipe2-tests (Files): Likewise.
6287         * modules/poll-tests (Files): Likewise.
6288         * modules/popen-tests (Files): Likewise.
6289         * modules/posix_spawn-tests (Files): Likewise.
6290         * modules/posix_spawnp-tests (Files): Likewise.
6291         * modules/pread-tests (Files): Likewise.
6292         * modules/printf-posix-tests (Files): Likewise.
6293         * modules/pty-tests (Files): Likewise.
6294         * modules/random_r-tests (Files): Likewise.
6295         * modules/rawmemchr-tests (Files): Likewise.
6296         * modules/readlink-tests (Files): Likewise.
6297         * modules/remove-tests (Files): Likewise.
6298         * modules/rename-tests (Files): Likewise.
6299         * modules/renameat-tests (Files): Likewise.
6300         * modules/rmdir-tests (Files): Likewise.
6301         * modules/round-tests (Files): Likewise.
6302         * modules/roundf-tests (Files): Likewise.
6303         * modules/roundl-tests (Files): Likewise.
6304         * modules/select-tests (Files): Likewise.
6305         * modules/setenv-tests (Files): Likewise.
6306         * modules/sigaction-tests (Files): Likewise.
6307         * modules/sleep-tests (Files): Likewise.
6308         * modules/snprintf-posix-tests (Files): Likewise.
6309         * modules/snprintf-tests (Files): Likewise.
6310         * modules/sprintf-posix-tests (Files): Likewise.
6311         * modules/stat-tests (Files): Likewise.
6312         * modules/strcasestr-tests (Files): Likewise.
6313         * modules/strchrnul-tests (Files): Likewise.
6314         * modules/strerror-tests (Files): Likewise.
6315         * modules/strsignal-tests (Files): Likewise.
6316         * modules/strstr-tests (Files): Likewise.
6317         * modules/strtod-tests (Files): Likewise.
6318         * modules/strverscmp-tests (Files): Likewise.
6319         * modules/symlink-tests (Files): Likewise.
6320         * modules/symlinkat-tests (Files): Likewise.
6321         * modules/times-tests (Files): Likewise.
6322         * modules/trunc-tests (Files): Likewise.
6323         * modules/truncf-tests (Files): Likewise.
6324         * modules/truncl-tests (Files): Likewise.
6325         * modules/tsearch-tests (Files): Likewise.
6326         * modules/uname-tests (Files): Likewise.
6327         * modules/unlink-tests (Files): Likewise.
6328         * modules/unsetenv-tests (Files): Likewise.
6329         * modules/usleep-tests (Files): Likewise.
6330         * modules/utimensat-tests (Files): Likewise.
6331         * modules/vasprintf-tests (Files): Likewise.
6332         * modules/vdprintf-posix-tests (Files): Likewise.
6333         * modules/vfprintf-posix-tests (Files): Likewise.
6334         * modules/vprintf-posix-tests (Files): Likewise.
6335         * modules/vsnprintf-posix-tests (Files): Likewise.
6336         * modules/vsnprintf-tests (Files): Likewise.
6337         * modules/vsprintf-posix-tests (Files): Likewise.
6338         * modules/wcrtomb-tests (Files): Likewise.
6339         * modules/wcsnrtombs-tests (Files): Likewise.
6340         * modules/wcsrtombs-tests (Files): Likewise.
6341         * modules/wcwidth-tests (Files): Likewise.
6342         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6343         * tests/test-isinf.c (isinf): Likewise.
6344         * tests/test-isnan.c (isnan): Likewise.
6345         * tests/test-signbit.c (signbit): Likewise.
6346         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6347         declaration, either as macro or with correct signature.
6348         (select): Ensure function under test is declared with correct
6349         signature in correct header.
6350         * tests/test-atexit.c (atexit): Likewise.
6351         * tests/test-btowc.c (btowc): Likewise.
6352         * tests/test-canonicalize-lgpl.c (realpath)
6353         (canonicalize_file_name): Likewise.
6354         * tests/test-ceilf1.c (ceilf): Likewise.
6355         * tests/test-ceill.c (ceill): Likewise.
6356         * tests/test-chown.c (chown): Likewise.
6357         * tests/test-dprintf-posix.c (dprintf): Likewise.
6358         * tests/test-dup2.c (dup2): Likewise.
6359         * tests/test-dup3.c (dup3): Likewise.
6360         * tests/test-duplocale.c (duplocale): Likewise.
6361         * tests/test-fchdir.c (fchdir): Likewise.
6362         * tests/test-fchownat.c (fchownat): Likewise.
6363         * tests/test-fcntl.c (fcntl): Likewise.
6364         * tests/test-fdopendir.c (fdopendir): Likewise.
6365         * tests/test-fflush.c (fflush): Likewise.
6366         * tests/test-flock.c (flock): Likewise.
6367         * tests/test-floorf1.c (floorf): Likewise.
6368         * tests/test-floorl.c (floorl): Likewise.
6369         * tests/test-fnmatch.c (fnmatch): Likewise.
6370         * tests/test-fopen.c (fopen): Likewise.
6371         * tests/test-fprintf-posix.c (fprintf): Likewise.
6372         * tests/test-freopen.c (freopen): Likewise.
6373         * tests/test-frexp.c (frexp): Likewise.
6374         * tests/test-frexpl.c (frexpl): Likewise.
6375         * tests/test-fseek.c (fseek): Likewise.
6376         * tests/test-fseeko.c (fseeko): Likewise.
6377         * tests/test-fstatat.c (fstatat): Likewise.
6378         * tests/test-fsync.c (fsync): Likewise.
6379         * tests/test-ftell.c (ftell): Likewise.
6380         * tests/test-ftello.c (ftello): Likewise.
6381         * tests/test-futimens.c (futimens): Likewise.
6382         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6383         (gai_strerror): Likewise.
6384         * tests/test-getcwd.c (getcwd): Likewise.
6385         * tests/test-getdelim.c (getdelim): Likewise.
6386         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6387         * tests/test-getgroups.c (getgroups): Likewise.
6388         * tests/test-gethostname.c (gethostname): Likewise.
6389         * tests/test-getline.c (getline): Likewise.
6390         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6391         Likewise.
6392         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6393         * tests/test-glob.c (glob, globfree): Likewise.
6394         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6395         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6396         * tests/test-inet_pton.c (inet_pton): Likewise.
6397         * tests/test-isblank.c (isblank): Likewise.
6398         * tests/test-lchown.c (lchown): Likewise.
6399         * tests/test-ldexpl.c (ldexpl): Likewise.
6400         * tests/test-link.c (link): Likewise.
6401         * tests/test-linkat.c (linkat): Likewise.
6402         * tests/test-lseek.c (lseek): Likewise.
6403         * tests/test-lstat.c (lstat): Likewise.
6404         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6405         * tests/test-mbsinit.c (mbsinit): Likewise.
6406         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6407         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6408         * tests/test-memchr.c (memchr): Likewise.
6409         * tests/test-memcmp.c (memcmp): Likewise.
6410         * tests/test-memmem.c (memmem): Likewise.
6411         * tests/test-memrchr.c (memrchr): Likewise.
6412         * tests/test-mkdir.c (mkdir): Likewise.
6413         * tests/test-mkdirat.c (mkdirat): Likewise.
6414         * tests/test-mkfifo.c (mkfifo): Likewise.
6415         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6416         * tests/test-mknod.c (mknod): Likewise.
6417         * tests/test-nanosleep.c (nanosleep): Likewise.
6418         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6419         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6420         Likewise.
6421         * tests/test-open.c (open): Likewise.
6422         * tests/test-openat.c (openat): Likewise.
6423         * tests/test-perror.c (perror): Likewise.
6424         * tests/test-pipe2.c (pipe2): Likewise.
6425         * tests/test-poll.c (poll): Likewise.
6426         * tests/test-popen.c (popen, pclose): Likewise.
6427         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6428         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6429         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6430         (posix_spawn_file_actions_destroy)
6431         (posix_spawn_file_actions_addclose)
6432         (posix_spawn_file_actions_addopen)
6433         (posix_spawn_file_actions_adddup2): Likewise.
6434         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6435         * tests/test-pread.c (pread): Likewise.
6436         * tests/test-printf-posix.c (printf): Likewise.
6437         * tests/test-pty.c (openpty, forkpty): Likewise.
6438         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6439         (random_r): Likewise.
6440         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6441         * tests/test-readlink.c (readlink): Likewise.
6442         * tests/test-remove.c (remove): Likewise.
6443         * tests/test-rename.c (rename): Likewise.
6444         * tests/test-renameat.c (renameat): Likewise.
6445         * tests/test-rmdir.c (rmdir): Likewise.
6446         * tests/test-round1.c (round): Likewise.
6447         * tests/test-roundf1.c (roundf): Likewise.
6448         * tests/test-roundl.c (roundl): Likewise.
6449         * tests/test-setenv.c (setenv): Likewise.
6450         * tests/test-sigaction.c (sigaction): Likewise.
6451         * tests/test-sleep.c (sleep): Likewise.
6452         * tests/test-snprintf.c (snprintf): Likewise.
6453         * tests/test-sprintf-posix.c (sprintf): Likewise.
6454         * tests/test-stat.c (stat): Likewise.
6455         * tests/test-stpncpy.c (stpncpy): Likewise.
6456         * tests/test-strcasestr.c (strcasestr): Likewise.
6457         * tests/test-strchrnul.c (strchrnul): Likewise.
6458         * tests/test-strerror.c (strerror): Likewise.
6459         * tests/test-strsignal.c (strsignal): Likewise.
6460         * tests/test-strstr.c (strstr): Likewise.
6461         * tests/test-strtod.c (strtod): Likewise.
6462         * tests/test-strverscmp.c (strverscmp): Likewise.
6463         * tests/test-symlink.c (symlink): Likewise.
6464         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6465         * tests/test-times.c (times): Likewise.
6466         * tests/test-trunc1.c (trunc): Likewise.
6467         * tests/test-truncf1.c (truncf): Likewise.
6468         * tests/test-truncl.c (truncl): Likewise.
6469         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6470         Likewise.
6471         * tests/test-uname.c (uname): Likewise.
6472         * tests/test-unlink.c (unlink): Likewise.
6473         * tests/test-unlinkat.c (unlinkat): Likewise.
6474         * tests/test-unsetenv.c (unsetenv): Likewise.
6475         * tests/test-usleep.c (usleep): Likewise.
6476         * tests/test-utimensat.c (utimensat): Likewise.
6477         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6478         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6479         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6480         * tests/test-vprintf-posix.c (vprintf): Likewise.
6481         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6482         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6483         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6484         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6485         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6486         * tests/test-wcwidth.c (wcwidth): Likewise.
6487
6488         build: pull in conditional headers during GNULIB_POSIXCHECK
6489         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6490         definitions from any conditionally-included headers.
6491         * lib/stdlib.in.h (includes): Likewise.
6492         * lib/unistd.in.h (includes): Likewise.
6493
6494 2009-12-24  Bruno Haible  <bruno@clisp.org>
6495
6496         * tests/test-argv-iter.c: Include header file being tested immediately
6497         after config.h.
6498         * tests/test-base64.c: Likewise.
6499         * tests/test-flock.c: Likewise.
6500         * tests/test-fsync.c: Likewise.
6501         * tests/test-getdate.c: Likewise.
6502         * tests/test-getndelim2.c: Likewise.
6503         * tests/test-isfinite.c: Likewise.
6504         * tests/test-isinf.c: Likewise.
6505         * tests/test-strerror.c: Likewise.
6506         * tests/test-strsignal.c: Likewise.
6507
6508 2009-12-23  Eric Blake  <ebb9@byu.net>
6509
6510         unistd: work around cygwin bug
6511         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6512         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6513         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6514
6515 2009-12-23  Bruno Haible  <bruno@clisp.org>
6516
6517         localename: More tests.
6518         * tests/test-localename.c (SIZEOF): New macro.
6519         (categories): New variable.
6520         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6521         test_locale_name_default): Add test w.r.t. thread locale.
6522         (test_locale_name_thread): New function.
6523         (main): Invoke it.
6524
6525         localename: Make aware of thread locale.
6526         * lib/localename.h (gl_locale_name_thread): New declaration.
6527         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6528         behaviour with respect to thread locale.
6529         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6530         <langinfo.h>, glthread/lock.h.
6531         (SIZE_BITS): New macro.
6532         (string_hash): New function.
6533         (struct hash_node): New type.
6534         (HASH_TABLE_SIZE): New macro.
6535         (struniq_hash_table, struniq_lock): New variables.
6536         (struniq): New function.
6537         (gl_locale_name_thread): New function.
6538         (gl_locale_name): Invoke it.
6539         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6540         * modules/localename (Depends-on): Add lock.
6541         Reported by Mike Gran <spk121@yahoo.com>.
6542
6543 2009-12-23  Eric Blake  <ebb9@byu.net>
6544
6545         va-args: new module
6546         * modules/va-args: New file.
6547         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6548         * MODULES.html.sh (Core language properties): Mention it.
6549
6550         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6551         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6552         named alias for __attribute__((__unused__)).
6553         * lib/chown.c: Update client.
6554         * lib/fchmodat.c: Likewise.
6555         * lib/fts.c: Likewise.
6556         * lib/getdate.y: Likewise.
6557         * lib/getgroups.c: Likewise.
6558         * lib/getopt.c: Likewise.
6559         * lib/getugroups.c: Likewise.
6560         * lib/mkdir.c: Likewise.
6561         * lib/mkfifo.c: Likewise.
6562         * lib/mkfifoat.c: Likewise.
6563         * lib/mknod.c: Likewise.
6564         * lib/mknodat.c: Likewise.
6565         * lib/readlink.c: Likewise.
6566         * lib/se-context.in.h: Likewise.
6567         * lib/se-selinux.in.h: Likewise.
6568         * lib/sockets.c: Likewise.
6569         * lib/symlink.c: Likewise.
6570         * lib/symlinkat.c: Likewise.
6571         * lib/unicodeio.c: Likewise.
6572         * lib/unistr.h: Likewise.
6573         * tests/test-areadlink.c: Likewise.
6574         * tests/test-areadlinkat.c: Likewise.
6575         * tests/test-filenamecat.c: Likewise.
6576         * tests/test-fseeko.c: Likewise.
6577         * tests/test-ftello.c: Likewise.
6578         * tests/test-getdate.c: Likewise.
6579         * tests/test-getgroups.c: Likewise.
6580         * tests/test-gethostname.c: Likewise.
6581         * tests/test-quotearg.c: Likewise.
6582         * tests/test-version-etc.c: Likewise.
6583         * tests/test-xalloc-die.c: Likewise.
6584         * tests/test-xfprintf-posix.c: Likewise.
6585         * tests/test-xprintf-posix.c: Likewise.
6586         * tests/test-xvasprintf.c: Likewise.
6587
6588         tests: avoid compiler warnings
6589         * tests/test-fcntl.c (main): Delete unused parameters.
6590         * tests/test-freopen-safer.c (main): Likewise.
6591         * tests/test-xalloc-die.c (main): Mark unused parameters.
6592         * tests/test-fseeko.c (main): Likewise.
6593         * tests/test-ftello.c (main): Likewise.
6594         * tests/test-nanosleep.c (main): Avoid declaration warning.
6595         * tests/test-sleep.c (main): Likewise.
6596         * tests/test-unsetenv.c (main): Silence warning about string
6597         literal.
6598         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6599
6600 2009-12-23  Bruno Haible  <bruno@clisp.org>
6601
6602         * tests/test-localename.c (test_locale_name): New function, extracted
6603         from main. Also test mixed situations.
6604         (test_locale_name_posix, test_locale_name_environ,
6605         test_locale_name_default): New functions.
6606         (main): Invoke them all.
6607         * modules/localename-tests (configure.ac): Test for newlocale.
6608
6609 2009-12-23  Bruno Haible  <bruno@clisp.org>
6610
6611         unistd: Ensure getcwd gets declared before being overridden.
6612         * lib/unistd.in.h: Conditionally include <io.h>.
6613
6614 2009-12-22  Bruno Haible  <bruno@clisp.org>
6615
6616         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6617         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6618         (gl_WCHAR_H): Invoke it.
6619         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6620         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6621         Reported by Karl Berry <karl@freefriends.org>.
6622
6623 2009-12-22  Eric Blake  <ebb9@byu.net>
6624
6625         math, unistd: avoid redundant includes
6626         * lib/math.in.h (isnan): No need to re-include <math.h>.
6627         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6628
6629         getsubopt: work around cygwin bug
6630         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6631         avoid conflicting with system getsubopt.
6632         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6633         bug.
6634
6635         getopt: synchronize from glibc
6636         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6637         parameter order.  Adjust all callers.
6638         (_getopt_internal_r, main): Adjust quoting in error messages.
6639         Drop considerations for outdated POSIX 1003.2 error message.
6640         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6641         callers.
6642         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6643
6644         test-getopt: test stderr behavior
6645         * modules/getopt-posix-tests (Depends-on): Add dup2.
6646         * tests/test-getopt.c (ASSERT): Avoid stderr.
6647         (main): Move stderr to a temporary file.
6648         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6649         Instead, add parameter to inform caller if output occurred.
6650         (test_getopt): Adjust all existing tests to expect silence, and
6651         add new tests of leading ":".
6652         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6653         glibc shortcomings with leading "-:" or "+:" in optstring.
6654         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6655         Likewise.
6656         * doc/posix-functions/getopt.texi (getopt): Likewise.
6657
6658         test-getopt: enhance test
6659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6660         supports optind=0.
6661         * tests/test-getopt.c (OPTIND_MIN): Move...
6662         * tests/test-getopt.h (OPTIND_MIN): ...here.
6663         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6664         Require that optind=0 works, since modern BSD supports it in
6665         addition to optreset, and since coreutils expects it.
6666         (test_getopt_long_only): New test.
6667         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6668         glibc shortcomings with 'W;', and enforcement of optind=0.
6669         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6670         Likewise.
6671
6672 2009-12-21  Bruno Haible  <bruno@clisp.org>
6673
6674         localename: Improvements for MacOS X and Cygwin.
6675         * lib/localename.h (gl_locale_name_environ): New declaration.
6676         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6677         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6678         (gl_locale_name_posix): Invoke it.
6679         (gl_locale_name_default): Add comments. Use Windows native API also on
6680         Cygwin.
6681
6682 2009-12-21  Bruno Haible  <bruno@clisp.org>
6683
6684         Update list of Win32 locale ids.
6685         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6686         (LANG_SAMI): Renamed from LANG_SAAMI.
6687         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6688         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6689         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6690         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6691         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6692         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6693         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6694         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6695         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6696         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6697         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6698         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6699         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6700         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6701         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6702         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6703         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6704         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6705         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6706         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6707         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6708         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6709         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6710         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6711         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6712         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6713         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6714         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6715         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6716         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6717         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6718         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6719         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6720         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6721         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6722         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6723         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6724         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6725         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6726         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6727         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6728         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6729         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6730         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6731         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6732         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6733         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6734         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6735         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6736         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6737         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6738         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6739         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6740         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6741         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6742         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6743         Add more languages and countries for Sami, Sorbian. Add more countries
6744         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6745         for Pashto. Change country for Syriac, Tswana.
6746
6747 2009-12-21  Eric Blake  <ebb9@byu.net>
6748
6749         test-utimens: avoid spurious failure
6750         * tests/test-chown.h (nap): Factor...
6751         * tests/nap.h: ...into new file.
6752         * tests/test-lchown.h (nap): Avoid duplication.
6753         * tests/test-utimens-common.h (nap): Use shared implementation,
6754         necessary on file systems with 1-second resolution.
6755         * modules/chown-tests (Files): Include new file.
6756         * modules/fdutimensat-tests (Files): Likewise.
6757         * modules/futimens-tests (Files): Likewise.
6758         * modules/lchown-tests (Files): Likewise.
6759         * modules/openat-tests (Files): Likewise.
6760         * modules/utimens-tests (Files): Likewise.
6761         * modules/utimensat-tests (Files): Likewise.
6762
6763 2009-12-19  Eric Blake  <ebb9@byu.net>
6764
6765         futimens, utimensat: work around Linux bug
6766         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6767         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6768         * lib/utimensat.c (rpl_utimensat): Work around it.
6769         * lib/futimens.c (rpl_futimens): Adjust comment.
6770
6771         utimens: work around Linux ctime bug
6772         * lib/utimens.c (detect_ctime_bug): New helper function.
6773         (update_timespec): Differentiate between workaround needed for
6774         this bug vs. what is needed for systems that lack utimensat.
6775         (fdutimens, lutimens): Work around bug.
6776
6777         utimens: check for ctime update
6778         * tests/test-utimens-common.h (check_ctime): Define.
6779         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6780         * tests/test-futimens.h (test_futimens): Likewise.
6781         * tests/test-lutimens.h (test_lutimens): Likewise.
6782         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6783         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6784
6785 2009-12-19  Bruno Haible  <bruno@clisp.org>
6786
6787         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6788         * tests/test-dprintf-posix2.sh: New file.
6789         * tests/test-dprintf-posix2.c: New file.
6790         * modules/dprintf-posix-tests (Files): Add them.
6791         (configure.ac): Check for getrlimit and setrlimit.
6792         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6793
6794 2009-12-19  Bruno Haible  <bruno@clisp.org>
6795
6796         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6797         * tests/test-fprintf-posix3.sh: New file.
6798         * tests/test-fprintf-posix3.c: New file.
6799         * modules/fprintf-posix-tests (Files): Add them.
6800         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6801
6802 2009-12-19  Eric Blake  <ebb9@byu.net>
6803
6804         dirfd: fix prototype
6805         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6806         * lib/dirfd.c (dirfd): Likewise.
6807
6808         canonicalize: reduce memory usage
6809         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6810         allocation to size.
6811         Reported by Solar Designer <solar@openwall.com>.
6812
6813 2009-12-19  Bruno Haible  <bruno@clisp.org>
6814
6815         New module attribute 'Applicability'.
6816         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6817         * gnulib-tool: New option --extract-applicability.
6818         (func_usage): Document it.
6819         (sed_extract_prog): Recognize it.
6820         (func_get_applicability): New function.
6821         (func_import): Generalize handling of 'link-warning' module.
6822         * modules/link-warning (Applicability): New section.
6823         * modules/arg-nonnull (Applicability): New section.
6824         Repoted by Simon Josefsson <simon@josefsson.org>.
6825
6826 2009-12-19  Bruno Haible  <bruno@clisp.org>
6827
6828         fflush: tweak
6829         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6830         * lib/fseeko.c (rpl_fseeko): Likewise.
6831
6832 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6833
6834         * lib/gl_list.h: Fix typo in comment.
6835
6836 2009-12-16  Eric Blake  <ebb9@byu.net>
6837
6838         fcntl: use to simplify other modules
6839         * modules/cloexec (Depends-on): Add fcntl.
6840         * modules/fchdir (Depends-on): Likewise.
6841         * modules/fd-safer-flag (Depends-on): Likewise.
6842         * modules/unistd-safer (Depends-on): Likewise.
6843         * modules/dup3 (configure.ac): Set module indicator.
6844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6845         missing.
6846         * lib/fchdir.c (_gl_register_dup): Fix comment.
6847         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6848         * lib/dup-safer.c (dup_safer): Likewise.
6849         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6850         * lib/dup3.c (dup3): Likewise.
6851         * tests/test-fchdir.c (main): Enhance test.
6852         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6853
6854         fcntl: port portions of fcntl to mingw
6855         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6856         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6857         replacement for mingw.
6858         * modules/fcntl (Description): Update.
6859         (Depends-on): Add dup2.
6860         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6861         * modules/fcntl-h (Makefile.am): Substitute it.
6862         * lib/fcntl.in.h (fcntl): Update declaration.
6863         (F_DUPFD, F_GETFD): New macros, when needed.
6864         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6865         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6866         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6867         we now guarantee.
6868
6869         fcntl: work around cygwin bug in F_DUPFD
6870         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6871         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6872         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6873         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6874         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6875
6876         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6877         * modules/fcntl (Files): List new files.
6878         (configure.ac): Run a test.
6879         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6880         * lib/fcntl.c (rpl_fcntl): Likewise.
6881         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6882         (gl_FCNTL_H): Always replace fcntl.h.
6883         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6884         * lib/fcntl.in.h (fcntl): Declare replacement.
6885         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6886         needed, plus a witness.
6887         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6888         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6889         * tests/test-fcntl.c: New file.
6890         * modules/fcntl-tests: Likewise.
6891
6892         binary-io: avoid potential compilation warning
6893         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6894         directives.
6895
6896         fflush: avoid compilation error on NetBSD
6897         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6898         between off_t and fpos_t, since the latter is sometimes a struct.
6899         * lib/fseeko.c (rpl_fseeko): Likewise.
6900         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6901
6902 2009-12-15  Eric Blake  <ebb9@byu.net>
6903
6904         fcntl-h, stdio, sys_ioctl: fix declarations
6905         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6906         function must not take arguments.
6907         * lib/sys_ioctl.in.h (ioctl): Likewise.
6908         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6909         (open): Add a link warning.
6910
6911 2009-12-15  Jim Meyering  <meyering@redhat.com>
6912
6913         areadlink, areadlink-with-size: relax license to LGPLv2+
6914         * modules/areadlink (License): Relax to LGPLv2+.
6915         * modules/areadlink-with-size (License): Likewise.
6916
6917 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6918             Bruno Haible  <bruno@clisp.org>
6919
6920         *printf: Fix memory leak.
6921         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6922         * lib/vfprintf.c (vfprintf): Likewise.
6923         * lib/dprintf.c (dprintf): Likewise.
6924         * lib/vdprintf.c (vdprintf): Likewise.
6925
6926 2009-12-14  Eric Blake  <ebb9@byu.net>
6927
6928         accept4: adjust module dependencies
6929         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6930
6931         utimens: one more try at avoiding compiler warning
6932         * lib/utimens.c (lutimens): Lower scope of result.
6933
6934 2009-12-13  Bruno Haible  <bruno@clisp.org>
6935
6936         Move the malloc checking from module 'list' to new module 'xlist'.
6937         * modules/xlist: New file.
6938         * lib/gl_xlist.h: New file.
6939         * lib/gl_xlist.c: New file.
6940         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6941         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6942         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6943         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6944         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6945         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6946         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6947         gl_sortedlist_nx_add): New declarations.
6948         (struct gl_list_implementation): Rename and change methods accordingly.
6949         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6950         (gl_list_nx_create): Renamed from gl_list_create.
6951         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6952         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6953         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6954         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6955         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6956         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6957         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6958         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6959         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6960         gl_list_create_empty.
6961         (gl_list_nx_create): Renamed from gl_list_create.
6962         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6963         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6964         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6965         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6966         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6967         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6968         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6969         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6970         * lib/gl_array_list.c: Don't include xalloc.h.
6971         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6972         NULL upon out-of-memory.
6973         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6974         out-of-memory.
6975         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6976         Change return type to 'int'.
6977         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6978         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6979         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6980         upon out-of-memory.
6981         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6982         upon out-of-memory.
6983         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6984         upon out-of-memory.
6985         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6986         upon out-of-memory.
6987         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6988         out-of-memory.
6989         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6990         Update.
6991         (gl_array_list_implementation): Update.
6992         * lib/gl_carray_list.c: Don't include xalloc.h.
6993         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6994         Return NULL upon out-of-memory.
6995         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6996         out-of-memory.
6997         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6998         Change return type to 'int'.
6999         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7000         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7001         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7002         upon out-of-memory.
7003         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7004         upon out-of-memory.
7005         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7006         out-of-memory.
7007         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7008         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7009         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7010         Update.
7011         (gl_carray_list_implementation): Update.
7012         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7013         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7014         gl_linked_create_empty. Return NULL upon out-of-memory.
7015         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7016         out-of-memory.
7017         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7018         Change return type to 'int'. Return -1 upon out-of-memory.
7019         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7020         out-of-memory.
7021         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7022         upon out-of-memory.
7023         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7024         upon out-of-memory.
7025         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7026         NULL upon out-of-memory.
7027         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7028         upon out-of-memory.
7029         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7030         out-of-memory.
7031         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7032         Update.
7033         * lib/gl_linked_list.c: Don't include xalloc.h.
7034         (gl_linked_list_implementation): Update.
7035         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7036         (add_to_bucket): Change return type to 'int'.
7037         (gl_linkedhash_list_implementation): Update.
7038         * lib/gl_anytree_list1.h (free_subtree): New function.
7039         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7040         gl_tree_create_empty. Return NULL upon out-of-memory.
7041         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7042         Change return type to 'int'. Return -1 upon out-of-memory.
7043         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7044         out-of-memory.
7045         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7046         (gl_tree_remove_node): New function, moved here from
7047         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7048         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7049         Update.
7050         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7051         malloc, not xmalloc. Return NULL upon out-of-memory.
7052         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7053         out-of-memory.
7054         (gl_tree_remove_node_from_tree): New function, extracted from
7055         gl_tree_remove_node.
7056         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7057         upon out-of-memory.
7058         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7059         out-of-memory.
7060         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7061         upon out-of-memory.
7062         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7063         upon out-of-memory.
7064         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7065         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7066         not xmalloc. Return NULL upon out-of-memory.
7067         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7068         out-of-memory.
7069         (gl_tree_remove_node_from_tree): New function, extracted from
7070         gl_tree_remove_node.
7071         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7072         upon out-of-memory.
7073         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7074         out-of-memory.
7075         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7076         upon out-of-memory.
7077         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7078         upon out-of-memory.
7079         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7080         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7081         gl_anytree_list1.h before gl_anyavltree_list2.h.
7082         (gl_avltree_list_implementation): Update.
7083         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7084         gl_anytree_list1.h before gl_anyavltree_list2.h.
7085         (gl_rbtree_list_implementation): Update.
7086         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7087         Change return type to 'int'. Return -1 upon out-of-memory. Use
7088         __builtin_expect.
7089         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7090         (gl_avltreehash_list_implementation): Update.
7091         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7092         (gl_rbtreehash_list_implementation): Update.
7093         * modules/array-list (Depends-on): Remove xalloc.
7094         * modules/carray-list (Depends-on): Likewise.
7095         * modules/linked-list (Depends-on): Likewise.
7096         * modules/linkedhash-list (Depends-on): Likewise.
7097         * modules/avltree-list (Depends-on): Likewise.
7098         * modules/rbtree-list (Depends-on): Likewise.
7099         * modules/avltreehash-list (Depends-on): Likewise.
7100         * modules/rbtreehash-list (Depends-on): Likewise.
7101
7102         * modules/xsublist: New file.
7103         * lib/gl_xsublist.h: New file.
7104         * lib/gl_xsublist.c: New file.
7105         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7106         (gl_sublist_nx_create): New declaration.
7107         * lib/gl_sublist.c: Don't include xalloc.h.
7108         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7109         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7110         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7111         Change return type to 'int'. Return -1 upon out-of-memory.
7112         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7113         upon out-of-memory.
7114         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7115         NULL upon out-of-memory.
7116         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7117         upon out-of-memory.
7118         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7119         NULL upon out-of-memory.
7120         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7121         NULL upon out-of-memory.
7122         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7123         upon out-of-memory.
7124         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7125         (gl_sublist_list_implementation): Update.
7126         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7127         upon out-of-memory.
7128         * modules/sublist (Depends-on): Remove xalloc.
7129
7130         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7131         * tests/test-carray_list.c: Likewise.
7132         * tests/test-linked_list.c: Likewise.
7133         * tests/test-linkedhash_list.c: Likewise.
7134         * tests/test-avltree_list.c: Likewise.
7135         * tests/test-rbtree_list.c: Likewise.
7136         * tests/test-avltreehash_list.c: Likewise.
7137         * tests/test-rbtreehash_list.c: Likewise.
7138         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7139         * modules/carray-list-tests (Makefile.am): Likewise.
7140         * modules/linked-list-tests (Makefile.am): Likewise.
7141         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7142         * modules/avltree-list-tests (Makefile.am): Likewise.
7143         * modules/rbtree-list-tests (Makefile.am): Likewise.
7144         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7145         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7146
7147         * NEWS: Mention the changes.
7148
7149         * lib/clean-temp.c: Include gl_xlist.h.
7150         * modules/clean-temp (Depends-on): Add xlist.
7151
7152         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7153         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7154
7155         * tests/test-array_oset.c: Include gl_xlist.h.
7156         * modules/array-oset-tests (Depends-on): Add xlist.
7157
7158         Reported by José E. Marchesi <jemarch@gnu.org>.
7159
7160 2009-12-13  Bruno Haible  <bruno@clisp.org>
7161
7162         Move the malloc checking from module 'oset' to new module 'xoset'.
7163         * modules/xoset: New file.
7164         * lib/gl_xoset.h: New file.
7165         * lib/gl_xoset.c: New file.
7166         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7167         declarations.
7168         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7169         (struct gl_oset_implementation): Rename and change methods accordingly.
7170         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7171         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7172         'int'. Mark as __warn_unused_result__.
7173         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7174         gl_oset_create_empty.
7175         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7176         'int'.
7177         * lib/gl_array_oset.c: Don't include xalloc.h.
7178         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7179         malloc, not xmalloc.
7180         (grow): Change return type to 'int'. Don't call xalloc_die.
7181         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7182         to 'int'.
7183         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7184         'int'.
7185         (gl_array_oset_implementation): Update.
7186         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7187         gl_tree_create_empty.
7188         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7189         'int'.
7190         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7191         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7192         xmalloc.
7193         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7194         not xmalloc.
7195         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7196         xmalloc.
7197         (gl_avltree_oset_implementation): Update.
7198         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7199         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7200         xmalloc.
7201         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7202         not xmalloc.
7203         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7204         xmalloc.
7205         (gl_rbtree_oset_implementation): Update.
7206         * modules/array-oset (Depends-on): Remove xalloc.
7207         * modules/avltree-oset (Depends-on): Likewise.
7208         * modules/rbtree-oset (Depends-on): Likewise.
7209         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7210         * tests/test-avltree_oset.c: Likewise.
7211         * tests/test-rbtree_oset.c: Likewise.
7212         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7213         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7214         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7215         * NEWS: Mention the change.
7216
7217 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7218
7219         maint.mk: allow a project to override release-prep commands
7220         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7221         commands into a new rule.
7222         (release-prep): New rule.
7223         (release-prep-hook): New overridable variable.
7224
7225 2009-12-13  Bruno Haible  <bruno@clisp.org>
7226
7227         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7228
7229 2009-12-13  Jim Meyering  <meyering@redhat.com>
7230
7231         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7232         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7233
7234 2009-12-12  Bruno Haible  <bruno@clisp.org>
7235
7236         duplocale: Tweak.
7237         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7238
7239 2009-12-12  Karl Berry  <karl@gnu.org>
7240
7241         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7242
7243 2009-12-12  Bruno Haible  <bruno@clisp.org>
7244
7245         * m4/po.m4: Undo incorrect untabification.
7246
7247 2009-12-12  Bruno Haible  <bruno@clisp.org>
7248
7249         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7250         * modules/c-strtod (Depends-on): Add locale.
7251         * modules/c-strtold (Depends-on): Likewise.
7252
7253 2009-12-12  Bruno Haible  <bruno@clisp.org>
7254
7255         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7256
7257 2009-12-11  Eric Blake  <ebb9@byu.net>
7258
7259         setenv: relax requirement in light of POSIX ruling
7260         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7261         not NULL.
7262         * tests/test-setenv.c (main): Relax test.
7263         * tests/test-unsetenv.c (main): Likewise.
7264         * doc/posix-functions/setenv.texi (setenv): Document this.
7265         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7266
7267 2009-12-11  Bruno Haible  <bruno@clisp.org>
7268
7269         New module 'fd-safer-flag'.
7270         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7271         * lib/dup-safer.c (dup_safer_flag): Remove function.
7272         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7273         * lib/fd-safer.c (fd_safer_flag): Remove function.
7274         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7275         * modules/cloexec (configure.ac): Drop indicator macro.
7276         * modules/fd-safer-flag: New file.
7277         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7278         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7279         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7280
7281 2009-12-11  Bruno Haible  <bruno@clisp.org>
7282
7283         Tests for module 'nl_langinfo'.
7284         * modules/nl_langinfo-tests: New file.
7285         * tests/test-nl_langinfo.sh: New file.
7286         * tests/test-nl_langinfo.c: New file.
7287
7288         New module 'nl_langinfo'.
7289         * lib/nl_langinfo.c: New file.
7290         * m4/nl_langinfo.m4: New file.
7291         * modules/nl_langinfo: New file.
7292         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7293
7294 2009-12-11  Bruno Haible  <bruno@clisp.org>
7295
7296         Tests for module 'langinfo'.
7297         * modules/langinfo-tests: New file.
7298         * tests/test-langinfo.c: New file.
7299
7300         New module 'langinfo'.
7301         * lib/langinfo.in.h: New file.
7302         * m4/langinfo_h.m4: New file.
7303         * modules/langinfo: New file.
7304         * doc/posix-headers/langinfo.texi: Mention the new module.
7305
7306 2009-12-11  Bruno Haible  <bruno@clisp.org>
7307
7308         * lib/config.charset: Untabify.
7309
7310 2009-12-11  Bruno Haible  <bruno@clisp.org>
7311
7312         * modules/unistd-safer (configure.ac): Drop indicator macro.
7313
7314 2009-12-11  Bruno Haible  <bruno@clisp.org>
7315
7316         Move pipe2-safer code to its own file.
7317         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7318         * lib/pipe-safer.c (pipe2_safer): Remove function.
7319         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7320         (Makefile.am): Add it to lib_SOURCES.
7321
7322 2009-12-10  Bruno Haible  <bruno@clisp.org>
7323
7324         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7325
7326 2009-12-10  Bruno Haible  <bruno@clisp.org>
7327
7328         Declare which arguments expect non-NULL values, for GCC and clang.
7329         * build-aux/arg-nonnull.h: New file.
7330         * modules/arg-nonnull: New file.
7331         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7332         (inet_ntop, inet_pton): Use it.
7333         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7334         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7335         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7336         (open, openat): Use it.
7337         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7338         (fnmatch): Use it.
7339         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7340         (getopt, getopt_long, getopt_long_only): Use it.
7341         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7342         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7343         Use it.
7344         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7345         (iconv_open): Use it.
7346         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7347         (strtoimax, strtoumax): Use it.
7348         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7349         (duplocale): Use it.
7350         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7351         (frexp, frexpl): Use it.
7352         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7353         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7354         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7355         (tsearch, tfind, tdelete, twalk): Use it.
7356         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7357         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7358         sigpending): Use it.
7359         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7360         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7361         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7362         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7363         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7364         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7365         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7366         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7367         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7368         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7369         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7370         Use it.
7371         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7372         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7373         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7374         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7375         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7376         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7377         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7378         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7379         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7380         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7381         strtoull, unsetenv): Use it.
7382         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7383         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7384         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7385         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7386         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7387         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7388         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7389         (strcasecmp, strncasecmp): Use it.
7390         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7391         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7392         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7393         rpl_setsockopt): Use it.
7394         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7395         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7396         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7397         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7398         (gettimeofday): Use it.
7399         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7400         (times): Use it.
7401         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7402         (uname): Use it.
7403         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7404         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7405         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7406         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7407         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7408         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7409         unlinkat, write): Use it.
7410         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7411         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7412         * lib/argv-iter.h: Include arg-nonnull.h.
7413         (_ATTRIBUTE_NONNULL_): Remove macro.
7414         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7415         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7416         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7417         optimization.
7418         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7419         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7420         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7421         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7422         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7423         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7424         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7425         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7426         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7427         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7428         * modules/dirent (Depends-on): Add arg-nonnull.
7429         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7430         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7431         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7432         * modules/fnmatch (Depends-on): Add arg-nonnull.
7433         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7434         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7435         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7436         * modules/glob (Depends-on): Add arg-nonnull.
7437         (Makefile.am): Insert arg-nonnull.h into glob.h.
7438         * modules/iconv_open (Depends-on): Add arg-nonnull.
7439         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7440         * modules/inttypes (Depends-on): Add arg-nonnull.
7441         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7442         * modules/locale (Depends-on): Add arg-nonnull.
7443         (Makefile.am): Insert arg-nonnull.h into locale.h.
7444         * modules/math (Depends-on): Add arg-nonnull.
7445         (Makefile.am): Insert arg-nonnull.h into math.h.
7446         * modules/netdb (Depends-on): Add arg-nonnull.
7447         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7448         * modules/search (Depends-on): Add arg-nonnull.
7449         (Makefile.am): Insert arg-nonnull.h into search.h.
7450         * modules/signal (Depends-on): Add arg-nonnull.
7451         (Makefile.am): Insert arg-nonnull.h into signal.h.
7452         * modules/spawn (Depends-on): Add arg-nonnull.
7453         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7454         * modules/stdio (Depends-on): Add arg-nonnull.
7455         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7456         * modules/stdlib (Depends-on): Add arg-nonnull.
7457         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7458         * modules/string (Depends-on): Add arg-nonnull.
7459         (Makefile.am): Insert arg-nonnull.h into string.h.
7460         * modules/strings (Depends-on): Add arg-nonnull.
7461         (Makefile.am): Insert arg-nonnull.h into strings.h.
7462         * modules/sys_socket (Depends-on): Add arg-nonnull.
7463         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7464         * modules/sys_stat (Depends-on): Add arg-nonnull.
7465         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7466         * modules/sys_time (Depends-on): Add arg-nonnull.
7467         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7468         * modules/sys_times (Depends-on): Add arg-nonnull.
7469         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7470         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7471         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7472         * modules/time (Depends-on): Add arg-nonnull.
7473         (Makefile.am): Insert arg-nonnull.h into time.h.
7474         * modules/unistd (Depends-on): Add arg-nonnull.
7475         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7476         * modules/wchar (Depends-on): Add arg-nonnull.
7477         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7478         * modules/argv-iter (Depends-on): Add arg-nonnull.
7479         * tests/test-canonicalize.c (null_ptr): New function.
7480         (main): Use it.
7481         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7482         (main): Use it.
7483         * tests/test-memmem.c (null_ptr): New function.
7484         (main): Use it.
7485         Reported by Jim Meyering.
7486
7487 2009-12-10  Bruno Haible  <bruno@clisp.org>
7488
7489         Use spaces for indentation, not tabs.
7490         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7491         * m4/*.m4: Untabify.
7492         * build-aux/*.h: Untabify.
7493         * tests/**/*.[hc]: Untabify.
7494         * README: New section "Indent with spaces, not TABs", based on
7495         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7496         * NEWS: Mention the change.
7497
7498 2009-12-10  Bruno Haible  <bruno@clisp.org>
7499
7500         pty test: Fix link error.
7501         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7502         test_pty_LDADD.
7503
7504 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7505
7506         * modules/pty: New file.
7507         * modules/pty-tests: New file.
7508         * m4/pty.m4: New file.
7509         * tests/test-pty.c: New file.
7510         * doc/glibc-headers/pty.texi: Modified.
7511         * doc/glibc-functions/forkpty.texi: Modified.
7512         * doc/glibc-functions/openpty.texi: Modified.
7513
7514 2009-12-10  Bruno Haible  <bruno@clisp.org>
7515
7516         Avoid syntax error in C++ mode.
7517         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7518
7519 2009-12-10  Bruno Haible  <bruno@clisp.org>
7520
7521         Use sed with option -e.
7522         * gnulib-tool (func_version, func_emit_copyright_notice,
7523         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7524         option -e to sed.
7525         * modules/link-warning (Makefile.am): Likewise.
7526
7527 2009-12-10  Jim Meyering  <meyering@redhat.com>
7528
7529         mgetgroups: do not write bytes beyond end of malloc'd buffer
7530         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7531         username, we call getgroups with a one-element-shorter buffer,
7532         but still told it the length was original, max_n_groups.
7533
7534 2009-12-09  Eric Blake  <ebb9@byu.net>
7535
7536         cloexec: relax license
7537         * modules/cloexec (Maintainer): Add myself.
7538         (License): Use LGPL, not GPL.
7539
7540         link-warning: optimize generation
7541         * modules/link-warning (Makefile.am): Reduce process usage.
7542
7543 2009-12-09  Bruno Haible  <bruno@clisp.org>
7544
7545         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7546         workaround was added on 2009-11-17.
7547
7548 2009-12-09  Jim Meyering  <meyering@redhat.com>
7549             Bruno Haible  <bruno@clisp.org>
7550
7551         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7552         * modules/link-warning (Makefile.am): Make the comment-removing sed
7553         command more robust in the face of bootstrap-prepended comment lines.
7554
7555 2009-12-09  Bruno Haible  <bruno@clisp.org>
7556
7557         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7558         most one group.
7559
7560 2009-12-09  Simon Josefsson <simon@josefsson.org>
7561             Bruno Haible  <bruno@clisp.org>
7562
7563         * build-aux/link-warning.h: Add copyright notice.
7564         * modules/link-warning (Makefile.am): Generate link-warning.h from
7565         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7566         * NEWS: Mention change in link-warning module.
7567         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7568         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7569         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7570         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7571         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7572         * modules/math (Makefile.am): Add dependency to math.h.
7573         * modules/search (Makefile.am): Add dependency to search.h.
7574         * modules/signal (Makefile.am): Add dependency to signal.h.
7575         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7576         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7577         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7578         * modules/string (Makefile.am): Add dependency to string.h.
7579         * modules/strings (Makefile.am): Add dependency to strings.h.
7580         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7581         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7582         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7583         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7584         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7585         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7586         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7587         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7588         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7589
7590 2009-12-09  Bruno Haible  <bruno@clisp.org>
7591
7592         fchdir: Optimize away rpl_fstat when possible.
7593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7594         REPLACE_OPEN_DIRECTORY.
7595         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7596
7597 2009-12-09  Bruno Haible  <bruno@clisp.org>
7598
7599         * lib/fchdir.c: Update comment.
7600
7601 2009-12-09  Bruno Haible  <bruno@clisp.org>
7602
7603         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7604
7605 2009-12-08  Eric Blake  <ebb9@byu.net>
7606
7607         fchdir: avoid memory leak on re-registration.
7608         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7609
7610 2009-12-08  Jim Meyering  <meyering@redhat.com>
7611
7612         init.sh: avoid Solaris 10 /bin/sh portability problem
7613         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7614         sourced script:
7615           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7616           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7617           bar
7618         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7619         and two tests used that idiom.
7620         * tests/init.sh: Update suggested usage comments.
7621         (path_prepend_): New function, to be used in place
7622         of the --src-path=DIR option.
7623         (setup_): Move PATH-prepending code into path_prepend_.
7624         * tests/test-pread.sh: Adapt to new usage.
7625         * tests/test-xalloc-die.sh: Likewise.
7626
7627 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7628
7629         * doc/gnulib.texi (Glibc pty.h): Add.
7630         * doc/glibc-functions/forkpty.texi: Add.
7631         * doc/glibc-functions/openpty.texi: Add.
7632         Suggested by Bruno Haible.
7633
7634 2009-12-08  Eric Blake  <ebb9@byu.net>
7635
7636         fchdir: fix logic bugs
7637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7638         * tests/test-fchdir.c (main): Enhance test.
7639         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7640         is in use.
7641
7642         dup2: fix logic bugs
7643         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7644         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7645         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7646         exists.
7647         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7648
7649 2009-12-07  Eric Blake  <ebb9@byu.net>
7650
7651         unlink: fix m4 detection
7652         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7653
7654         unistd-safer: add unit test
7655         * modules/unistd-safer-tests: New file.
7656         * tests/test-dup-safer.c: Likewise.
7657         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7658         * tests/test-dup2.c (setmode): Likewise.
7659         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7660
7661         cloexec: preserve text vs. binary across dup_cloexec
7662         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7663         mode.
7664         * modules/dup2-tests (Depends-on): Add binary-io.
7665         * modules/cloexec-tests (Depends-on): Likewise.
7666         * tests/test-dup2.c (setmode, is_mode): New helpers.
7667         (main): Add tests that translation mode is preserved.
7668         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7669         Reported by Bruno Haible.
7670
7671         mgetgroups: reduce duplicate listings
7672         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7673         resulting array.
7674         * tests/test-chown.h (test_chown): Simplify client.
7675         * tests/test-lchown.h (test_lchown): Likewise.
7676
7677 2009-12-06  Bruno Haible  <bruno@clisp.org>
7678
7679         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7680         value.
7681
7682 2009-12-06  Bruno Haible  <bruno@clisp.org>
7683
7684         * lib/progname.c: Include stdio.h, stdlib.h.
7685         (set_program_name): Reject a NULL argument.
7686
7687 2009-12-05  Eric Blake  <ebb9@byu.net>
7688
7689         pipe2-safer: new module
7690         * modules/pipe2-safer: New file.
7691         * lib/unistd-safer.h (pipe2_safer): New prototype.
7692         * lib/unistd--.h (pipe2): New wrapper.
7693         * lib/pipe-safer.c (pipe2_safer): New function.
7694         * modules/pipe (Depends-on): Add pipe2-safer.
7695         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7696
7697         stdlib-safer: preserve cloexec flag for mkostemp[s]
7698         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7699         fd_safer_flag.
7700
7701         unistd-safer: allow preservation of cloexec status via flag
7702         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7703         prototypes.
7704         * lib/dup-safer.c (dup_safer_flag): New function.
7705         * lib/fd-safer.c (fd_safer_flag): Likewise.
7706         * modules/cloexec (configure.ac): Set witness.
7707
7708         test-dup2: enhance test
7709         * modules/dup2-tests (Depends-on): Add cloexec.
7710         * tests/test-dup2.c (main): Enhance test.
7711
7712         cloexec: add dup_cloexec
7713         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7714         header and comments.
7715         * lib/cloexec.c (set_cloexec_flag): Add comments.
7716         (dup_cloexec): New function, with mingw implementation borrowed
7717         from...
7718         * lib/w32spawn.h (dup_noinherit): ...here.
7719         * modules/execute (Depends-on): Add cloexec.
7720         * modules/pipe (Depends-on): Likewise.
7721         * modules/cloexec (Depends-on): Add dup2.
7722         * modules/cloexec-tests (Files): New file.
7723         * tests/test-cloexec.c: Likewise.
7724
7725         test-xalloc-die: fix test for mingw
7726         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7727         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7728         directory and .exe suffix off argv[0] output.
7729
7730         test-fseeko: fix test for mingw
7731         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7732         than undefining fseek, so test will pass on mingw.
7733
7734 2009-12-05  Bruno Haible  <bruno@clisp.org>
7735
7736         * lib/progname.h (set_program_name): Clarify specification.
7737         * lib/progname.c (set_program_name): Likewise.
7738         Reported by Jim Meyering.
7739
7740 2009-12-05  Jim Meyering  <meyering@redhat.com>
7741
7742         maint.mk: backslash-escape parens in default regexp
7743         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7744         backslash-escape the literal parentheses.
7745
7746         maint.mk: news-date-check: use grep -E
7747         * top/maint.mk (today): Define a Make variable, not a...
7748         (news-date-check): ...shell variable.
7749         (news-date-regexp): Use the Make variable.
7750         Use grep's -E option.  Change the failing diagnostic to mention
7751         the variable, $(news-date-regexp).
7752
7753 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7754
7755         maintainer-makefile: allow customization of NEWS entry format
7756         * top/maint.mk (news-date-regexp): New overridable variable.
7757         (news-date-check): Use it.
7758
7759 2009-12-04  Eric Blake  <ebb9@byu.net>
7760
7761         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7762         * lib/mgetgroups.h (xgetgroups): New prototype.
7763         * lib/mgetgroups.c (xgetgroups): New wrapper.
7764         (mgetgroups): Handle ENOSYS.
7765         * modules/mgetgroups (Depends-on): Add realloc.
7766         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7767
7768         mgetgroups: avoid argument promotion issues with -1
7769         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7770         for invalid gid_t.
7771         * tests/test-chown.h (getegid, test_chown): Likewise.
7772         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7773
7774 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7775
7776         exclude: Fix header file problems.
7777         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7778
7779 2009-12-01  Jim Meyering  <meyering@redhat.com>
7780
7781         fts: fts_open: do not let an empty string cause immediate failure
7782         This is required in support of GNU rm, for which the command
7783         "rm A '' B" must process and remove both A and B, in spite of
7784         the empty string argument.
7785         * lib/fts.c (fts_open): Do not let the presence of an empty string
7786         cause fts_open to fail immediately.  Most fts-using tools must be
7787         able to process all arguments, in order, and can be expected to
7788         diagnose such arguments themselves.
7789
7790 2009-11-30  Eric Blake  <ebb9@byu.net>
7791
7792         utimens: fix compilation error
7793         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7794         Declare variable at right scope.
7795
7796 2009-11-29  Jim Meyering  <meyering@redhat.com>
7797
7798         bootstrap: handle perl-5.11's changed --version output
7799         * build-aux/bootstrap (get_version): Handle perl separately,
7800         since perl-5.11's --version output is different.
7801
7802 2009-11-28  Jim Meyering  <meyering@redhat.com>
7803
7804         userspec: depend on the inttostr module, too
7805         * modules/userspec (Depends-on): Add inttostr.
7806
7807         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7808         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7809         number of MAXUID when it evaluates to (uid_t) -1.
7810         Likewise for group ID.  Reported by Matt McCutchen in
7811         <http://savannah.gnu.org/bugs/?28113>
7812
7813         userspec: reformat to use spaces, not TABs
7814         * lib/userspec.c: Expand TABs to spaces.
7815         Add Emacs' "indent-tabs-mode: nil" hint.
7816
7817 2009-11-27  Eric Blake  <ebb9@byu.net>
7818
7819         getopt-gnu: flush out another BSD bug
7820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7821         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7822         flush out BSD bug.
7823         * tests/test-getopt.h (test_getopt): End lists with NULL.
7824         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7825         (test_getopt_long_posix): Enhance test.
7826         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7827         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7828         getopt-gnu.
7829         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7830         Likewise.
7831
7832 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7833
7834         * modules/idpriv-droptemp-tests (Notice): Fix text.
7835
7836 2009-11-27  Jim Meyering  <meyering@redhat.com>
7837
7838         test-xalloc-die: avoid spurious failure due to libtool argv difference
7839         In a libtool-enabled project, this test would fail due to a difference
7840         in the emitted program name, e.g.,
7841         -test-xalloc-die: memory exhausted
7842         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7843         Use program to avoid that.
7844         * modules/xalloc-die-tests (Depends-on): Add progname.
7845         * tests/test-xalloc-die.c: Include progname.h".
7846         (program_name): Remove decl.
7847         (main): Call set_program_name.
7848         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7849
7850 2009-11-26  Richard Jones  <rjones@redhat.com>
7851
7852         w32sock: leave win32 error in place.
7853         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7854
7855 2009-11-26  Eric Blake  <ebb9@byu.net>
7856
7857         init.sh: suggest to use skip_ and fail_ functions in comments
7858         * tests/init.sh: Add a sentence.
7859
7860 2009-11-25  Bruno Haible  <bruno@clisp.org>
7861
7862         init.sh: add documentation in comments
7863         * tests/init.sh: Add some developer and user documentation.
7864
7865 2009-11-26  Jim Meyering  <meyering@redhat.com>
7866
7867         init.sh: accommodate even those who specify bogus srcdir manually
7868         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7869         configure-time tests to be sanitized, so that there is no need to
7870         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7871         (with no double quotes) suffices.  However, since tests may be
7872         invoked manually, and since you may explicitly set srcdir to the
7873         name of a directory containing spaces, do quote its uses here.
7874         * tests/test-pread.sh: Likewise.
7875         Suggested by Bruno Haible.
7876
7877         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7878         * tests/test-pread.sh: Write no data into the pipe, because
7879         test-pread actually reads none.  This avoids a diagnostic,
7880         "bash: echo: write error: Broken pipe", that arises in the unusual
7881         event something is ignoring SIGPIPE, and might be interpreted
7882         as some sort of failure.  Reported by Bruno Haible.
7883
7884 2009-11-25  Jim Meyering  <meyering@redhat.com>
7885
7886         test-pread: cover failure with ESPIPE and EINVAL
7887         * tests/test-pread.c (main): Test for failure, too.
7888         * tests/test-pread.sh: Invoke with stdin on a pipe.
7889         Suggested by Eric Blake.
7890
7891         pread: improvement and fix
7892         * modules/pread (Depends-on): Depend on lseek, for portability to
7893         e.g., mingw.  Suggested by Eric Blake.
7894         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7895
7896         unistd.in.h: correct declaration of pread
7897         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7898         Reported by Richard W.M. Jones.
7899
7900         test-pread.sh: distribute the test script
7901         * modules/pread-tests (Files): Include test-pread.sh.
7902
7903         test-pread.sh: clean up
7904         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7905         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7906         That is unnecessary, since it's always ".".
7907         Suggestion from Eric Blake.
7908
7909         test-pread.sh: make executable
7910         * tests/test-pread.sh: Set executable bit.
7911         Reported by Eric Blake.
7912
7913         correct typo in test-pread.sh
7914         * tests/test-pread.sh: Add #! line.
7915
7916         test pread
7917         * tests/test-pread.c: New file.
7918         * tests/test-pread.sh: Likewise.
7919         * modules/pread-tests: Likewise.
7920
7921         pread: new module
7922         * modules/pread: New file.
7923         * lib/unistd.in.h (pread): Define/declare.
7924         * lib/pread.c (pread): New file.
7925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7926         * modules/unistd (Makefile.am): Substitute witnesses.
7927         * doc/posix-functions/pread.texi (pread): Update.
7928         * MODULES.html.sh: Add pread.
7929
7930 2009-11-25  Jim Meyering  <meyering@redhat.com>
7931
7932         tests/init.sh: new file to be used via most *.sh tests
7933         * tests/init.sh: New file.
7934
7935 2009-11-25  Eric Blake  <ebb9@byu.net>
7936
7937         utimens: work around older Linux failure with symlinks
7938         * lib/utimens.c (lutimensat_works_really): New variable.
7939         (fdutimens, lutimens): Use it to manage kernels that support
7940         nanosecond times on files, but not on symlinks.
7941         Reported by OndÅ™ej Vašík.
7942
7943         utimes: fix configure grammar
7944         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7945
7946 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7947
7948         regex: Fix fastmap for multibyte character ranges.
7949         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7950         characters when a multibyte character range is included.
7951
7952 2009-11-22  Andy Wingo  <wingo@pobox.com>
7953
7954         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7955         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7956
7957 2009-11-24  Bruno Haible  <bruno@clisp.org>
7958
7959         doc: Most *_l functions exist in MacOS X 10.5.
7960         * doc/posix-functions/duplocale.texi: Update platforms list.
7961         * doc/posix-functions/freelocale.texi: Likewise.
7962         * doc/posix-functions/newlocale.texi: Likewise.
7963         * doc/posix-functions/uselocale.texi: Likewise.
7964         * doc/posix-functions/isalnum_l.texi: Likewise.
7965         * doc/posix-functions/isalpha_l.texi: Likewise.
7966         * doc/posix-functions/isblank_l.texi: Likewise.
7967         * doc/posix-functions/iscntrl_l.texi: Likewise.
7968         * doc/posix-functions/isdigit_l.texi: Likewise.
7969         * doc/posix-functions/isgraph_l.texi: Likewise.
7970         * doc/posix-functions/islower_l.texi: Likewise.
7971         * doc/posix-functions/isprint_l.texi: Likewise.
7972         * doc/posix-functions/ispunct_l.texi: Likewise.
7973         * doc/posix-functions/isspace_l.texi: Likewise.
7974         * doc/posix-functions/isupper_l.texi: Likewise.
7975         * doc/posix-functions/iswalnum_l.texi: Likewise.
7976         * doc/posix-functions/iswalpha_l.texi: Likewise.
7977         * doc/posix-functions/iswblank_l.texi: Likewise.
7978         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7979         * doc/posix-functions/iswctype_l.texi: Likewise.
7980         * doc/posix-functions/iswdigit_l.texi: Likewise.
7981         * doc/posix-functions/iswgraph_l.texi: Likewise.
7982         * doc/posix-functions/iswlower_l.texi: Likewise.
7983         * doc/posix-functions/iswprint_l.texi: Likewise.
7984         * doc/posix-functions/iswpunct_l.texi: Likewise.
7985         * doc/posix-functions/iswspace_l.texi: Likewise.
7986         * doc/posix-functions/iswupper_l.texi: Likewise.
7987         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7988         * doc/posix-functions/isxdigit_l.texi: Likewise.
7989         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7990         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7991         * doc/posix-functions/strcoll_l.texi: Likewise.
7992         * doc/posix-functions/strfmon_l.texi: Likewise.
7993         * doc/posix-functions/strftime_l.texi: Likewise.
7994         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7995         * doc/posix-functions/strxfrm_l.texi: Likewise.
7996         * doc/posix-functions/tolower_l.texi: Likewise.
7997         * doc/posix-functions/toupper_l.texi: Likewise.
7998         * doc/posix-functions/towctrans_l.texi: Likewise.
7999         * doc/posix-functions/towlower_l.texi: Likewise.
8000         * doc/posix-functions/towupper_l.texi: Likewise.
8001         * doc/posix-functions/wcscoll_l.texi: Likewise.
8002         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8003         * doc/posix-functions/wctrans_l.texi: Likewise.
8004         * doc/posix-functions/wctype_l.texi: Likewise.
8005         * doc/glibc-functions/strptime_l.texi: Likewise.
8006         * doc/glibc-functions/strtod_l.texi: Likewise.
8007         * doc/glibc-functions/strtof_l.texi: Likewise.
8008         * doc/glibc-functions/strtol_l.texi: Likewise.
8009         * doc/glibc-functions/strtold_l.texi: Likewise.
8010         * doc/glibc-functions/strtoll_l.texi: Likewise.
8011         * doc/glibc-functions/strtoul_l.texi: Likewise.
8012         * doc/glibc-functions/strtoull_l.texi: Likewise.
8013         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8014         * doc/glibc-functions/wcstod_l.texi: Likewise.
8015         * doc/glibc-functions/wcstof_l.texi: Likewise.
8016         * doc/glibc-functions/wcstol_l.texi: Likewise.
8017         * doc/glibc-functions/wcstold_l.texi: Likewise.
8018         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8019         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8020         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8021
8022 2009-11-24  Bruno Haible  <bruno@clisp.org>
8023
8024         duplocale: Fix logic bug.
8025         * lib/duplocale.c: Don't include <langinfo.h>.
8026         (_NL_LOCALE_NAME): Remove macro.
8027         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8028         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8029
8030 2009-11-23  Jim Meyering  <meyering@redhat.com>
8031
8032         test-update-copyright: don't hard-code /usr/bin/perl
8033         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8034         perl to print the current year.  Gilles Espinasse reported that
8035         the replaced use of perl was hard-coded as /usr/bin/perl.
8036
8037 2009-11-23  Bruno Haible  <bruno@clisp.org>
8038
8039         duplocale: Add support for glibc 2.3.x.
8040         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8041
8042 2009-11-22  Bruno Haible  <bruno@clisp.org>
8043
8044         vasnprintf: Tiny optimization.
8045         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8046         MacOS X.
8047
8048 2009-11-22  Bruno Haible  <bruno@clisp.org>
8049
8050         Tests for module 'duplocale'.
8051         * modules/duplocale-tests: New file.
8052         * tests/test-duplocale.c: New file.
8053
8054         New module 'duplocale'.
8055         * m4/duplocale.m4: New file.
8056         * lib/locale.in.h (duplocale): New declaration.
8057         * lib/duplocale.c: New file.
8058         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8059         gl_LOCALE_H_DEFAULTS): New macros.
8060         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8061         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8062         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8063         REPLACE_DUPLOCALE.
8064         * modules/duplocale: New file.
8065         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8066
8067 2009-11-22  Bruno Haible  <bruno@clisp.org>
8068
8069         * modules/locale-tests (configure.ac): Test for newlocale function.
8070         * tests/test-locale.c: When the system has extended locale functions,
8071         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8072
8073         locale: Make locale_t available when possible.
8074         * lib/locale.in.h: Include <xlocale.h> when it exists.
8075         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8076         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8077         * modules/locale (Depends-on): Add extensions.
8078         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8079         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8080
8081 2009-11-22  Bruno Haible  <bruno@clisp.org>
8082
8083         Add comments.
8084         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8085         invocation.
8086         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8087         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8088         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8089
8090 2009-11-22  Bruno Haible  <bruno@clisp.org>
8091
8092         error: account for the possibility of freopen (stdout).
8093         * lib/error.c: Include <unistd.h>.
8094         (flush_stdout): New function, extracted from error and error_at_line.
8095         Determine stdout's fd dynamically.
8096         (error, error_at_line): Invoke flush_stdout.
8097         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8098         * modules/error (Depends-on): Add unistd.
8099
8100 2009-11-22  Bruno Haible  <bruno@clisp.org>
8101
8102         diffseq: Add comment.
8103         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8104
8105 2009-11-22  Jim Meyering  <meyering@redhat.com>
8106
8107         c-stack: avoid defining an unused static function
8108         * lib/c-stack.c (find_stack_direction): Do not define this function
8109         when it will not be used.
8110
8111         diffseq: avoid spurious gcc warnings
8112         * lib/diffseq.h (IF_LINT2): Define.
8113         (compareseq): Use it to initialize two members of "part".
8114         This avoids two used-uninitialized warnings.
8115
8116 2009-11-21  Jim Meyering  <meyering@redhat.com>
8117
8118         c-stack: avoid "ignoring return value of `write'" warning
8119         * lib/c-stack.c: Include "ignore-value.h".
8120         (die): Explicitly ignore each write return value.
8121         * modules/c-stack (Depends-on): Add ignore-value.
8122
8123 2009-11-21  Bruno Haible  <bruno@clisp.org>
8124
8125         diffseq: reduce scope of variable 'best'.
8126         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8127         variable, earlier used for two different purposes.
8128
8129 2009-11-21  Jim Meyering  <meyering@redhat.com>
8130
8131         diffseq: remove useless assignment to "best"
8132         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8133         assignment.  At that point "best" is already guaranteed to be zero.
8134
8135 2009-11-20  Eric Blake  <ebb9@byu.net>
8136
8137         build: mention ftp redirector in release announcements
8138         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8139         values that used to come from cfg.mk; mention FTP redirect URL.
8140         * build-aux/announce-gen: Mention the mirror list.
8141         Suggested by Karl Berry.
8142
8143         nanosleep: improve port to mingw
8144         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8146         LIB_NANOSLEEP, but only when needed.
8147         * modules/select (Link): Document LIBSOCKET.
8148         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8149         enough.
8150
8151         nanosleep: work around cygwin bug
8152         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8153         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8154         bug.
8155         (getnow): Delete, not needed.
8156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8157         LIB_CLOCK_GETTIME.
8158         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8159         clock-time, gettime.
8160         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8161         bug.
8162         * modules/nanosleep-tests: New test.
8163         * tests/test-nanosleep.c: New file.
8164
8165         sleep: work around cygwin bug
8166         * lib/sleep.c (rpl_sleep): Work around the bug.
8167         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8168         (gl_PREREQ_SLEEP): Delete unused macro.
8169         * modules/sleep (Depends-on): Add verify.
8170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8171         * modules/unistd (Makefile.am): Substitute witness.
8172         * lib/unistd.in.h (sleep): Update prototype.
8173         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8174         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8175         * modules/sleep-tests (Depends-on): Check for alarm.
8176
8177 2009-11-20  Jim Meyering  <meyering@redhat.com>
8178
8179         maint.mk: improve sc_prohibit_magic_number_exit
8180         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8181         so it does not match uses like System.exit(1).
8182         Add comments showing how to correct all offenders.
8183
8184 2009-11-19  Eric Blake  <ebb9@byu.net>
8185
8186         xalloc-die-tests: add missing library
8187         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8188
8189         test-xvasprintf: silence compiler warnings
8190         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8191         empty string from gcc.
8192
8193 2009-11-19  Jim Meyering  <meyering@redhat.com>
8194
8195         xfreopen: new module, from coreutils
8196         * modules/xfreopen: New module.
8197         * lib/xfreopen.c: New file.
8198         * lib/xfreopen.h: New file.
8199         * MODULES.html.sh (File stream based Input/Output"): Add it.
8200
8201 2009-11-19  Eric Blake  <ebb9@byu.net>
8202
8203         manywarnings: depend on warnings
8204         * modules/manywarnings (Depends-on): Add warnings.
8205
8206         build: avoid compiler warnings
8207         * lib/select.c (rpl_select): Delete unused variable.
8208         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8209
8210 2009-11-18  Eric Blake  <ebb9@byu.net>
8211
8212         tests: avoid false negative with --with-packager
8213         * tests/test-version-etc.sh: Discard packager information.
8214         * tests/test-argp-version-etc-1.sh: Likewise.
8215         Reported by Mike Frysinger.
8216
8217         utimens: fix regression on Solaris
8218         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8219         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8220         can only change fd timestamps via futimesat.  Instead, use an
8221         additional witness macro to avoid BSD bug.
8222         Reported by Jim Meyering.
8223
8224 2009-11-17  Eric Blake  <ebb9@byu.net>
8225
8226         usleep: use it to simplify tests
8227         * modules/stat-time-tests (Depends-on): Add usleep.
8228         (configure.ac): Drop usleep check.
8229         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8230         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8231         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8232         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8233         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8234         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8235         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8236         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8237         Likewise.
8238         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8239         * tests/test-lchown.h (nap): Likewise.
8240         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8241         * tests/test-stat-time.c (nap): Likewise.
8242         * tests/test-utimens-common.h (nap): Update comments.
8243
8244         usleep: new module
8245         * modules/usleep: New file.
8246         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8247         * lib/usleep.c (usleep): Likewise.
8248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8249         * modules/unistd (Makefile.am): Substitute witnesses.
8250         * lib/unistd.in.h (usleep): Add declaration.
8251         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8252         * MODULES.html.sh (Date and time): Likewise.
8253         * modules/usleep-tests (Depends-on): New test.
8254         * tests/test-usleep.c: New file.
8255
8256         chown: work around OpenBSD bug
8257         * lib/chown.c (rpl_chown): Work around the bug.
8258         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8259         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8261         * modules/chown (Depends-on): Add stdbool.
8262         * modules/lchown (Depends-on): Likewise.
8263         * doc/posix-functions/chown.texi (chown): Document the bug.
8264         * doc/posix-functions/lchown.texi (lchown): Likewise.
8265         * tests/test-lchown.h (test_chown): Relax test.
8266
8267         mkstemp: avoid conflict with C++ keyword template
8268         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8269         * lib/mkostemp.c (mkostemp): Likewise.
8270         * lib/mkostemps.c (mkostemps): Likewise.
8271         * lib/mkstemp.c (mkstemp): Likewise.
8272         * lib/mkstemps.c (mkstemps): Likewise.
8273
8274         xalloc-die-tests: optimize
8275         * tests/test-xalloc-die.sh: Reduce number of processes.
8276
8277 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8278
8279         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8280         patch from ludo@gnu.org (Ludovic Courtès).
8281
8282 2009-11-17  Jim Meyering  <meyering@redhat.com>
8283
8284         version-etc: use proper license string
8285         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8286         * modules/version-etc-fsf: Likewise.
8287
8288 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8289
8290         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8291         printed to stdout.  Deal with EOL differences.
8292
8293 2009-11-17  Eric Blake  <ebb9@byu.net>
8294
8295         unsetenv: work around Solaris bug
8296         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8297         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8298         Reported by Jim Meyering.
8299
8300         vasnprintf: avoid compiler warnings
8301         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8302         variables.
8303         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8304
8305 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8306
8307         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8308         settings since xalloc-die is no longer the self test,
8309         xalloc-die.sh is.
8310
8311 2009-11-17  Jim Meyering  <meyering@redhat.com>
8312
8313         test-xalloc-die.sh: make the code agree with the commit log
8314         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8315         at the end, just in case you happen to have a test-xalloc-die
8316         program in some other PATH directory.
8317
8318         test-xalloc-die.sh: fix a portability bug
8319         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8320         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8321         Otherwise, argv[0] (as often seen in diagnostics) would be too
8322         system-dependent, sometimes with, and sometimes without the leading "./".
8323
8324         version-etc-fsf: relax license to LGPLv3+
8325         * modules/version-etc-fsf (License): Relax license.
8326
8327 2009-11-16  Eric Blake  <ebb9@byu.net>
8328
8329         xalloc-die-tests: avoid printing null pointer
8330         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8331         shell script.
8332         * tests/test-xalloc-die.c (program_name): Declare.
8333         * tests/test-xalloc-die.sh (tmpfiles): New file.
8334
8335         setenv, unsetenv: work around various bugs
8336         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8337         (setenv) [HAVE_SETENV]: Work around bugs.
8338         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8340         for bugs.
8341         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8342         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8344         * modules/stdlib (Makefile.am): Update substitutions.
8345         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8346         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8347         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8348         * modules/setenv-tests: New test.
8349         * modules/unsetenv-tests: Likewise.
8350         * tests/test-setenv.c: New file.
8351         * tests/test-unsetenv.c: Likewise.
8352
8353 2009-11-16  Jim Meyering  <meyering@redhat.com>
8354
8355         version-etc: relax license to LGPLv3+
8356         * modules/version-etc (License): Relax license.
8357
8358         better AC_REQUIRE expanded-before-required-warning avoidance
8359         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8360         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8361         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8362         which is no longer needed.
8363
8364 2009-11-16  Eric Blake  <ebb9@byu.net>
8365
8366         test-freading: clean up temporary file
8367         * tests/test-freading.c (main): Remove file on success, and use
8368         ASSERT more liberally.
8369         Reported by Jim Meyering.
8370
8371 2009-11-16  Jim Meyering  <meyering@redhat.com>
8372
8373         avoid new AC_REQUIRE expanded-before-required warnings
8374         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8375         merely using it.
8376         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8377         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8378
8379 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8380
8381         * tests/test-xalloc-die.c: New file.
8382         * modules/xalloc-die-tests: New file.
8383         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8384         XFAIL_TESTS so it can be appended by modules.
8385
8386 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8387
8388         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8389         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8390
8391 2009-11-14  Eric Blake  <ebb9@byu.net>
8392
8393         fnmatch: avoid compiler warning
8394         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8395         to silence compiler warning about mismatch signedness in ?:.
8396         Reported by Robert Millan.
8397
8398         intprops: add double-inclusion guard
8399         * lib/intprops.h: Allow idempotent includes.
8400         Suggested by Bruce Korb.
8401
8402         openat: detect Solaris fchownat bug
8403         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8404         penalizing glibc chownat when only lchownat is broken.
8405         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8406         trailing slash bugs.
8407         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8408         * modules/openat-tests (Files): Include more files.
8409         (Depends-on): Add mgetgroups, sleep, stat-time.
8410         (configure.ac): Add additional checks.
8411         (Makefile.am): Build new test.
8412         * tests/test-fchownat.c: New file.
8413
8414         lchown: detect Solaris and FreeBSD bug
8415         * lib/lchown.c (rpl_lchown): Work around bug.
8416         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8418         * modules/unistd (Makefile.am): Populate it.
8419         * lib/unistd.in.h (lchown): Update declaration.
8420         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8421         * modules/lchown-tests: New file.
8422         * tests/test-lchown.h (test_lchown): Likewise.
8423         * tests/test-lchown.c (main): Likewise.
8424
8425         chown: detect Solaris and FreeBSD bug
8426         * lib/chown.c (rpl_chown): Work around bug.
8427         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8428         (gl_PREREQ_CHOWN): Delete.
8429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8430         * modules/unistd (Makefile.am): Populate it.
8431         * lib/unistd.in.h (chown): Update declaration.
8432         * lib/lchown.c (chown): Update client.
8433         * modules/lchown (Depends-on): Add lstat.
8434         * doc/posix-functions/chown.texi (chown): Document the bug.
8435         * doc/posix-functions/getgroups.texi (getgroups): Document
8436         getgroups pitfall.
8437         * modules/chown-tests: New file.
8438         * tests/test-chown.h (test_chown): Likewise.
8439         * tests/test-chown.c (main): Likewise.
8440
8441 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8442
8443         gnulib-tool: correctly detect absence of m4 directories
8444         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8445
8446 2009-11-14  Jim Meyering  <meyering@redhat.com>
8447
8448         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8449         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8450
8451 2009-11-14  John W. Eaton  <jwe@gnu.org>
8452
8453         strftime.h: wrap funtion declaration in extern "C" block
8454         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8455
8456 2009-11-13  Eric Blake  <ebb9@byu.net>
8457
8458         getgroups: avoid compiler warning
8459         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8460
8461         getgroups: work around FreeBSD bug
8462         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8463         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8464         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8465         * tests/test-getgroups.c (main): Fix buffer overrun.
8466
8467         getgroups: avoid compilation failure
8468         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8469         * modules/getgroups (Depends-on): Add stdint.
8470
8471 2009-11-13  Jim Meyering  <meyering@redhat.com>
8472
8473         test-getgroups: avoid compilation failure
8474         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8475
8476 2009-11-13  Eric Blake  <ebb9@byu.net>
8477
8478         mgetgroups: new module, taken from coreutils
8479         * modules/mgetgroups: New file.
8480         * lib/mgetgroups.h: Likewise.
8481         * lib/mgetgroups.c (mgetgroups): Likewise.
8482         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8483         * MODULES.html.sh (Users and groups): Mention it.
8484
8485         getgroups: don't expose GETGROUPS_T to user
8486         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8487         an element at a time if GETGROUPS_T is wrong size.
8488         * lib/getugroups.h (getugroups): Change signature.
8489         * lib/unistd.in.h (getgroups): Likewise.
8490         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8491         signature needs fixing.
8492         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8493         AC_TYPE_GETGROUPS.
8494         * modules/group-member (Depends-on): Add getgroups.
8495         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8496         (group_member): Rely on getgroups replacement.
8497         * lib/getugroups.c (getugroups): Use gid_t.
8498         * tests/test-getgroups.c (main): Likewise.
8499         * NEWS: Mention the signature change.
8500         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8501         problem with signature.
8502         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8503         GETGROUPS_T is still useful for setgroups.
8504
8505         getgroups, getugroups: provide stubs for mingw
8506         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8507         * lib/getugroups.c (getugroups): Likewise.
8508         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8509         function.  Modernize replacement scheme.
8510         (gl_PREREQ_GETGROUPS): Delete.
8511         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8512         * modules/getgroups (configure.ac): Declare witness.
8513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8514         * modules/unistd (Depends-on): Substitute witness.
8515         * lib/unistd.in.h (getgroups): Declare replacement.
8516
8517         getgroups: avoid calling exit
8518         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8519         drop xalloc.
8520         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8521         dependencies.
8522         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8523         exiting, in the rare case of malloc failure.
8524
8525         getgroups: fix logic error
8526         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8527         has more than 20 groups.
8528         * modules/getgroups-tests: New test.
8529         * tests/test-getgroups.c: New file.
8530
8531 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8532
8533         * tests/test-base64.c: Improve.
8534
8535 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8536
8537         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8538         Blake <ebb9@byu.net>.
8539
8540 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8541
8542         * tests/test-xvasprintf.c: Add %s%s related checks.
8543
8544 2009-11-12  Eric Blake  <ebb9@byu.net>
8545
8546         version-etc: match standards.texi style
8547         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8548         and use <> only for URLs.
8549
8550 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8551
8552         fts: do not fail on a submount during traversal
8553         * lib/fts.c (fts_build): Read the stat info again after opening
8554         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8555         Original report at http://bugzilla.redhat.com/501848.
8556
8557 2009-11-12  Jim Meyering  <meyering@redhat.com>
8558
8559         bootstrap: sync from coreutils
8560         * build-aux/bootstrap (bootstrap_epilogue): New function.
8561         Use git_modules_config in one more place.  This make bootstrap's
8562         --gnulib-srcdir option more useful for testing.
8563
8564         bootstrap: generalize autoheader check
8565         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8566         AC_CONFIG_HEADERS.
8567
8568 2009-11-11  Eric Blake  <ebb9@byu.net>
8569
8570         mkfifoat: use new modules for Solaris and BSD bugs
8571         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8572         * lib/mkfifoat.c (mknodat): Split...
8573         * lib/mknodat.c (mknodat): ...into new file.
8574         * modules/mkfifoat (Files): Ship new file.
8575         (Depends-on): Add mkfifo, mknod.
8576         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8577         (Depends-on): Add symlink.
8578         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8579         redundant with test_mkfifo.h.
8580         (do_mkfifoat, do_mknodat): New helpers.
8581
8582         mknod: new module
8583         * modules/mknod: New file.
8584         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8585         * lib/mknod.c (mknod): Likewise.
8586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8587         defaults.
8588         * modules/sys_stat (Makefile.am): Substitute them.
8589         * lib/sys_stat.in.h (mknod): Declare replacement.
8590         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8591         Document it.
8592         * doc/posix-functions/mknod.texi (mknod): Likewise.
8593         * modules/mknod-tests: New test.
8594         * tests/test-mknod.c: Likewise.
8595
8596         mkfifo: new module
8597         * modules/mkfifo: New file.
8598         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8599         * lib/mkfifo.c (mkfifo): Likewise.
8600         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8601         defaults.
8602         * modules/sys_stat (Makefile.am): Substitute them.
8603         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8604         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8605         Document it.
8606         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8607         * modules/mkfifo-tests: New test.
8608         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8609         from test-mkfifoat.c.
8610         * tests/test-mkfifo.c: New file.
8611
8612         readlink: detect FreeBSD bug
8613         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8614         slash on symlink.
8615         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8616         * tests/test-readlink.h (test_readlink): Enhance test.
8617
8618         symlink: detect FreeBSD bug
8619         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8620         slash on symlink.
8621         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8622         * tests/test-symlink.h (test_symlink): Enhance test.
8623
8624 2009-11-10  Eric Blake  <ebb9@byu.net>
8625
8626         link: detect FreeBSD bug
8627         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8628         symlink.
8629         * doc/posix-functions/link.texi (link): Document the bug.
8630         * tests/test-link.h (test_link): Enhance test.
8631         * tests/test-linkat.c (main): Update caller.
8632
8633         unlink, remove: detect FreeBSD bug
8634         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8635         slash on symlink.
8636         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8637         * doc/posix-functions/remove.texi (remove): Likewise.
8638         * tests/test-unlink.h (test_unlink): Enhance test.
8639         * tests/test-remove.c (main): Likewise.
8640
8641 2009-11-09  Eric Blake  <ebb9@byu.net>
8642
8643         rename: detect FreeBSD bug
8644         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8645         slash on symlink.
8646         * modules/renameat-tests (Depends-on): Add filenamecat.
8647         * tests/test-rename.h (test_rename): Allow one more errno.
8648         * tests/test-renameat.c (main): Likewise.
8649         * doc/posix-functions/rename.texi (rename): Document the bug.
8650
8651         open: detect FreeBSD bug
8652         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8653         symlink.
8654         * doc/posix-functions/open.texi (open): Document the bug.
8655         * doc/posix-functions/utimes.texi (utimes): Likewise.
8656         * tests/test-open.h (test_open): Add parameters, and test symlink
8657         handling.
8658         * tests/test-open.c (main): Adjust caller.
8659         * tests/test-fcntl-safer.c (main): Likewise.
8660         * modules/open-tests (Depends-on): Add stdbool, symlink.
8661         * modules/fcntl-safer-tests (Depends-on): Likewise.
8662         * tests/test-openat.c (main): Add test-open tests.
8663
8664         stat: detect FreeBSD bug
8665         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8666         symlink.
8667         * doc/posix-functions/stat.texi (stat): Document the bug.
8668         * tests/test-stat.h (test_stat_func): Add argument.
8669         * tests/test-stat.c (main): Adjust caller.
8670         * tests/test-fstatat.c (main): Likewise.
8671         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8672         Reported by Jim Meyering.
8673
8674 2009-11-09  James Youngman  <jay@gnu.org>
8675
8676         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8677         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8678
8679 2009-11-08  Jim Meyering  <meyering@redhat.com>
8680
8681         utimens: remove invalid futimesat call
8682         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8683         It used the file descriptor of the target file as the DIR_FD
8684         parameter and NULL as the file name.  That caused failure with
8685         errno == EFAULT on FreeBSD-8.0-rc2
8686
8687 2009-11-07  Eric Blake  <ebb9@byu.net>
8688
8689         fflush, freadseek: use fseeko, not fseek
8690         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8691         (clear_ungetc_buffer): Avoid potential problems on large files.
8692         * lib/freadseek.c (freadseek): Likewise.
8693         * modules/freadseek (Depends-on): Add fseeko.
8694         * modules/fseek (configure.ac): Set a witness.
8695         * tests/test-fflush.c (main): Use fseeko.
8696         * tests/test-fpurge.c (fseek): Disable link warning.
8697         * tests/test-freadable.c (fseek): Likewise.
8698         * tests/test-freading.c (fseek): Likewise.
8699         * tests/test-fseeko.c (fseek): Likewise.
8700         * tests/test-ftell.c (fseek): Likewise.
8701         * tests/test-ftello.c (fseek): Likewise.
8702         * tests/test-fwritable.c (fseek): Likewise.
8703         * tests/test-fwriting.c (fseek): Likewise.
8704
8705 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8706
8707         * modules/memchr (Depends-on): Drop getpagesize dependency.
8708
8709 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8710
8711         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8712         Reported by Ludovic Courtès.
8713         * build-aux/pmccabe2html: Improve example usage.
8714         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8715
8716 2009-11-06  Jim Meyering  <meyering@redhat.com>
8717
8718         do-release-commit-and-tag: New module.
8719         Automate the release-commit and tag process.
8720         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8721         * modules/do-release-commit-and-tag: New file.
8722         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8723
8724 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8725
8726         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8727         because test-select.c uses inet_pton.
8728
8729 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8730
8731         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8732         GETADDRINFO_LIB.  Bump serial number.
8733         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8734         Suggested by Eric Blake <ebb9@byu.net>.
8735
8736 2009-11-05  Eric Blake  <ebb9@byu.net>
8737
8738         strtod: detect darwin bug
8739         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8740         Reported by Leo Davis.
8741
8742         freopen-safer: new module
8743         * modules/freopen-safer: New module.
8744         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8745         * lib/freopen-safer.c (freopen_safer): New file.
8746         * lib/stdio-safer.h (freopen_safer): New declaration.
8747         * lib/stdio--.h (freopen): New override.
8748         * MODULES.html.sh (File stream based Input/Output): Mention it.
8749         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8750         freopen-safer module.
8751         * doc/posix-functions/stderr.texi (stderr): Likewise.
8752         * doc/posix-functions/stdin.texi (stdin): Likewise.
8753         * doc/posix-functions/stdout.texi (stdout): Likewise.
8754         * modules/freopen-safer-tests: New test.
8755         * tests/test-reopen-safer.c: New file.
8756
8757 2009-11-05  Jim Meyering  <meyering@redhat.com>
8758
8759         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8760         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8761
8762 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8763
8764         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8765
8766 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8767
8768         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8769
8770 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8771
8772         Fix link error.
8773         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8774         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8775
8776 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8777
8778         * tests/test-func.c: Also test value of __func__.
8779
8780 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8781
8782         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8783         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8784
8785 2009-11-05  Bruno Haible  <bruno@clisp.org>
8786
8787         Fix link error.
8788         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8789         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8790         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8791
8792 2009-11-05  Bruno Haible  <bruno@clisp.org>
8793
8794         Tests for module 'inet_pton'.
8795         * modules/inet_pton-tests: New file.
8796         * tests/test-inet_pton.c: New file.
8797
8798 2009-11-05  Bruno Haible  <bruno@clisp.org>
8799
8800         Tests for module 'inet_ntop'.
8801         * modules/inet_ntop-tests: New file.
8802         * tests/test-inet_ntop.c: New file.
8803
8804 2009-11-04  Eric Blake  <ebb9@byu.net>
8805
8806         stdlib-safer: wrap all mkstemp variants
8807         * modules/mkostemp (configure.ac): Set witness.
8808         * modules/mkostemps (configure.ac): Likewise.
8809         * modules/mkstemps (configure.ac): Likewise.
8810         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8811         (mkstemps_safer): Wrap more functions.
8812         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8813         wrapping.
8814         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8815         (mkstemps_safer): Implement the wrappers.
8816
8817         mkstemps, mkostemps: new modules
8818         * modules/mkostemps: New module.
8819         * modules/mkstemps: Likewise.
8820         * lib/mkostemps.c (mkostemps): New file.
8821         * lib/mkstemps.c (mkstemps): Likewise.
8822         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8823         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8825         * modules/stdlib (Makefile.am): Substitute them.
8826         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8827         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8828         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8829         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8830         * MODULES.html.sh (File system functions): Mention them.
8831
8832         tempname: resync from glibc
8833         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8834         same values for __GT_FILE as glibc.  Abort even when assertions
8835         are disabled.
8836         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8837         match its value otherwise.  Allow idempotent inclusion.
8838         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8839         * lib/mkostemp.c (mkostemp): Likewise.
8840         * lib/mkstemp.c (mkstemp): Likewise.
8841         * lib/tmpfile.c (tmpfile): Likewise.
8842         * NEWS: Document this.
8843
8844         utimens: fix use of futimens on older Linux
8845         * lib/utimens.c (fdutimens): Use updated, rather than original,
8846         timespec to avoid bug in older Linux kernel.
8847         Reported by Simon Josefsson.
8848
8849 2009-11-04  Bruno Haible  <bruno@clisp.org>
8850
8851         Make num_processors more flexible and consistent.
8852         * lib/nproc.h (enum nproc_query): New type.
8853         (num_processors): Add a 'query' argument.
8854         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8855         (num_processors): Add a 'query' argument. Test the value of the
8856         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8857         mingw, count the number of CPUs available for the current process.
8858         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8859         Check for sched_getaffinity and sched_getaffinity_np.
8860         * modules/nproc (Depends-on): Add c-ctype, extensions.
8861         * NEWS: Mention the change.
8862
8863 2009-11-03  Bruno Haible  <bruno@clisp.org>
8864
8865         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8866
8867 2009-11-03  Jim Meyering  <meyering@redhat.com>
8868
8869         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8870         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8871         if it is defined.
8872
8873 2009-11-02  Eric Blake  <ebb9@byu.net>
8874
8875         mktime, timegm: share common declaration
8876         * lib/mktime-internal.h: New file.
8877         * lib/mktime.c: Use it rather than open-coding a declaration.
8878         * lib/timegm.c: Likewise.
8879         * modules/mktime (Files): Ship it.
8880         * modules/timegm (Files): Likewise.
8881         Suggested by Bruno Haible.
8882
8883         test-update-copyright: update test to match script changes
8884         * tests/test-update-copyright.sh: Avoid hard-coding perl
8885         location.  Don't update *.bak created by earlier runs.
8886
8887 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8888             Simon Josefsson  <simon@josefsson.org>
8889             Bruno Haible  <bruno@clisp.org>
8890
8891         Fix link error on Solaris 8.
8892         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8893         also in libnsl. Define also INET_PTON_LIB.
8894         * modules/inet_pton (Link): New section.
8895
8896 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8897             Bruno Haible  <bruno@clisp.org>
8898
8899         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8900         * modules/inet_ntop (Link): New section.
8901         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8902
8903 2009-11-02  Eric Blake  <ebb9@byu.net>
8904
8905         maint: avoid compiler warnings in m4 macros
8906         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8907         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8908
8909 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8910
8911         * m4/pmccabe2html.m4: Remove file.
8912         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8913         function.  Change maintainer.
8914         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8915         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8916         Courtès).
8917
8918 2009-10-31  Eric Blake  <ebb9@byu.net>
8919
8920         fseeko: fix m4 regression
8921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8922         regression from 2009-10-27.
8923         Reported by Ralf Wildenhues.
8924
8925 2009-10-31  Jim Meyering  <meyering@redhat.com>
8926
8927         inttostr: aesthetics and improved (compile-time) safety
8928         Define inttype_is_signed rather than inttype_is_unsigned,
8929         since the sole use is via "#if inttype_is_signed".
8930         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8931         inttype_is_unsigned.
8932         * lib/offtostr.c (inttype_is_signed): Likewise.
8933         * lib/uinttostr.c (inttype_is_signed): Likewise.
8934         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8935         * lib/inttostr.c (inttostr): Use verify to cross-check the
8936         inttype_is_signed value and the signedness of the actual type.
8937         * modules/inttostr (Depends-on): Add verify.
8938
8939 2009-10-30  Eric Blake  <ebb9@byu.net>
8940
8941         build: avoid compiler warnings
8942         * lib/fchmodat.c (lchmod): Mark unused variables.
8943         * lib/getopt.c (_getopt_initialize): Likewise.
8944         * lib/mktime.c (__mktime_internal): Provide prototype.
8945         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8946         older gcc that do not understand #pragma GCC diagnostic.
8947         * lib/uinttostr.c (inttype_is_unsigned): Define.
8948         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8949
8950 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8951
8952         stat: fix compilation on AIX
8953         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8954         only see struct stat64.
8955
8956 2009-10-30  Eric Blake  <ebb9@byu.net>
8957
8958         exclude: make more robust
8959         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8960         rather than masking a coding bug.
8961         Suggested by Bruno Haible.
8962
8963 2009-10-30  Jim Meyering  <meyering@redhat.com>
8964
8965         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8966         Rather than putting #!/usr/bin/perl on the first line,
8967         start with a variant of what's recommended by "man perlrun" that
8968         invokes the first "perl" program from your shell's search path.
8969         * build-aux/gitlog-to-changelog: Replace #!... as above.
8970         Add a "Local Variables" perl mode setting.
8971         Prompted by a patch from Ludovic Courtès.
8972         Improved by Eric Blake.
8973         * build-aux/useless-if-before-free: Likewise.
8974         * build-aux/announce-gen: Likewise.
8975         * build-aux/update-copyright: Likewise.
8976
8977 2009-10-29  Eric Blake  <ebb9@byu.net>
8978
8979         filenamecat-lgpl: adjust clients
8980         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8981         filenamecat.
8982         * modules/renameat (Depends-on): Likewise.
8983
8984         filenamecat: split into filenamecat-lgpl
8985         * modules/filenamecat-lgpl: New module.
8986         * modules/filenamecat (Files): Move library-safe files into
8987         filenamecat-lgpl.
8988         (Depends-on): Add filenamecat-lgpl.
8989         (configure.ac): Declare witness.
8990         * lib/filenamecat.h (file_name_concat): Only declare when using
8991         GPL module.
8992         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8993         Move...
8994         * lib/filenamecat-lgpl.c: ...into new file.
8995         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8996         (gl_FILE_NAME_CONCAT): Use it.
8997         * MODULES.html.sh (File system functions): Mention new module.
8998
8999         argp: avoid memory leak
9000         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9001         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9002         base_name, since the latter malloc()s and can call exit().
9003         Leak introduced 2006-07-03.
9004
9005         dirname-lgpl: adjust clients that don't need full dirname
9006         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9007         * modules/filenamecat (Depends-on): Likewise.
9008         * modules/linkat (Depends-on): Likewise.
9009         * modules/mkancesdirs (Depends-on): Likewise.
9010         * modules/mkdir (Depends-on): Likewise.
9011         * modules/openat (Depends-on): Likewise.
9012         * modules/savewd (Depends-on): Likewise.
9013         * modules/rename (Depends-on): Likewise.
9014         (License): Relax license.
9015         * modules/mkdir-tests (Depends-on): Drop progname.
9016         (Makefile.am): Delete unneeded LDADD.
9017         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9018
9019         dirname: split into dirname-lgpl
9020         * modules/dirname-lgpl: New module.
9021         * modules/dirname (Files): Move library-safe files into
9022         dirname-lgpl.
9023         (Depends-on): Add dirname-lgpl.
9024         (configure.ac): Declare witness.
9025         * modules/double-slash-root (License): Relax license.
9026         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9027         module.
9028         * lib/dirname.c (dir_len, mdir_name): Move...
9029         * lib/dirname-lgpl.c: ...into new file.
9030         * lib/basename.c (last_component, base_len): Move...
9031         * lib/basename-lgpl.c: ...into new file.
9032         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9033         (gl_DIRNAME): Use it.
9034         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9035         Mention new module.
9036         * modules/dirname-tests (Depends-on): Add progname.
9037         * tests/test-dirname.c (program_name): Delete.
9038
9039         mkdir: make safe for libraries
9040         * modules/mkdir (Depends-on): Drop xalloc.
9041         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9042         exit.
9043
9044         tests: avoid some compiler warnings
9045         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9046         literals.
9047         * tests/test-memchr.c (main): Avoid type mismatch.
9048         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9049         * tests/test-base64.c (main): Likewise.
9050         * tests/test-getdelim.c (main): Likewise.
9051         * tests/test-gethostname.c (main): Likewise.
9052         * tests/test-getline.c (main): Likewise.
9053         * tests/test-netinet_in.c (main): Likewise.
9054         * tests/test-select.c (open_server_socket, main): Likewise.
9055         * tests/test-select-stdin.c (main): Likewise.
9056         * tests/test-sockets.c (main): Likewise.
9057         * tests/test-strsignal.c (main): Likewise.
9058         * tests/test-sys_select.c (main): Likewise.
9059         * tests/test-sys_socket.c (main): Likewise.
9060         * tests/test-u64.c (main): Likewise.
9061         * tests/test-xfprintf-posix.c (main): Likewise.
9062         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9063
9064         sockets: avoid compiler warning
9065         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9066
9067         maint: detect usage(1) and other suspicious exits
9068         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9069
9070 2009-10-29  Jim Meyering  <meyering@redhat.com>
9071
9072         timespec: long-to-int truncation could make timespec_cmp malfunction
9073         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9074         a multiple of 2^32 nanoseconds as no difference.
9075
9076 2009-10-28  Jim Meyering  <meyering@redhat.com>
9077
9078         fprintftime: wrap macro code argument in "do {...} while(0)"
9079         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9080         cpy macro must be a statement that can be followed by a semicolon.
9081         Now that the else clause contains a comment and is hence longer
9082         than one line, I require curly braces.  That in turn requires
9083         that we wrap this code block in the standard do...while(0).
9084
9085         fprintftime: remove stray semicolon from previous change
9086         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9087
9088         fprintftime: avoid a warning about ignored fwrite return value
9089         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9090         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9091         that is unsafe.
9092         * modules/fprintftime (Depends-on): Add ignore-value.
9093
9094         exclude: avoid an unwarranted warning
9095         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9096
9097 2009-10-27  Eric Blake  <ebb9@byu.net>
9098
9099         fseek: avoid compilation failure when fflush is replaced
9100         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9101         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9102         module is in use.
9103         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9104         module is not in use; since REPLACE_FSEEK worked otherwise.
9105         (GNULIB_FTELLO): Likewise for ftell.
9106         Reported by Ian Beckwith and others.
9107
9108 2009-10-27  Bruno Haible  <bruno@clisp.org>
9109
9110         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9111         Reported by Jim Meyering.
9112
9113 2009-10-27  Jim Meyering  <jim@meyering.net>
9114             Bruno Haible  <bruno@clisp.org>
9115
9116         Avoid warning despite dropping the return value of fwrite.
9117         * lib/unicodeio.c: Include ignore-value.h.
9118         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9119         * modules/unicodeio (Depends-on): Add ignore-value.
9120
9121 2009-10-26  Eric Blake  <ebb9@byu.net>
9122
9123         areadlinkat: fix fallback path
9124         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9125         pointer and zero.
9126
9127 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9128
9129         Use a better IO block size for modern systems
9130         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9131         * lib/md2.c: Likewise.
9132         * lib/md4.c: Likewise.
9133         * lib/md5.c: Likewise.
9134         * lib/sha1.c: Likewise.
9135         * lib/sha256.c: Likewise.
9136         * lib/sha512.c: Likewise.
9137
9138 2009-10-22  Eric Blake  <ebb9@byu.net>
9139
9140         tests: avoid several compiler warnings
9141         * tests/test-getcwd.c (main): Avoid buffer underflow.
9142         * tests/test-getdate.c (main): String literals are not safe with
9143         putenv, so use setenv.  Declare unused argument.
9144         * modules/getdate-tests (Depends-on): Add setenv.
9145         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9146         problems with string literals in char *.
9147         * tests/test-hash.c (main): Avoid shadowing declaration.
9148         (insert_new): Treat string literals as char const *.
9149         * tests/test-getopt.h (test_getopt): Likewise.
9150         (getopt_loop): Alter types to minimize casting elsewhere.
9151         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9152         (test_getopt_long_posix): Likewise.
9153         (do_getopt_long): Add wrapper to minimize casting.
9154         * tests/test-atexit.c (clear_temp_file): Use void.
9155         * tests/test-areadlink-with-size.c (main): Declare unused
9156         arguments.
9157         * tests/test-areadlink.c (main): Likewise.
9158         * tests/test-areadlinkat-with-size.c (main): Likewise.
9159         * tests/test-areadlinkat.c (main): Likewise.
9160         * tests/test-canonicalize-lgpl.c (main): Likewise.
9161         * tests/test-canonicalize.c (main): Likewise.
9162         * tests/test-dirent-safer.c (main): Likewise.
9163         * tests/test-dirname.c (main): Likewise.
9164         * tests/test-dup2.c (main): Likewise.
9165         * tests/test-fchdir.c (main): Likewise.
9166         * tests/test-fcntl-h.c (main): Likewise.
9167         * tests/test-fcntl-safer.c (main): Likewise.
9168         * tests/test-fdopendir.c (main): Likewise.
9169         * tests/test-fdutimensat.c (main): Likewise.
9170         * tests/test-fflush.c (main): Likewise.
9171         * tests/test-filenamecat.c (main): Likewise.
9172         * tests/test-filevercmp.c (main): Likewise.
9173         * tests/test-fopen-safer.c (main): Likewise.
9174         * tests/test-fopen.c (main): Likewise.
9175         * tests/test-fpending.c (main): Likewise.
9176         * tests/test-fpurge.c (main): Likewise.
9177         * tests/test-freading.c (main): Likewise.
9178         * tests/test-fstatat.c (main): Likewise.
9179         * tests/test-fsync.c (main): Likewise.
9180         * tests/test-futimens.c (main): Likewise.
9181         * tests/test-getndelim2.c (main): Likewise.
9182         * tests/test-gettimeofday.c (main): Likewise.
9183         * tests/test-getopt.c (main): Likewise.
9184         * tests/test-i-ring.c (main): Likewise.
9185         * tests/test-inttypes.c (main): Likewise.
9186         * tests/test-link.c (main): Likewise.
9187         * tests/test-lstat.c (main): Likewise.
9188         * tests/test-math.c (main): Likewise.
9189         * tests/test-md5.c (main): Likewise.
9190         * tests/test-memchr2.c (main): Likewise.
9191         * tests/test-memrchr.c (main): Likewise.
9192         * tests/test-mkdir.c (main): Likewise.
9193         * tests/test-mkdirat.c (main): Likewise.
9194         * tests/test-mkfifoat.c (main): Likewise.
9195         * tests/test-open.c (main): Likewise.
9196         * tests/test-openat-safer.c (main): Likewise.
9197         * tests/test-openat.c (main): Likewise.
9198         * tests/test-quotearg.c (main): Likewise.
9199         * tests/test-rawmemchr.c (main): Likewise.
9200         * tests/test-readlink.c (main): Likewise.
9201         * tests/test-remove.c (main): Likewise.
9202         * tests/test-rename.c (main): Likewise.
9203         * tests/test-renameat.c (main): Likewise.
9204         * tests/test-rmdir.c (main): Likewise.
9205         * tests/test-sha1.c (main): Likewise.
9206         * tests/test-signal.c (main): Likewise.
9207         * tests/test-sigaction.c (main): Likewise.
9208         * tests/test-stat.c (main): Likewise.
9209         * tests/test-stat-time.c (main): Likewise.
9210         * tests/test-stddef.c (main): Likewise.
9211         * tests/test-stdint.c (main): Likewise.
9212         * tests/test-stdio.c (main): Likewise.
9213         * tests/test-stdlib.c (main): Likewise.
9214         * tests/test-strchrnul.c (main): Likewise.
9215         * tests/test-strerror.c (main): Likewise.
9216         * tests/test-string.c (main): Likewise.
9217         * tests/test-strtod.c (main): Likewise.
9218         * tests/test-strverscmp.c (main): Likewise.
9219         * tests/test-symlink.c (main): Likewise.
9220         * tests/test-symlinkat.c (main): Likewise.
9221         * tests/test-sys_stat.c (main): Likewise.
9222         * tests/test-sys_time.c (main): Likewise.
9223         * tests/test-time.c (main): Likewise.
9224         * tests/test-unistd.c (main): Likewise.
9225         * tests/test-unlink.c (main): Likewise.
9226         * tests/test-unlinkat.c (main): Likewise.
9227         * tests/test-utimens.c (main): Likewise.
9228         * tests/test-utimensat.c (main): Likewise.
9229         * tests/test-version-etc.c (main): Likewise.
9230         * tests/test-wchar.c (main): Likewise.
9231         * tests/test-wctype.c (main): Likewise.
9232         * tests/test-xprintf-posix.c (main): Likewise.
9233         * tests/test-posixtm.c (main): Likewise.
9234         (STREQ): Delete unused macro.
9235         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9236         shadowed variables.
9237         * tests/test-memchr.c (main): Likewise.
9238
9239 2009-10-21  Eric Blake  <ebb9@byu.net>
9240
9241         areadlinkat: avoid failure on older glibc
9242         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9243         rather than mis-comparing 0 against FUNC_RESULT of char*.
9244
9245 2009-10-21  Bruno Haible  <bruno@clisp.org>
9246
9247         * modules/stpncpy (License): Relicense under LGPLv2+.
9248         Reported by David Lutterkort <lutter@redhat.com>.
9249
9250 2009-10-20  Eric Blake  <ebb9@byu.net>
9251
9252         utimensat: work around Solaris 9 bug
9253         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9254         has trailing slash bugs.
9255         * tests/test-lutimens.h (test_lutimens): Enhance test.
9256         * tests/test-utimens.h (test_utimens): Likewise.
9257         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9258         * doc/posix-functions/utimes.texi (utimes): Likewise.
9259         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9260         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9261         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9262         * doc/posix-functions/futimens.texi (futimens): Likewise.
9263
9264         fdutimensat: new module
9265         * modules/fdutimensat: New file.
9266         * lib/fdutimensat.c (fdutimensat): Likewise.
9267         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9268         * MODULES.html.sh (File system functions): Mention module.
9269         * modules/fdutimensat-tests: New test.
9270         * tests/test-fdutimensat.c: Likewise.
9271
9272         doc: regenerate INSTALL
9273         * doc/INSTALL: Reflect recent autoconf update.
9274         * doc/INSTALL.ISO: Likewise.
9275         * doc/INSTALL.UTF-8: Likewise.
9276
9277 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9278
9279         acl: warn if ACL support is not detected
9280         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9281
9282 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9283
9284         * lib/nproc.h: Add extern "C" block for C++.
9285
9286 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9287             Bruno Haible  <bruno@clisp.org>
9288
9289         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9290         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9291         * doc/posix-functions/isalpha.texi: Likewise.
9292         * doc/posix-functions/isblank.texi: Likewise.
9293         * doc/posix-functions/iscntrl.texi: Likewise.
9294         * doc/posix-functions/isdigit.texi: Likewise.
9295         * doc/posix-functions/isgraph.texi: Likewise.
9296         * doc/posix-functions/islower.texi: Likewise.
9297         * doc/posix-functions/isprint.texi: Likewise.
9298         * doc/posix-functions/ispunct.texi: Likewise.
9299         * doc/posix-functions/isspace.texi: Likewise.
9300         * doc/posix-functions/isupper.texi: Likewise.
9301         * doc/posix-functions/isxdigit.texi: Likewise.
9302
9303 2009-10-18  Bruno Haible  <bruno@clisp.org>
9304
9305         Tests for module 'isblank'.
9306         * modules/isblank-tests: New file.
9307         * tests/test-isblank.c: New file.
9308
9309         New module 'isblank'.
9310         * lib/isblank.c: New file.
9311         * m4/isblank.m4: New file.
9312         * modules/isblank: New file.
9313         * doc/posix-functions/isblank.texi: Mention the new module.
9314
9315 2009-10-18  Bruno Haible  <bruno@clisp.org>
9316
9317         New module 'ctype'.
9318         * lib/ctype.in.h: New file.
9319         * m4/ctype.m4: New file.
9320         * modules/ctype: New file.
9321         * doc/posix-headers/ctype.texi: Mention the new module.
9322
9323 2009-10-18  Jim Meyering  <meyering@redhat.com>
9324
9325         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9326         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9327         right after its initialization, rather than farther down.
9328         Keeping these in close proximity makes it easier to ensure
9329         that each such variable is initialized.  E.g.,
9330
9331             LIB_CLOCK_GETTIME=
9332             AC_SUBST([LIB_CLOCK_GETTIME])
9333
9334         This change also increments these serial numbers.
9335         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9336         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9338
9339 2009-10-18  Bruno Haible  <bruno@clisp.org>
9340
9341         Don't let environment variables perturb build.
9342         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9343         (gl_PREREQ_GETHRXTIME): ... not here.
9344
9345 2009-10-18  Bruno Haible  <bruno@clisp.org>
9346
9347         Avoid symlink attack in localcharset module.
9348         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9349         (O_NOFOLLOW): Define fallback.
9350         (get_charset_aliases): Don't open the file if it is a symbolic link.
9351         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9352         gl_FCNTL_H.
9353         (gl_FCNTL_H): Require it.
9354         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9355         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9356         Reported by Fergal Glynn <fglynn@veracode.com>.
9357
9358 2009-10-18  Bruno Haible  <bruno@clisp.org>
9359
9360         Implement nproc for mingw.
9361         * lib/nproc.c: Include <windows.h>
9362         (num_processors): On native Windows platforms, try GetSystemInfo.
9363
9364 2009-10-18  Bruno Haible  <bruno@clisp.org>
9365
9366         Implement nproc for IRIX.
9367         * lib/nproc.c: Include <sys/sysmp.h>.
9368         (num_processors): On IRIX systems, try sysmp.
9369         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9370
9371 2009-10-18  Bruno Haible  <bruno@clisp.org>
9372
9373         Implement nproc for HP-UX.
9374         * lib/nproc.c: Include <sys/pstat.h>
9375         (num_processors): On HP-UX systems, try pstat_getdynamic.
9376         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9377         pstat_getdynamic.
9378
9379 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9380             Bruno Haible  <bruno@clisp.org>
9381
9382         Implement nproc for NetBSD, OpenBSD.
9383         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9384         (ARRAY_SIZE): New macro.
9385         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9386         * m4/nproc.m4: New file.
9387         * modules/nproc (Files): Add m4/nproc.m4.
9388         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9389         (Makefile.am): Instead, augment lib_SOURCES.
9390
9391 2009-10-18  Bruno Haible  <bruno@clisp.org>
9392
9393         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9394         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9395         sys/param.h.
9396
9397 2009-10-16  Eric Blake  <ebb9@byu.net>
9398
9399         utimensat: new module
9400         * modules/utimensat: New file.
9401         * lib/utimensat.c (utimensat): Likewise.
9402         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9403         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9404         so we can work around Linux bugs.
9405         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9406         * modules/sys_stat (Makefile.am): Substitute them.
9407         * lib/sys_stat.in.h (utimensat): Declare it.
9408         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9409         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9410         * modules/utimensat-tests: New test.
9411         * tests/test-utimensat.c: Likewise.
9412
9413         utimens: let lutimens work on non-symlinks
9414         * lib/utimens.c (lutimens): Fall back to utimens rather than
9415         failing with ENOSYS, when file is not a symlink.
9416         (utimens): Reduce redirection.
9417         * tests/test-lutimens.h (test_lutimens): Update test to cover
9418         non-symlinks.
9419         * tests/test-utimens.h (test_utimens): Update test to cover
9420         symlinks.
9421         * tests/test-utimens.c (main): Update caller.
9422
9423         utimens: cache whether utimensat syscall works
9424         * lib/utimens.c (utimensat_works_really): New cache variable.
9425         (fdutimens, lutimens): Use it to avoid failing syscall.
9426
9427         test-stat-time, test-utimens: improve portability
9428         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9429         ext4 on alpha, and for cygwin.
9430         * tests/test-utimens-common.h: New file.
9431         (nap): Factor delays into single function.
9432         * tests/test-lutimens.h (test_lutimens): Use new header.
9433         * tests/test-futimens.h (test_futimens): Likewise.
9434         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9435         timestamps to occur from same machine, as was done previously for
9436         test_utimens.
9437         * modules/utimens-tests (Files): Ship new file.
9438         * modules/futimens-tests (Files): Likewise.
9439         Reported in part by Jim Meyering.
9440
9441         sys_stat: sort replacement declarations
9442         * lib/sys_stat.in.h: Sort declarations.
9443         * lib/futimens.c (futimens): Fix typo.
9444
9445 2009-10-15  Jim Meyering  <meyering@redhat.com>
9446
9447         don't let environment settings perturb build
9448         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9449         could cause a configure-time and/or build-time malfunction.
9450         Typically, a configure-time function-in-library test is performed
9451         via code like this:
9452
9453           LIB_VAR=
9454           AC_SUBST([LIB_VAR])
9455           prefix_saved_LIBS=$LIBS
9456             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9457                        [test "$ac_cv_search_FUNC" = "none required" ||
9458                         LIB_VAR=$ac_cv_search_FUNC])
9459           LIBS=$prefix_saved_LIBS
9460
9461         However, in each of the files affected by this change, the LIB_VAR=
9462         initialization was omitted.  Thus, when set in the environment, its
9463         value would propagate into generated Makefiles when FUNC is not found
9464         in LIB_NAME.
9465         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9466         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9468
9469 2009-10-14  Eric Blake  <ebb9@byu.net>
9470
9471         fchdir: avoid infinite recursion in mingw
9472         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9473         recursing.
9474
9475         test-stat-time: port to mingw
9476         * tests/test-stat-time.c (force_unlink): Return a value.
9477         (test_ctime) [W32]: Fix compilation error.
9478         (nap): Don't call usleep with too large an argument.  Use
9479         force_unlink.
9480         * doc/pastposix-functions/usleep.texi (usleep): Document the
9481         portability issue.
9482
9483 2009-10-13  Jim Meyering  <meyering@redhat.com>
9484
9485         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9486         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9487         * modules/pipe-filter-ii: Likewise.
9488         * modules/sys_socket-tests: Likewise.
9489         * modules/tsearch-tests: Likewise.
9490         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9491         (check): Depend on it.
9492
9493 2009-10-12  Eric Blake  <ebb9@byu.net>
9494
9495         utimens-tests: port to NFS file systems
9496         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9497         comparisons to avoid spurious failures from timestamp drift
9498         between NFS machines.
9499
9500 2009-10-12  Eric Blake  <ebb9@byu.net>
9501
9502         stat-time-tests: minor cleanups
9503         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9504         * tests/test-stat-time.c (nap): Separate assignment from call.
9505         Suggested by Paolo Bonzini and Bruno Haible.
9506
9507         sys_stat: guarantee struct timespec
9508         * lib/sys_stat.in.h (includes): Always include <time.h>
9509         * modules/sys_stat (Depends-on): Add time.
9510         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9511         mode_t permission values.
9512         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9513         get at subsecond timestamps.
9514
9515 2009-10-10  Eric Blake  <ebb9@byu.net>
9516
9517         futimens: new module
9518         * modules/futimens: New file.
9519         * lib/futimens.c (futimens): Likewise.
9520         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9521         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9522         we can work around Linux bugs.
9523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9524         * modules/sys_stat (Makefile.am): Substitute them.
9525         * lib/sys_stat.in.h (futimens): Declare it.
9526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9527         * doc/posix-functions/futimens.texi (futimens): Likewise.
9528         * modules/futimens-tests: New test.
9529         * tests/test-futimens.c: Likewise.
9530
9531         utimens: introduce fdutimens
9532         * lib/utimens.h (fdutimens): New prototype.
9533         * lib/utimens.c (gl_futimens): Move guts...
9534         (fdutimens): ...to new interface.
9535         * tests/test-utimens.c (do_fdutimens): Use it.
9536
9537         utimens: add UTIME_NOW and UTIME_OMIT support
9538         * lib/utimens.c (validate_timespec, update_timespec): New helper
9539         functions.
9540         (gl_futimens, lutimens): Use them.
9541         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9542         stdbool, sys_stat.
9543         (Link): Mention resulting library dependency.
9544         * modules/utimecmp (Link): Likewise.
9545         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9546         (Makefile.am): Pick up library dependency.
9547         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9548         definition.
9549         * tests/test-sys_stat.c: Test the definitions.
9550         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9551         * NEWS: Document library dependency.
9552
9553         utimecmp: support symlink timestamps
9554         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9555         hashing when possible.  Use pathconf when available.
9556         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9557         * modules/utimecmp (Depends-on): Add lstat.
9558
9559         utimens: add lutimens interface
9560         * lib/utimens.c (lutimens): New function.
9561         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9562         * lib/utimens.h (lutimens): Declare new interface.
9563         * tests/test-utimens.c (main): Enhance test.
9564         * tests/test-lutimens.h (test_lutimens): New file.
9565         * modules/utimens-tests (Files): Distribute it.
9566         (Depends-on): Add symlink.
9567         (configure.ac): Check for usleep.
9568
9569         utimens: validate futimens usage
9570         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9571         fewer syscalls on failure later on.  Avoid compiler warning on
9572         mingw.
9573         * modules/utimens (Depends-on): Add dup2.
9574
9575         utimens: add test
9576         * modules/utimens-tests: New test.
9577         * tests/test-utimens.h: New file.
9578         * tests/test-futimens.h: Likewise.
9579         * tests/test-utimens.c: Likewise.
9580
9581         doc: mention timestamp portability issues
9582         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9583         instead.
9584         * doc/posix-functions/utime.texi (utime): Likewise.
9585         * doc/posix-functions/utimes.texi (utimes): Likewise.
9586         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9587         instead.
9588         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9589         module.
9590         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9591         Mention weakness with symlink timestamps.
9592         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9593         to utimensat/futimens instead.
9594         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9595
9596         test-dup2: enhance test
9597         * tests/test-dup2.c (main): Also check AT_FDCWD.
9598
9599         test-stat-time: avoid more spurious failures
9600         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9601         xfs; and avoid race if the two timestamps cross quantization edge.
9602
9603         relocatable: prefer 'file system' over 'filesystem'
9604         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9605         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9606         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9607         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9608         * lib/relocatable.c (compute_curr_prefix): Likewise.
9609
9610 2009-10-10  Jim Meyering  <meyering@redhat.com>
9611
9612         stat-time-tests: check for the usleep function
9613         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9614
9615 2009-10-10  Bruno Haible  <bruno@clisp.org>
9616
9617         * modules/xnanosleep: Put the Link section after the Include section.
9618
9619 2009-10-09  Eric Blake  <ebb9@byu.net>
9620
9621         dup2: work around FreeBSD 6.1 bug
9622         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9623         * doc/posix-functions/dup2.texi (dup2): Document it.
9624         Reported by Nelson H. F. Beebe and Jim Meyering.
9625
9626         test-stat-time: port to buggy NFS clients
9627         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9628         (test_ctime): Also skip test if mtime and ctime are skewed.
9629
9630         maint: prefer 'file system' over 'filesystem'
9631         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9632         * doc/posix-functions/lstat.texi (lstat): Likewise.
9633         * lib/file-has-acl.c (file_has_acl): Likewise.
9634         * lib/fwriteerror.c [TEST]: Likewise.
9635         * tests/test-areadlink.h (test_areadlink): Likewise.
9636         * tests/test-areadlinkat-with-size.c (main): Likewise.
9637         * tests/test-areadlinkat.c (main): Likewise.
9638         * tests/test-canonicalize-lgpl.c (main): Likewise.
9639         * tests/test-canonicalize.c (main): Likewise.
9640         * tests/test-fstatat.c (main): Likewise.
9641         * tests/test-linkat.c (main): Likewise.
9642         * tests/test-lstat.h (test_lstat_func): Likewise.
9643         * tests/test-mkdir.h (test_mkdir): Likewise.
9644         * tests/test-readlink.h (test_readlink): Likewise.
9645         * tests/test-remove.c (main): Likewise.
9646         * tests/test-rename.h (test_rename): Likewise.
9647         * tests/test-renameat.c (main): Likewise.
9648         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9649         * tests/test-symlink.h (test_symlink): Likewise.
9650         * tests/test-symlinkat.c (main): Likewise.
9651         * tests/test-unlink.h (test_unlink_func): Likewise.
9652         * tests/test-unlinkat.c (main): Likewise.
9653
9654         maint: make realtime library usage explicit
9655         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9656         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9657         * modules/settime (Link): Likewise.
9658         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9659
9660         test-stat-time: speed up execution
9661         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9662         warning on mingw.
9663         (nap): New helper function.
9664         (prepare_test): Use it to reduce sleep time.
9665         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9666         execution.
9667         * modules/stat-time-tests (configure.ac): Check for usleep.
9668
9669 2009-10-09  Jim Meyering  <meyering@redhat.com>
9670
9671         selinux-h: always use getfilecon wrappers
9672         * lib/getfilecon.c: New file.
9673         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9674         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9675         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9676         (fgetfilecon): Provide a stub.
9677         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9678         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9679         file unconditionally.
9680         When <selinux/selinux.h> is found, arrange to use wrappers.
9681         * modules/selinux-h (Files): Add getfilecon.c.
9682         (Makefile.am): Substitute include-next-related bits
9683         into the now-always-generated selinux/selinux.h file.
9684         * doc/glibc-functions/lgetfilecon.texi: New file.
9685         * doc/glibc-functions/fgetfilecon.texi: New file.
9686         * doc/glibc-functions/getfilecon.texi: New file.
9687         * doc/glibc-functions/getfilecon-desc.texi: New file.
9688         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9689         which to pull in the new files.
9690         * MODULES.html.sh (Misc): Add selinux-h.
9691
9692 2009-10-08  Jim Meyering  <meyering@redhat.com>
9693
9694         unistd: fix comment typo
9695         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9696
9697 2009-10-08  Eric Blake  <ebb9@byu.net>
9698
9699         areadlink: use SIZE_MAX consistently
9700         * modules/areadlink (Depends-on): Add stdint.
9701         * modules/areadlink-with-size (Depends-on): Likewise.
9702         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9703         gives NULL; drop sys/types, since unistd gives size_t; and add
9704         stdint for SIZE_MAX.
9705         (SIZE_MAX): Rely on headers.
9706         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9707         and add stdint.
9708         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9709         (SIZE_MAX): Likewise.
9710         (INITIAL_BUF_SIZE): Turn into enum.
9711         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9712
9713 2009-10-08  Jim Meyering  <meyering@redhat.com>
9714
9715         areadlinkat: avoid compilation failure
9716         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9717         Fix typo in comment.
9718
9719 2009-10-07  Eric Blake  <ebb9@byu.net>
9720
9721         areadlinkat-with-size: new module
9722         * modules/areadlinkat-with-size: New module.
9723         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9724         * lib/areadlink.h (areadlinkat): Declare it.
9725         * MODULES.html.sh (File system functions): Mention it.
9726         * modules/areadlinkat-with-size-tests: New test.
9727         * tests/test-areadlinkat-with-size.c: New file.
9728
9729         xreadlinkat: new module
9730         * modules/xreadlinkat: New module.
9731         * lib/xreadlinkat.c (xreadlinkat): New file.
9732         * lib/xreadlink.h (xreadlinkat): Declare it.
9733         * MODULES.html.sh (File system functions): Mention it.
9734
9735         areadlinkat: new module
9736         * lib/at-func.c (FUNC_FAIL): New define.
9737         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9738         * modules/areadlinkat: New module.
9739         * lib/linkat.c (areadlinkat): Move...
9740         * lib/areadlinkat.c (areadlinkat): ...to new file.
9741         * lib/areadlink.h (areadlinkat): Declare it.
9742         * modules/linkat (Depends-on): Add areadlinkat.
9743         * MODULES.html.sh (File system functions): Mention it.
9744         * modules/areadlinkat-tests: New test.
9745         * tests/test-areadlinkat.c: New file.
9746
9747         areadlink, areadlink-with-size: add tests
9748         * modules/areadlink-tests: New test.
9749         * modules/areadlink-with-size-tests: Likewise.
9750         * tests/test-areadlink.h: New file.
9751         * tests/test-areadlink.c: Likewise.
9752         * tests/test-areadlink-with-size.c: Likewise.
9753
9754         maint: minor cleanups
9755         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9756         _UNUSED_PARAMETER_ instead.
9757         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9758         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9759         * modules/linkat-tests (Files): Distribute test-link.h.
9760
9761         openat, utimens: whitespace cleanup
9762         * lib/openat.c: Prefer space throughout, rather than mix of 8
9763         spaces vs. tabs.
9764         * lib/at-func.c: Likewise.
9765         * lib/utimens.c: Likewise.
9766
9767         openat: avoid using wrong fd
9768         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9769         working directory chooses same fd.
9770         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9771
9772         mkdir, mkdirat: fix cygwin 1.5.x bug
9773         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9774         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9775         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9776         bug.
9777         (gl_PREREQ_MKDIR): Delete unused macro.
9778         * modules/mkdir (Files): Track file rename.
9779         (configure.ac): Update macro name.
9780         * modules/openat (Depends-on): Add mkdir.
9781         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9782
9783         mkdir, mkdirat: add tests
9784         * modules/mkdir-tests: New test.
9785         * tests/test-mkdir.h: New file.
9786         * tests/test-mkdir.c: Likewise.
9787         * tests/test-mkdirat.c: Likewise.
9788         * modules/openat-tests (Files): Add new files.
9789         (Makefile.am): Run new test.
9790
9791 2009-10-06  Eric Blake  <ebb9@byu.net>
9792
9793         doc: tweak *at function documentation
9794         * doc/posix-functions/faccessat.texi (faccessat): Mention
9795         known issue with replacement.
9796         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9797         * doc/posix-functions/linkat.texi (linkat): Likewise.
9798         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9799         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9800         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9801         * doc/posix-functions/renameat.texi (renameat): Likewise.
9802         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9803
9804         openat: fix GNU/Hurd bug in unlinkat
9805         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9806         broken.
9807         * doc/posix-functions/unlink.texi (unlink): Document this.
9808         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9809
9810         fdopendir: fix GNU/Hurd bug
9811         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9812         allowing non-directory fds.
9813         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9814         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9815         * modules/dirent (Makefile.am): Substitute it.
9816         * lib/dirent.in.h (fdopendir): Declare replacement.
9817         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9818         * tests/test-fdopendir.c (main): Test something other than
9819         /dev/null, since on Hurd that behaves like a directory.
9820
9821         test-symlink: port to GNU/Hurd
9822         * tests/test-symlink.h (test_symlink): Relax expected errno.
9823
9824         doc: tweak more cygwin information
9825         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9826         now compatible with glibc.
9827         * doc/posix-functions/getopt.texi (getopt): Likewise.
9828
9829         getopt-gnu: add another test
9830         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9831         guarantee behavior relied on by m4.
9832         * tests/test-getopt.c (main): Use it.
9833         * modules/getopt-posix-tests (Depends-on): Add setenv.
9834         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9835
9836         getopt: fix compilation on darwin
9837         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9838         include.
9839         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9840         Reported by Ludovic Courtès.
9841
9842 2009-10-06  Bruno Haible  <bruno@clisp.org>
9843
9844         * modules/size_max (Description): Discourage its use.
9845         Reported by Simon Josefsson.
9846
9847 2009-10-06  Jim Meyering  <meyering@redhat.com>
9848
9849         linkat: avoid compilation failure
9850         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9851
9852 2009-10-05  Eric Blake  <ebb9@byu.net>
9853
9854         linkat: support Linux 2.6.17
9855         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9856         linkat on Linux, but allow cache variable override.
9857         * lib/linkat.c (rpl_linkat): Define override.
9858         * modules/linkat (Depends-on): Add symlinkat.
9859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9860         * modules/unistd (Makefile.am): Substitute it.
9861         * lib/unistd.in.h (linkat): Declare replacement.
9862         Reported by Pádraig Brady.
9863
9864         quotearg: port test to systems with C.UTF-8 locale
9865         * tests/test-quotearg.c (struct result_strings): Add another
9866         member, differentiating between C.ASCII and C.UTF-8 handling.
9867         (compare_strings): Add parameter.
9868         (main): Adjust all callers.
9869
9870         getopt: avoid clash with FreeBSD _getopt_internal
9871         * lib/getopt.in.h (_getopt_internal): Override the name.
9872         * lib/getopt_int.h (includes): Pick up any overrides.
9873         Reported by Reuben Thomas.
9874
9875         hash: allow C89 compilation
9876         * lib/hash.c (check_tuning): Move declaration before statement.
9877         Reported by Reuben Thomas.
9878
9879 2009-10-05  Karl Berry  <karl@gnu.org>
9880
9881         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9882
9883 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9884             Bruno Haible  <bruno@clisp.org>
9885
9886         * lib/uname.c (uname): Use a table-driven algorithm to compute
9887         Windows NT versions.
9888
9889 2009-10-04  Bruno Haible  <bruno@clisp.org>
9890
9891         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9892         program_invocation_short_name.
9893         * modules/progname (configure.ac): Test for presence of
9894         program_invocation_short_name.
9895         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9896
9897 2009-10-04  Bruno Haible  <bruno@clisp.org>
9898
9899         * lib/progname.c (set_program_name): Fix comment.
9900         Reported by Jim Meyering.
9901
9902 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9903             Bruno Haible  <bruno@clisp.org>
9904
9905         * lib/uname.c: Include <string.h>.
9906         (uname): Do only one call to GetVersionEx in the common case.
9907
9908 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9909             Bruno Haible  <bruno@clisp.org>
9910
9911         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9912         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9913         (uname): Add support for Windows CE and various non-x86 CPU types.
9914
9915 2009-10-03  Bruno Haible  <bruno@clisp.org>
9916
9917         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9918         invocation to tests/configure.ac.
9919         Reported by Ian Beckwith <ianb@erislabs.net>.
9920
9921 2009-10-02  Eric Blake  <ebb9@byu.net>
9922
9923         fchdir: avoid compiler warning
9924         * lib/fchdir.c (canonicalize_file_name)
9925         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9926
9927         test-open: support mingw errno values
9928         * tests/test-open.h (test_open): Relax test.
9929         * tests/test-fopen.h (test_fopen): Likewise.
9930         * tests/test-openat-safer.c (main): Likewise.
9931
9932         open: fix opening directory on mingw
9933         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9934
9935         test-open: on GNU/Hurd, /dev/null is a directory
9936         * tests/test-fopen.h (main): Rename...
9937         (test_fopen): ...to this.  Use a guaranteed non-directory when
9938         confirming open behavior on trailing slash.
9939         * tests/test-openat-safer.c (main): Likewise.
9940         * tests/test-open.h (main): Likewise....
9941         (test_open): ...to this.
9942         * tests/test-fopen.c (main): Adjust caller.
9943         * tests/test-fopen-safer.c (main): Likewise.
9944         * tests/test-open.c (main): Likewise.
9945         * tests/test-fcntl-safer.c (main): Likewise.
9946         Reported by Samuel Thibault.
9947
9948         rename, fchdir: don't ignore chdir failure
9949         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9950         * lib/rename.c (rpl_rename) [W32]: Likewise.
9951         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9952         an empty destination directory if source cannot be renamed,
9953         although there is still possibility for failure.
9954         * doc/posix-functions/rename.texi (rename): Document the race.
9955         Reported by Jim Meyering.
9956
9957         maint: cleanup whitespace in recent commits
9958         * lib/rename.c (rpl_rename): Remove tabs.
9959         * tests/test-link.h (test_link): Likewise.
9960         * lib/fchdir.c (get_name): Likewise.
9961         Reported by Jim Meyering.
9962
9963 2009-10-02  Ben Pfaff  <blp@gnu.org>
9964
9965         relocatable-prog-wrapper: Add missing dependency on
9966         double-slash-root.
9967         * modules/relocatable-prog-wrapper: Add dependency.
9968         Reported by Ian Beckwith <ianb@erislabs.net>.
9969
9970 2009-10-02  Eric Blake  <ebb9@byu.net>
9971
9972         renameat: fix Solaris bugs
9973         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9974         needed fixing.
9975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9976         * modules/stdio (Makefile.am): Substitute it.
9977         * lib/stdio.in.h (renameat): Declare replacement.
9978         * lib/renameat.c (rpl_renameat): Implement fix.
9979
9980         renameat: new module
9981         * modules/renameat: New file.
9982         * lib/renameat.c (renameat): Likewise.
9983         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9985         * modules/stdio (Makefile.am): Substitute them.
9986         * lib/stdio.in.h (renameat): Declare it.
9987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9988         * doc/posix-functions/renameat.texi (renameat): Likewise.
9989         * modules/renameat-tests: New test.
9990         * tests/test-renameat.c: Likewise.
9991
9992         rename: fix mingw bugs
9993         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9994         directory overwrite bugs.
9995
9996         rename: fix another cygwin 1.5 bug
9997         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9998         checks.
9999         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10000         unnecessary cygwin workarounds.  Also work around bug with moving
10001         full directory onto an empty one.
10002         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10003
10004         rename-dest-slash: merge into rename module
10005         * modules/rename-dest-slash (Status): Mark obsolete.
10006         (Depends-on): Add rename.
10007         (Files): Let rename do it all.
10008         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10009         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10010         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10011         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10012         * lib/rename.c (rpl_rename): Update comments.
10013
10014         rename: fix cygwin 1.5.x bugs
10015         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10016         * lib/rename.c (rpl_rename): Work around them.
10017         * modules/rename (Depends-on): Add same-inode.
10018
10019         rename: fix Solaris 10 bug
10020         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10021         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10022         was the only bug.
10023
10024         rename: fix Solaris 9 bug
10025         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10026         on non-directory.  Avoid calling exit.
10027         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10028         strdup.
10029         * modules/rename-tests (Depends-on): Drop lstat.
10030         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10031         (gl_PREREQ_RENAME): Delete unused macro.
10032
10033         rename-dest-slash: fix NetBSD bug
10034         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10035         links.
10036         * modules/rename-dest-slash (Depends-on): Add same-inode.
10037
10038         rename-tests: new test, exposes several platform bugs
10039         * modules/rename-tests: New file.
10040         * tests/test-rename.h: Likewise.
10041         * tests/test-rename.c: Likewise.
10042         * doc/posix-functions/rename.texi (rename): Improve documentation,
10043         including bugs that will eventually be fixed in gnulib.
10044
10045 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10046
10047         * lib/uname.c: Include <stdlib.h>
10048         (uname): Assume version info is available.
10049
10050 2009-10-02  Jim Meyering  <meyering@redhat.com>
10051
10052         gnu-web-doc-update: correct --help output
10053         * build-aux/gnu-web-doc-update: Make --help output relevant.
10054
10055         gnu-web-doc-update: add standard options
10056         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10057
10058         gnu-web-doc-update: New module.
10059         Use this script to automatically update the on-line web documentation
10060         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10061         * modules/gnu-web-doc-update: New file, from coreutils.
10062         * build-aux/gnu-web-doc-update: New script.
10063
10064 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10065
10066         link: LoadLibrary is not needed.
10067         * lib/link.c: Use GetModuleHandle.
10068
10069 2009-10-01  Eric Blake  <ebb9@byu.net>
10070
10071         getopt: bump serial number
10072         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10073         change.
10074
10075         tests: tighten link, rmdir, and remove tests
10076         * tests/test-link.h (includes): No need to use <config.h> here.
10077         Clean up if directory hard link was created, otherwise test for
10078         trailing '.'.
10079         * tests/test-linkat.c (main): Simplify.
10080         * tests/test-remove.c (main): Enhance test for trailing '.'.
10081         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10082
10083 2009-10-01  Jim Meyering  <meyering@redhat.com>
10084
10085         maint.mk: requiring "make major" was annoying, for a "minor" release.
10086         What is intended is "stable", to contrast with alpha and beta,
10087         so require "make stable", not "make major".
10088         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10089         (get_tool_versions): Likewise.
10090         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10091
10092 2009-09-30  Ben Pfaff  <blp@gnu.org>
10093
10094         Fix broken build of replacement for Windows tmpfile().
10095         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10096         flags argument added along with the 'mkostemp' module.
10097
10098 2009-09-28  Bruno Haible  <bruno@clisp.org>
10099
10100         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10101         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10102         to 'remove_elt'.
10103         (gl_list_remove): Update.
10104         * lib/gl_list.c (gl_list_remove): Update.
10105         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10106         to 'remove_elt'.
10107         (gl_oset_remove): Update.
10108         * lib/gl_list.c (gl_oset_remove): Update.
10109         Reported by Eric Blake.
10110
10111 2009-09-28  Eric Blake  <ebb9@byu.net>
10112
10113         doc: mention yet more cygwin 1.7 status
10114         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10115         cygwin.
10116         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10117         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10118
10119         argp: fix test failure
10120         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10121         that are not upper-case.  Pass correct range to tolower.
10122
10123 2009-09-27  Jim Meyering  <meyering@redhat.com>
10124
10125         test-yesno: work around sparc-dash here-document infelicity
10126         Without this change, the literal \177 byte in a here document
10127         would make dash 0.5.5.1-3 access uninitialized memory.
10128         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10129         Instead, use a marker, "@", and filter through tr to create the desired
10130         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10131
10132 2009-09-27  Bruno Haible  <bruno@clisp.org>
10133
10134         Disable untested support for new flavours of ACLs on AIX.
10135         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10136         progress.
10137         * lib/set-mode-acl.c (qset_acl): Likewise.
10138
10139 2008-12-07  Bruno Haible  <bruno@clisp.org>
10140
10141         Add support for new flavours of ACLs on AIX. (Untested.)
10142         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10143         (file_has_acl): Add support for newer AIX.
10144         * lib/set-mode-acl.c (qset_acl): Likewise.
10145         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10146         Rainer Tammer <tammer@tammer.net>.
10147
10148 2009-09-26  Eric Blake  <ebb9@byu.net>
10149
10150         argp: fix compilation of getopt
10151         * lib/getopt.in.h (includes): Use different guard than glibc.
10152         Reported by Sergey Poznyakoff.
10153
10154         doc: mention more cygwin 1.7 status
10155         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10156         bug.
10157         * doc/posix-functions/execl.texi (execl): Likewise.
10158         * doc/posix-functions/execle.texi (execle): Likewise.
10159         * doc/posix-functions/execlp.texi (execlp): Likewise.
10160         * doc/posix-functions/execv.texi (execv): Likewise.
10161         * doc/posix-functions/execve.texi (execve): Likewise.
10162         * doc/posix-functions/execvp.texi (execvp): Likewise.
10163         * doc/glibc-functions/canonicalize_file_name.texi
10164         (canonicalize_file_name): Cygwin 1.7 now provides this.
10165         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10166         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10167         on AT_SYMLINK_NOFOLLOW.
10168
10169 2009-09-24  Eric Blake  <ebb9@byu.net>
10170
10171         test-linkat: make test more robust
10172         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10173
10174         getopt: fix inclusion guards for cygwin
10175         * modules/getopt-posix (Depends-on): Add include-next.
10176         (Makefile.am): Substitute more items in replacement header.
10177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10178         <getopt.h>.
10179         * lib/getopt.in.h (includes): Use split inclusion guard, and
10180         prefer <getopt.h> over include <unistd.h> when one is present.
10181         (option): Also override name of 'struct option'.
10182
10183         same-inode: revert prior change; it is not yet ready
10184         * NEWS: Undo mention of this change.
10185         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10186         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10187         * lib/cycle-check.c (cycle_check): Likewise.
10188         * lib/same.c (same_name): Likewise.
10189         * lib/at-func2.c (at_func2): Likewise.
10190
10191 2009-09-23  Eric Blake  <ebb9@byu.net>
10192
10193         linkat: new module
10194         * modules/linkat: New file.
10195         * lib/at-func2.c (at_func2): Likewise.
10196         * lib/linkat.c (linkat): Likewise.
10197         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10198         * lib/openat-priv.h (at_func2): Add declaration.
10199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10200         * modules/unistd (Makefile.am): Substitute them.
10201         * lib/unistd.in.h (linkat): Declare it.
10202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10203         * doc/posix-functions/linkat.texi (linkat): Likewise.
10204         * doc/posix-functions/link.texi (link): Tweak wording.
10205         * tests/test-link.c (main): Move guts...
10206         * tests/test-link.h (test_link): ...into new file.
10207         * modules/linkat-tests: New test.
10208         * tests/test-linkat.c: Likewise.
10209         * modules/link-tests (Files): Ship new file.
10210         (Depends-on): Add stdbool.
10211
10212         dirname: add library-safe mdir_name
10213         * lib/dirname.h (mdir_name): New prototype.
10214         * lib/dirname.c (dir_name): Move guts...
10215         (mdir_name): ...to new function that avoids xalloc_die.
10216
10217         fchdir: another mingw fix
10218         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10219         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10220         on mingw (where it has not yet been ported), and make it optional
10221         elsewhere.
10222         (_gl_register_fd): Use it.
10223
10224         same-inode: make SAME_INODE tri-state, to port to mingw
10225         * NEWS: Mention this change.
10226         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10227         st_ino always being 0.
10228         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10229         * lib/cycle-check.c (cycle_check): Likewise.
10230         * lib/same.c (same_name): Likewise.
10231
10232         lstat: avoid mingw compilation error
10233         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10234         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10235         lstat ourselves.
10236         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10237         was adequate.
10238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10239         the checks for lstat.
10240         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10241
10242         link: fix test failure on Solaris 9
10243         * lib/link.c (rpl_link): Don't assume link will catch bogus
10244         trailing slash on source.
10245
10246         test-symlinkat: enhance test
10247         * tests/test-readlink.c (main): Move guts...
10248         * tests/test-readlink.h (test_readlink): ...into new file.
10249         * tests/test-symlink.c (main): Move guts...
10250         * tests/test-symlink.h (test_symlink): ...into new file.
10251         * tests/test-symlinkat.c (main): Use new files for further
10252         coverage.
10253         (do_symlink, do_readlink): New helper functions.
10254         * modules/symlink-tests (Files): Ship new file.
10255         (Depends-on): Add stdbool.
10256         * modules/readlink-tests (Files): Ship new file.
10257         (Depends-on): Add stdbool.
10258         * modules/symlinkat-tests (Files): Use new files.
10259
10260 2009-09-23  Eric Blake  <ebb9@byu.net>
10261
10262         readlink: document portability issue with symlink length
10263         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10264         systems have bogus st_size on symlinks, and mention the
10265         areadlink-with-size module.
10266         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10267         * doc/posix-functions/readlink.texi (readlink): Mention the
10268         areadlink module, and ERANGE failure.
10269         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10270         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10271
10272         readlink: fix Solaris 9 bug with trailing slash
10273         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10274         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10275         * doc/posix-functions/readlink.texi (readlink): Document this.
10276         * modules/readlink-tests: New test.
10277         * tests/test-readlink.c: Likewise.
10278
10279         readlink: fix cygwin 1.5.x bug with return type
10280         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10281         * lib/unistd.in.h (readlink): Use ssize_t.
10282         * lib/readlink.c (readlink): Likewise.
10283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10284         * modules/unistd (Makefile.am): Substitute it.
10285         * lib/unistd.in.h (readlink): Declare replacement.
10286         * doc/posix-functions/readlink.texi (readlink): Document this.
10287
10288         symlink: use throughout gnulib
10289         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10290         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10291         symlink is not used.
10292         * modules/symlinkat (Depends-on): Add symlink.
10293         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10294         * modules/canonicalize-tests (Depends-on): Likewise.
10295         * modules/lstat-tests (Depends-on): Likewise.
10296         * modules/openat-tests (Depends-on): Likewise.
10297         * modules/remove-tests (Depends-on): Likewise.
10298         * modules/rmdir-tests (Depends-on): Likewise.
10299         * modules/unlink-tests (Depends-on): Likewise.
10300         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10301         * tests/test-canonicalize.c (symlink): Likewise.
10302         * tests/test-fstatat.c (symlink): Likewise.
10303         * tests/test-lstat.c (symlink): Likewise.
10304         * tests/test-remove.c (symlink): Likewise.
10305         * tests/test-rmdir.c (symlink): Likewise.
10306         * tests/test-unlink.c (symlink): Likewise.
10307         * tests/test-unlinkat.c (symlink): Likewise.
10308
10309         symlink: new module, for Solaris 9 bug
10310         * modules/symlink: New file.
10311         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10312         * lib/symlink.c: Likewise.
10313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10314         * modules/unistd (Makefile.am): Substitute them.
10315         * lib/unistd.in.h (symlink): Declare replacement.
10316         * MODULES.html.sh (File system functions): Mention it.
10317         * doc/posix-functions/symlink.texi (symlink): Likewise.
10318         * modules/symlink-tests: New test.
10319         * tests/test-symlink.c: Likewise.
10320
10321 2009-09-23  Bruno Haible  <bruno@clisp.org>
10322
10323         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10324         when needed.
10325         Test case: gnulib-tool --import --with-tests atexit inttypes.
10326         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10327
10328 2009-09-23  Bruno Haible  <bruno@clisp.org>
10329
10330         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10331         subcommand, not in a subshell.
10332
10333 2009-09-22  Eric Blake  <ebb9@byu.net>
10334
10335         unistd: sort replacement declarations
10336         * lib/unistd.in.h: Sort declarations.
10337
10338         open, openat: minor optimization
10339         * lib/open.c (open): If open succeeded, len is non-zero.
10340         * lib/openat.c (rpl_openat): Likewise.
10341
10342         link-follow: ensure correct result
10343         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10344         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10345         distinguish between possible failures.
10346
10347 2009-09-21  Eric Blake  <ebb9@byu.net>
10348
10349         fts: avoid compiler warning
10350         * lib/fts.c (dirent_inode_sort_may_be_useful)
10351         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10352
10353 2009-09-19  Bruno Haible  <bruno@clisp.org>
10354
10355         * lib/progreloc.c (canonicalize_file_name): New declaration.
10356
10357 2009-09-19  Eric Blake  <ebb9@byu.net>
10358
10359         link: fix quoting
10360         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10361
10362         openat: fix openat bugs on Solaris 9
10363         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10364         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10365         * modules/openat (Depends-on): Add open.
10366         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10367         * modules/fcntl-h (Makefile.am): Substitute it.
10368         * lib/fcntl.in.h (openat): Declare replacement.
10369         * doc/posix-functions/openat.texi (openat): Document this.
10370
10371         openat: move fstatat and unlinkat into correct files
10372         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10373         compiled.
10374         * lib/openat.c (fstatat, unlinkat): Move...
10375         * lib/fstatat.c (fstatat): ...into correct files.
10376         * lib/unlinkat.c (unlinkat): Likewise.
10377
10378         openat: fix unlinkat bugs on Solaris 9
10379         * lib/unlinkat.c (unlinkat): New file.
10380         * modules/openat (Depends-on): Add unlink.
10381         (Files): Distribute it.
10382         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10383         trailing slash behavior is broken.
10384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10385         * modules/unistd (Makefile.am): Substitute it.
10386         * lib/unistd.in.h (unlinkat): Declare replacement.
10387         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10388
10389         openat: fix fstatat bugs on Solaris 9
10390         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10391         stat.
10392         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10393
10394         test-unlinkat: enhance test, to expose Solaris 9 bug
10395         * tests/test-unlink.c (main): Factor guts...
10396         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10397         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10398         * tests/test-rmdir.c (main): Adjust caller.
10399         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10400         (unlinker): New helper function.
10401         (rmdirat): Enhance check.
10402         * modules/rmdir-tests (Depends-on): Add stdbool.
10403         * modules/unlink-tests (Depends-on): Likewise.
10404         (Files): Add test-unlink.h.
10405         * modules/openat-tests (Files): Likewise.
10406         (Depends-on): Add unlinkdir.
10407
10408         test-fstatat: new test, to expose Solaris 9 bugs
10409         * tests/test-stat.c (main): Factor guts...
10410         * tests/test-stat.h (test_stat_func): ...into new file.
10411         * tests/test-lstat.c (main): Factor guts...
10412         * tests/test-lstat.h (test_lstat_func): ...into new file.
10413         * tests/test-fstatat.c: New file.
10414         * modules/stat-tests (Files): Add test-stat.h.
10415         * modules/lstat-tests (Files): Add test-lstat.h.
10416         (Depends-on): Add stdbool.
10417         * modules/openat-tests (Depends-on): Add pathmax.
10418         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10419         (Makefile.am): Run new test.
10420
10421         remove: new module, for mingw and Solaris 9 bugs
10422         * modules/remove: New file.
10423         * lib/remove.c: Likewise.
10424         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10426         * modules/stdio (Makefile.am): Use them.
10427         * lib/stdio.in.h (remove): Declare replacement.
10428         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10429         * doc/posix-functions/remove.texi (remove): Likewise.
10430         * modules/remove-tests: New test.
10431         * tests/test-remove.c: Likewise.
10432
10433         unlink: new module, for Solaris 9 bug
10434         * modules/unlink: New file.
10435         * lib/unlink.c: Likewise.
10436         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10438         * modules/unistd (Makefile.am): Use them.
10439         * lib/unistd.in.h (stat): Declare replacement.
10440         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10441         * doc/posix-functions/unlink.texi (unlink): Likewise.
10442         * modules/unlink-tests: New test.
10443         * tests/test-unlink.c: Likewise.
10444
10445         lstat: fix Solaris 9 bug
10446         * lib/lstat.c (lstat): Also check for trailing slash on
10447         non-symlink, non-directories.  Use stat module to simplify logic.
10448         * doc/posix-functions/lstat.texi (lstat): Document it.
10449         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10450         (configure.ac): Check for symlink.
10451         * tests/test-lstat.c (main): Add more tests.
10452
10453         stat: add as dependency to other modules
10454         * modules/chown (Depends-on): Add stat.
10455         * modules/euidaccess (Depends-on): Likewise.
10456         * modules/fchdir (Depends-on): Likewise.
10457         * modules/isdir (Depends-on): Likewise.
10458         * modules/link (Depends-on): Likewise.
10459         * modules/lstat (Depends-on): Likewise.
10460         * modules/mkdir-p (Depends-on): Likewise.
10461         * modules/modechange (Depends-on): Likewise.
10462         * modules/open (Depends-on): Likewise.
10463         * modules/readlink (Depends-on): Likewise.
10464         * modules/same (Depends-on): Likewise.
10465
10466         stat: fix Solaris 9 bug
10467         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10468         slash.
10469         * lib/stat.c (rpl_stat): Work around it.
10470         * doc/posix-functions/stat.texi (stat): Update documentation.
10471
10472         stat: new module, for mingw bug
10473         * modules/stat: New file.
10474         * lib/stat.c: Likewise.
10475         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10476         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10477         * modules/sys_stat (Makefile.am): Use them.
10478         * lib/sys_stat.in.h (stat): Declare replacement.
10479         * lib/openat.c (fstatat): Deal with lstat and stat being function
10480         macros.
10481         * modules/openat (Depends-on): Add inline.
10482         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10483         * doc/posix-functions/stat.texi (stat): Likewise.
10484         * modules/stat-tests: New test.
10485         * tests/test-stat.c: Likewise.
10486
10487 2009-09-19  Jim Meyering  <meyering@redhat.com>
10488
10489         syntax-check: detect unnecessary inclusion of canonicalize.h
10490         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10491
10492 2009-09-19  Eric Blake  <ebb9@byu.net>
10493
10494         canonicalize-lgpl: adjust clients to use correct header
10495         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10496         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10497         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10498         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10499         * lib/progreloc.c (includes): Likewise.
10500
10501 2009-09-19  Jim Meyering  <meyering@redhat.com>
10502
10503         test-posixtm.c: correct a comment
10504         * tests/test-posixtm.c: Correct first-line comment.
10505         Spotted by Eric Blake.
10506
10507 2009-09-16  Jim Meyering  <meyering@redhat.com>
10508
10509         posixtm-tests: make T const-correct; add a test case
10510         * tests/test-posixtm.c (T): Declare const.
10511         Add a test for -(2^31+1).
10512         Remove useless can-succeed-only-in-2002 test.
10513
10514         posixtm-tests: adjust the sole failing test
10515         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10516         expected output matches what mktime now produces.  Cross-checked via
10517         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10518
10519         posixtm: move #ifdef'd tests into a new module
10520         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10521         * tests/test-posixtm.c: ... this new file.
10522         * modules/posixtm-tests: New module.
10523
10524 2009-09-19  Eric Blake  <ebb9@byu.net>
10525
10526         openat: simplify use of at-func.c
10527         * lib/at-func.c (includes): Include prerequisites here, to
10528         simplify requirements on client files.
10529         * lib/openat-priv.h: Add double-inclusion guard.
10530         * lib/faccessat.c (includes): Simplify.
10531         * lib/fchmodat.c (includes): Likewise.
10532         * lib/fchownat.c (includes): Likewise.
10533         * lib/mkdirat.c (includes): Likewise.
10534         * lib/mkfifoat.c (includes): Likewise.
10535         * lib/symlinkat.c (includes): Likewise.
10536
10537         openat: allow return of fd 0
10538         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10539         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10540         unistd-safer.
10541         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10542         <fcntl.h>; this module does not leak fds.
10543         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10544         must be allowed to return 0, leaving openat_safer to add the
10545         safety.
10546         (openat_permissive): Avoid writing to just-opened fd 2 if
10547         restoring the current directory fails.
10548         * lib/openat-die.c (openat_restore_fail): Add comment.
10549         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10550         (save_cwd): Guarantee safe fd, but without use of open_safer.
10551         * tests/test-openat.c: New test.
10552         * modules/openat-tests (Files, Makefile.am): Distribute and build
10553         new file.
10554
10555         relocatable-prog-wrapper: fix build
10556         * modules/relocatable-prog-wrapper (Files): Update name of
10557         canonicalize m4 file, broken on 2009-09-17.
10558         Reported by emad hajjar <aleppos@hotmail.com>.
10559
10560 2009-09-19  Bruno Haible  <bruno@clisp.org>
10561
10562         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10563         * lib/safe-alloc.c: Likewise.
10564         Reported by Ian Beckwith <ianb@erislabs.net>.
10565
10566 2009-09-18  Bruno Haible  <bruno@clisp.org>
10567
10568         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10569         Reported by <erobles@sensacd.com.mx>.
10570
10571 2009-09-17  Eric Blake  <ebb9@byu.net>
10572
10573         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10574         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10575         slashes when checking if last component is missing.
10576         * tests/test-canonicalize.c (main): Test this.
10577
10578         canonicalize, canonicalize-lgpl: honor // if distinct from /
10579         * modules/canonicalize (Files): Add double-slash-root.m4.
10580         * modules/canonicalize-lgpl (Files): Likewise.
10581         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10582         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10583         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10584         fallback definition.
10585         (canonicalize_filename_mode): Use it to protect //.
10586         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10587         (__realpath): Likewise.
10588         * tests/test-canonicalize.c (main): Test this.
10589         * tests/test-canonicalize-lgpl.c (main): Likewise.
10590         * modules/canonicalize-tests (Depends-on): Add same-inode.
10591         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10592
10593         canonicalize-lgpl: fix glibc bug with trailing slash
10594         * m4/canonicalize-lgpl.m4: Move contents...
10595         * m4/canonicalize.m4: ...here.
10596         (gl_CANONICALIZE_LGPL): Factor realpath check...
10597         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10598         glibc 2.3.5 bug, fixed 2005-04-27.
10599         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10600         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10601         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10602         * modules/canonicalize-lgpl (Files): Manage file rename.
10603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10604         * modules/stdlib (Makefile.am): Substitute witness.
10605         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10606         is needed.
10607         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10608         replacement is required.
10609         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10610         * doc/glibc-functions/canonicalize_file_name.texi
10611         (canonicalize_file_name): Document this.
10612         * doc/posix-functions/realpath.texi (realpath): Likewise.
10613
10614         canonicalize-lgpl: reject non-directory with trailing slash
10615         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10616         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10617         catches failures in glibc 2.3.5.
10618         * tests/test-canonicalize.c (main): Likewise.
10619
10620         canonicalize-lgpl: use native realpath if it works
10621         * lib/canonicalize-lgpl.c (realpath): Guard with
10622         FUNC_REALPATH_WORKS.
10623         * lib/stdlib.in.h (realpath): Make declaration optional based on
10624         HAVE_REALPATH.
10625         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10626         native realpath works.
10627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10628         * modules/stdlib (Makefile.am): Substitute witness.
10629
10630         canonicalize, canonicalize-lgpl: use <stdlib.h>
10631         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10632         (Include): Mention <stdlib.h>.
10633         (configure.ac): Mention functions we provide.
10634         * modules/canonicalize (configure.ac): Likewise.
10635         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10636         realpath if canonicalize_file_name is missing.
10637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10638         * modules/stdlib (Makefile.am): Substitute witnesses.
10639         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10640         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10641         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10642         * NEWS: Document this.
10643         * doc/glibc-functions/canonicalize_file_name.texi
10644         (canonicalize_file_name): Likewise.
10645         * doc/posix-functions/realpath.texi (realpath): Likewise.
10646         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10647
10648         test-canonicalize: consolidate into single C program
10649         * tests/test-canonicalize.sh: Delete; move setup into...
10650         * tests/test-canonicalize.c (main): ...the program, making it
10651         easier to run in debugger.  Add some tests.
10652         * modules/canonicalize-tests (Files): Remove unused file.
10653         (Depends-on): Add progname.
10654         (configure.ac, Makefile.am): Simplify.
10655
10656         test-canonicalize-lgpl: consolidate into single C program
10657         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10658         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10659         easier to run in debugger.  Add some tests.
10660         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10661         (configure.ac, Makefile.am): Simplify.
10662
10663         canonicalize: avoid resolvepath
10664         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10665         unnecessary checks.
10666         * lib/canonicalize.c (includes): Simplify.
10667         (canonicalize_file_name): Drop resolvepath implementation.
10668         * modules/canonicalize (Depends-on): Drop filenamecat.
10669
10670         canonicalize: don't lose errno
10671         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10672         over calls to free.
10673
10674         canonicalize: simplify errno handling
10675         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10676         assignment.
10677
10678         canonicalize, canonicalize-lgpl: update module dependencies
10679         * modules/canonicalize (Depends-on): Add extensions, lstat,
10680         pathmax, stdlib.
10681         (Files): Drop pathmax.h.
10682         (configure.ac): Adjust macro name.
10683         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10684         lstat, stdlib, sys_stat.
10685         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10686         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10687         extensions.
10688         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10689         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10690         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10691         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10692         declaration, if available.
10693         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10694         we can rely on the readlink module.
10695         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10696         (includes): Use <unistd.h> unconditionally.
10697
10698 2009-09-17  Eric Blake  <ebb9@byu.net>
10699
10700         maint: make Include sections of modules consistent
10701         * modules/alloca: Use only header name; no need to list #include.
10702         * modules/alloca-opt: Likewise.
10703         * modules/arpa_inet: Likewise.
10704         * modules/canon-host: Likewise.
10705         * modules/configmake: Likewise.
10706         * modules/dirent: Likewise.
10707         * modules/eealloc: Likewise.
10708         * modules/environ: Likewise.
10709         * modules/fchdir: Likewise.
10710         * modules/fcntl: Likewise.
10711         * modules/fcntl-h: Likewise.
10712         * modules/gethrxtime: Likewise.
10713         * modules/gettime: Likewise.
10714         * modules/ignore-value: Likewise.
10715         * modules/inet_ntop: Likewise.
10716         * modules/inet_pton: Likewise.
10717         * modules/inttypes: Likewise.
10718         * modules/isnand-nolibm: Likewise.
10719         * modules/isnanf-nolibm: Likewise.
10720         * modules/mbchar: Likewise.
10721         * modules/mbfile: Likewise.
10722         * modules/mbiter: Likewise.
10723         * modules/mbuiter: Likewise.
10724         * modules/netdb: Likewise.
10725         * modules/netinet_in: Likewise.
10726         * modules/nproc: Likewise.
10727         * modules/pagealign_alloc: Likewise.
10728         * modules/poll: Likewise.
10729         * modules/printf-frexp: Likewise.
10730         * modules/pthread: Likewise.
10731         * modules/putenv: Likewise.
10732         * modules/random_r: Likewise.
10733         * modules/relocatable-prog: Likewise.
10734         * modules/search: Likewise.
10735         * modules/select: Likewise.
10736         * modules/selinux-h: Likewise.
10737         * modules/settime: Likewise.
10738         * modules/signal: Likewise.
10739         * modules/size_max: Likewise.
10740         * modules/socklen: Likewise.
10741         * modules/ssize_t: Likewise.
10742         * modules/stdarg: Likewise.
10743         * modules/stdbool: Likewise.
10744         * modules/stddef: Likewise.
10745         * modules/stdint: Likewise.
10746         * modules/stdio: Likewise.
10747         * modules/stdlib: Likewise.
10748         * modules/string: Likewise.
10749         * modules/strings: Likewise.
10750         * modules/sys_file: Likewise.
10751         * modules/sys_ioctl: Likewise.
10752         * modules/sys_select: Likewise.
10753         * modules/sys_socket: Likewise.
10754         * modules/sys_stat: Likewise.
10755         * modules/sys_time: Likewise.
10756         * modules/sys_times: Likewise.
10757         * modules/sys_utsname: Likewise.
10758         * modules/sys_wait: Likewise.
10759         * modules/sysexits: Likewise.
10760         * modules/time: Likewise.
10761         * modules/times: Likewise.
10762         * modules/tmpfile: Likewise.
10763         * modules/trim: Likewise.
10764         * modules/unistd: Likewise.
10765         * modules/wchar: Likewise.
10766         * modules/wctype: Likewise.
10767
10768 2009-09-17  Bruno Haible  <bruno@clisp.org>
10769
10770         Make getdate.y compile on QNX and NetBSD 5 / i386.
10771         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10772         TIME_T_FITS_IN_LONG_INT.
10773         * lib/getdate.y (long_time_t): New type.
10774         (relative_time): Change type of 'seconds' field to long_time_t.
10775         (get_date): Update types of local variables. Check against overflow
10776         during conversion from long_time_t to time_t.
10777         Reported by Matt Kraai <kraai@ftbfs.org>
10778         and Hasso Tepper <hasso@netbsd.org>.
10779
10780 2009-09-17  Bruno Haible  <bruno@clisp.org>
10781
10782         * modules/COPYING: Update copyright years.
10783         * modules/README: Likeiwse.
10784         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10785         Reported by Ian Beckwith <ianb@erislabs.net>.
10786
10787 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10788
10789         * users.txt: Update references for gnuit package.
10790
10791 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10792
10793         * m4/getdelim.m4: Fix typo in copyright line.
10794
10795 2009-09-17  Bruno Haible  <bruno@clisp.org>
10796
10797         * lib/atoll.c: Use the standard header with GPL copyright.
10798         * lib/argz.in.h: Likewise.
10799         * lib/glob.c: Likewise.
10800         * lib/glob-libc.h: Likewise.
10801         * lib/random_r.c: Likewise.
10802         * lib/siglist.h: Likewise.
10803         * lib/strsignal.c: Likewise.
10804         Reported by Ian Beckwith <ianb@erislabs.net>.
10805
10806 2009-09-17  Eric Blake  <ebb9@byu.net>
10807
10808         rmdir: ensure correct dependency order
10809         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10810
10811 2009-09-17  Bruno Haible  <bruno@clisp.org>
10812
10813         Disable assertion that fails on NetBSD 5 / i386.
10814         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10815         Reported by Sam Steingold <sds@gnu.org>
10816         and Hasso Tepper <hasso@netbsd.org>.
10817
10818 2009-09-16  Eric Blake  <ebb9@byu.net>
10819
10820         unlinkdir: port to mingw
10821         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10822         on which no one can unlink a directory.
10823
10824         stdlib: sort witness names
10825         * modules/stdlib (Makefile.am): Sort replacements.
10826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10827         * lib/stdlib.in.h: Likewise.
10828
10829         parse-duration-tests: avoid link failure
10830         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10831         LIBINTL.
10832         Reported by Tom G. Christensen.
10833
10834         openat-tests: ensure unlinkat behaves like rmdir
10835         * tests/test-rmdir.c (main): Factor guts...
10836         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10837         * modules/rmdir-tests (Files): Ship new file.
10838         * modules/openat-tests: New test.
10839         * tests/test-unlinkat.c: Likewise.
10840
10841         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10842         * modules/rmdir-errno (Status, Notice): Now obsolete.
10843
10844         rmdir: work around cygwin 1.5.x and mingw bugs
10845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10846         * lib/rmdir.c (rmdir): Work around it.
10847         * modules/rmdir (Status, Notice): No longer obsolete.
10848         (Files): Add dos.m4.
10849         (Depends-on): Add unistd.
10850         (configure.ac): Set witnesses.
10851         (License): Relax to LGPLv2+.
10852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10853         * modules/unistd (Makefile.am): Substitute witnesses.
10854         * lib/unistd.in.h (rmdir): Declare replacement.
10855         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10856         * modules/rmdir-tests: New tests.
10857         * tests/test-rmdir.c: Likewise.
10858
10859 2009-09-15  Eric Blake  <ebb9@byu.net>
10860
10861         fchdir: improve use of replacement functions
10862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10864         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10865         REPLACE_CLOSEDIR.
10866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10867         * modules/sys_stat (Makefile.am): Substitute correct witness.
10868         * modules/dirent (Makefile.am): Likewise.
10869         * modules/unistd (Makefile.am): Likewise.
10870         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10871         * lib/unistd.in.h (dup): Likewise.
10872         * lib/sys_stat.in.h (fstat): Likewise.
10873
10874         maint: ignore gnulib-tool temp files
10875         * .gitignore: Ignore files created during gnulib-tool --test.
10876
10877 2009-09-13  Jim Meyering  <meyering@redhat.com>
10878
10879         posixtm: don't reject a time that specify "60" as the number of seconds
10880         * lib/posixtm.c (posixtime): The code to reject invalid dates
10881         would also reject a time specified with the .60 suffix.
10882         But POSIX allows that, in order to accommodate leap seconds.
10883         So don't reject it.
10884         (main): Adjust tests accordingly.
10885         * modules/posixtm (Depends-on): Add stpcpy.
10886
10887 2009-09-11  Jim Meyering  <meyering@redhat.com>
10888
10889         announce-gen: include [$release_type] in emitted Subject:
10890         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10891         e.g., [stable] in the emitted Subject: line.
10892
10893 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10894
10895         Remove obsolete macros from several modules.
10896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10897         obsolete Autoconf macros with their modern counterparts.
10898         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10899         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10901         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10902         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10903         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10906         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10907         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10908         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10909         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10910         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10911         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10912         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10913         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10914         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10915         * m4/time_r.m4 (gl_TIME_R): Likewise.
10916         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10917         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10918         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10919
10920         Fix copyright header in build-aux scripts.
10921         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10922         recommendation.
10923         * build-aux/ncftpput-ftp: Likewise.
10924         * build-aux/update-copyright: Likewise.
10925
10926 2009-09-09  Eric Blake  <ebb9@byu.net>
10927
10928         test-link: allow Linux choice of errno
10929         * tests/test-link.c (main): Relax test for alternate error.
10930
10931         strndup: fix improper m4 caching
10932         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10933         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10934         (gl_PREREQ_STRNDUP): Delete.
10935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10936         * modules/string (Makefile.am): Substitute it.
10937         * lib/string.in.h (strndup): Modernize prototype.
10938
10939         getcwd: port to mingw
10940         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10941         different from the POSIX assumptions made throughout the getcwd
10942         module; fortunately, the mingw getcwd does not need replacement.
10943         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10944         * modules/getcwd-tests: New test.
10945         * tests/test-getcwd.c: Likewise.
10946
10947         link: fix platform bugs
10948         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10949         * lib/link.c (link): Work around them.  Fix related mingw bug.
10950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10951         * modules/unistd (Makefile.am): Substitute it.
10952         * lib/unistd.in.h (link): Declare replacement.
10953         * doc/posix-functions/link.texi (link): Document this.
10954         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10955
10956         test-link: consolidate into single C program, test more cases
10957         * tests/test-link.sh: Delete.
10958         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10959         at least Cygwin and Solaris.
10960         * modules/link-tests (Files): Remove unused file.
10961         (Depends-on): Add errno, sys_stat.
10962         (Makefile.am): Simplify.
10963
10964 2009-09-08  Bruno Haible  <bruno@clisp.org>
10965
10966         Work around towlower, towupper bug on mingw.
10967         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10968         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10969         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10970         * doc/posix-functions/towupper.texi: Likewise.
10971         Reported by Eric Blake.
10972
10973 2009-09-08  Jim Meyering  <meyering@redhat.com>
10974
10975         build: don't try to run autoheader if we don't use it
10976         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10977         is not used in configure.ac.
10978
10979 2009-09-08  Eric Blake  <ebb9@byu.net>
10980
10981         euidaccess: fix compilation error
10982         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10983
10984         rawmemchr: relax license
10985         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10986         okay.
10987         Reported by Jim Meyering.
10988
10989         mkfifoat: new module
10990         * modules/mkfifoat: New file.
10991         * lib/mkfifoat.c: Likewise.
10992         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10994         * modules/sys_stat (Makefile.am): Use them.
10995         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10996         * MODULES.html.sh (File system functions): Mention module.
10997         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10998         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10999         * modules/mkfifoat-tests: New test.
11000         * tests/test-mkfifoat.c: Likewise.
11001
11002         strchrnul: relax license
11003         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11004         okay.
11005         Reported by Jim Meyering.
11006
11007 2009-09-08  Eric Blake  <ebb9@byu.net>
11008
11009         fstatat: fix compilation on Solaris
11010         * lib/fstatat.c (includes): Add fcntl.h.
11011         Reported by Pádraig Brady.
11012
11013 2009-09-07  Eric Blake  <ebb9@byu.net>
11014
11015         rename: modernize replacement
11016         * modules/rename (Depends-on): Add stdio.
11017         (configure.ac): Declare witness.
11018         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11019         stdio take care of replacement.
11020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11021         * modules/stdio (Makefile.am): Substitute them.
11022         * lib/stdio.in.h (rename): Declare replacement.
11023         * lib/rename.c (includes): Allow cross-compilation to non-windows
11024         machines.
11025         * doc/posix-functions/rename.texi (rename): Improve
11026         documentation.
11027
11028         stdio: sort witness names
11029         * modules/stdio (Makefile.am): Sort replacements.
11030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11031         * lib/stdio.in.h: Likewise.
11032
11033         getcwd: minor cleanups
11034         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11035         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11036
11037         openat: provide more convenience names
11038         * modules/faccessat (configure.ac): Add C witness.
11039         * lib/unistd.in.h (readlinkat): Fix typo.
11040         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11041         convenience wrappers.
11042         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11043         wrappers in syntax checks.
11044
11045 2009-09-06  Eric Blake  <ebb9@byu.net>
11046
11047         doc: fix comments in recent patches
11048         * lib/faccessat.c: Mention correct function.
11049         * lib/fchmodat.c: Likewise.
11050         * lib/fchownat.c: Likewise.
11051         * lib/symlinkat.c: Likewise.
11052         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11053         constants.
11054
11055         faccessat, symlinkat: continue cleanup of previous patch
11056         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11057         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11058         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11060         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11061         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11062         set.
11063
11064 2009-09-06  Bruno Haible  <bruno@clisp.org>
11065
11066         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11067         (fstatat): Declare if GNULIB_FSTATAT is set.
11068         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11069         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11070         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11071         * modules/fcntl-h (Files): Remove m4/openat.m4.
11072         * modules/sys_stat (Files): Remove m4/openat.m4.
11073         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11074         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11075         * modules/unistd (Files): Remove m4/openat.m4.
11076         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11077         GNULIB_OPENAT.
11078         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11079         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11080         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11081         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11082         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11083         gl_OPENAT_DEFAULTS.
11084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11085         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11086         Don't require gl_OPENAT_DEFAULTS.
11087         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11088         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11089         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11090         (gl_OPENAT_DEFAULTS): Remove macro.
11091
11092 2009-09-06  Bruno Haible  <bruno@clisp.org>
11093
11094         * modules/openat (configure.ac): Remove unneeded witness.
11095
11096 2009-09-06  Bruno Haible  <bruno@clisp.org>
11097
11098         Set errno to ENOSYS when a function is entirely unsupported.
11099         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11100         EOPNOTSUPP.
11101         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11102         * modules/chown (Depends-on): Remove errno.
11103
11104 2009-09-06  Bruno Haible  <bruno@clisp.org>
11105
11106         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11107
11108 2009-09-06  Bruno Haible  <bruno@clisp.org>
11109
11110         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11111
11112 2009-09-06  Ben Pfaff  <blp@gnu.org>
11113             Bruno Haible  <bruno@clisp.org>
11114
11115         Work around a glibc bug in strtok_r.
11116         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11117         Undefine if UNDEFINE_STRTOK_R is set.
11118         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11120         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11122         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11123         UNDEFINE_STRTOK_R.
11124         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11125
11126 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11127
11128         exclude: minor fix
11129         * lib/exclude.c: Include wctype.h
11130
11131 2009-09-06  Akim Demaille  <demaille@gostai.com>
11132
11133         bootstrap: improve error message
11134         * build-aux/bootstrap (find_tool): Upon failure, report the list
11135         of candidates.
11136         Honor the initial value of the envvar.
11137
11138 2009-09-05  Eric Blake  <ebb9@byu.net>
11139
11140         symlinkat: new module
11141         * modules/symlinkat: New file.
11142         * lib/symlinkat.c: Likewise.
11143         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11145         * modules/unistd (Makefile.am): Use them.
11146         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11147         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11148         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11149         * MODULES.html.sh (File system functions): Mention module.
11150         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11151         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11152         * modules/symlinkat-tests: New test.
11153         * tests/test-symlinkat.c: Likewise.
11154
11155         test-openat-safer: add more checks
11156         * tests/test-openat-safer.c (main): Check more code paths.
11157
11158 2009-09-05  Jim Meyering  <meyering@redhat.com>
11159
11160         syntax-check: detect unnecessary inclusion of openat.h
11161         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11162
11163 2009-09-05  Bruno Haible  <bruno@clisp.org>
11164
11165         Support towlower, towupper.
11166         * doc/posix-functions/towlower.texi: Mention module wctype.
11167         * doc/posix-functions/towupper.texi: Likewise.
11168         * lib/wctype.in.h (towlower, towupper): New functions.
11169         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11170         (ASSERT): New macro.
11171         (e): New variable.
11172         (main): Test also towlower, towupper. Test WEOF argument.
11173         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11174
11175 2009-09-05  Bruno Haible  <bruno@clisp.org>
11176
11177         Fix conversion behaviour when the input is invalid.
11178         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11179         mark occurring in first pass of indirect conversion.
11180         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11181         input.
11182         Found by clang's static analyzer.
11183
11184 2009-09-05  Bruno Haible  <bruno@clisp.org>
11185
11186         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11187         where direct conversion is possible.
11188
11189 2009-09-04  Eric Blake  <ebb9@byu.net>
11190
11191         openat: fail with ENOENT on empty name
11192         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11193         buffer.
11194
11195         link-follow: fix logic bug in prior patch
11196         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11197         reversed sense of yes and no in prior patch.  Avoid confusing
11198         compilation failure with desired semantics.
11199
11200         link-follow: accomodate mingw and cross-compilation
11201         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11202         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11203         cross-compilation results to -1, to make linkat easier to
11204         implement when cross-compiling.  Trivially support mingw.
11205         * modules/link-follow (configure.ac): Call new name.
11206         * NEWS: Mention this.
11207
11208 2009-09-03  Eric Blake  <ebb9@byu.net>
11209
11210         faccessat: compile replacement
11211         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11212         needed.
11213
11214         fts: fix compilation error
11215         * lib/fts.c (includes): Re-add "openat.h", for
11216         openat_needs_fchdir.
11217
11218         faccessat: new module
11219         * modules/faccessat: New file.
11220         * lib/faccessat.c: Likewise.
11221         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11223         * modules/unistd (Makefile.am): Use it.
11224         * lib/unistd.in.h (faccessat): Declare it.
11225         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11226         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11227         * MODULES.html.sh (File system functions): Mention it.
11228         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11229         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11230
11231         euidaccess: prefer POSIX over non-standard implementation
11232         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11233         * lib/euidaccess.c (euidaccess): Use it if available.
11234
11235         openat: make template easier to use
11236         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11237         AT_FUNC_F2 to be undefined.
11238         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11239         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11240         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11241         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11242         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11243         Likewise.
11244         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11245         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11246         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11247         Likewise.
11248
11249         openat: declare in POSIX headers
11250         * NEWS: Mention this.
11251         * modules/openat (configure.ac): Declare witnesses.
11252         (Depends-on): Add fcntl-h, sys_stat, unistd.
11253         (Include): Mention correct headers.
11254         * modules/fcntl-h (Depends-on): Add link-warning.
11255         (Files): Add openat.m4.
11256         (Makefile.am): Substitute witnesses.
11257         * modules/sys_stat (Files, Makefile.am): Likewise.
11258         * modules/unistd (Files, Makefile.am): Likewise.
11259         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11260         (gl_OPENAT_DEFAULTS): New macro.
11261         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11264         (SYS_STAT_H): Remove unused variable.
11265         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11266         * lib/fcntl--.h (includes): Remove unneeded header.
11267         * lib/openat-safer.c (includes): Likewise.
11268         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11269         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11270         appropriate headers.
11271         (__OPENAT_PREFIX): Delete.
11272         * lib/fcntl.in.h (openat): Provide declaration.
11273         (AT_FDCWD): Fix Solaris bug.
11274         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11275         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11276         * lib/fchmodat.c (includes):  Adjust to find declaration.
11277         * lib/fchownat.c (includes): Likewise.
11278         * lib/mkdirat.c (includes): Likewise.
11279         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11280         still visible.
11281
11282 2009-09-02  Eric Blake  <ebb9@byu.net>
11283
11284         errno: use consistently
11285         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11286         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11287         * lib/canonicalize.c (ELOOP): Likewise.
11288         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11289         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11290         * lib/lchown.c (EOPNOTSUPP): Likewise.
11291         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11292         * lib/savewd.c (ESTALE): Likewise.
11293         * lib/settime.c (ENOSYS): Likewise.
11294         * lib/utimens.c (ENOSYS): Likewise.
11295         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11296         * lib/chdir-safer.c (ELOOP): Likewise.
11297         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11298         * modules/c-stack (Depends-on): Add errno.
11299         * modules/canonicalize (Depends-on): Likewise.
11300         * modules/chdir-safer (Depends-on): Likewise.
11301         * modules/fdopendir (Depends-on): Likewise.
11302         * modules/inet_ntop (Depends-on): Likewise.
11303         * modules/inet_pton (Depends-on): Likewise.
11304         * modules/lchown (Depends-on): Likewise.
11305         * modules/openat (Depends-on): Likewise.
11306         * modules/savewd (Depends-on): Likewise.
11307         * modules/settime (Depends-on): Likewise.
11308         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11309
11310         fts: avoid leaking fds
11311         * modules/fts (Depends-on): Add cloexec.
11312         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11313         flag.
11314
11315         fts: make directory fds more robust
11316         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11317         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11318
11319         backupfile, chdir-long, fts, savedir: make safer
11320         * lib/backupfile.c (includes): Use "dirent--.h", since
11321         numbered_backup can write to stderr during readdir.
11322         * lib/savedir.c (includes): Likewise.
11323         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11324         emulation can write to stderr on failure.
11325         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11326         * lib/getcwd.c: Document why opendir_safer is unused.
11327         * lib/glob.c: Likewise.
11328         * lib/scandir.c: Likewise.
11329         * lib/openat-proc.c: Likewise, for open_safer.
11330         * modules/backupfile (Depends-on): Add dirent-safer.
11331         * modules/savedir (Depends-on): Likewise.
11332         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11333         * modules/chdir-long (Depends-on): Add openat-safer.
11334
11335         openat-safer: new module
11336         * modules/openat-safer: New file.
11337         * lib/openat-safer.c: Likewise.
11338         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11339         * lib/fcntl-safer.h (openat_safer): Declare.
11340         * lib/fcntl--.h (openat): Override.
11341         * MODULES.html.sh (File descriptor based I/O): Mention it.
11342         * lib/openat.h: Add double-inclusion guards.
11343         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11344         "fcntl--.h", so we can implement openat.
11345         * modules/openat-safer-tests: New test.
11346         * tests/test-openat-safer.c: New file.
11347
11348         dirent-safer: new module
11349         * modules/dirent-safer: New file.
11350         * lib/dirent--.h: Likewise.
11351         * lib/dirent-safer.h: Likewise.
11352         * lib/opendir-safer.c: Likewise.
11353         * m4/dirent-safer.m4: Likewise.
11354         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11355         * modules/dirent-safer-tests: New test.
11356         * tests/test-dirent-safer.c: New file.
11357         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11358
11359         fdopendir: optimize on mingw
11360         * lib/unistd.in.h (_gl_directory_name): New prototype.
11361         * lib/fchdir.c (_gl_directory_name): Implement it.
11362         (fchdir): Use it to simplify implementation.
11363         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11364         fchdir, when available, to avoid calling [f]chdir().
11365
11366         fdopendir: split into its own module
11367         * lib/openat.c (fdopendir): Move...
11368         * lib/fdopendir.c: ...into new file.
11369         * modules/fdopendir: New module.
11370         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11371         * modules/openat (Depends-on): Add fdopendir.
11372         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11373         fdopendir here.
11374         * modules/savedir (Depends-on): Only need fdopendir, not full
11375         openat.
11376         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11377         * lib/openat.h (fdopendir): Drop prototype.
11378         * lib/dirent.in.h (fdopendir): Provide prototype.
11379         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11380         * modules/dirent (Makefile.am): Substitute them.
11381         * MODULES.html.sh (File system functions): Mention it.
11382         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11383         * modules/fdopendir-tests: New file.
11384         * tests/test-fdopendir.c: Likewise.
11385
11386         fchdir: use more consistent macro convention
11387         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11388         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11389         REPLACE_FCHDIR, rather than relying on config.h macros.
11390         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11391         inside a single make-time REPLACE_FCHDIR block, rather than using
11392         the config.h FCHDIR_REPLACEMENT.
11393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11394         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11395         Manage fstat replacement.
11396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11397         REPLACE_FCHDIR.
11398         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11399         (Makefile.am): Substitute REPLACE_FCHDIR.
11400         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11401         FCHDIR_REPLACEMENT.
11402         * lib/dup-safer.c (dup_safer): Likewise.
11403         * lib/dup2.c (rpl_dup2): Likewise.
11404         * lib/dup3.c (rpl_dup3): Likewise.
11405         * lib/open.c (rpl_open): Likewise.
11406
11407         fchdir: simplify error handling, and support dup3
11408         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11409         stdbool, malloc-posix, realloc-posix.
11410         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11411         (ensure_dirs_slot): Return false on allocation failure.
11412         (rpl_dup2): Delete.
11413         (_gl_register_dup): New function.
11414         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11415         (_gl_register_fd): Close fd on allocation failure.
11416         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11417         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11418         prototype.
11419         (rpl_dup2_fchdir): Delete prototype.
11420         * lib/open.c (open): Update caller.
11421         * lib/dup2.c (dup2): Track fchdir metadata.
11422         * lib/dup3.c (dup3): Likewise.
11423         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11425
11426 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11427
11428         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11429         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11430         don't pass arguments to AC_OUTPUT.
11431
11432 2009-09-02  Bruno Haible  <bruno@clisp.org>
11433
11434         * modules/mkdtemp (License): Relicense under LGPLv2+.
11435         Reported by Paolo Bonzini.
11436
11437 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11438
11439         Replace uses of obsolete autoconf macros in Jim's modules.
11440         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11441         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11442         can evoke a warning from autoconf when run with -Wobsolete
11443         enabled.  They were declared obsolete for good reasons (see
11444         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11445         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11446         should not continue using the deprecated macros.
11447         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11448         obsolete Autoconf macros with modern counterparts.
11449         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11450         * m4/dos.m4 (gl_AC_DOS): Likewise.
11451         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11452         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11453         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11454         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11455         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11456         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11457         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11458         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11459         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11460         Likewise.
11461         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11462         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11463         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11464         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11465         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11466         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11467
11468 2009-09-01  Eric Blake  <ebb9@byu.net>
11469
11470         fchdir: fix off-by-one bug in previous patch
11471         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11472         (_gl_unregister_fd): Delete useless if.
11473
11474 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11475
11476         maint.mk: sort the list of syntax-check rules
11477         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11478         easier to get a sense of progress when the rules are run sequentially
11479         and take a long time.
11480
11481 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11482
11483         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11484         * modules/netinet_in: Likewise.
11485         * modules/sys_file: Likewise.
11486         * modules/sys_ioctl: Likewise.
11487         * modules/sys_select: Likewise.
11488         * modules/sys_socket: Likewise.
11489         * modules/sys_stat: Likewise.
11490         * modules/sys_time: Likewise.
11491         * modules/sys_times: Likewise.
11492         * modules/sys_utsname: Likewise.
11493         * modules/sys_wait: Likewise.
11494
11495 2009-09-01  Jim Meyering  <meyering@redhat.com>
11496
11497         fts: help ensure that return values are not ignored
11498         * lib/fts_.h (__GNUC_PREREQ): Define.
11499         (__attribute_warn_unused_result__): Define.
11500         (fts_children, fts_close, fts_open, fts_read): Declare with
11501         __attribute_warn_unused_result__.
11502
11503         fts: fts_close now fails also when closing a dir file descriptor fails
11504         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11505         and propagate to caller, along with errno.
11506
11507         announce-gen: correct formatting in --help output
11508         * build-aux/announce-gen (usage): Move the one-line description in
11509         --help output "up", to where it belongs, just after Usage:.
11510
11511 2009-08-31  Eric Blake  <ebb9@byu.net>
11512
11513         fchdir: port to mingw
11514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11515         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11516         opened, then use a substitute.
11517         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11518         replacement.
11519         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11520         (_gl_register_fd): No need to check stat if open already filters
11521         all directories.
11522         (fchdir): Fix error condition to match POSIX.
11523         * modules/fchdir (Depends-on): Add sys_stat.
11524         * doc/posix-functions/open.texi (open): Document the limitation.
11525         * modules/fchdir-tests: New file.
11526         * tests/test-fchdir.c: Likewise.
11527
11528         canonicalize: allow cross-testing from cygwin to mingw
11529         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11530         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11531         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11532         Likewise.
11533         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11534         target does not support symlinks.
11535         * tests/test-canonicalize-lgpl.sh: Likewise.
11536
11537         chown: avoid compilation warning on mingw
11538         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11539         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11540         mingw.
11541         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11542         * modules/chown (Depends-on): Add errno.
11543
11544 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11545
11546         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11547         command.
11548
11549 2009-08-31  Jim Meyering  <meyering@redhat.com>
11550
11551         canonicalize: remove useless initialization
11552         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11553         initialization of local, "end".
11554
11555 2009-08-30  Bruno Haible  <bruno@clisp.org>
11556
11557         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11558         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11559         ENOSYS.
11560
11561 2009-08-30  Bruno Haible  <bruno@clisp.org>
11562
11563         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11564         /usr/xpg4/bin/tr when it exists.
11565         * tests/test-pipe-filter-gi1.sh: Likewise.
11566
11567 2009-08-30  Bruno Haible  <bruno@clisp.org>
11568
11569         Work around deficient /usr/bin/id program on Solaris.
11570         * tests/test-file-has-acl.sh (ID): New variable.
11571         * tests/test-set-mode-acl.sh (ID): Likewise.
11572         * tests/test-copy-acl.sh (ID): Likewise.
11573         * tests/test-copy-file.sh (ID): Likewise.
11574
11575 2009-08-30  Bruno Haible  <bruno@clisp.org>
11576
11577         New module 'xstriconveh'.
11578         * lib/xstriconveh.h: New file.
11579         * lib/xstriconveh.c: New file.
11580         * modules/xstriconveh: New file.
11581
11582 2009-08-30  Bruno Haible  <bruno@clisp.org>
11583
11584         Make it easier to use mem_cd_iconveh.
11585         * lib/striconveh.h (iconveh_t): New type.
11586         (iconveh_open, iconveh_close): New declarations.
11587         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11588         with a single 'const iconveh_t *' argument.
11589         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11590         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11591         with a single 'const iconveh_t *' argument.
11592         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11593         * tests/test-striconveh.c (main): Update.
11594         * NEWS: Mention the change.
11595
11596 2009-08-30  Bruno Haible  <bruno@clisp.org>
11597
11598         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11599         problem.
11600
11601 2009-08-30  Bruno Haible  <bruno@clisp.org>
11602
11603         Work around iconv_open problem on Solaris.
11604         * lib/iconv_open-solaris.gperf: New file.
11605         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11606         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11607         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11608         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11609         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11610         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11611
11612 2009-08-29  Jim Meyering  <meyering@redhat.com>
11613
11614         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11615         * top/maint.mk (cvs-check): Remove target; it was just an alias
11616         to the better-named vc-diff-check.
11617         (maintainer-distcheck): Remove rule.  It was used only from
11618         the (alpha/beta/major) target, and all of its commands but one
11619         were coreutils-specific.
11620         (vc-dist): Remove rule.
11621         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11622         Run vc-diff-check, not vc-dist.
11623         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11624
11625 2009-08-27  Bruno Haible  <bruno@clisp.org>
11626
11627         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11628         of 0.
11629
11630 2009-08-27  Bruno Haible  <bruno@clisp.org>
11631
11632         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11633         compilers.
11634         * doc/func.texi: Document the SunPRO C bug.
11635
11636 2009-08-27  Bruno Haible  <bruno@clisp.org>
11637
11638         Fix link error on Solaris.
11639         * tests/test-parse-duration.c (xstrdup): Remove function.
11640
11641 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11642
11643         ignore-value: handle pointer types, too
11644         * lib/ignore-value.h (__attribute__): Remove definition.
11645         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11646         of a more concise and more-often effective "(void) i" statement.
11647         (ignore_ptr): New function to suppress warnings from functions that
11648         return pointers, and to make it explicit that one function doesn't
11649         handle all cases.
11650
11651 2009-08-25  Bruno Haible  <bruno@clisp.org>
11652
11653         dup2: work around a Linux bug.
11654         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11655         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11656         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11657         Reported by Simon Josefsson.
11658
11659 2009-08-25  Jim Meyering  <meyering@redhat.com>
11660
11661         libguestfs uses gnulib
11662         * users.txt: Add libguestfs.
11663
11664 2009-08-24  Eric Blake  <ebb9@byu.net>
11665
11666         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11667         * lib/pipe2.c (includes): Add binary-io.h.
11668         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11669
11670 2009-08-24  Bruno Haible  <bruno@clisp.org>
11671
11672         Tolerate declared but missing accept4 syscall.
11673         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11674         available.
11675         * lib/sys_socket.in.h (accept4): If the function is already present,
11676         override it.
11677         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11678         * modules/accept4 (Makefile.am): Compile accept4.c always.
11679         Reported by Paolo Bonzini and Eric Blake.
11680
11681 2009-08-23  Bruno Haible  <bruno@clisp.org>
11682
11683         New module 'accept4'.
11684         * lib/sys_socket.in.h (accept4): New declaration.
11685         * lib/accept4.c: New file.
11686         * m4/accept4.m4: New file.
11687         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11688         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11689         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11690         HAVE_ACCEPT4.
11691         * modules/accept4: New file.
11692         * doc/glibc-functions/accept4.texi: Mention the new module.
11693
11694 2009-08-24  Jim Meyering  <meyering@redhat.com>
11695
11696         progname: also set global program_invocation_name, when possible
11697         Before this change, a libtool-enabled program that calls glibc's
11698         error function would report the program name as
11699         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11700         * modules/progname (configure.ac): Check for a declaration of
11701         program_invocation_name.
11702         * lib/progname.c:  Include <errno.h>.
11703         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11704         Set program_invocation_name.
11705
11706 2009-08-23  Bruno Haible  <bruno@clisp.org>
11707
11708         * lib/dup3.c: Include <string.h>.
11709
11710 2009-08-23  Bruno Haible  <bruno@clisp.org>
11711
11712         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11713         * lib/pipe2.c (pipe2): Likewise.
11714         Suggested by Eric Blake.
11715
11716 2009-08-23  Bruno Haible  <bruno@clisp.org>
11717
11718         Tolerate declared but missing dup3 syscall.
11719         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11720         * lib/unistd.in.h (dup3): If the function is already present,
11721         override it.
11722         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11723         * modules/dup3 (Makefile.am): Compile dup3.c always.
11724         Reported by Paolo Bonzini.
11725
11726 2009-08-23  Bruno Haible  <bruno@clisp.org>
11727
11728         Tolerate declared but missing pipe2 syscall.
11729         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11730         available.
11731         * lib/unistd.in.h (pipe2): If the function is already present,
11732         override it.
11733         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11734         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11735         Reported by Paolo Bonzini.
11736
11737 2009-08-23  Bruno Haible  <bruno@clisp.org>
11738
11739         * lib/pipe2.c (pipe2): Move #ifs inside function.
11740
11741 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11742
11743         quotearg: document limitations of quote_these_too
11744         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11745         those limitations are created.
11746         * lib/quotearg.h (set_char_quoting): Document that digits and
11747         letters that are special after backslash are not permitted.
11748         (quotearg_char): Cross-reference set_char_quoting documentation.
11749
11750 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11751
11752         quotearg: implement custom_quoting_style
11753         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11754         right_quote fields.
11755         (set_custom_quoting): New public function.
11756         (quotearg_buffer_restyled): Add left_quote and right_quote
11757         arguments, handle them very much like locale quoting, and update
11758         all uses.
11759         (quotearg_n_custom): New public function.
11760         (quotearg_n_custom_mem): New public function.
11761         (quotearg_custom): New public function.
11762         (quotearg_custom_mem): New public function.
11763         * lib/quotearg.h: Prototype and document new public functions.
11764         (enum quoting_style): For escape_quoting_style and
11765         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11766         ignored even though they're otherwise like c_quoting_style.
11767         Add custom_quoting_style member and document with comparison to
11768         clocale_quoting_style.
11769         * tests/test-quotearg.c (custom_quotes): New array.
11770         (custom_results): New array.
11771         (main): Extend to test custom quoting.
11772
11773 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11774
11775         quotearg: fix right quote escaping when it's in quote_these_too
11776         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11777         quote, be sure to prepend only one backslash.
11778         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11779         (main): Test it.
11780
11781 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11782
11783         quotearg-tests: test escaping of embedded locale quotes
11784         * tests/test-quotearg.c (struct result_strings): Add member for
11785         new input.
11786         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11787         (inputs): Add new input.
11788         (results_g): Add expected results.
11789         (flag_results): Likewise.
11790         (locale_results): Likewise.
11791         (compare_strings): Check those.
11792
11793 2009-08-23  Bruno Haible  <bruno@clisp.org>
11794
11795         Tests for module 'dup3'.
11796         * modules/dup3-tests: New file.
11797         * tests/test-dup3.c: New file.
11798
11799         New module 'dup3'.
11800         * lib/unistd.in.h (dup3): New declaration.
11801         * lib/dup3.c: New file.
11802         * m4/dup3.m4: New file.
11803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11804         HAVE_DUP3.
11805         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11806         * modules/dup3: New file.
11807         * doc/glibc-functions/dup3.texi: Mention the new module.
11808
11809 2009-08-23  Bruno Haible  <bruno@clisp.org>
11810
11811         Tweak the dup2 test.
11812         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11813         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11814         the test file is still empty. Fix argument order of lseek.
11815
11816 2009-08-23  Bruno Haible  <bruno@clisp.org>
11817
11818         Avoid test link errors when the modules getopt-gnu, gettext are used.
11819         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11821
11822 2009-08-23  Bruno Haible  <bruno@clisp.org>
11823
11824         Fix getdtablesize() on mingw.
11825         * lib/getdtablesize.c (getdtablesize): Implement differently.
11826         * lib/unistd.in.h (getdtablesize): Improve comment.
11827
11828 2009-08-23  Bruno Haible  <bruno@clisp.org>
11829
11830         New module 'mkostemp'.
11831         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11832         * lib/stdlib.in.h (mksotemp): New declaration.
11833         * lib/mkostemp.c: New file, from glibc with modifications.
11834         * lib/tempname.h (GT_FILE): Remove outdated comment.
11835         (gen_tempname): Add flags argument.
11836         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11837         (__GT_FILE): Map to 1.
11838         (small_open, large_open): Remove macros.
11839         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11840         * lib/mkstemp.c (mkstemp): Update.
11841         * lib/mkdtemp.c (mkdtemp): Likewise.
11842         * m4/mkostemp.m4: New file.
11843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11844         HAVE_MKOSTEMP.
11845         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11846         HAVE_MKOSTEMP.
11847         * modules/mkostemp: New file, based on modules/mkstemp.
11848         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11849         * NEWS: Mention the change.
11850
11851 2009-08-23  Bruno Haible  <bruno@clisp.org>
11852
11853         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11854         Reported by Eric Blake.
11855
11856 2009-08-23  Bruno Haible  <bruno@clisp.org>
11857
11858         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11859         Reported by Eric Blake.
11860
11861 2009-08-23  Bruno Haible  <bruno@clisp.org>
11862
11863         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11864         * modules/pipe2 (Depends-on): Likewise.
11865
11866 2009-08-23  Eric Blake  <ebb9@byu.net>
11867
11868         fcntl-h: add O_TTY_INIT support
11869         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11870         * tests/test-fcntl-h.c (o): Test it.
11871         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11872
11873         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11874         * modules/fcntl: Move <fcntl.h> header replacement...
11875         * modules/fcntl-h: ...to new name, so as not to collide with
11876         like-named function.
11877         * tests/test-fcntl.c: Rename...
11878         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11879         * modules/fcntl-tests: Rename...
11880         * modules/fcntl-h-tests: ...to this.  Update test file name.
11881         * modules/chdir-long (Depends-on): Update clients.
11882         * modules/chdir-safer (Depends-on): Likewise.
11883         * modules/fcntl-safer (Depends-on): Likewise.
11884         * modules/fts (Depends-on): Likewise.
11885         * modules/mkancesdirs (Depends-on): Likewise.
11886         * modules/mkdir-p (Depends-on): Likewise.
11887         * modules/open (Depends-on): Likewise.
11888         * modules/savewd (Depends-on): Likewise.
11889         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11890         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11891
11892 2009-08-22  Bruno Haible  <bruno@clisp.org>
11893
11894         * modules/binary-io (License): Relicense under LGPL.
11895         * modules/pipe2 (License): Likewise.
11896
11897 2009-08-22  Bruno Haible  <bruno@clisp.org>
11898
11899         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11900         return value.
11901         * lib/pipe-filter-gi.c (filter_init): Likewise.
11902         Reported by Eric Blake.
11903
11904 2009-08-22  Bruno Haible  <bruno@clisp.org>
11905
11906         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11907         * modules/pipe (Depends-on): Add pipe2.
11908
11909 2009-08-22  Bruno Haible  <bruno@clisp.org>
11910
11911         Tests for module 'pipe2'.
11912         * modules/pipe2-tests: New file.
11913         * tests/test-pipe2.c: New file.
11914
11915         New module 'pipe2'.
11916         * lib/unistd.in.h (pipe2): New declaration.
11917         * lib/pipe2.c: New file.
11918         * m4/pipe2.m4: New file.
11919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11920         HAVE_PIPE2.
11921         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11922         * modules/pipe2: New file.
11923         * doc/glibc-functions/pipe2.texi: Mention the new module.
11924
11925 2009-08-22  Bruno Haible  <bruno@clisp.org>
11926
11927         Reference some new glibc functions.
11928         * doc/glibc-functions/accept4.texi: New file.
11929         * doc/glibc-functions/dup3.texi: New file.
11930         * doc/glibc-functions/mkostemp.texi: New file.
11931         * doc/glibc-functions/pipe2.texi: New file.
11932         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11933         (Glibc sys/socket.h): Refer to accept4.
11934         (Glibc unistd.h): Refer to dup3, pipe2.
11935         Reported by Eric Blake.
11936
11937 2009-08-22  Jim Meyering  <meyering@redhat.com>
11938             Bruno Haible  <bruno@clisp.org>
11939
11940         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11941         This makes it so packages using automake-1.11's silent-rules option
11942         can print e.g., a single "GEN    configmake.h" line, rather than
11943         the 30+ statements that perform the job.  If you want to see the
11944         actual commands, you can still run "make V=1".
11945         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11946         so that make output is abbreviated when those variables are defined
11947         appropriately.
11948         * modules/argz: Likewise.
11949         * modules/arpa_inet: Likewise.
11950         * modules/byteswap: Likewise.
11951         * modules/configmake: Likewise.
11952         * modules/dirent: Likewise.
11953         * modules/errno: Likewise.
11954         * modules/fcntl: Likewise.
11955         * modules/float: Likewise.
11956         * modules/fnmatch: Likewise.
11957         * modules/getopt-posix: Likewise.
11958         * modules/glob: Likewise.
11959         * modules/iconv_open: Likewise.
11960         * modules/inttypes: Likewise.
11961         * modules/localcharset: Likewise.
11962         * modules/locale: Likewise.
11963         * modules/math: Likewise.
11964         * modules/netdb: Likewise.
11965         * modules/netinet_in: Likewise.
11966         * modules/poll: Likewise.
11967         * modules/posix_spawnp-tests: Likewise.
11968         * modules/sched: Likewise.
11969         * modules/search: Likewise.
11970         * modules/selinux-h: Likewise.
11971         * modules/signal: Likewise.
11972         * modules/spawn: Likewise.
11973         * modules/stdarg: Likewise.
11974         * modules/stdbool: Likewise.
11975         * modules/stddef: Likewise.
11976         * modules/stdint: Likewise.
11977         * modules/stdio: Likewise.
11978         * modules/stdlib: Likewise.
11979         * modules/string: Likewise.
11980         * modules/strings: Likewise.
11981         * modules/sys_file: Likewise.
11982         * modules/sys_ioctl: Likewise.
11983         * modules/sys_select: Likewise.
11984         * modules/sys_socket: Likewise.
11985         * modules/sys_stat: Likewise.
11986         * modules/sys_time: Likewise.
11987         * modules/sys_times: Likewise.
11988         * modules/sys_utsname: Likewise.
11989         * modules/sys_wait: Likewise.
11990         * modules/sysexits: Likewise.
11991         * modules/time: Likewise.
11992         * modules/unistd: Likewise.
11993         * modules/wchar: Likewise.
11994         * modules/wctype: Likewise.
11995
11996 2009-08-22  Jim Meyering  <meyering@redhat.com>
11997
11998         announce-gen: detect write failure
11999         * build-aux/announce-gen: Add Coda at end.
12000         Remove equivalent-but-more-verbose block at top.
12001
12002 2009-08-19  Akim Demaille  <demaille@gostai.com>
12003
12004         bootstrap: --help to stdout.
12005         * bootstrap (usage): Don't send --help to stderr.
12006         Use a here doc instead of a long string.
12007
12008 2009-08-21  Eric Blake  <ebb9@byu.net>
12009
12010         test-popen-safer: split from test-popen
12011         * tests/test-popen.c (main): Move...
12012         * tests/test-popen.h: ...into new file.
12013         * tests/test-popen-safer2.c: New file.
12014         * modules/popen-tests (Files): Add test-popen.h.
12015         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12016         Suggested by Bruno Haible.
12017
12018         test-fcntl-safer: split from test-open
12019         * tests/test-open.c (main): Move...
12020         * tests/test-open.h: ...into new file.
12021         * tests/test-fcntl-safer.c: New file.
12022         * modules/open-tests (Files): Add test-open.h.
12023         * modules/fcntl-safer-tests: New file.
12024         Suggested by Bruno Haible.
12025
12026         test-fopen-safer: split from test-fopen
12027         * tests/test-fopen.c (main): Move...
12028         * tests/test-fopen.h: ...into new file.
12029         * tests/test-fopen-safer.c: New file.
12030         * modules/fopen-tests (Files): Add test-fopen.h.
12031         * modules/fopen-safer-tests: New file.
12032         Suggested by Bruno Haible.
12033
12034 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12035
12036         popen-safer: test O_CLOEXEC at run-time.
12037         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12038
12039 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12040
12041         fcntl: move more flags to the header
12042         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12043         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12044         * lib/fcntl.in.h: Do both things here.
12045
12046 2009-08-21  Jim Meyering  <meyering@redhat.com>
12047
12048         consistently remove $@-t before redirecting to it
12049         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12050         * modules/alloca-opt: Likewise.
12051         * modules/byteswap: Likewise.
12052         * modules/fnmatch: Likewise.
12053         * modules/getopt-posix: Likewise.
12054         * modules/glob: Likewise.
12055         * modules/poll: Likewise.
12056         * modules/posix_spawnp-tests: Likewise.
12057         * modules/sys_socket: Likewise.
12058         * modules/sysexits: Likewise.
12059
12060 2009-08-21  Eric Blake  <ebb9@byu.net>
12061
12062         popen: simplify access to original popen
12063         * lib/popen.c (rpl_popen): No need to worry about popen being a
12064         macro.
12065         Reported by Bruno Haible.
12066
12067 2009-08-20  Eric Blake  <ebb9@byu.net>
12068
12069         build: avoid some compiler warnings
12070         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12071         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12072         type.
12073         (new_exclude_segment, excluded_file_pattern_p)
12074         (excluded_file_name_p): Reduce scope.
12075         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12076         old-style declaration.
12077
12078 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12079
12080         * tests/test-exclude1.sh: Handle Windows EOL.
12081         * tests/test-exclude2.sh: Likewise.
12082         * tests/test-exclude3.sh: Likewise.
12083         * tests/test-exclude4.sh: Likewise.
12084         * tests/test-exclude5.sh: Likewise.
12085         * tests/test-exclude6.sh: Likewise.
12086         * tests/test-exclude7.sh: Likewise.
12087
12088 2009-08-19  Akim Demaille  <demaille@gostai.com>
12089
12090         bootstrap: find sha1sum when named gsha1sum.
12091         * bootstrap (find_tool): New.
12092         ($SHA1SUM): New.
12093         Use it.
12094
12095 2009-08-20  Jim Meyering  <meyering@redhat.com>
12096
12097         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12098         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12099         expression that converts "." in a file name to "\." in the resulting
12100         regexp.  Start with a dummy statement, so that prior shell variable
12101         definitions are expanded portably.  Reported by Simon Josefsson.
12102
12103 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12104
12105         Fix polling for writeability of a screen buffer.
12106         * lib/poll.c: Distinguish input and screen buffers for the
12107         Win32 implementation.
12108         * lib/select.c: Likewise.
12109
12110 2009-08-19  Eric Blake  <ebb9@byu.net>
12111
12112         popen-safer: prevent popen from clobbering std descriptors
12113         * modules/popen-safer: New file.
12114         * lib/popen-safer.c: Likewise.
12115         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12116         * lib/stdio--.h (popen): Provide override.
12117         * lib/stdio-safer.h (popen_safer): Provide declaration.
12118         * tests/test-popen.c (includes): Partially test this.
12119         * modules/popen-safer-tests: New file, for more tests.
12120         * tests/test-popen-safer.c: Likewise.
12121         * MODULES.html.sh (file stream based Input/Output): Mention it.
12122
12123         tests: test some of the *-safer modules
12124         * modules/fopen-safer (Depends-on): Add fopen.
12125         * modules/fcntl-safer (Depends-on): Add fcntl.
12126         * modules/stdlib-safer (Depends-on): Add stdlib.
12127         (configure.ac): Set indicator.
12128         * modules/unistd-safer (configure.ac): Likewise.
12129         * modules/tmpfile-safer (configure.ac): Likewise.
12130         (Depends-on): Add tmpfile.
12131         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12132         active.
12133         * tests/test-fopen.c (includes): Test safer versions when they are
12134         in use.
12135         * tests/test-open.c (includes): Likewise.
12136
12137         popen: fix cygwin 1.5 bug when stdin closed
12138         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12139         * modules/popen: New file.
12140         * modules/popen-tests: Likewise.
12141         * tests/test-popen.c: Likewise.
12142         * m4/popen.m4: Likewise.
12143         * lib/popen.c: Likewise.
12144         * lib/stdio.in.h (popen): New declaration.
12145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12146         * modules/stdio (Makefile.am): Likewise.
12147         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12148
12149 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12150
12151         maint.mk: give full control over update-copyright exclusions
12152         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12153         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12154         (update-copyright): Don't force inclusion of top-level
12155         ChangeLog.  Don't force exclusion of all COPYING files, but make
12156         them the default exclusion instead.
12157
12158 2009-08-16  Bruno Haible  <bruno@clisp.org>
12159
12160         Fix test failures on Solaris 10.
12161         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12162         tests when Solaris iconv() is used.
12163         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12164         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12165         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12166         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12167         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12168
12169 2009-08-16  Bruno Haible  <bruno@clisp.org>
12170
12171         Fix test failures on Solaris 10.
12172         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12173         'tr' program and pass it as first argument.
12174         * tests/test-pipe-filter-gi1.sh: Likewise.
12175         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12176         program as first argument.
12177         * tests/test-pipe-filter-gi1.c (main): Likewise.
12178
12179 2009-08-16  Eric Blake  <ebb9@byu.net>
12180
12181         fpurge: fix previous commits
12182         * modules/fpurge (Makefile.am): Make replacement conditional,
12183         partially reverting 2007-04-29 change; missed in previous
12184         attempt.
12185         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12186         is missing.
12187
12188 2009-08-16  Bruno Haible  <bruno@clisp.org>
12189
12190         Clarify fpurge's effect on the file position.
12191         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12192         * tests/test-fpurge.c (main): Make a second pass for checking the file
12193         position.
12194
12195 2009-08-16  Bruno Haible  <bruno@clisp.org>
12196
12197         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12198         declaration of fpurge is missing.
12199         * tests/test-fpurge.c (main): Check that the file has not more contents
12200         than expected. Close the file before removing it.
12201
12202 2009-08-15  Eric Blake  <ebb9@byu.net>
12203
12204         fpurge: don't wrap working cygwin implementation
12205         * lib/fpurge.c (fpurge): Fix comment typo.
12206         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12207         1.7 to avoid replacement.
12208         * tests/test-fpurge.c (main): Enhance test.
12209
12210 2009-08-15  Eric Blake  <ebb9@byu.net>
12211         and Jim Meyering  <meyering@redhat.com>
12212
12213         test-update-copyright: skip if perl is insufficient
12214         * tests/test-update-copyright.sh: Failure to run maintainer tool
12215         should not cause testsuite failure on cygwin 1.5.
12216
12217 2009-08-14  Eric Blake  <ebb9@byu.net>
12218
12219         doc: mention more functions added in cygwin 1.7.0
12220         * doc/posix-headers/limits.texi (limits.h): Update for recent
12221         cygwin additions.
12222         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12223         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12224         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12225         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12226         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12227
12228 2009-08-14  Eric Blake  <ebb9@byu.net>
12229
12230         maint.mk: simplify update-copyright rule
12231         * top/maint.mk (update-copyright-local): Delete, and document how
12232         to do it in cfg.mk instead.
12233         (update-copyright-exclude-regexp): Delete, and document how to do
12234         it in .x-update-copyright instead.
12235         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12236         exclude ChangeLog.
12237
12238 2009-08-14  Bruno Haible  <bruno@clisp.org>
12239
12240         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12241
12242 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12243
12244         maint.mk: support update-copyright-env
12245         * top/maint.mk (update-copyright-env): Define place-holder.
12246         (update-copyright): Expand $(update-copyright-env) before
12247         invoking update-copyright.
12248
12249 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12250
12251         update-copyright: implement forced reformatting
12252         * build-aux/update-copyright: Implement and document
12253         UPDATE_COPYRIGHT_FORCE.
12254         * tests/test-update-copyright.sh: Test it.
12255
12256 2009-08-14  Eric Blake  <ebb9@byu.net>
12257         and Bruno Haible  <bruno@clisp.org>
12258
12259         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12260         * tests/test-locale.c: Revert previous patch related to NULL.
12261         * tests/test-stdio.c: Likewise.
12262         * tests/test-stdlib.c: Likewise.
12263         * tests/test-string.c: Likewise.
12264         * tests/test-unistd.c: Likewise.
12265         * modules/time-tests (Depends-on): Add verify.
12266         * modules/wchar-tests (Depends-on): Likewise.
12267         * tests/test-time.c: Test for NULL compliance.
12268         * tests/test-wchar.c: Likewise.
12269         * modules/locale (Depends-on): Add stddef.
12270         * modules/stdio (Depends-on): Likewise.
12271         * modules/stdlib (Depends-on): Likewise.
12272         * modules/string (Depends-on): Likewise.
12273         * modules/time (Depends-on): Likewise.
12274         * modules/unistd (Depends-on): Likewise.
12275         * modules/wchar (Depends-on): Likewise.
12276         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12277         * lib/stdlib.in.h (includes): Likewise.
12278         * lib/string.in.h (includes): Likewise.
12279         * lib/time.in.h (includes): Likewise.
12280         * lib/unistd.in.h (includes): Likewise.
12281         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12282         replaced.
12283         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12284         * m4/stddef_h.m4: New file.
12285         * modules/stddef: Likewise.
12286         * lib/stddef.in.h: Likewise.
12287         * modules/stddef-tests: Likewise.
12288         * tests/test-stddef.c: Likewise.
12289         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12290         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12291         * doc/posix-headers/locale.texi (locale.h): Likewise.
12292         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12293         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12294         * doc/posix-headers/string.texi (string.h): Likewise.
12295         * doc/posix-headers/time.texi (time.h): Likewise.
12296         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12297         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12298
12299 2009-08-14  Eric Blake  <ebb9@byu.net>
12300
12301         doc: improve git diff of texinfo files
12302         * .gitattributes: Add rule for *.texi files, with hint on how to
12303         use it.
12304         Copied from m4, and based on a report by Bruno Haible.
12305
12306 2009-08-14  Bruno Haible  <bruno@clisp.org>
12307
12308         Disable multithread support by default on Cygwin 1.5.x for real.
12309         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12310
12311 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12312
12313         update-copyright: much ado about intervals
12314         * build-aux/update-copyright: Implement and document
12315         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12316         of copyright year intervals.
12317         Also, document UPDATE_COPYRIGHT_YEAR.
12318         * tests/test-update-copyright.sh: Test it.
12319
12320         update-copyright: convert 2-digit to 4-digit years
12321         * build-aux/update-copyright: Implement and document.
12322         * tests/test-update-copyright.sh: Update.
12323
12324 2009-08-14  Jim Meyering  <meyering@redhat.com>
12325
12326         test-exclude: avoid coreutils "make check" failure
12327         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12328         just as in test-argmatch.c.
12329
12330 2009-08-13  Eric Blake  <ebb9@byu.net>
12331
12332         test-dup2: fix bad assumption
12333         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12334         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12335
12336         test-version-etc: fix CRLF portability issue
12337         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12338         recognize \r.
12339         * tests/test-argp-version-etc-1.sh: Likewise.
12340
12341         getopt: update client modules
12342         * modules/argp (Depends-on): Use getopt-gnu.
12343         * modules/git-merge-changelog (Depends-on): Likewise.
12344         * modules/long-options (Depends-on): Likewise.
12345         * modules/xstrtol (Depends-on): Likewise.
12346
12347 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12348
12349         * tests/test-version-etc.sh: Don't fail on different
12350         project/version.  Don't fail on CRLF differences.  Rewrite to use
12351         multiple -e instead of multiple sed forks, suggested by Eric Blake
12352         <ebb9@byu.net>.
12353         * tests/test-argp-version-etc-1.sh: Likewise.
12354
12355 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12356
12357         * tests/test-version-etc.sh: Don't fail on different
12358         project/version.
12359
12360 2009-08-12  Bruno Haible  <bruno@clisp.org>
12361
12362         Tests for modules 'getopt-posix', 'getopt-gnu'.
12363         * modules/getopt-posix-tests: New file.
12364         * tests/test-getopt.c: New file.
12365         * tests/test-getopt.h: New file.
12366         * tests/test-getopt_long.h: New file.
12367
12368         New modules 'getopt-posix', 'getopt-gnu'.
12369         * modules/getopt-gnu: New file, renamed from modules/getopt.
12370         * modules/getopt-posix: New file.
12371         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12372         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12373         (gl_GETOPT): Remove macro.
12374         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12375         Disable the test against BSD systems that declare optreset. Test
12376         against mingw bug. Test against lack of support of optional arguments
12377         on many platforms.
12378         * doc/glibc-headers/getopt.texi: Update module name and list of
12379         relevant platforms.
12380         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12381         'getopt-gnu' and more portability problems.
12382         * NEWS: Mention the changes.
12383
12384 2009-08-12  Bruno Haible  <bruno@clisp.org>
12385
12386         Ensure that optarg etc. get declared by <unistd.h>.
12387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12388         AC_USE_SYSTEM_EXTENSIONS.
12389         * modules/getopt (Depends-on): Add 'extensions'.
12390
12391 2009-08-12  Bruno Haible  <bruno@clisp.org>
12392
12393         Avoid test link errors.
12394         * modules/pipe-filter-ii-tests (Makefile.am): Define
12395         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12396         * modules/pipe-filter-gi-tests (Makefile.am): Define
12397         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12399
12400 2009-08-12  Bruno Haible  <bruno@clisp.org>
12401
12402         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12403         gl_GETOPT_SUBSTITUTE before.
12404         (gl_GETOPT): Use it.
12405         * m4/argp.m4 (gl_ARGP): Update.
12406         Reported by Sergey Poznyakoff.
12407
12408         * m4/getopt.m4: Reorder macros.
12409         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12410         (gl_GETOPT_SUBSTITUTE): Remove macro.
12411
12412 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12413
12414         Minor improvement in gitlog-to-changelog
12415
12416         * build-aux/gitlog-to-changelog: New option `--format' makes
12417         output format string configurable.
12418
12419 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12420
12421         Optimize exclude: use hash tables for non-wildcard patterns.
12422
12423         * lib/exclude.c: Include hash.h and mbuiter.h
12424         (struct exclude_pattern, exclude_segment): New data types.
12425         (struct exclude): Rewrite.
12426         (fnmatch_pattern_has_wildcards): New function.
12427         (new_exclude_segment, free_exclude_segment): New functions.
12428         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12429         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12430         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12431         * modules/exclude: Depend on hash and mbuiter.
12432
12433         * modules/exclude-tests: New file.
12434         * tests/test-exclude.c: New file.
12435         * tests/test-exclude1.sh: New file.
12436         * tests/test-exclude2.sh: New file.
12437         * tests/test-exclude3.sh: New file.
12438         * tests/test-exclude4.sh: New file.
12439         * tests/test-exclude5.sh: New file.
12440         * tests/test-exclude6.sh: New file.
12441         * tests/test-exclude7.sh: New file.
12442
12443 2009-08-12  Bruno Haible  <bruno@clisp.org>
12444
12445         Ensure that getopt() gets declared by <unistd.h>.
12446         * lib/unistd.in.h: Conditionally include getopt.h.
12447         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12448         Set GNULIB_UNISTD_H_GETOPT.
12449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12450         GNULIB_UNISTD_H_GETOPT.
12451         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12452
12453 2009-08-12  Bruno Haible  <bruno@clisp.org>
12454
12455         Clarify logic.
12456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12457         gl_replace_getopt instead of GETOPT_H.
12458
12459 2009-08-12  Bruno Haible  <bruno@clisp.org>
12460
12461         * m4/getopt.m4: Add comments.
12462
12463 2009-08-12  Bruno Haible  <bruno@clisp.org>
12464
12465         Disable multithread support by default on Cygwin 1.5.x.
12466         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12467         set gl_use_threads=no if not specified otherwise.
12468
12469 2009-08-11  Bruno Haible  <bruno@clisp.org>
12470
12471         Avoid compilation error on NetBSD 5.0.
12472         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12473         * tests/test-stdio.c: Likewise.
12474         * tests/test-stdlib.c: Likewise.
12475         * tests/test-string.c: Likewise.
12476         * tests/test-unistd.c: Likewise.
12477         Reported by Greg Troxel <gdt@ir.bbn.com>
12478         at <https://savannah.gnu.org/support/?106973>.
12479
12480 2009-08-11  Bruno Haible  <bruno@clisp.org>
12481
12482         * modules/dup2-tests (Depends-on): Remove close.
12483
12484         Undo 2009-07-19 commit.
12485         * modules/acl-tests (Depends-on): Remove close.
12486         * modules/binary-io-tests (Depends-on): Likewise.
12487         * modules/closein-tests (Depends-on): Likewise.
12488         * modules/flock-tests (Depends-on): Likewise.
12489         * modules/fsync-tests (Depends-on): Likewise.
12490         * modules/lseek-tests (Depends-on): Likewise.
12491         * modules/pipe-tests (Depends-on): Likewise.
12492         * modules/posix_spawn-tests (Depends-on): Likewise.
12493         * modules/posix_spawnp-tests (Depends-on): Likewise.
12494         * modules/stat-time-tests (Depends-on): Likewise.
12495         * modules/yesno-tests (Depends-on): Likewise.
12496
12497 2009-08-10  Bruno Haible  <bruno@clisp.org>
12498
12499         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12500
12501 2009-08-10  Bruno Haible  <bruno@clisp.org>
12502
12503         Fix a gcc warning.
12504         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12505
12506 2009-08-10  Bruno Haible  <bruno@clisp.org>
12507
12508         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12509         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12510         not only the first time.
12511         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12512         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12513         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12514         is 1, not only the the first time.
12515
12516 2009-08-10  Bruno Haible  <bruno@clisp.org>
12517
12518         Make it possible to use module 'gethostname' without module 'close'.
12519         * lib/unistd.in.h (close): Evoke a link error only if
12520         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12522         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12523         * modules/unistd (Makefile.am): Substitute
12524         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12525         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12526         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12527         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12528         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12529         * modules/sys_ioctl (Makefile.am): Substitute
12530         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12531         * modules/socket (configure.ac): On native Windows, set
12532         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12533         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12534         Reported by Sam Steingold <sds@gnu.org>.
12535
12536 2009-08-10  Bruno Haible  <bruno@clisp.org>
12537
12538         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12539         * modules/ioctl (configure.ac): Likewise.
12540
12541 2009-08-10  Bruno Haible  <bruno@clisp.org>
12542
12543         Avoid collision between gnulib wrapper and libintl wrapper.
12544         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12545         already defined in intl/printf.c.
12546         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12547         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12548
12549 2009-08-09  Bruno Haible  <bruno@clisp.org>
12550
12551         Make <sys/select.h> really self-contained, also on Solaris 10.
12552         * lib/sys_select.in.h: Include <string.h>.
12553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12554         Solaris 10 problem.
12555         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12556         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12557         Reported by Jim Meyering.
12558
12559 2009-08-09  Bruno Haible  <bruno@clisp.org>
12560
12561         Avoid warnings from 'aclocal' that are due to a use of macro name
12562         AM_XGETTEXT_OPTION that is not defined in automake.
12563         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12564         automake.
12565         * modules/error (configure.ac): Likewise.
12566         * modules/propername (configure.ac): Likewise.
12567         * modules/vasprintf (configure.ac): Likewise.
12568         * modules/verror (configure.ac): Likewise.
12569         * modules/xprintf (configure.ac): Likewise.
12570         * modules/xvasprintf (configure.ac): Likewise.
12571
12572 2009-08-08  Bruno Haible  <bruno@clisp.org>
12573
12574         Avoid compilation error in C++ mode.
12575         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12576         Reported by Sam Steingold <sds@gnu.org>.
12577
12578 2009-08-08  Bruno Haible  <bruno@clisp.org>
12579
12580         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12581         for the various Unix platforms.
12582         * doc/posix-headers/limits.texi: Update platforms list regarding
12583         HOST_NAME_MAX.
12584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12585
12586 2009-08-07  Jim Meyering  <meyering@redhat.com>
12587
12588         selinux-at: fix typo in a comment
12589         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12590         Spotted by Paolo Bonzini.
12591
12592         selinux-at: remove redundant m4 code, add documentation
12593         * modules/selinux-at (configure.ac): Remove redundant code.
12594         LIB_SELINUX is already set via the dependent module, selinux-h.
12595         (Include): Add quotes around selinux-at.h.
12596         * lib/selinux-at.h: Add documentation.
12597         Reported by Bruno Haible in
12598         http://marc.info/?l=gnulib-bug&m=124958988300749
12599
12600 2009-08-07  Bruno Haible  <bruno@clisp.org>
12601
12602         Avoid link error on MacOS X 10.3 and 10.4.
12603         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12604         on non-ELF systems.
12605         * lib/argp-pv.c (argp_program_version): Likewise.
12606         Reported by Simon Josefsson.
12607
12608 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12609
12610         * tests/test-version-etc.sh: Use $EXEEXT.
12611
12612 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12613
12614         update-copyright: update documentation to point to maint.mk
12615         * build-aux/update-copyright: Here.
12616
12617 2009-08-06  Jim Meyering  <meyering@redhat.com>
12618
12619         maint.mk: support update-copyright-local
12620         * top/maint.mk (update-copyright-local): Define place-holder.
12621         (update-copyright): Depend on $(update-copyright-local).
12622
12623 2009-08-06  Jim Meyering  <meyering@redhat.com>
12624
12625         selinux-at: new module
12626         Initially written for coreutils, this module will soon be
12627         used by findutils, too.
12628         * MODULES.html.sh [Misc]: Add selinux-at.
12629         * lib/selinux-at.h: New file, from coreutils.
12630         * lib/selinux-at.c: Likewise.
12631         * modules/selinux-at: Likewise.
12632         (License): Change from LGPL to GPL, since it depends
12633         on the GPL'd openat module.
12634
12635         doc: update README
12636         * README: Remove references to cogito.
12637         Remove cvs-repo-updating instructions from 2007.
12638         Don't imply that CVS is better if you have limited disk space.
12639
12640 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12641
12642         update-copyright: support C-style comments
12643         * build-aux/update-copyright: Implement and document.
12644         * tests/test-update-copyright.sh: Test.
12645
12646 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12647
12648         update-copyright: support omitted "(C)"
12649         * build-aux/update-copyright: Implement and document.  Also,
12650         allow variable whitespace before "(C)".
12651         * tests/test-update-copyright.sh: Test.
12652
12653 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12654
12655         update-copyright: don't trip on non-FSF copyright statements
12656         * build-aux/update-copyright: Fix so that the first correctly
12657         formatted FSF copyright statement is recognized no matter what
12658         appears before it.  Update documentation.
12659         * tests/test-update-copyright.sh: Test that.
12660
12661 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12662
12663         update-copyright: clean up code a little
12664         * build-aux/update-copyright: Append "_re" to the name of any
12665         variable holding a regular expression.
12666         Replace "old" and "new" with "stmt" in variable names.
12667         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12668         handled correctly.
12669         Format code more consistently.
12670
12671 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12672
12673         update-copyright-tests: improve portability
12674         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12675         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12676
12677 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12678
12679         update-copyright: support @copyright{} and &copy;
12680         * build-aux/update-copyright: Implement and document.
12681         * tests/test-update-copyright.sh: Test.
12682
12683 2009-08-04  Jim Meyering  <meyering@redhat.com>
12684
12685         update-copyright-tests: correctly test EOL=\r\n handling
12686         * tests/test-update-copyright.sh: Put \r at the end of some lines
12687         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12688
12689         maint.mk: make update-copyright exclusion list more configurable
12690         * top/maint.mk (update-copyright): Default to excluding COPYING,
12691         but allow an override, in case someone does want to update that file.
12692
12693         maint.mk: don't update copyright date in COPYING
12694         * top/maint.mk (update-copyright): Exclude COPYING.
12695
12696         maint.mk: add a copyright-updating rule
12697         * top/maint.mk (update-copyright): New rule.
12698         Derived from coreutils/Makefile.am.
12699
12700         update-copyright: rename some variables
12701         * build-aux/update-copyright: Rename a few variables for clarity.
12702         Tweak syntax.  List Joel E. Denny as coauthor.
12703
12704 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12705
12706         update-copyright: fix bug for 2-digit last year and add tests
12707         * build-aux/update-copyright: Fix bug.
12708         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12709         specified.
12710         * modules/update-copyright-tests: New
12711         * tests/test-update-copyright.sh: New.
12712
12713 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12714
12715         update-copyright: handle leading tabs in line prefix
12716         * build-aux/update-copyright: Count leading tabs as 8 spaces
12717         when computing margin.  This helps with the formatting of
12718         ChangeLogs, for example.
12719         Fix documentation a little.
12720
12721 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12722
12723         update-copyright: support EOL=\r\n
12724         * build-aux/update-copyright: Implement that.
12725
12726 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12727
12728         update-copyright: automatically format copyright statements
12729         * build-aux/update-copyright: Implement that.
12730         Also, be a little more predictable and safer by always failing
12731         when the full copyright format is not perfectly recognized as an
12732         unbroken whole.  Discussed at
12733         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12734         Rewrite documentation.
12735
12736 2009-08-03  Bruno Haible  <bruno@clisp.org>
12737
12738         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12739
12740 2009-08-02  Bruno Haible  <bruno@clisp.org>
12741
12742         Tests for module 'uname'.
12743         * modules/uname-tests: New file.
12744         * tests/test-uname.c: New file.
12745
12746         New module 'uname'.
12747         * lib/uname.c: New file.
12748         * m4/uname.m4: New file.
12749         * modules/uname: New file.
12750         * doc/posix-functions/uname.texi: Mention the new module.
12751
12752 2009-08-02  Bruno Haible  <bruno@clisp.org>
12753
12754         Tests for module 'sys_utsname'.
12755         * modules/sys_utsname-tests: New file.
12756         * tests/test-sys_utsname.c: New file.
12757
12758         New module 'sys_utsname'.
12759         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12760         * m4/sys_utsname_h.m4: New file.
12761         * modules/sys_utsname: New file.
12762         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12763
12764 2009-08-02  Bruno Haible  <bruno@clisp.org>
12765
12766         Implicitly initialize the sockets library.
12767         * lib/gethostname.c: Include sockets.h.
12768         (rpl_gethostname): Invoke gl_sockets_startup.
12769         * lib/socket.c: Include sockets.h.
12770         (rpl_socket): Invoke gl_sockets_startup.
12771         * modules/gethostname (Depends-on): Add sockets.
12772         * modules/socket (Depends-on): Likewise.
12773         * tests/test-poll.c: Don't include sockets.h.
12774         (main): Don't invoke gl_sockets_startup.
12775         * tests/test-select.c: Don't include sockets.h.
12776         (main): Don't invoke gl_sockets_startup.
12777
12778 2009-08-02  Bruno Haible  <bruno@clisp.org>
12779
12780         Allow multiple calls to gl_sockets_startup.
12781         * lib/sockets.c (initialized_sockets_version): New variable.
12782         (gl_sockets_startup): Do nothing if already called for this or a higher
12783         version.
12784         (gl_sockets_cleanup): Reset initialized_sockets_version.
12785
12786 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12787
12788         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12789         different project/version.
12790
12791 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12792             Bruno Haible  <bruno@clisp.org>
12793
12794         Tests for module 'pipe-filter-gi'.
12795         * modules/pipe-filter-gi-tests: New file.
12796         * tests/test-pipe-filter-gi1.sh: New file.
12797         * tests/test-pipe-filter-gi1.c: New file.
12798         * tests/test-pipe-filter-gi2.sh: New file.
12799         * tests/test-pipe-filter-gi2-main.c: New file.
12800         * tests/test-pipe-filter-gi2-child.c: New file.
12801
12802         New module 'pipe-filter-gi'.
12803         * lib/pipe-filter-gi.c: New file.
12804         * modules/pipe-filter-gi: New file.
12805
12806 2009-08-02  Bruno Haible  <bruno@clisp.org>
12807             Paolo Bonzini  <bonzini@gnu.org>
12808
12809         Tests for module 'pipe-filter-ii'.
12810         * modules/pipe-filter-ii-tests: New file.
12811         * tests/test-pipe-filter-ii1.sh: New file.
12812         * tests/test-pipe-filter-ii1.c: New file.
12813         * tests/test-pipe-filter-ii2.sh: New file.
12814         * tests/test-pipe-filter-ii2-main.c: New file.
12815         * tests/test-pipe-filter-ii2-child.c: New file.
12816
12817         New module 'pipe-filter-ii'.
12818         * lib/pipe-filter.h: New file.
12819         * lib/pipe-filter-ii.c: New file.
12820         * lib/pipe-filter-aux.h: New file.
12821         * modules/pipe-filter-ii: New file.
12822
12823 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12824
12825         * lib/gc-libgcrypt.c: Change copyright to FSF.
12826         * lib/gc-gnulib.c: Likewise.
12827
12828 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12829
12830         * lib/gethostname.c: Include limits.h.
12831
12832 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12833             Bruno Haible  <bruno@clisp.org>
12834
12835         Ensure HOST_NAME_MAX as part of the gethostname module.
12836         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12837         define also HOST_NAME_MAX.
12838         * tests/test-gethostname.c: Include <limits.h>.
12839         (main): Check also HOST_NAME_MAX.
12840         * doc/posix-headers/limits.texi: Document the mingw problem.
12841
12842 2009-08-02  Bruno Haible  <bruno@clisp.org>
12843
12844         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12845         Add comments.
12846
12847 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12848
12849         * lib/gethostname.c: Add Windows wrapper.
12850         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12851         * modules/gethostname: Depend on sys_socket & errno, for also
12852         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12853         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12854
12855 2009-07-31  Jim Meyering  <meyering@redhat.com>
12856
12857         getloadavg: fix symbol name in comment
12858         * lib/getloadavg.c: Correct a typo I introduced when adding
12859         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12860         Matt Kraai spotted the problem.
12861
12862 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12863
12864         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12865         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12866         code also if ! defined N_NAME_POINTER.
12867         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12868         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12869         but the n_name member is a 12-byte array.
12870
12871 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12872
12873         update-copyright: generalize comment handling
12874         * build-aux/update-copyright: Handle copyright statements
12875         within more comment styles.
12876         Document usage.
12877         Report any file with an external copyright holder or parse failure.
12878
12879 2009-07-29  Jim Meyering  <meyering@redhat.com>
12880
12881         mktime: correct setting of REPLACE_MKTIME
12882         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12883
12884         update-copyright: new module
12885         * modules/update-copyright: New file.
12886         * build-aux/update-copyright: New file.
12887         * MODULES.html.sh (maint+release support): Add update-copyright.
12888
12889 2009-07-27  Bruno Haible  <bruno@clisp.org>
12890
12891         Fix compilation error when <ctime> is used and mktime is replaced.
12892         * lib/time.in.h (mktime): New declaration.
12893         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12894         REPLACE_MKTIME instead of defining mktime in config.h.
12895         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12896         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12897         Reported by Ross McFarland <rwmcfa1@neces.com>.
12898
12899 2009-07-27  Bruno Haible  <bruno@clisp.org>
12900
12901         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12902         Reported by Matt Kraai <mkraai@beckman.com>.
12903
12904 2009-07-25  Jim Meyering  <meyering@redhat.com>
12905
12906         maint.mk: avoid warnings about missing files
12907         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12908         diagnostic when .prev-version does not exist.
12909         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12910         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12911         nonexistent cfg.mk.
12912         Suggestions from Simon Josefsson.
12913
12914 2009-07-25  Bruno Haible  <bruno@clisp.org>
12915
12916         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12917         defined as macros. Needed on QNX 6.4.1.
12918         Reported by Matt Kraai <mkraai@beckman.com>.
12919
12920 2009-07-23  Jim Meyering  <meyering@redhat.com>
12921
12922         maint.mk: invoke "make dist" with a working value of XZ_OPT
12923         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12924
12925 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12926
12927         Make fseeko.c compile on QNX.
12928         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12929
12930 2009-07-22  Peter Simons  <simons@cryp.to>
12931
12932         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12933         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12934         * lib/md4.h: Likewise.
12935         * lib/md5.h: Likewise.
12936         * lib/sha1.h: Likewise.
12937         * lib/sha256.h: Likewise.
12938         * lib/sha512.h: Likewise.
12939
12940         tests-sha1: don't assign literal string to 'char *' variable
12941         * tests/test-sha1.c (main): Declare locals with "const" to match
12942         attributes of the right hand side.
12943
12944 2009-07-21  Eric Blake  <ebb9@byu.net>
12945
12946         dup2: fix more mingw problems
12947         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12948         fd to itself.
12949         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12950         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12951         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12952         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12953         care of mingw bugs.
12954
12955 2009-07-21  Jim Meyering  <meyering@redhat.com>
12956
12957         vc-list-files: avoid failure when /bin/sh is dash
12958         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12959         On some Debian based systems, /bin/sh is a symlink to dash, and running
12960         this command would omit the "/" following each 'tests' prefix:
12961           dash -x build-aux/vc-list-files -C . tests
12962         That is because bash and dash work differently:
12963           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12964           bash ok
12965           dash odd
12966
12967 2009-07-21  Eric Blake  <ebb9@byu.net>
12968
12969         dup2-tests: test previous patch
12970         * modules/dup2-tests: New file.
12971         * tests/test-dup2.c: Likewise.
12972         * tests/test-open.c (main): Avoid unspecified behavior.
12973         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12974         test.
12975
12976         dup2: work around mingw and cygwin 1.5 bug
12977         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12979         * modules/unistd (Makefile.am): Substitute it.
12980         * lib/unistd.in.h (dup2): Declare the replacement.
12981         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12982         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12983         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12984         * modules/execute (Depends-on): Add dup2.
12985         * modules/fseterr (Depends-on): Likewise.
12986         * modules/pipe (Depends-on): Likewise.
12987         * modules/posix_spawn-internal (Depends-on): Likewise.
12988
12989 2009-07-21  Bruno Haible  <bruno@clisp.org>
12990
12991         * modules/.gitattributes: New file.
12992
12993 2009-07-20  Bruno Haible  <bruno@clisp.org>
12994
12995         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12996         (main): Use it.
12997
12998 2009-07-20  Eric Blake  <ebb9@byu.net>
12999
13000         test-pipe: make a bit more robust.
13001         * tests/test-pipe.c (myerr): Allow error messages regardless of
13002         what we do to stderr.
13003         (test_pipe): Rearrange to avoid deadlock.
13004         (child_main): Try a larger read, to ensure we avoided deadlock.
13005         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13006         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13007         if misused.
13008
13009 2009-07-19  Jim Meyering  <meyering@redhat.com>
13010
13011         fts: avoid false-positive cycle-detection
13012         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13013         for each new command line argument.
13014
13015 2009-07-19  Bruno Haible  <bruno@clisp.org>
13016
13017         Fix build error on mingw with the modules sys_select and unistd.
13018         * modules/acl-tests (Depends-on): Add close.
13019         * modules/binary-io-tests (Depends-on): Likewise.
13020         * modules/closein-tests (Depends-on): Likewise.
13021         * modules/flock-tests (Depends-on): Likewise.
13022         * modules/fsync-tests (Depends-on): Likewise.
13023         * modules/lseek-tests (Depends-on): Likewise.
13024         * modules/pipe-tests (Depends-on): Likewise.
13025         * modules/posix_spawn-tests (Depends-on): Likewise.
13026         * modules/posix_spawnp-tests (Depends-on): Likewise.
13027         * modules/stat-time-tests (Depends-on): Likewise.
13028         * modules/yesno-tests (Depends-on): Likewise.
13029
13030 2009-07-19  Bruno Haible  <bruno@clisp.org>
13031
13032         Unify conditionals.
13033         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13034         macros, not at the compiler macros.
13035         * lib/pipe.c: Likewise.
13036         * lib/execute.c: Likewise.
13037         * lib/spawni.c: Likewise.
13038
13039 2009-07-19  Bruno Haible  <bruno@clisp.org>
13040
13041         Fix handling of closed stdin/stdout/stderr on mingw.
13042         * lib/w32spawn.h: Include unistd.h.
13043         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13044         file descriptor with O_NOINHERIT flag.
13045         (fd_safer_noinherit): New function, based on fd-safer.c.
13046         (dup_safer_noinherit): New function, based on dup-safer.c.
13047         (undup_safer_noinherit): New function.
13048         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13049         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13050         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13051         instead of fd_safer.
13052         * tests/test-pipe.c: Include <windows.h>.
13053         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13054
13055         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13056         from main.
13057         (test_pipe): Pass an extra argument for disambiguation.
13058         (main): Invoke parent_main or child_main.
13059
13060         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13061         consistently.
13062
13063 2009-07-18  Eric Blake  <ebb9@byu.net>
13064
13065         test-pipe: fix mingw build
13066         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13067
13068 2009-07-18  Bruno Haible  <bruno@clisp.org>
13069
13070         * modules/pipe-tests (Makefile.am): Fix typo.
13071
13072 2009-07-18  Eric Blake  <ebb9@byu.net>
13073
13074         error: fix mingw build
13075         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13076         Reported by Bruno Haible.
13077
13078         error: avoid undefined use of stdout
13079         * lib/error.c (error, error_at_line): Check that fd 1 is open
13080         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13081         is handling faults and the close_stdout module wants to report the
13082         detection of closed stdout as an error.
13083
13084 2009-07-17  Eric Blake  <ebb9@byu.net>
13085
13086         pipe: be robust in face of closed fds
13087         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13088         should cause child to misbehave.
13089         * modules/pipe-tests: New module.
13090         * tests/test-pipe.c: New file.
13091         * tests/test-pipe.sh: New file.
13092         Reported by Akim Demaille.
13093
13094 2009-07-14  Bruno Haible  <bruno@clisp.org>
13095
13096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13097         Reported by anonymous kc.
13098
13099 2009-07-07  Jim Meyering  <meyering@redhat.com>
13100
13101         maint.mk: don't look for translatable strings in *.m4 or *.mk
13102         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13103         when searching for translatable strings.
13104
13105 2009-07-05  Jim Meyering  <meyering@redhat.com>
13106
13107         remove superfluous parentheses in STREQ definition
13108         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13109         * lib/getugroups.c (STREQ): Likewise.
13110         * lib/fnmatch.c (STREQ): Likewise.
13111         Spotted by Bruno Haible.
13112
13113 2009-07-04  Jim Meyering  <meyering@redhat.com>
13114
13115         argv-iter: new module
13116         * MODULES.html.sh: Add argv-iter.
13117         * lib/argv-iter.c, lib/argv-iter.h: New files.
13118         * modules/argv-iter: New file.
13119         * modules/argv-iter-tests: New file.
13120         * tests/test-argv-iter.c: Test it.
13121
13122 2009-07-04  Bruno Haible  <bruno@clisp.org>
13123
13124         Fix assertion.
13125         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13126         contains more exact copies of a given entry than file2, leave the extra
13127         copies unpaired rather than aborting.
13128         Reported by Eric Blake.
13129
13130 2009-07-02  Bruno Haible  <bruno@clisp.org>
13131
13132         Speedup git-merge-changelog for git cherry-pick.
13133         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13134         (entries_mapping_get): New function, extracted from compute_mapping.
13135         (entries_mapping_reverse_get): New function.
13136         (compute_mapping): Add a 'full' argument. Return the result in a
13137         'struct entries_mapping'.
13138         (main): Update. Access the mappings through entries_mapping_get.
13139         Reported by Eric Blake.
13140
13141 2009-07-02  Bruno Haible  <bruno@clisp.org>
13142
13143         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13144         best_i.
13145
13146 2009-07-02  Bruno Haible  <bruno@clisp.org>
13147
13148         Speed up approximate search for matching ChangeLog entries.
13149         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13150         argument. Call fstrcmp_bounded instead of fstrcmp.
13151         (compute_mapping, try_split_merged_entry, main): Update callers.
13152
13153 2009-07-02  Bruno Haible  <bruno@clisp.org>
13154
13155         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13156
13157 2009-06-30  Bruno Haible  <bruno@clisp.org>
13158
13159         Reduce the number of uc_is_cased calls.
13160         * lib/unicase.h (casing_suffix_context_t): Add
13161         'first_char_except_ignorable' field.
13162         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13163         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13164         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13165         Update initializer.
13166         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13167         case-ignorable characters.
13168         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13169         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13170         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13171         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13172         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13173
13174 2009-06-30  Bruno Haible  <bruno@clisp.org>
13175
13176         Tests for module 'unicase/ignorable'.
13177         * modules/unicase/ignorable-tests: New file.
13178         * tests/unicase/test-ignorable.c: New file, generated by
13179         gen-uni-tables.
13180
13181         Tests for module 'unicase/cased'.
13182         * modules/unicase/cased-tests: New file.
13183         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13184         * tests/unicase/test-predicate-part1.h: New file, derived from
13185         tests/unictype/test-predicate-part1.h.
13186         * tests/unicase/test-predicate-part2.h: New file, same as
13187         tests/unictype/test-predicate-part2.h.
13188
13189         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13190         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13191         (output_casing_properties): New function.
13192         (main): Call it.
13193         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13194         * lib/unicase/cased.c: Include unictype/bitmap.h.
13195         (uc_is_cased): Define through a bitmap lookup.
13196         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13197         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13198         (uc_is_case_ignorable): Define through a bitmap lookup.
13199         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13200         lib/unictype/bitmap.h.
13201         (Depends-on): Add inline. Clean up.
13202         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13203         lib/unictype/bitmap.h.
13204         (Depends-on): Add inline. Clean up.
13205         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13206         recognition.
13207         * tests/unicase/test-u16-tolower.c (main): Likewise.
13208         * tests/unicase/test-u32-tolower.c (main): Likewise.
13209
13210 2009-06-30  Bruno Haible  <bruno@clisp.org>
13211
13212         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13213         * lib/unicase/u16-casemap.c: Likewise.
13214         * lib/unicase/u32-casemap.c: Likewise.
13215
13216 2009-06-29  Bruno Haible  <bruno@clisp.org>
13217
13218         Define u32_casefold as a wrapper around u32_ct_casefold.
13219         * lib/unicase/u32-casefold.c: Update.
13220         * modules/unicase/u32-casefold (Depends-on): Add
13221         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13222         unicase/empty-suffix-context. Clean up.
13223
13224         Define u16_casefold as a wrapper around u16_ct_casefold.
13225         * lib/unicase/u16-casefold.c: Update.
13226         * modules/unicase/u16-casefold (Depends-on): Add
13227         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13228         unicase/empty-suffix-context. Clean up.
13229
13230         Define u8_casefold as a wrapper around u8_ct_casefold.
13231         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13232         * lib/unicase/u8-casefold.c: Update.
13233         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13234         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13235
13236         Define u32_totitle as a wrapper around u32_ct_totitle.
13237         * lib/unicase/u32-totitle.c: Update.
13238         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13239         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13240
13241         Define u16_totitle as a wrapper around u16_ct_totitle.
13242         * lib/unicase/u16-totitle.c: Update.
13243         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13244         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13245
13246         Define u8_totitle as a wrapper around u8_ct_totitle.
13247         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13248         functions.
13249         (FUNC): Delegate to U_CT_TOTITLE.
13250         * lib/unicase/u8-totitle.c: Update.
13251         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13252         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13253
13254         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13255         invocation.
13256         * modules/unicase/u32-tolower (Depends-on): Add
13257         unicase/empty-prefix-context, unicase/empty-suffix-context.
13258
13259         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13260         invocation.
13261         * modules/unicase/u16-tolower (Depends-on): Add
13262         unicase/empty-prefix-context, unicase/empty-suffix-context.
13263
13264         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13265         * modules/unicase/u8-tolower (Depends-on): Add
13266         unicase/empty-prefix-context, unicase/empty-suffix-context.
13267
13268         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13269         invocation.
13270         * modules/unicase/u32-toupper (Depends-on): Add
13271         unicase/empty-prefix-context, unicase/empty-suffix-context.
13272
13273         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13274         invocation.
13275         * modules/unicase/u16-toupper (Depends-on): Add
13276         unicase/empty-prefix-context, unicase/empty-suffix-context.
13277
13278         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13279         * modules/unicase/u8-toupper (Depends-on): Add
13280         unicase/empty-prefix-context, unicase/empty-suffix-context.
13281
13282         New module 'unicase/u32-ct-casefold'.
13283         * lib/unicase/u32-ct-casefold.c: New file.
13284         * modules/unicase/u32-ct-casefold: New file.
13285
13286         New module 'unicase/u16-ct-casefold'.
13287         * lib/unicase/u16-ct-casefold.c: New file.
13288         * modules/unicase/u16-ct-casefold: New file.
13289
13290         New module 'unicase/u8-ct-casefold'.
13291         * lib/unicase/u8-ct-casefold.c: New file.
13292         * lib/unicase/u-ct-casefold.h: New file, derived from
13293         lib/unicase/u-casefold.h.
13294         * modules/unicase/u8-ct-casefold: New file.
13295
13296         New module 'unicase/u32-ct-totitle'.
13297         * lib/unicase/u32-ct-totitle.c: New file.
13298         * modules/unicase/u32-ct-totitle: New file.
13299
13300         New module 'unicase/u16-ct-totitle'.
13301         * lib/unicase/u16-ct-totitle.c: New file.
13302         * modules/unicase/u16-ct-totitle: New file.
13303
13304         New module 'unicase/u8-ct-totitle'.
13305         * lib/unicase/u8-ct-totitle.c: New file.
13306         * lib/unicase/u-ct-totitle.h: New file, derived from
13307         lib/unicase/u-totitle.h.
13308         * modules/unicase/u8-ct-totitle: New file.
13309
13310         New module 'unicase/u32-ct-tolower'.
13311         * lib/unicase/u32-ct-tolower.c: New file.
13312         * modules/unicase/u32-ct-tolower: New file.
13313
13314         New module 'unicase/u16-ct-tolower'.
13315         * lib/unicase/u16-ct-tolower.c: New file.
13316         * modules/unicase/u16-ct-tolower: New file.
13317
13318         New module 'unicase/u8-ct-tolower'.
13319         * lib/unicase/u8-ct-tolower.c: New file.
13320         * modules/unicase/u8-ct-tolower: New file.
13321
13322         New module 'unicase/u32-ct-toupper'.
13323         * lib/unicase/u32-ct-toupper.c: New file.
13324         * modules/unicase/u32-ct-toupper: New file.
13325
13326         New module 'unicase/u16-ct-toupper'.
13327         * lib/unicase/u16-ct-toupper.c: New file.
13328         * modules/unicase/u16-ct-toupper: New file.
13329
13330         New module 'unicase/u8-ct-toupper'.
13331         * lib/unicase/u8-ct-toupper.c: New file.
13332         * modules/unicase/u8-ct-toupper: New file.
13333
13334         Add context arguments to u*_casemap functions.
13335         * lib/unicase/unicasemap.h: Include unicase.h.
13336         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13337         suffix_context arguments.
13338         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13339         functions.
13340         (FUNC): Add prefix_context and suffix_context arguments. Use
13341         uc_is_cased and uc_is_case_ignorable.
13342         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13343         * lib/unicase/u16-casemap.c: Likewise.
13344         * lib/unicase/u32-casemap.c: Likewise.
13345         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13346         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13347         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13348         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13349         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13350         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13351
13352         New module 'unicase/u32-suffix-context'.
13353         * lib/unicase/u32-suffix-context.c: New file.
13354         * modules/unicase/u32-suffix-context: New file.
13355
13356         New module 'unicase/u16-suffix-context'.
13357         * lib/unicase/u16-suffix-context.c: New file.
13358         * modules/unicase/u16-suffix-context: New file.
13359
13360         New module 'unicase/u8-suffix-context'.
13361         * lib/unicase/u8-suffix-context.c: New file.
13362         * lib/unicase/u-suffix-context.h: New file.
13363         * modules/unicase/u8-suffix-context: New file.
13364
13365         New module 'unicase/empty-suffix-context'.
13366         * lib/unicase/empty-suffix-context.c: New file.
13367         * modules/unicase/empty-suffix-context: New file.
13368
13369         New module 'unicase/u32-prefix-context'.
13370         * lib/unicase/u32-prefix-context.c: New file.
13371         * modules/unicase/u32-prefix-context: New file.
13372
13373         New module 'unicase/u16-prefix-context'.
13374         * lib/unicase/u16-prefix-context.c: New file.
13375         * modules/unicase/u16-prefix-context: New file.
13376
13377         New module 'unicase/u8-prefix-context'.
13378         * lib/unicase/u8-prefix-context.c: New file.
13379         * lib/unicase/u-prefix-context.h: New file.
13380         * lib/unicase/context.h: New file.
13381         * modules/unicase/u8-prefix-context: New file.
13382
13383         New module 'unicase/empty-prefix-context'.
13384         * lib/unicase/empty-prefix-context.c: New file.
13385         * modules/unicase/empty-prefix-context: New file.
13386
13387         New module 'unicase/ignorable'.
13388         * lib/unicase/ignorable.c: New file.
13389         * modules/unicase/ignorable: New file.
13390
13391         New module 'unicase/cased'.
13392         * lib/unicase/caseprop.h: New file.
13393         * lib/unicase/cased.c: New file.
13394         * modules/unicase/cased: New file.
13395
13396         New functions for case mapping of substrings.
13397         * lib/unicase.h (casing_prefix_context_t): New type.
13398         (unicase_empty_prefix_context): New variable.
13399         (u8_casing_prefix_context, u16_casing_prefix_context,
13400         u32_casing_prefix_context, u8_casing_prefixes_context,
13401         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13402         declarations.
13403         (casing_suffix_context_t): New type.
13404         (unicase_empty_suffix_context): New variable.
13405         (u8_casing_suffix_context, u16_casing_suffix_context,
13406         u32_casing_suffix_context, u8_casing_suffixes_context,
13407         u16_casing_suffixes_context, u32_casing_suffixes_context,
13408         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13409         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13410         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13411         declarations.
13412
13413 2009-06-28  Jim Meyering  <meyering@redhat.com>
13414
13415         boostrap: indent only with spaces
13416         * build-aux/bootstrap: Indent only with spaces, never TABs.
13417
13418         bootstrap: split long lines
13419         * build-aux/bootstrap: Keep line length < 80.
13420
13421         bootstrap: sync from coreutils
13422         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13423         just as autoreconf does.  Verify a list of prerequisite
13424         package-name,version-number pairs if defined in bootstrap.conf.
13425         Refer to README-prereq, if prerequisites are not satisfied.
13426
13427 2009-06-27  Eric Blake  <ebb9@byu.net>
13428
13429         tests: add test for bogus NULL definition
13430         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13431         * tests/test-stdlib.c: Likewise.
13432         * tests/test-string.c: Likewise.
13433         * tests/test-locale.c: Likewise.
13434         * tests/test-unistd.c: Likewise.
13435         * modules/stdio-tests (Depends-on): Add verify.
13436         * modules/stdlib-tests (Depends-on): Likewise.
13437         * modules/string-tests (Depends-on): Likewise.
13438         * modules/locale-tests (Depends-on): Likewise.
13439         * modules/unistd-tests (Depends-on): Likewise.
13440
13441 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13442
13443         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13444         self-explaining comment.
13445         * m4/selinux-selinux-h: Update serial.
13446         (gl_LIBSELINUX): New macro, adding a warning for missing development
13447         packages to code extracted from...
13448         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13449         Add warning for missing development packages here, too.
13450
13451 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13452
13453         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13454
13455 2009-06-25  Eric Blake  <ebb9@byu.net>
13456
13457         version-etc: fix regression
13458         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13459         gcc.
13460         (version_etc): Use it, to catch bugs with trailing NULL.
13461         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13462         (version_etc_va): Fix logic bug.
13463         * modules/version-etc-tests: Add test.
13464         * tests/test-version-etc.c: New file.
13465         * tests/test-version-etc.sh: Likewise.
13466
13467 2009-06-25  Sam Steingold  <sds@gnu.org>
13468
13469         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13470         mbtowc declaration.
13471
13472 2009-06-25  Eric Blake  <ebb9@byu.net>
13473
13474         fpurge: migrate into <stdio.h>
13475         * lib/fpurge.h: Delete...
13476         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13477         * lib/fpurge.c (fpurge): Change declaring header.
13478         * modules/fpurge (Files): Drop deleted file.
13479         (Depends-on): Add stdio.
13480         (configure.ac): Set witness.
13481         * modules/stdio (Makefile.am): Support fpurge macros.
13482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13483         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13484         * lib/fflush.c: Update client.
13485         * tests/test-fpurge.c: Likewise.
13486         * NEWS: Mention the change.
13487
13488 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13489
13490         * lib/argp-version-etc.c (program_authors): Add const
13491         qualifier.
13492         * lib/version-etc.c: Fix typos in the comments.
13493         * modules/argp-version-etc: Depends on version-etc.
13494
13495 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13496
13497         argp-version-etc: new module.
13498
13499         * lib/argp-version-etc.c: New file.
13500         * lib/argp-version-etc.h: New file.
13501         * modules/argp-version-etc: New file.
13502         * modules/argp-version-etc-tests: New file.
13503         * tests/test-argp-version-etc.c: New test.
13504         * tests/test-argp-version-etc-1.sh: New test.
13505
13506 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13507
13508         Provide additional interfaces and documentation for version-etc
13509         module.
13510
13511         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13512         interfaces.
13513         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13514         prototypes.
13515
13516 2009-06-24  Bruno Haible  <bruno@clisp.org>
13517
13518         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13519         HAVE_LIB${NAME} macro.
13520         Reported by Sam Steingold <sds@gnu.org>.
13521
13522 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13523
13524         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13525         needed.
13526
13527 2009-06-21  Bruno Haible  <bruno@clisp.org>
13528
13529         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13530         work.
13531         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13532         together with LIB${NAME}, LTLIB${NAME}.
13533         Reported by Sam Steingold <sds@gnu.org>.
13534
13535 2009-06-20  Jim Meyering  <meyering@redhat.com>
13536
13537         tests: make sc_require_test_exit_idiom more generic
13538         * top/maint.mk (Exit_witness_file): New overridable variable.
13539         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13540         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13541
13542 2009-06-19  Jim Meyering  <meyering@redhat.com>
13543
13544         hash: reverse order of src/dst parameters in an internal interface
13545         * lib/hash.c (transfer_entries): Reverse order of parameters to
13546         put DST before SRC.  Adjust callers.
13547
13548         tests: test-hash: avoid wholesale duplication
13549         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13550         Instead, use a loop and add a single conditional.
13551
13552         tests: test-hash: allow seed selection via a command line argument
13553         * tests/test-hash.c (get_seed): New function.
13554         (main): Use it.
13555
13556 2009-06-19  Eric Blake  <ebb9@byu.net>
13557
13558         hash: avoid memory leak on allocation failure
13559         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13560         failure.  Factor repeated algorithm...
13561         (transfer_entries): ...into new helper routine.
13562         (hash_delete): React to hash_rehash return value.
13563
13564         hash: reduce memory pressure in hash_rehash no-op case
13565         * lib/hash.c (next_prime): Avoid overflow.
13566         (hash_initialize): Factor bucket size computation...
13567         (compute_bucket_size): ...into new helper function.
13568         (hash_rehash): Use new function and open coding to reduce memory
13569         pressure, and avoid a memory leak in USE_OBSTACK code.
13570         Reported by Jim Meyering.
13571
13572 2009-06-18  Eric Blake  <ebb9@byu.net>
13573
13574         hash: make rotation more obvious
13575         * modules/hash (Depends-on): Add bitrotate and stdint.
13576         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13577         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13578         (SIZE_MAX): Rely on headers for definition.
13579         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13580         (raw_hasher): Use rotr_sz.
13581         Suggested by Jim Meyering.
13582
13583         hash: fix memory leak in last patch
13584         * lib/hash.c (hash_rehash): Avoid memory leak.
13585
13586         hash: avoid no-op rehashing
13587         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13588
13589         hash: provide default callback functions
13590         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13591         (hash_initialize): Use them as defaults.
13592         * tests/test-hash.c (main): Test this.
13593
13594         hash: minor optimization
13595         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13596         when possible.
13597         (hash_initialize): Document this promise.
13598         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13599         * tests/test-hash.c (hash_compare_strings): Test this.
13600
13601 2009-06-18  Bruno Haible  <bruno@clisp.org>
13602
13603         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13604         going to be replaced anyway.
13605
13606 2009-06-18  Bruno Haible  <bruno@clisp.org>
13607
13608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13609         in one place.
13610         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13611         be replaced anyway.
13612
13613 2009-06-18  Eric Blake  <ebb9@byu.net>
13614
13615         hash: check for resize before insertion
13616         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13617         threshold before insertion, so that a pathological hash_rehash
13618         that fills every bucket can still trigger another rehash.
13619
13620 2009-06-18  Jim Meyering  <meyering@redhat.com>
13621
13622         hash-tests: add a loop around the small tests
13623         * tests/test-hash.c (main): Repeat small tests with selected
13624         small initial table sizes.
13625
13626 2009-06-17  Eric Blake  <ebb9@byu.net>
13627
13628         hash: minor cleanups
13629         * lib/hash.h (hash_entry): Make opaque, by moving...
13630         * lib/hash.c (hash_entry): ...here.
13631         (hash_insert): Clarify restrictions on what can be inserted.
13632         (hash_get_next): Clarify when it is safe to remove an element
13633         during traversal.
13634         (check_tuning): Skip verification when tuning is known safe.
13635         (hash_initialize): Clarify restrictions on tuning.
13636
13637 2009-06-17  Jim Meyering  <jim@meyering.net>
13638         and Eric Blake  <ebb9@byu.net>
13639
13640         hash-tests: new module
13641         * modules/hash-tests: New file.
13642         * tests/test-hash.c: New file.
13643
13644 2009-06-17  Eric Blake  <ebb9@byu.net>
13645
13646         strstr-simple: document new module
13647         * MODULES.html.sh: Document new module.
13648
13649         strstr, strcasestr: replace on platforms with broken memchr
13650         * modules/strstr: Split into...
13651         * modules/strstr-simple: ...new module that does not care about
13652         performance, but does care about glibc bug.
13653         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13654         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13655         if platform memchr is broken, per Debian bug 521737.
13656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13657         memchr.
13658         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13659         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13660         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13661         * modules/mountlist (Depends-on): Add strstr-simple.
13662         * modules/gen-uni-tables (Depends-on): Likewise.
13663         * modules/argz (Depends-on): Add strstr.
13664
13665 2009-06-17  Bruno Haible  <bruno@clisp.org>
13666
13667         * modules/posix_spawn-internal (Depends-on): Add errno.
13668
13669 2009-06-17  Bruno Haible  <bruno@clisp.org>
13670
13671         Define missing ESTALE on Interix 3.5.
13672         * lib/errno.in.h (ESTALE): Assign a value if missing.
13673         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13675         missing.
13676         * doc/posix-headers/errno.texi: Mention the Interix bug.
13677         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13678
13679 2009-06-15  Eric Blake  <ebb9@byu.net>
13680
13681         memchr, memchr2: add valgrind exception
13682         * lib/memchr.valgrind: New file.
13683         * lib/memchr2.valgrind: New file.
13684         * modules/memchr (Files): Distribute valgrind file.
13685         * modules/memchr2 (Files): Likewise.
13686
13687         docs: memchr is no longer obsolete
13688         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13689         * lib/string.in.h (memchr): Simplify logic.
13690
13691 2009-06-14  Jim Meyering  <meyering@redhat.com>
13692
13693         link-follow: fix the "checking..." message to not mention trailing slash
13694         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13695         never considered trailing slashes.
13696
13697 2009-06-14  Bruno Haible  <bruno@clisp.org>
13698
13699         * m4/memchr.m4: Mention also the bug on IA-64.
13700         * doc/posix-functions/memchr.texi: Likewise.
13701
13702 2009-06-12  Eric Blake  <ebb9@byu.net>
13703
13704         memchr: detect broken x86_64 and alpha implementations
13705         * modules/memchr-tests (Depends-on): Move mmap detection...
13706         * modules/memchr (Depends-on): ...here.
13707         (configure.ac): Set indicator.
13708         * lib/string.in.h (memchr): Declare replacement.
13709         * modules/string (Makefile.am): Trigger replacement.
13710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13711         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13712         bugs.
13713         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13714         * modules/getpagesize (License): Relax license.
13715
13716 2009-06-11  Bruno Haible  <bruno@clisp.org>
13717
13718         * lib/idpriv.h: Add more references.
13719
13720 2009-06-08  Bruno Haible  <bruno@clisp.org>
13721
13722         Tests for module 'idpriv-droptemp'.
13723         * modules/idpriv-droptemp-tests: New file.
13724         * tests/test-idpriv-droptemp.sh: New file.
13725         * tests/test-idpriv-droptemp.su.sh: New file.
13726         * tests/test-idpriv-droptemp.c: New file.
13727
13728         New module 'idpriv-droptemp'.
13729         * lib/idpriv-droptemp.c: New file.
13730         * modules/idpriv-droptemp: New file.
13731
13732 2009-06-08  Bruno Haible  <bruno@clisp.org>
13733
13734         Tests for module 'idpriv-drop'.
13735         * modules/idpriv-drop-tests: New file.
13736         * tests/test-idpriv-drop.sh: New file.
13737         * tests/test-idpriv-drop.su.sh: New file.
13738         * tests/test-idpriv-drop.c: New file.
13739
13740         New module 'idpriv-drop'.
13741         * lib/idpriv.h: New file.
13742         * lib-idpriv-drop.c: New file.
13743         * m4/idpriv.m4: New file.
13744         * modules/idpriv-drop: New file.
13745
13746 2009-06-08  Bruno Haible  <bruno@clisp.org>
13747
13748         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13749         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13750         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13751         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13752         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13753         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13754         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13755
13756 2009-06-08  Eric Blake  <ebb9@byu.net>
13757
13758         test-strstr: use memory fence, when possible
13759         * tests/test-strstr.c (main): Use memory fence, in order to be
13760         more likely to trigger Debian bug 521737.
13761         * modules/strstr-tests (Files): Pull in additional files.
13762
13763         memchr: no longer obsolete, for wider field testing
13764         * modules/memchr (Status, Notice): Delete, this module is no
13765         longer obsolete.
13766         * modules/vasnprintf (Depends-on): Add memchr.
13767
13768 2009-06-07  Jim Meyering  <meyering@redhat.com>
13769
13770         hash: declare some functions with the warn_unused_result attribute
13771         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13772
13773 2009-06-07  Bruno Haible  <bruno@clisp.org>
13774
13775         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13776         Reported by Eric Blake.
13777
13778 2009-06-06  Eric Blake  <ebb9@byu.net>
13779
13780         test-alignof: fix typo with long double
13781         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13782         compiler error.
13783
13784 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13785
13786         Escape non-texinfo { and }s.
13787         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13788         markup error.
13789
13790 2009-06-04  Jim Meyering  <meyering@redhat.com>
13791
13792         gitlog-to-changelog: don't infloop on an empty commit log
13793         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13794         Reported by Boris Petersen <transacid@centerim.org>.
13795
13796 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13797
13798         version-etc: extend for packagers
13799         Add three new configure options, intended for packagers:
13800           --with-packager="packager name"
13801           --with-packager-version="packager-specific version"
13802           --with-packager-bug-reports="packager bug reporting"
13803         An example with coreutils:
13804           $ ./configure \
13805             --with-packager=Gentoo \
13806             --with-packager-bug-report=http://bugs.gentoo.org/ \
13807             --with-packager-version="patchset 1.6"
13808           $ ./src/ls --version | head -n2
13809           ls (GNU coreutils) 7.1-dirty
13810           Packaged by Gentoo (patchset 1.6)
13811         Note that the bug reporting info via --help doesn't show up because
13812         coreutils uses its own custom emit_bug_reporting_address() implementation
13813         in src/system.h.  If it didn't, it'd look like:
13814           $ ./src/ls --help | tail -n4
13815           Report bugs to <bug-coreutils@gnu.org>.
13816           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13817           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13818           General help using GNU software: <http://www.gnu.org/gethelp/>.
13819         * lib/version-etc.c: Print new information, if provided.
13820         * m4/version-etc.m4: New file.
13821         * modules/version-etc (Files): Add m4/version-etc.m4.
13822         (configure.ac): Add gl_VERSION_ETC.
13823
13824 2009-05-31  Bruno Haible  <bruno@clisp.org>
13825
13826         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13827         and 'int64_t'.
13828         * modules/alignof-tests (Dependencies): Add stdint.
13829         Reported by Eric Blake.
13830
13831 2009-05-31  Bruno Haible  <bruno@clisp.org>
13832
13833         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13834         restriction due to compiler bugs.
13835         Reported by Eric Blake.
13836
13837 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13838             Bruno Haible  <bruno@clisp.org>
13839
13840         Fix test-alignof failure.
13841         * lib/alignof.h (alignof_slot): New macro.
13842         (alignof_type): New macro, with the same semantics as the previous
13843         'alignof'.
13844         (alignof): Alias to alignof_slot.
13845         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13846         check that the results are usable as constant expressions.
13847
13848 2009-05-31  Bruno Haible  <bruno@clisp.org>
13849
13850         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13851         * tests/test-memchr.c (main): Check that memchr does not read past the
13852         first occurrence of the byte.
13853         * tests/test-strstr.c (main): Update comment.
13854         Suggested by Eric Blake.
13855
13856 2009-05-30  Bruno Haible  <bruno@clisp.org>
13857
13858         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13859         detail how to use dumpbin.
13860         Reported by David Byron <dbyron@dbyron.com>.
13861
13862 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13863
13864         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13865
13866 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13867
13868         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13869
13870 2009-05-28  Bruno Haible  <bruno@clisp.org>
13871
13872         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13873         build-aux/ files.
13874
13875 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13876
13877         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13878
13879 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13880
13881         * gnulib-tool (sed_transform_main_lib_file)
13882         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13883         regexps.
13884
13885 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13886
13887         * tests/test-strstr.c: Add another self-test.
13888         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13889         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13890
13891 2009-05-23  Bruno Haible  <bruno@clisp.org>
13892
13893         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13894         change.
13895
13896 2009-05-21  Bruno Haible  <bruno@clisp.org>
13897
13898         Simplify use of mode_t varargs.
13899         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13900         uses 'mode_t' or 'int'.
13901         * lib/openat.c (openat): Likewise.
13902         * lib/open-safer.c (open_safer): Likewise.
13903         * m4/mode_t.m4: New file.
13904         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13905         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13906         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13907         * modules/open (Files): Add m4/mode_t.m4.
13908         * modules/openat (Files): Likewise.
13909         * modules/fcntl-safer (Files): Likewise.
13910         Suggested by Eric Blake.
13911
13912 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13913
13914         * doc/glibc-functions/fallocate.texi: New file.
13915         * doc/gnulib.texi: Include it.
13916
13917 2009-05-21  Eric Blake  <ebb9@byu.net>
13918             Bruno Haible  <bruno@clisp.org>
13919
13920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13921         invocations.
13922         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13923
13924 2009-05-21  Eric Blake  <ebb9@byu.net>
13925             Bruno Haible  <bruno@clisp.org>
13926
13927         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13928         include_next. Fix of 2008-11-20 commit.
13929         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13930         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13931         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13932         NEXT_MATH_H.
13933         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13934         instead of NEXT_MATH_H.
13935
13936 2009-05-21  Bruno Haible  <bruno@clisp.org>
13937
13938         Avoid redefinition warnings for SIZE_MAX.
13939         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13940         Reported by Simon Josefsson.
13941
13942 2009-05-21  Bruno Haible  <bruno@clisp.org>
13943
13944         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13945         AC_CACHE_VAL.
13946
13947 2009-05-20  Bruno Haible  <bruno@clisp.org>
13948
13949         Make zeroptr.h work on mingw.
13950         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13951         mprotect.
13952         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13953         * modules/memchr2-tests (configure.ac): Likewise.
13954         * modules/memcmp-tests (configure.ac): Likewise.
13955         * modules/memmem-tests (configure.ac): Likewise.
13956         * modules/memrchr-tests (configure.ac): Likewise.
13957         Reported by Simon Josefsson.
13958
13959 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13960
13961         * tests/test-glob.c: Include string.h for strcmp prototype.
13962
13963 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13964
13965         * modules/getdelim (Depends-on): Add explicit stdint, although it
13966         was implicitly already pulled in via realloc-posix.
13967         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13968
13969 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13970
13971         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13972         G. Christensen" <tgc@jupiterrise.com>.
13973         * m4/sys_socket_h.m4: Check for sa_family_t.
13974         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13975         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13976         * tests/test-sys_socket.c: Check that sa_family_t works.
13977
13978 2009-05-18  Eric Blake  <ebb9@byu.net>
13979
13980         maint.mk: allow gnulib_dir in VPATH build
13981         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13982
13983 2009-05-15  Jim Meyering  <meyering@redhat.com>
13984
13985         maint.mk: Give gnulib_dir a default definition.
13986         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13987         Thus, most packages no longer need to specify this variable in cfg.mk
13988
13989 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13990
13991         rename.m4: fix typos that would make non-mingw cross-configure fail
13992         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13993
13994 2009-05-13  Eric Blake  <ebb9@byu.net>
13995
13996         mmap-anon: avoid out-of-order autoconf expansion
13997         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13998         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13999         * modules/memchr-tests (Depends-on): Add extensions.
14000         * modules/memchr2-tests (Depends-on): Add extensions.
14001         * modules/memcmp-tests (Depends-on): Add extensions.
14002         * modules/memmem-tests (Depends-on): Add extensions.
14003         * modules/memrchr-tests (Depends-on): Add extensions.
14004
14005 2009-05-13  Bruno Haible  <bruno@clisp.org>
14006
14007         Make some tests ISO C 99 compliant.
14008         * tests/zerosize-ptr.h: New file.
14009         * tests/test-memchr.c: Include zerosize-ptr.h.
14010         (main): Use a zero-size object pointer instead of NULL.
14011         * tests/test-memchr2.c: Include zerosize-ptr.h.
14012         (main): Use a zero-size object pointer instead of NULL.
14013         * tests/test-memcmp.c: Include zerosize-ptr.h.
14014         (main): Use a zero-size object pointer instead of NULL.
14015         * tests/test-memmem.c: Include zerosize-ptr.h.
14016         (main): Use a zero-size object pointer instead of NULL.
14017         * tests/test-memrchr.c: Include zerosize-ptr.h.
14018         (main): Use a zero-size object pointer instead of NULL.
14019         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14020         m4/mmap-anon.m4.
14021         (Depends-on): Add getpagesize.
14022         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14023         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14024         m4/mmap-anon.m4.
14025         (Depends-on): Add getpagesize.
14026         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14027         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14028         m4/mmap-anon.m4.
14029         (Depends-on): Add getpagesize.
14030         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14031         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14032         m4/mmap-anon.m4.
14033         (Depends-on): Add getpagesize.
14034         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14035         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14036         m4/mmap-anon.m4.
14037         (Depends-on): Add getpagesize.
14038         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14039
14040 2009-05-12  Bruno Haible  <bruno@clisp.org>
14041
14042         Tests for module 'alignof'.
14043         * modules/alignof-tests: New file.
14044         * tests/test-alignof.c: New file.
14045
14046 2009-05-12  Bruno Haible  <bruno@clisp.org>
14047
14048         Fix alignof macro.
14049         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14050         vendor compilers that are always correct.
14051
14052 2009-05-12  Bruno Haible  <bruno@clisp.org>
14053
14054         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14055         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14056         not whether its fully works.
14057
14058 2009-05-12  Bruno Haible  <bruno@clisp.org>
14059
14060         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14061
14062 2009-05-12  Jim Meyering  <meyering@redhat.com>
14063
14064         * top/maint.mk: Adjust backslash alignment.
14065
14066 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14067
14068         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14069
14070 2009-05-11  Eric Blake  <ebb9@byu.net>
14071
14072         argp: avoid undefined behavior
14073         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14074         macros.
14075
14076 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14077
14078         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14079         user.name to prevent git commit from complaining.
14080
14081 2009-05-10  Bruno Haible  <bruno@clisp.org>
14082
14083         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14084         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14085         it rewrites every file name only once.
14086         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14087
14088 2009-05-08  Bruno Haible  <bruno@clisp.org>
14089
14090         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14091         instead of 'max'.
14092
14093 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14094
14095         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14096         sockaddr_storage test.
14097
14098 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14099
14100         * modules/sys_socket (Makefile.am): Substitute
14101         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14102         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14103         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14104         * tests/test-sys_socket.c: Check sockaddr_storage.
14105
14106 2009-05-08  Bruno Haible  <bruno@clisp.org>
14107
14108         New module 'alignof'.
14109         * lib/alignof.h: New file.
14110         * modules/alignof: New file.
14111
14112 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14113             Bruno Haible  <bruno@clisp.org>
14114
14115         Fix test-file-has-acl on FreeBSD.
14116         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14117         mask is implicitly added.
14118         * tests/test-file-has-acl.c: Include <signal.h>.
14119         (main): Terminate the test after 5 seconds.
14120         * modules/acl-tests (configure.ac): Check for alarm function.
14121
14122 2009-05-04  Bruno Haible  <bruno@clisp.org>
14123
14124         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14125         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14126         * modules/errno (configure.ac): Drop AC_REQUIRE.
14127         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14128         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14129
14130 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14131
14132         * modules/glob-tests: New module.
14133         * tests/test-glob.c: Add.
14134
14135 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14136
14137         * modules/fnmatch-tests: New module.
14138         * tests/test-fnmatch.c: Add.
14139
14140 2009-05-04  Eric Blake  <ebb9@byu.net>
14141
14142         maint: make the new no-submodule-changes rule VPATH-safe
14143         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14144
14145 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14146             Bruno Haible  <bruno@clisp.org>
14147
14148         acl: Fix infinite loop on FreeBSD.
14149         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14150         of return value from acl_get_entry.
14151         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14152         Likewise.
14153
14154 2009-05-03  Bruno Haible  <bruno@clisp.org>
14155
14156         * lib/acl-internal.h (acl_entries): Clarify return value.
14157         * lib/acl_entries.c (acl_entries): Likewise.
14158
14159 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14160
14161         Bug fix in acl module.
14162         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14163
14164 2009-05-03  Bruno Haible  <bruno@clisp.org>
14165
14166         Create gperf-generated file in the source dir, not in the build dir.
14167         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14168         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14169         * modules/unicase/locale-language (unicase/locale-languages.h):
14170         Likewise.
14171         * modules/unicase/special-casing (unicase/special-casing-table.h):
14172         Likewise.
14173         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14174         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14175         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14176         Reported by Ralf Wildenhues.
14177
14178 2009-05-03  Bruno Haible  <bruno@clisp.org>
14179
14180         * modules/fnmatch (Description, configure.ac): Taken from
14181         fnmatch-posix.
14182         * modules/fnmatch-posix: Turn into a symbolic reference to the
14183         'fnmatch' module, and deprecate.
14184         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14185
14186 2009-05-03  Bruno Haible  <bruno@clisp.org>
14187
14188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14189         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14190         Reported by Ralf Wildenhues.
14191
14192 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14193
14194         * m4/fnmatch.m4: Fix fnmatch re-define.
14195
14196 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14197
14198         priv-set: new module and tests; adapt write-any-file
14199         * lib/priv-set.c: New file.
14200         * lib/priv-set.h: New file.
14201         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14202         * lib/write-any-file.c: Simplify by using priv-set module.
14203         * m4/priv-set.m4: New file.
14204         * modules/priv-set: New file.
14205         * modules/unlinkdir: Add dependency on priv-set module.
14206         * modules/write-any-file: Likewise.
14207
14208         Tests for module 'priv-set'.
14209         * modules/priv-set-tests: New file.
14210         * tests/test-priv-set.c: New file.
14211
14212 2009-05-03  Jim Meyering  <meyering@redhat.com>
14213             Bruno Haible  <bruno@clisp.org>
14214
14215         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14216         use the converted UTF-8 variant of the name instead.
14217
14218 2009-05-03  Jim Meyering  <meyering@redhat.com>
14219
14220         tests: tighten some getdate tests
14221         * tests/test-getdate.c (main): Tighten tests: require equality,
14222         not just greater than.  Set TZ envvar to UTC0.
14223
14224 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14225
14226         getdate: correctly interpret "next monday" when run on a Monday
14227         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14228         that e.g., "next tues" (when run on a tuesday) results in a date
14229         that is one week in the future, and not today's date.
14230         I.e., add a week when the wday is the same as the current one.
14231         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14232         and earlier by Martin Bernreuther and Jan Minář.
14233         * tests/test-getdate.c (main): Check that "next DAY" is always in
14234         the future and that "last DAY" is always in the past.
14235
14236 2009-05-02  Jim Meyering  <meyering@redhat.com>
14237
14238         build: ensure that a release build fails when a submodule is unclean
14239         * top/maint.mk (no-submodule-changes): New rule.
14240         (alpha beta major): Depend on it.
14241
14242 2009-05-02  Bruno Haible  <bruno@clisp.org>
14243
14244         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14245         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14246         shell variable gl_fnmatch_required to detect which variant is
14247         requested.
14248         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14249         gl_FUNC_FNMATCH_POSIX.
14250         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14251         exclude fnmatch-posix.
14252
14253 2009-05-02  Bruno Haible  <bruno@clisp.org>
14254
14255         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14256         * modules/mbsrtowcs (License): Change to LGPLv2+.
14257         * modules/strnlen1 (License): Likewise.
14258         Reported by Simon Josefsson.
14259
14260 2009-05-02  Bruno Haible  <bruno@clisp.org>
14261
14262         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14263         "cross".
14264         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14265         gnulib-tool was called with option --source-base=lib.
14266
14267 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14268
14269         Use automake *-local hooks without commands, for extensibility.
14270         * modules/localcharset (Makefile.am): Rename install-exec-local
14271         rule to install-exec-localcharset, and make it a prerequisite of
14272         install-exec-local.  Likewise, rename the uninstall-local rule to
14273         uninstall-localcharset, and make it a prerequisite of the former.
14274
14275 2009-05-01  Bruno Haible  <bruno@clisp.org>
14276
14277         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14278         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14279         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14281         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14282         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14283         m4/locale-zh.m4, m4/codeset.m4.
14284
14285         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14286         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14287         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14288         m4/locale-zh.m4.
14289
14290         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14291         REPLACE_WCRTOMB if mbstate_t must be replaced.
14292         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14293         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14294
14295 2009-05-01  Bruno Haible  <bruno@clisp.org>
14296
14297         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14298         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14299         dngettext, dcngettext, textdomain, bindtextdomain,
14300         bind_textdomain_codeset): Undefine before redefining.
14301
14302 2009-04-30  Bruno Haible  <bruno@clisp.org>
14303
14304         Fix bug introduced on 2009-04-25.
14305         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14306         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14307         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14308         is defined.
14309         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14310         is defined.
14311         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14312         is defined.
14313         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14314
14315 2009-04-28  Bruno Haible  <bruno@clisp.org>
14316
14317         Comment tweaks.
14318         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14319         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14320         * lib/unicase.h (u*_casexfrm): Likewise.
14321         Reported by Paolo Bonzini.
14322
14323 2009-04-28  Bruno Haible  <bruno@clisp.org>
14324
14325         Fix a compilation error.
14326         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14327         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14328         Reported by Jim Meyering.
14329
14330 2009-04-27  Bruno Haible  <bruno@clisp.org>
14331
14332         New module 'libunistring'.
14333         * modules/libunistring: New file.
14334         * m4/libunistring.m4: New file.
14335         * MODULES.html.sh (Unicode string functions): Add it.
14336
14337 2009-04-27  Eric Blake  <ebb9@byu.net>
14338
14339         maint.mk: allow package-specific header to provide <config.h>
14340         * top/maint.mk (sc_require_config_h): New variable.
14341         (sc_require_config_h, sc_require_config_h_first): Use it.
14342
14343 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14344
14345         * top/maint.mk (sc_avoid_if_before_free): Except
14346         useless-if-before-free script.
14347
14348 2009-04-27  Eric Blake  <ebb9@byu.net>
14349
14350         maintainer-makefile: depend on all required helper scripts
14351         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14352         useless-if-before-free.
14353         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14354         version, rather than assuming gnulib checkout is available.
14355         Reported by Simen Josefsson.
14356
14357 2009-04-26  Bruno Haible  <bruno@clisp.org>
14358
14359         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14360         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14361         "../" or "..".
14362
14363 2009-04-26  Bruno Haible  <bruno@clisp.org>
14364
14365         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14366         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14367         AC_LIB_HAVE_LINKFLAGS.
14368
14369 2009-04-26  Bruno Haible  <bruno@clisp.org>
14370
14371         Simplify calling convention of u*_conv_from_encoding.
14372         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14373         u32_conv_from_encoding): Expect a resultbuf argument and return the
14374         result directly as a pointer.
14375         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14376         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14377         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14378         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14379         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14380         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14381         Update.
14382         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14383         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14384         * lib/vasnprintf.c (VASNPRINTF): Update.
14385         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14386         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14387         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14388         * NEWS: Mention the change.
14389
14390 2009-04-26  Bruno Haible  <bruno@clisp.org>
14391
14392         Simplify calling convention of u*_conv_to_encoding.
14393         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14394         u32_conv_to_encoding): Expect a resultbuf argument and return the
14395         result directly as a pointer.
14396         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14397         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14398         freeing scaled_offsets if mem_iconveha failed.
14399         * lib/unicase/u-casexfrm.h (FUNC): Update.
14400         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14401         * lib/vasnprintf.c (VASNPRINTF): Update.
14402         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14403         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14404         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14405         * NEWS: Mention the change.
14406
14407 2009-04-26  Bruno Haible  <bruno@clisp.org>
14408
14409         Avoid test failures on AIX and OSF/1.
14410         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14411         malloc(0).
14412         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14413         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14414         Likewise.
14415         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14416         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14417         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14418         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14419         * doc/posix-functions/malloc.texi: Document the portability problem
14420         related to malloc(0).
14421
14422 2009-04-26  Bruno Haible  <bruno@clisp.org>
14423
14424         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14425         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14426         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14427
14428 2009-04-25  Bruno Haible  <bruno@clisp.org>
14429
14430         Avoid link error when creating a namespace clean library.
14431         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14432         as macro with arguments if already defined as an alias.
14433         * lib/signbitf.c (gl_signbitf): Don't undefine.
14434         * lib/signbitd.c (gl_signbitd): Don't undefine.
14435         * lib/signbitl.c (gl_signbitl): Don't undefine.
14436
14437 2009-04-25  Jim Meyering  <meyering@redhat.com>
14438
14439         vc-list-files: fix another quoting bug
14440         * build-aux/vc-list-files: Avoid sed backslash expansion
14441         of pathological directory names.
14442
14443 2009-04-25  Eric Blake  <ebb9@byu.net>
14444
14445         vc-list-files: fix shell quoting error
14446         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14447         timestamp.
14448
14449 2009-04-25  Jim Meyering  <meyering@redhat.com>
14450
14451         vc-list-files: restore lost functionality with subdir argument
14452         * build-aux/vc-list-files: When given a non-"." sub-directory
14453         argument, substitute the $dir/ prefix back onto each resulting name.
14454         Otherwise, coreutils' root_tests check would fail.
14455
14456 2009-04-24  Eric Blake  <ebb9@byu.net>
14457
14458         vc-list-files: ignore git symlinks
14459         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14460         than ls-files, to ignore git symlinks.
14461
14462         maint.mk: import improvements from m4
14463         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14464         (move_if_change): Delete unused macro.
14465         (news-date-check, vc-diff-check): Support VPATH builds.
14466         (announcement): Likewise.  Split --bootstrap-tools list...
14467         (boostrap-tools): ...into separate list, which can be overridden
14468         in cfg.mk.
14469         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14470         requiring dependency on useless-if-before-free module.
14471         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14472         Support VPATH builds.
14473
14474 2009-04-24  Jim Meyering  <meyering@redhat.com>
14475
14476         maint.mk: remove coreutils-specific rules and variables
14477         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14478         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14479         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14480
14481         maint.mk: remove obsolete rule
14482         * top/maint.mk (rel-check): Remove rule.
14483         (WGET, WGETFLAGS): Remove now-unused variables.
14484
14485 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14486
14487         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14488         consistency.
14489
14490         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14491         '$(PATH_SEPARATOR)' instead of ':'.
14492
14493 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14494
14495         * lib/getopt1.c (main): Use 'const' for static array.
14496
14497 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14498
14499         * top/maint.mk: Sync with coreutils.
14500         * NEWS: Explain incompatibilities.
14501
14502 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14503             Bruno Haible  <bruno@clisp.org>
14504
14505         Fix cross-compilation results.
14506         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14507         statement, as third argument of AC_TRY_RUN.
14508         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14509         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14510         Likewise.
14511         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14512         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14513         Likewise.
14514         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14515         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14516         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14517
14518 2009-04-20  Bruno Haible  <bruno@clisp.org>
14519
14520         Avoid test failure on mingw.
14521         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14522
14523 2009-04-20  Bruno Haible  <bruno@clisp.org>
14524
14525         Avoid compilation error on mingw.
14526         * modules/localename-tests (Depends-on): Add locale.
14527
14528 2009-04-19  Bruno Haible  <bruno@clisp.org>
14529
14530         Support for building a shared library on Windows platforms.
14531         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14532         (main): Test the presence of UNINORM_NFC here.
14533         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14534         (main): Test the presence of UNINORM_NFD here.
14535         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14536         (main): Test the presence of UNINORM_NFKC here.
14537         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14538         (main): Test the presence of UNINORM_NFKD here.
14539
14540 2009-04-19  Bruno Haible  <bruno@clisp.org>
14541
14542         Avoid a compiler warning.
14543         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14544         Change type of variable 'sequence'.
14545
14546 2009-04-19  Bruno Haible  <bruno@clisp.org>
14547
14548         * modules/configmake (Makefile.am): When the contents of configmake.h
14549         does not change, arrange to preserve its modification time.
14550
14551 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14552
14553         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14554         gettext domain.
14555
14556 2009-04-16  Jim Meyering  <meyering@redhat.com>
14557
14558         useless-if-before-free: improve conversion code
14559         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14560         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14561
14562 2009-04-14  Bruno Haible  <bruno@clisp.org>
14563
14564         * modules/fcntl (Depends-on): Add extensions.
14565         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14566
14567 2009-04-12  Ben Pfaff  <blp@gnu.org>
14568
14569         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14570         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14571
14572 2009-03-20  Ben Pfaff  <blp@gnu.org>
14573
14574         Make rename replace existing destinations on Windows.
14575         * m4/rename.m4: Add test for Mingw.
14576         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14577         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14578         * doc/posix-functions/rename.texi: Document.
14579
14580 2009-04-10  Bruno Haible  <bruno@clisp.org>
14581
14582         New include file "iconveh.h".
14583         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14584         * lib/striconveh.h: Include it.
14585         (enum iconv_ilseq_handler): Remove definition.
14586         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14587         striconveh.h.
14588         * lib/striconveha.c: Include striconveh.h.
14589         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14590         * modules/striconveh (Files): Add lib/iconveh.h.
14591         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14592         lib/striconveh.h.
14593
14594 2009-04-10  Bruno Haible  <bruno@clisp.org>
14595
14596         * lib/uniconv.h: Update comment.
14597
14598 2009-04-10  Bruno Haible  <bruno@clisp.org>
14599
14600         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14601         always.
14602         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14603         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14604         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14605         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14606         "unistring-notinline.h", so that the function gets defined always.
14607         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14608         * lib/unistr/u8-uctomb.c: Likewise.
14609         * lib/unistr/u16-mbtouc.c: Likewise.
14610         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14611         * lib/unistr/u16-uctomb.c: Likewise.
14612         * lib/unistr/u32-mbtouc.c: Likewise.
14613         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14614         * lib/unistr/u32-uctomb.c: Likewise.
14615
14616 2009-04-10  Bruno Haible  <bruno@clisp.org>
14617
14618         Mark 'utime' obsolete.
14619         * modules/utime (Status, Notice): New sections.
14620         Suggested by Jim Meyering.
14621
14622         Fix cross-compile guess for utime test.
14623         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14624         autoconf.
14625         * doc/posix-functions/utime.texi: Give more precisions.
14626         Reported by Jan <ipif@ymail.com>.
14627
14628 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14629
14630         filevercmp: correct today's change
14631         * lib/filevercmp.c: Also handle coreutils' test inputs.
14632         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14633
14634         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14635         for reporting it.
14636         * lib/filevercmp.c: Special handle for "", "." and "..".
14637         * tests/test-filevercmp.c: Enlarge the set suite.
14638
14639 2009-04-07  Jim Meyering  <meyering@redhat.com>
14640
14641         useless-if-before-free: show how to remove braced useless free, too
14642         * build-aux/useless-if-before-free: still only in a comment, though.
14643
14644 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14645
14646         maint.mk: import changes to syntax-check macros from coreutils
14647         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14648         Use them in the relevant macros.
14649
14650 2009-04-06  Bruno Haible  <bruno@clisp.org>
14651
14652         Fix unportable use of bit-fields.
14653         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14654         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14655         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14656
14657 2009-04-06  Bruno Haible  <bruno@clisp.org>
14658
14659         Avoid test failures on AIX and OSF/1.
14660         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14661         that malloc(0) = NULL.
14662         * tests/unicase/test-u8-tolower.c (check): Likewise.
14663         * tests/unicase/test-u8-totitle.c (check): Likewise.
14664         * tests/unicase/test-u8-toupper.c (check): Likewise.
14665         * tests/unicase/test-u16-casefold.c (check): Likewise.
14666         * tests/unicase/test-u16-tolower.c (check): Likewise.
14667         * tests/unicase/test-u16-totitle.c (check): Likewise.
14668         * tests/unicase/test-u16-toupper.c (check): Likewise.
14669         * tests/unicase/test-u32-casefold.c (check): Likewise.
14670         * tests/unicase/test-u32-tolower.c (check): Likewise.
14671         * tests/unicase/test-u32-totitle.c (check): Likewise.
14672         * tests/unicase/test-u32-toupper.c (check): Likewise.
14673         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14674         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14675         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14676         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14677         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14678         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14679         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14680         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14681         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14682         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14683         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14684         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14685
14686 2009-04-05  Bruno Haible  <bruno@clisp.org>
14687
14688         Work around an autoconf limitation.
14689         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14690         comment line if it would be longer than 3 KB.
14691
14692 2009-04-05  Bruno Haible  <bruno@clisp.org>
14693
14694         Avoid test failure with libiconv-1.13.
14695         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14696         of the expected test results.
14697
14698 2009-04-05  Bruno Haible  <bruno@clisp.org>
14699
14700         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14701         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14702         that it should be installed.
14703
14704 2009-04-05  Bruno Haible  <bruno@clisp.org>
14705
14706         * gnulib-tool: New option --copy-file.
14707         (func_usage): Document it.
14708         (func_dest_tmpfilename): Moved out of func_import.
14709         (func_add_file, func_update_file): New functions, extracted from
14710         func_import.
14711         (func_import): Update.
14712
14713 2009-04-05  Karl Berry  <karl@gnu.org>
14714
14715         * README: prominently mention gnulib-tool.
14716         Rearrange sections so getting the code is near the top.
14717
14718 2009-04-05  Bruno Haible  <bruno@clisp.org>
14719
14720         * lib/unicase.h: Mention u*_cmp2.
14721         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14722         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14723         * lib/unicase/ulc-casecmp.c: Likewise.
14724         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14725         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14726         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14727         unistr/u8-cmp.
14728         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14729         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14730         unistr/u16-cmp.
14731         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14732         unistr/u32-cmp.
14733
14734         * lib/uninorm.h: Mention u*_cmp2.
14735         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14736         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14737         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14738         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14739         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14740         unistr/u8-cmp.
14741         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14742         unistr/u16-cmp.
14743         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14744         unistr/u32-cmp.
14745
14746         New module 'unistr/u32-cmp2'.
14747         * lib/unistr/u32-cmp2.c: New file.
14748         * modules/unistr/u32-cmp2: New file.
14749
14750         New module 'unistr/u16-cmp2'.
14751         * lib/unistr/u16-cmp2.c: New file.
14752         * modules/unistr/u16-cmp2: New file.
14753
14754         New module 'unistr/u8-cmp2'.
14755         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14756         * lib/unistr/u8-cmp2.c: New file.
14757         * lib/unistr/u-cmp2.h: New file.
14758         * modules/unistr/u8-cmp2: New file.
14759
14760 2009-04-05  Bruno Haible  <bruno@clisp.org>
14761
14762         * lib/unictype.h (uc_property_is_valid): New macro.
14763         * tests/unictype/test-pr_byname.c (main): Use it.
14764
14765         * lib/unistr.h: Doc fixes.
14766         * lib/uniconv.h: Doc fixes.
14767         * lib/unictype.h: Doc fixes.
14768
14769 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         Port coreutils 7.2 to Solaris 8.
14772
14773         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14774         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14775         for Solaris 8.  This is a bit of a hack, as it means it's the
14776         caller's responsibility to add -lnsl if needed, but most likely it
14777         won't be needed since only getaddrinfo uses this and getaddrinfo
14778         isn't needed on Solaris 8.
14779
14780         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14781         problem to Solaris 8 encountered with coreutils 7.2, which
14782         resulted in a message "fnmatch.c:292: warning: passing argument 4
14783         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14784         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14785
14786 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14787
14788         * m4/ld-version-script.m4: Add FIXME comment.
14789
14790 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14791
14792         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14793         SOVERSION variable.
14794
14795 2009-04-02  Bruno Haible  <bruno@clisp.org>
14796
14797         * Makefile (info, html, dvi, pdf): Combine the rules.
14798         Suggested by Jim Meyering.
14799
14800 2009-04-01  Bruno Haible  <bruno@clisp.org>
14801
14802         * Makefile (info, html, dvi, pdf): New targets.
14803         Reported by Reuben Thomas <rrt@sc3d.org>.
14804
14805 2009-04-01  Bruno Haible  <bruno@clisp.org>
14806
14807         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14808         can be put into PATH.
14809         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14810
14811 2009-04-01  Bruno Haible  <bruno@clisp.org>
14812
14813         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14814
14815 2009-04-01  Bruno Haible  <bruno@clisp.org>
14816
14817         Rename module 'visibility'.
14818         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14819         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14820         * doc/gnulib.texi: Update.
14821         * MODULES.html.sh (Misc): Update.
14822         * NEWS: Mention the change.
14823
14824 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14825
14826         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14827         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14828         Eric Blake <ebb9@byu.net> for review.
14829         * MODULES.html.sh: Add lib-msvc-compat.
14830         * doc/gnulib.texi: Link to new section.
14831         * m4/ld-output-def.m4: New file.
14832         * doc/ld-output-def.texi: New file.
14833
14834 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14835
14836         Rename ld-version-script to lib-symbol-versions.  Suggested by
14837         Bruno Haible <bruno@clisp.org>.
14838         * modules/ld-version-script: Renamed to lib-symbol-versions.
14839         * doc/ld-version-script.texi: Fix module name.
14840         * MODULES.html.sh: Add lib-symbol-versions.
14841
14842 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14843
14844         * modules/u64-tests: New file.
14845         * tests/test-u64.c: New file.
14846
14847 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14848
14849         * MODULES.html.sh: Mention u64.
14850         * modules/u64: New module.
14851         * modules/crypto/sha512: Depend on u64 module instead of providing
14852         u64.h.
14853
14854 2009-03-27  Eric Blake  <ebb9@byu.net>
14855
14856         test-strerror: make debugging EAI_SYSTEM easier
14857         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14858         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14859         failure was EAI_SYSTEM.
14860
14861 2009-03-25  Bruno Haible  <bruno@clisp.org>
14862
14863         Fix a problem with --enable-relocatable on Solaris 7.
14864         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14865         since 2008-02-24.
14866
14867 2009-03-25  Eric Blake  <ebb9@byu.net>
14868
14869         test-sockets: avoid gcc warning
14870         * tests/test-sockets.c (main): Silence compiler warning.
14871
14872 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14873
14874         New modules nproc, pthread, contributed by Glen Lenker.
14875
14876         * MODULES.html.sh: Add pthread, nproc.
14877         * lib/nproc.c: New file.
14878         * lib/nproc.h: New file.
14879         * lib/pthread.in.h: New file.
14880         * m4/pthread.m4: New file.
14881         * modules/nproc: New file.
14882         * modules/pthread: New file.
14883
14884 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14885
14886         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14887         New variable.
14888
14889 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14890
14891         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14892         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14893         * tests/test-filevercmp.c: Add tests for backup suffixes.
14894
14895 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14896
14897         * modules/stdlib (Depends-on): Add stdint, needed when defining
14898         struct random_data on, for example, HP-UX 10.20.  Reported by
14899         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14900
14901 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14902
14903         * lib/readline.c (readline): Call fflush on stdout after printing
14904         prompt.
14905
14906 2009-03-20  Bruno Haible  <bruno@clisp.org>
14907
14908         Remove dependency from 'close' module to -lws2_32 on native Windows.
14909         * lib/close-hook.h: New file.
14910         * lib/close-hook.c: New file.
14911         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14912         w32sock.h.
14913         (_gl_close_fd_maybe_socket): Remove function.
14914         (rpl_close): Invoke execute_all_close_hooks instead of
14915         _gl_close_fd_maybe_socket.
14916         * lib/sockets.c: Include close-hook.h, w32sock.h.
14917         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14918         (close_sockets_hook): New variable.
14919         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14920         (gl_sockets_cleanup): Unregister it.
14921         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14922         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14923         * modules/close-hook: New file.
14924         * modules/close (Files): Remove lib/w32sock.h.
14925         (Depends-on): Add close-hook.
14926         (Link): Remove section.
14927         * modules/sockets (Files): Add lib/w32sock.h.
14928         (Depends-on): Add close-hook.
14929         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14930         invocation.
14931         * NEWS: Mention that LIB_CLOSE is gone.
14932
14933 2009-03-23  Eric Blake  <ebb9@byu.net>
14934
14935         signal-tests: test previous patch
14936         * tests/test-signal.c: New file.
14937         * modules/signal-tests: Likewise.
14938
14939         signal.h: always support 'volatile sig_atomic_t'
14940         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14941         (gl_SIGNAL_H_DEFAULTS): Add a default.
14942         * modules/signal (Makefile.am): Substitute if needed.
14943         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14944         users can blindly add volatile.
14945         * doc/posix-headers/signal.texi (signal.h): Document it.
14946         Reported by Matthew Woehlke.
14947
14948 2009-03-23  Jim Meyering  <meyering@redhat.com>
14949
14950         pathmax: PATH_MAX: use pathconf only when available
14951         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14952         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14953         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14954         This avoids a link failure in a PSP cross-compilation environment
14955         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14956
14957         * lib/vasnprintf.c (divide): Fix typo in comment.
14958
14959 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14960
14961         * gnulib-tool (func_filter_filelist): Fix comment.
14962
14963 2009-03-20  Bruno Haible  <bruno@clisp.org>
14964
14965         Make sockets.h self-contained.
14966         * lib/sockets.c: Include sockets.h first.
14967         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14968
14969 2009-03-19  Eric Blake  <ebb9@byu.net>
14970
14971         doc: mention more functions added in cygwin 1.7.0
14972         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14973         addition.
14974         * doc/posix-functions/log2f.texi: Likewise.
14975
14976 2009-03-19  Jim Meyering  <meyering@redhat.com>
14977
14978         fsusage: avoid syntax error due to statement-before-declaration
14979         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14980         after all declarations.  Reported by Matthew Woehlke in
14981         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14982
14983 2009-03-18  Eric Blake  <ebb9@byu.net>
14984
14985         build-aux/compile: sync from automake
14986         * build-aux/compile: New file, from automake.
14987         * config/srclist.txt: Mention build-aux/compile.
14988
14989 2009-03-17  Bruno Haible  <bruno@clisp.org>
14990
14991         * lib/git-merge-changelog.c: Fix typo in comment.
14992         Reported by Reuben Thomas <rrt@sc3d.org>.
14993
14994 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14995
14996         * m4/regex.m4: update and improve help for
14997         --without-included-regex.
14998
14999 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15000
15001         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15002         failure on missing include files.
15003
15004 2009-03-17  Eric Blake  <ebb9@byu.net>
15005
15006         doc: mention more functions added in cygwin 1.7.0
15007         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15008         addition.
15009         * doc/posix-functions/fwscanf.texi: Likewise.
15010         * doc/posix-functions/swprintf.texi: Likewise.
15011         * doc/posix-functions/swscanf.texi: Likewise.
15012         * doc/posix-functions/vfwprintf.texi: Likewise.
15013         * doc/posix-functions/vfwscanf.texi: Likewise.
15014         * doc/posix-functions/vswprintf.texi: Likewise.
15015         * doc/posix-functions/vswscanf.texi: Likewise.
15016         * doc/posix-functions/vwprintf.texi: Likewise.
15017         * doc/posix-functions/vwscanf.texi: Likewise.
15018         * doc/posix-functions/wcscasecmp.texi: Likewise.
15019         * doc/posix-functions/wcsdup.texi: Likewise.
15020         * doc/posix-functions/wcsftime.texi: Likewise.
15021         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15022         * doc/posix-functions/wprintf.texi: Likewise.
15023         * doc/posix-functions/wscanf.texi: Likewise.
15024         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15025
15026 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15027
15028         maint.mk: really add $(AM_MAKEFLAGS)
15029         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15030         was inadvertently omitted in the last commit.
15031         Spotted by Bruno Haible.
15032
15033         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15034         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15035         $(AM_MAKEFLAGS)' rather than plain `make'.
15036
15037         gnulib-tool: execute $MAKE not make
15038         * gnulib-tool: Default $MAKE to 'make'.
15039         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15040         than make.  Initialize $MAKE in the do-autobuild script.
15041
15042         gnulib-tool: use $MAKE not make in generated files
15043         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15044         make, in generated files.  Initialize $MAKE in the do-autobuild
15045         script.
15046
15047         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15048
15049         GNUmakefile: disable parallelism only for multiple, recursive targets
15050         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15051         additions in the Makefile.
15052         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15053         by Automake.
15054         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15055         are listed on the command line and at least one of them is
15056         listed in $(ALL_RECURSIVE_TARGETS).
15057
15058 2009-03-14  Bruno Haible  <bruno@clisp.org>
15059
15060         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15061         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15062         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15063         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15064         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15065         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15066         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15067         unistr/u8-uctomb.
15068         * modules/unistr/u8-strchr (Depends-on): Likewise.
15069         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15070         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15071         unistr/u16-uctomb.
15072         * modules/unistr/u16-strchr (Depends-on): Likewise.
15073         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15074
15075 2009-03-12  Bruno Haible  <bruno@clisp.org>
15076
15077         Work around select() bug on Interix 3.5.
15078         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15079         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15080         * m4/select.m4: New file.
15081         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15082         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15083         * modules/select (Files): Add m4/select.m4.
15084         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15085         * modules/nanosleep (Depends-on): Add select.
15086         * modules/poll (Depends-on): Likewise.
15087         * doc/posix-functions/select.texi: Mention the Interix bug.
15088         Reported by Markus Duft <mduft@gentoo.org>.
15089
15090         * lib/select.c: Renamed from lib/winsock-select.c.
15091         * modules/select (Files): Add lib/select.c, remove
15092         lib/winsock-select.c.
15093         (configure.ac): Update.
15094
15095 2009-03-12  Jim Meyering  <meyering@redhat.com>
15096
15097         avoid gcc warnings about unused macro definitions
15098         * lib/readtokens.c (STREQ): Remove unused definition.
15099         * lib/xmalloc.c (SIZE_MAX): Likewise.
15100         * lib/openat-die.c (N_): Likewise.
15101         * lib/mountlist.c (SIZE_MAX): Remove definition.
15102         Instead, include <stdint.h>.
15103         * lib/readutmp.c: Likewise.
15104         * modules/readutmp (Depends-on): Add stdint.
15105         * modules/mountlist (Depends-on): Add stdint.
15106         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15107
15108 2009-03-10  Bruno Haible  <bruno@clisp.org>
15109
15110         Tests for module 'mbmemcasecoll'.
15111         * modules/mbmemcasecoll-tests: New file.
15112         * tests/test-mbmemcasecoll1.sh: New file.
15113         * tests/test-mbmemcasecoll2.sh: New file.
15114         * tests/test-mbmemcasecoll3.sh: New file.
15115         * tests/test-mbmemcasecoll.c: New file.
15116
15117         New module 'mbmemcasecoll'.
15118         * lib/mbmemcasecoll.h: New file.
15119         * lib/mbmemcasecoll.c: New file.
15120         * modules/mbmemcasecoll: New file.
15121
15122         * tests/test-mbmemcasecmp.h: New file, extracted from
15123         tests/test-mbmemcasecmp.c.
15124         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15125         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15126         (main): Update.
15127         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15128
15129 2009-03-09  Bruno Haible  <bruno@clisp.org>
15130
15131         Tests for module 'mbmemcasecmp'.
15132         * modules/mbmemcasecmp-tests: New file.
15133         * tests/test-mbmemcasecmp1.sh: New file.
15134         * tests/test-mbmemcasecmp2.sh: New file.
15135         * tests/test-mbmemcasecmp3.sh: New file.
15136         * tests/test-mbmemcasecmp.c: New file.
15137
15138         New module 'mbmemcasecmp'.
15139         * lib/mbmemcasecmp.h: New file.
15140         * lib/mbmemcasecmp.c: New file.
15141         * modules/mbmemcasecmp: New file.
15142
15143 2009-03-09  Bruno Haible  <bruno@clisp.org>
15144
15145         Tests for module 'unicase/ulc-casecoll'.
15146         * modules/unicase/ulc-casecoll-tests: New file.
15147         * tests/unicase/test-ulc-casecoll1.sh: New file.
15148         * tests/unicase/test-ulc-casecoll2.sh: New file.
15149         * tests/unicase/test-ulc-casecoll.c: New file.
15150
15151         New module 'unicase/ulc-casecoll'.
15152         * lib/unicase.h (ulc_casecoll): New declaration.
15153         * lib/unicase/ulc-casecoll.c: New file.
15154         * modules/unicase/ulc-casecoll: New file.
15155
15156         New module 'unicase/ulc-casexfrm'.
15157         * lib/unicase.h (ulc_casexfrm): New declaration.
15158         * lib/unicase/ulc-casexfrm.c: New file.
15159         * modules/unicase/ulc-casexfrm: New file.
15160
15161 2009-03-09  Bruno Haible  <bruno@clisp.org>
15162
15163         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15164         invocations.
15165
15166         * m4/mbscasecmp.m4: Remove file.
15167         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15168         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15169
15170         * m4/mbscasestr.m4: Remove file.
15171         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15172         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15173
15174         * m4/mbschr.m4: Remove file.
15175         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15176         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15177
15178         * m4/mbscspn.m4: Remove file.
15179         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15180         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15181
15182         * m4/mbslen.m4: Remove file.
15183         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15184         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15185
15186         * m4/mbsncasecmp.m4: Remove file.
15187         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15188         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15189
15190         * m4/mbsnlen.m4: Remove file.
15191         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15192         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15193
15194         * m4/mbspbrk.m4: Remove file.
15195         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15196         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15197
15198         * m4/mbspcasecmp.m4: Remove file.
15199         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15200         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15201
15202         * m4/mbsrchr.m4: Remove file.
15203         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15204         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15205
15206         * m4/mbssep.m4: Remove file.
15207         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15208         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15209
15210         * m4/mbsspn.m4: Remove file.
15211         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15212         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15213
15214         * m4/mbsstr.m4: Remove file.
15215         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15216         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15217
15218         * m4/mbstok_r.m4: Remove file.
15219         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15220         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15221
15222         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15223
15224         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15225         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15226
15227         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15228
15229 2009-03-08  Bruno Haible  <bruno@clisp.org>
15230
15231         Tests for module 'unicase/ulc-casecmp'.
15232         * modules/unicase/ulc-casecmp-tests: New file.
15233         * tests/unicase/test-ulc-casecmp1.sh: New file.
15234         * tests/unicase/test-ulc-casecmp2.sh: New file.
15235         * tests/unicase/test-ulc-casecmp.c: New file.
15236
15237         New module 'unicase/ulc-casecmp'.
15238         * lib/unicase.h (ulc_casecmp): New declaration.
15239         * lib/unicase/ulc-casecmp.c: New file.
15240         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15241         'const SRC_UNIT *'.
15242         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15243         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15244         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15245         * modules/unicase/ulc-casecmp: New file.
15246
15247         Tests for module 'unicase/u32-is-cased'.
15248         * modules/unicase/u32-is-cased-tests: New file.
15249         * tests/unicase/test-u32-is-cased.c: New file.
15250
15251         Tests for module 'unicase/u16-is-cased'.
15252         * modules/unicase/u16-is-cased-tests: New file.
15253         * tests/unicase/test-u16-is-cased.c: New file.
15254
15255         Tests for module 'unicase/u8-is-cased'.
15256         * modules/unicase/u8-is-cased-tests: New file.
15257         * tests/unicase/test-u8-is-cased.c: New file.
15258         * tests/unicase/test-is-cased.h: New file.
15259
15260         New module 'unicase/u32-is-cased'.
15261         * lib/unicase/u32-is-cased.c: New file.
15262         * modules/unicase/u32-is-cased: New file.
15263
15264         New module 'unicase/u16-is-cased'.
15265         * lib/unicase/u16-is-cased.c: New file.
15266         * modules/unicase/u16-is-cased: New file.
15267
15268         New module 'unicase/u8-is-cased'.
15269         * lib/unicase/u8-is-cased.c: New file.
15270         * lib/unicase/u-is-cased.h: New file.
15271         * modules/unicase/u8-is-cased: New file.
15272
15273         Tests for module 'unicase/u32-is-casefolded'.
15274         * modules/unicase/u32-is-casefolded-tests: New file.
15275         * tests/unicase/test-u32-is-casefolded.c: New file.
15276
15277         Tests for module 'unicase/u16-is-casefolded'.
15278         * modules/unicase/u16-is-casefolded-tests: New file.
15279         * tests/unicase/test-u16-is-casefolded.c: New file.
15280
15281         Tests for module 'unicase/u8-is-casefolded'.
15282         * modules/unicase/u8-is-casefolded-tests: New file.
15283         * tests/unicase/test-u8-is-casefolded.c: New file.
15284         * tests/unicase/test-is-casefolded.h: New file.
15285
15286         New module 'unicase/u32-is-casefolded'.
15287         * lib/unicase/u32-is-casefolded.c: New file.
15288         * modules/unicase/u32-is-casefolded: New file.
15289
15290         New module 'unicase/u16-is-casefolded'.
15291         * lib/unicase/u16-is-casefolded.c: New file.
15292         * modules/unicase/u16-is-casefolded: New file.
15293
15294         New module 'unicase/u8-is-casefolded'.
15295         * lib/unicase/u8-is-casefolded.c: New file.
15296         * modules/unicase/u8-is-casefolded: New file.
15297
15298         Tests for module 'unicase/u32-is-titlecase'.
15299         * modules/unicase/u32-is-titlecase-tests: New file.
15300         * tests/unicase/test-u32-is-titlecase.c: New file.
15301
15302         Tests for module 'unicase/u16-is-titlecase'.
15303         * modules/unicase/u16-is-titlecase-tests: New file.
15304         * tests/unicase/test-u16-is-titlecase.c: New file.
15305
15306         Tests for module 'unicase/u8-is-titlecase'.
15307         * modules/unicase/u8-is-titlecase-tests: New file.
15308         * tests/unicase/test-u8-is-titlecase.c: New file.
15309         * tests/unicase/test-is-titlecase.h: New file.
15310
15311         New module 'unicase/u32-is-titlecase'.
15312         * lib/unicase/u32-is-titlecase.c: New file.
15313         * modules/unicase/u32-is-titlecase: New file.
15314
15315         New module 'unicase/u16-is-titlecase'.
15316         * lib/unicase/u16-is-titlecase.c: New file.
15317         * modules/unicase/u16-is-titlecase: New file.
15318
15319         New module 'unicase/u8-is-titlecase'.
15320         * lib/unicase/u8-is-titlecase.c: New file.
15321         * modules/unicase/u8-is-titlecase: New file.
15322
15323         Tests for module 'unicase/u32-is-lowercase'.
15324         * modules/unicase/u32-is-lowercase-tests: New file.
15325         * tests/unicase/test-u32-is-lowercase.c: New file.
15326
15327         Tests for module 'unicase/u16-is-lowercase'.
15328         * modules/unicase/u16-is-lowercase-tests: New file.
15329         * tests/unicase/test-u16-is-lowercase.c: New file.
15330
15331         Tests for module 'unicase/u8-is-lowercase'.
15332         * modules/unicase/u8-is-lowercase-tests: New file.
15333         * tests/unicase/test-u8-is-lowercase.c: New file.
15334         * tests/unicase/test-is-lowercase.h: New file.
15335
15336         New module 'unicase/u32-is-lowercase'.
15337         * lib/unicase/u32-is-lowercase.c: New file.
15338         * modules/unicase/u32-is-lowercase: New file.
15339
15340         New module 'unicase/u16-is-lowercase'.
15341         * lib/unicase/u16-is-lowercase.c: New file.
15342         * modules/unicase/u16-is-lowercase: New file.
15343
15344         New module 'unicase/u8-is-lowercase'.
15345         * lib/unicase/u8-is-lowercase.c: New file.
15346         * modules/unicase/u8-is-lowercase: New file.
15347
15348         Tests for module 'unicase/u32-is-uppercase'.
15349         * modules/unicase/u32-is-uppercase-tests: New file.
15350         * tests/unicase/test-u32-is-uppercase.c: New file.
15351
15352         Tests for module 'unicase/u16-is-uppercase'.
15353         * modules/unicase/u16-is-uppercase-tests: New file.
15354         * tests/unicase/test-u16-is-uppercase.c: New file.
15355
15356         Tests for module 'unicase/u8-is-uppercase'.
15357         * modules/unicase/u8-is-uppercase-tests: New file.
15358         * tests/unicase/test-u8-is-uppercase.c: New file.
15359         * tests/unicase/test-is-uppercase.h: New file.
15360
15361         New module 'unicase/u32-is-uppercase'.
15362         * lib/unicase/u32-is-uppercase.c: New file.
15363         * modules/unicase/u32-is-uppercase: New file.
15364
15365         New module 'unicase/u16-is-uppercase'.
15366         * lib/unicase/u16-is-uppercase.c: New file.
15367         * modules/unicase/u16-is-uppercase: New file.
15368
15369         New module 'unicase/u8-is-uppercase'.
15370         * lib/unicase/u8-is-uppercase.c: New file.
15371         * modules/unicase/u8-is-uppercase: New file.
15372
15373         New module 'unicase/u32-is-invariant'.
15374         * lib/unicase/u32-is-invariant.c: New file.
15375         * modules/unicase/u32-is-invariant: New file.
15376
15377         New module 'unicase/u16-is-invariant'.
15378         * lib/unicase/u16-is-invariant.c: New file.
15379         * modules/unicase/u16-is-invariant: New file.
15380
15381         New module 'unicase/u8-is-invariant'.
15382         * lib/unicase/u8-is-invariant.c: New file.
15383         * lib/unicase/invariant.h: New file.
15384         * lib/unicase/u-is-invariant.h: New file.
15385         * modules/unicase/u8-is-invariant: New file.
15386
15387         Tests for module 'unicase/u32-casecoll'.
15388         * modules/unicase/u32-casecoll-tests: New file.
15389         * tests/unicase/test-u32-casecoll.c: New file.
15390
15391         Tests for module 'unicase/u16-casecoll'.
15392         * modules/unicase/u16-casecoll-tests: New file.
15393         * tests/unicase/test-u16-casecoll.c: New file.
15394
15395         Tests for module 'unicase/u8-casecoll'.
15396         * modules/unicase/u8-casecoll-tests: New file.
15397         * tests/unicase/test-u8-casecoll.c: New file.
15398
15399         New module 'unicase/u32-casecoll'.
15400         * lib/unicase/u32-casecoll.c: New file.
15401         * modules/unicase/u32-casecoll: New file.
15402
15403         New module 'unicase/u16-casecoll'.
15404         * lib/unicase/u16-casecoll.c: New file.
15405         * modules/unicase/u16-casecoll: New file.
15406
15407         New module 'unicase/u8-casecoll'.
15408         * lib/unicase/u8-casecoll.c: New file.
15409         * lib/unicase/u-casecoll.h: New file.
15410         * modules/unicase/u8-casecoll: New file.
15411
15412         New module 'unicase/u32-casexfrm'.
15413         * lib/unicase/u32-casexfrm.c: New file.
15414         * modules/unicase/u32-casexfrm: New file.
15415
15416         New module 'unicase/u16-casexfrm'.
15417         * lib/unicase/u16-casexfrm.c: New file.
15418         * modules/unicase/u16-casexfrm: New file.
15419
15420         New module 'unicase/u8-casexfrm'.
15421         * lib/unicase/u8-casexfrm.c: New file.
15422         * lib/unicase/u-casexfrm.h: New file.
15423         * modules/unicase/u8-casexfrm: New file.
15424
15425         Tests for module 'unicase/u32-casecmp'.
15426         * modules/unicase/u32-casecmp-tests: New file.
15427         * tests/unicase/test-u32-casecmp.c: New file.
15428
15429         Tests for module 'unicase/u16-casecmp'.
15430         * modules/unicase/u16-casecmp-tests: New file.
15431         * tests/unicase/test-u16-casecmp.c: New file.
15432
15433         Tests for module 'unicase/u8-casecmp'.
15434         * modules/unicase/u8-casecmp-tests: New file.
15435         * tests/unicase/test-u8-casecmp.c: New file.
15436         * tests/unicase/test-casecmp.h: New file.
15437
15438         New module 'unicase/u32-casecmp'.
15439         * lib/unicase/u32-casecmp.c: New file.
15440         * modules/unicase/u32-casecmp: New file.
15441
15442         New module 'unicase/u16-casecmp'.
15443         * lib/unicase/u16-casecmp.c: New file.
15444         * modules/unicase/u16-casecmp: New file.
15445
15446         New module 'unicase/u8-casecmp'.
15447         * lib/unicase/u8-casecmp.c: New file.
15448         * lib/unicase/u-casecmp.h: New file.
15449         * modules/unicase/u8-casecmp: New file.
15450
15451         Tests for module 'unicase/u32-casefold'.
15452         * modules/unicase/u32-casefold-tests: New file.
15453         * tests/unicase/test-u32-casefold.c: New file.
15454
15455         Tests for module 'unicase/u16-casefold'.
15456         * modules/unicase/u16-casefold-tests: New file.
15457         * tests/unicase/test-u16-casefold.c: New file.
15458
15459         Tests for module 'unicase/u8-casefold'.
15460         * modules/unicase/u8-casefold-tests: New file.
15461         * tests/unicase/test-u8-casefold.c: New file.
15462
15463         New module 'unicase/u32-casefold'.
15464         * lib/unicase/u32-casefold.c: New file.
15465         * modules/unicase/u32-casefold: New file.
15466
15467         New module 'unicase/u16-casefold'.
15468         * lib/unicase/u16-casefold.c: New file.
15469         * modules/unicase/u16-casefold: New file.
15470
15471         New module 'unicase/u8-casefold'.
15472         * lib/unicase/u8-casefold.c: New file.
15473         * lib/unicase/u-casefold.h: New file.
15474         * modules/unicase/u8-casefold: New file.
15475
15476         New module 'unicase/tocasefold'.
15477         * lib/unicase/casefold.h: New file.
15478         * lib/unicase/tocasefold.c: New file.
15479         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15480         * modules/unicase/tocasefold: New file.
15481
15482         Tests for module 'unicase/u32-totitle'.
15483         * modules/unicase/u32-totitle-tests: New file.
15484         * tests/unicase/test-u32-totitle.c: New file.
15485
15486         Tests for module 'unicase/u16-totitle'.
15487         * modules/unicase/u16-totitle-tests: New file.
15488         * tests/unicase/test-u16-totitle.c: New file.
15489
15490         Tests for module 'unicase/u8-totitle'.
15491         * modules/unicase/u8-totitle-tests: New file.
15492         * tests/unicase/test-u8-totitle.c: New file.
15493
15494         New module 'unicase/u32-totitle'.
15495         * lib/unicase/u32-totitle.c: New file.
15496         * modules/unicase/u32-totitle: New file.
15497
15498         New module 'unicase/u16-totitle'.
15499         * lib/unicase/u16-totitle.c: New file.
15500         * modules/unicase/u16-totitle: New file.
15501
15502         New module 'unicase/u8-totitle'.
15503         * lib/unicase/u8-totitle.c: New file.
15504         * lib/unicase/u-totitle.h: New file.
15505         * modules/unicase/u8-totitle: New file.
15506
15507         Tests for module 'unicase/u32-tolower'.
15508         * modules/unicase/u32-tolower-tests: New file.
15509         * tests/unicase/test-u32-tolower.c: New file.
15510
15511         Tests for module 'unicase/u16-tolower'.
15512         * modules/unicase/u16-tolower-tests: New file.
15513         * tests/unicase/test-u16-tolower.c: New file.
15514
15515         Tests for module 'unicase/u8-tolower'.
15516         * modules/unicase/u8-tolower-tests: New file.
15517         * tests/unicase/test-u8-tolower.c: New file.
15518
15519         New module 'unicase/u32-tolower'.
15520         * lib/unicase/u32-tolower.c: New file.
15521         * modules/unicase/u32-tolower: New file.
15522
15523         New module 'unicase/u16-tolower'.
15524         * lib/unicase/u16-tolower.c: New file.
15525         * modules/unicase/u16-tolower: New file.
15526
15527         New module 'unicase/u8-tolower'.
15528         * lib/unicase/u8-tolower.c: New file.
15529         * modules/unicase/u8-tolower: New file.
15530
15531         Tests for module 'unicase/u32-toupper'.
15532         * modules/unicase/u32-toupper-tests: New file.
15533         * tests/unicase/test-u32-toupper.c: New file.
15534
15535         Tests for module 'unicase/u16-toupper'.
15536         * modules/unicase/u16-toupper-tests: New file.
15537         * tests/unicase/test-u16-toupper.c: New file.
15538
15539         Tests for module 'unicase/u8-toupper'.
15540         * modules/unicase/u8-toupper-tests: New file.
15541         * tests/unicase/test-u8-toupper.c: New file.
15542
15543         New module 'unicase/u32-toupper'.
15544         * lib/unicase/u32-toupper.c: New file.
15545         * modules/unicase/u32-toupper: New file.
15546
15547         New module 'unicase/u16-toupper'.
15548         * lib/unicase/u16-toupper.c: New file.
15549         * modules/unicase/u16-toupper: New file.
15550
15551         New module 'unicase/u8-toupper'.
15552         * lib/unicase/u8-toupper.c: New file.
15553         * modules/unicase/u8-toupper: New file.
15554
15555         New module 'unicase/u32-casemap'.
15556         * lib/unicase/u32-casemap.c: New file.
15557         * modules/unicase/u32-casemap: New file.
15558
15559         New module 'unicase/u16-casemap'.
15560         * lib/unicase/u16-casemap.c: New file.
15561         * modules/unicase/u16-casemap: New file.
15562
15563         New module 'unicase/u8-casemap'.
15564         * lib/unicase/unicasemap.h: New file.
15565         * lib/unicase/u8-casemap.c: New file.
15566         * lib/unicase/u-casemap.h: New file.
15567         * modules/unicase/u8-casemap: New file.
15568
15569         New module 'unicase/special-casing'.
15570         * lib/unicase/special-casing.h: New file.
15571         * lib/unicase/special-casing.c: New file.
15572         * lib/unicase/special-casing-table.gperf: New file, generated by
15573         gen-uni-tables.c.
15574         * modules/unicase/special-casing: New file.
15575
15576         Tests for module 'unicase/locale-language'.
15577         * modules/unicase/locale-language-tests: New file.
15578         * tests/unicase/test-locale-language.sh: New file.
15579         * tests/unicase/test-locale-language.c: New file.
15580
15581         New module 'unicase/locale-language'.
15582         * lib/unicase/locale-language.c: New file.
15583         * lib/unicase/locale-languages.gperf: New file.
15584         * modules/unicase/locale-language: New file.
15585
15586         Generate more tables for case conversion and case folding.
15587         * lib/gen-uni-tables.c (SCC_*): New enum items.
15588         (struct special_casing_rule): New type.
15589         (casing_rules, num_casing_rules, allocated_casing_rules): New
15590         variables.
15591         (add_casing_rule, fill_casing_rules): New functions.
15592         (struct casefold_rule): New type.
15593         (casefolding_rules, num_casefolding_rules,
15594         allocated_casefolding_rules): New variables.
15595         (fill_casefolding_rules): New function.
15596         (unicode_casefold): New variable.
15597         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15598         sort_casing_rules, output_casing_rules): New functions.
15599         (main): Accept to more arguments: SpecialCasing.txt and
15600         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15601         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15602         Output mapping for casefolding.
15603
15604         * lib/unicase.h: Include stdbool.h, uninorm.h.
15605         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15606         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15607         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15608         arguments.
15609         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15610         resultp arguments.
15611         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15612         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15613         resultp arguments.
15614         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15615         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15616         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15617         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15618         declarations.
15619         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15620
15621 2009-03-08  Bruno Haible  <bruno@clisp.org>
15622
15623         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15624         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15625         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15626         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15627
15628 2009-03-07  Bruno Haible  <bruno@clisp.org>
15629
15630         Adjust u*_normcmp, u*_normcoll API.
15631         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15632         u16_normcoll, u32_normcoll): Change failure conventions.
15633         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15634         errno and return -1.
15635         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15636
15637 2009-03-07  Bruno Haible  <bruno@clisp.org>
15638
15639         Tests for module 'uninorm/u32-normcoll'.
15640         * modules/uninorm/u32-normcoll-tests: New file.
15641         * tests/uninorm/test-u32-normcoll.c: New file.
15642
15643         Tests for module 'uninorm/u16-normcoll'.
15644         * modules/uninorm/u16-normcoll-tests: New file.
15645         * tests/uninorm/test-u16-normcoll.c: New file.
15646
15647         Tests for module 'uninorm/u8-normcoll'.
15648         * modules/uninorm/u8-normcoll-tests: New file.
15649         * tests/uninorm/test-u8-normcoll.c: New file.
15650
15651 2009-03-07  Bruno Haible  <bruno@clisp.org>
15652
15653         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15654         tests/uninorm/test-u32-normcmp.c.
15655         * tests/uninorm/test-u32-normcmp.c: Include it.
15656         (test_nonascii): New function, extracted from main. Add some more
15657         tests.
15658         (main): Invoke test_ascii and test_nonascii.
15659         * modules/uninorm/u32-normcmp-tests (Files): Add
15660         tests/uninorm/test-u32-normcmp.h.
15661         (Depends-on): Remove uninorm/u32-normcmp.
15662
15663         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15664         tests/uninorm/test-u16-normcmp.c.
15665         * tests/uninorm/test-u16-normcmp.c: Include it.
15666         (test_nonascii): New function, extracted from main. Add some more
15667         tests.
15668         (main): Invoke test_ascii and test_nonascii.
15669         * modules/uninorm/u16-normcmp-tests (Files): Add
15670         tests/uninorm/test-u16-normcmp.h.
15671         (Depends-on): Remove uninorm/u16-normcmp.
15672
15673         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15674         tests/uninorm/test-u8-normcmp.c.
15675         * tests/uninorm/test-u8-normcmp.c: Include it.
15676         (test_nonascii): New function, extracted from main. Add some more
15677         tests.
15678         (main): Invoke test_ascii and test_nonascii.
15679         * modules/uninorm/u8-normcmp-tests (Files): Add
15680         tests/uninorm/test-u8-normcmp.h.
15681         (Depends-on): Remove uninorm/u8-normcmp.
15682
15683 2009-03-07  Bruno Haible  <bruno@clisp.org>
15684
15685         New module 'uninorm/u32-normcoll'.
15686         * lib/uninorm/u32-normcoll.c: New file.
15687         * modules/uninorm/u32-normcoll: New file.
15688
15689         New module 'uninorm/u16-normcoll'.
15690         * lib/uninorm/u16-normcoll.c: New file.
15691         * modules/uninorm/u16-normcoll: New file.
15692
15693         New module 'uninorm/u8-normcoll'.
15694         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15695         declarations.
15696         * lib/uninorm/u8-normcoll.c: New file.
15697         * lib/uninorm/u-normcoll.h: New file.
15698         * modules/uninorm/u8-normcoll: New file.
15699
15700         New module 'uninorm/u32-normxfrm'.
15701         * lib/uninorm/u32-normxfrm.c: New file.
15702         * modules/uninorm/u32-normxfrm: New file.
15703
15704         New module 'uninorm/u16-normxfrm'.
15705         * lib/uninorm/u16-normxfrm.c: New file.
15706         * modules/uninorm/u16-normxfrm: New file.
15707
15708         New module 'uninorm/u8-normxfrm'.
15709         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15710         declarations.
15711         * lib/uninorm/u8-normxfrm.c: New file.
15712         * lib/uninorm/u-normxfrm.h: New file.
15713         * modules/uninorm/u8-normxfrm: New file.
15714
15715 2009-03-07  Bruno Haible  <bruno@clisp.org>
15716
15717         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15718         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15719         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15720
15721 2009-03-07  Bruno Haible  <bruno@clisp.org>
15722
15723         New module 'memxfrm'.
15724         * lib/memxfrm.h: New file.
15725         * lib/memxfrm.c: New file.
15726         * modules/memxfrm: New file.
15727
15728 2009-03-07  Bruno Haible  <bruno@clisp.org>
15729
15730         New module 'memcmp2'.
15731         * lib/memcmp2.h: New file.
15732         * lib/memcmp2.c: New file.
15733         * modules/memcmp2: New file.
15734
15735 2009-03-07  Bruno Haible  <bruno@clisp.org>
15736
15737         Tests for module 'uninorm/decomposing-form'.
15738         * modules/uninorm/decomposing-form-tests: New file.
15739         * tests/uninorm/test-decomposing-form.c: New file.
15740
15741         New module 'uninorm/decomposing-form'.
15742         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15743         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15744         Add 'decomposing_variant' field.
15745         * lib/uninorm/decomposing-form.c: New file.
15746         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15747         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15748         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15749         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15750         * modules/uninorm/decomposing-form: New file.
15751         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15752         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15753
15754 2009-03-07  Bruno Haible  <bruno@clisp.org>
15755
15756         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15757         strings.
15758
15759 2009-03-06  Bruno Haible  <bruno@clisp.org>
15760
15761         Tests for module 'uninorm/u32-normcmp'.
15762         * tests/uninorm/test-u32-normcmp.c: New file.
15763         * modules/uninorm/u32-normcmp-tests: New file.
15764
15765         Tests for module 'uninorm/u16-normcmp'.
15766         * tests/uninorm/test-u16-normcmp.c: New file.
15767         * modules/uninorm/u16-normcmp-tests: New file.
15768
15769         Tests for module 'uninorm/u8-normcmp'.
15770         * tests/uninorm/test-u8-normcmp.c: New file.
15771         * modules/uninorm/u8-normcmp-tests: New file.
15772
15773         New module 'uninorm/u32-normcmp'.
15774         * lib/uninorm/u32-normcmp.c: New file.
15775         * modules/uninorm/u32-normcmp: New file.
15776
15777         New module 'uninorm/u16-normcmp'.
15778         * lib/uninorm/u16-normcmp.c: New file.
15779         * modules/uninorm/u16-normcmp: New file.
15780
15781         New module 'uninorm/u8-normcmp'.
15782         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15783         declarations.
15784         * lib/uninorm/u8-normcmp.c: New file.
15785         * lib/uninorm/u-normcmp.h: New file.
15786         * modules/uninorm/u8-normcmp: New file.
15787
15788 2009-03-06  Bruno Haible  <bruno@clisp.org>
15789
15790         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15791         Reported by Eric Blake.
15792
15793 2009-03-06  Eric Blake  <ebb9@byu.net>
15794             Bruno Haible  <bruno@clisp.org>
15795
15796         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15797         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15798         condition.
15799         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15800         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15801         condition.
15802         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15803
15804 2009-03-06  Eric Blake  <ebb9@byu.net>
15805
15806         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15807         to avoid compiler warnings.
15808         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15809
15810 2009-03-05  Bruno Haible  <bruno@clisp.org>
15811
15812         * tests/test-ftell.c (main): Disable test beyond end of file on
15813         FreeMiNT.
15814         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15815
15816 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15817
15818         * lib/filevercmp.c: Move hidden files up in ordering.
15819         * tests/test-filevercmp.c: Add tests for hidden files.
15820
15821 2009-03-04  Bruno Haible  <bruno@clisp.org>
15822
15823         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15824         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15825         AM_CFLAGS.
15826         Reported by Simon Josefsson.
15827
15828 2009-03-03  Bruno Haible  <bruno@clisp.org>
15829
15830         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15831         Reported by Simon Josefsson.
15832
15833         * doc/ld-version-script.texi: Update node reference.
15834
15835 2009-03-03  Bruno Haible  <bruno@clisp.org>
15836
15837         * modules/visibility (License): Change to 'unlimited'.
15838         Suggested by Simon Josefsson.
15839
15840 2009-03-03  Jim Meyering  <meyering@redhat.com>
15841
15842         unlinkdir: cannot_unlink_dir may modify process state
15843         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15844         it's neither thread-safe nor appropriate for use in a library.
15845
15846 2009-03-03  Eric Blake  <ebb9@byu.net>
15847
15848         test-closein: silence test under Darwin
15849         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15850         care if it dies from EPIPE or EBADF.
15851
15852 2009-03-03  Bruno Haible  <bruno@clisp.org>
15853
15854         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15855         earlier.
15856         * doc/visibility.texi: Fix @node and @section.
15857
15858 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15859
15860         * doc/gnulib.texi: Link to sections for ld version script and
15861         visibility.
15862         * doc/visibility.texi: Add @node and @section.
15863         * modules/ld-version-script: New module.
15864         * m4/ld-version-script.m4: New file.
15865         * doc/ld-version-script.texi: New file.
15866
15867 2009-03-02  David Lutterkort  <lutter@redhat.com>
15868
15869         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15871
15872 2009-03-02  Bruno Haible  <bruno@clisp.org>
15873
15874         * doc/visibility.texi: Mention libtool's -export-symbols option.
15875
15876 2009-03-02  Jim Meyering  <meyering@redhat.com>
15877
15878         announce-gen: new option: --no-print-checksums
15879         * build-aux/announce-gen (usage): Describe it.
15880         (print_checksums): Print a newline here, not in the [*] footnote.
15881         (main): Honor it.
15882
15883 2009-03-01  Bruno Haible  <bruno@clisp.org>
15884
15885         Use socklen_t in the native Windows replacements prototypes.
15886         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15887         instead of 'int'.
15888         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15889         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15890         * modules/getsockopt (Depends-on): Add socklen.
15891         * modules/setsockopt (Depends-on): Add socklen.
15892
15893 2009-03-01  Bruno Haible  <bruno@clisp.org>
15894
15895         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15896         least 4.2.
15897
15898 2009-03-01  Eric Blake  <ebb9@byu.net>
15899             Bruno Haible  <bruno@clisp.org>
15900
15901         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15902         error messages.
15903         * lib/wait-process.c (wait_subprocess): Omit error message about
15904         deadly signal sent to the child of termsigp != NULL.
15905
15906 2009-03-01  Eric Blake  <ebb9@byu.net>
15907
15908         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15909
15910 2009-03-01  Bruno Haible  <bruno@clisp.org>
15911
15912         Avoid a gcc warning.
15913         * tests/test-sched.c (b): Make global.
15914         Reported by Eric Blake.
15915
15916 2009-01-19  Martin Lambers  <marlam@marlam.de>
15917
15918         Provide POSIX semantics for socket timeout options on W32.
15919         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15920         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15921         * modules/setsockopt: Depend on sys_time module for struct timeval.
15922         * modules/getsockopt: Depend on sys_time module for struct timeval.
15923
15924 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15925
15926         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15927         __USE_GNU, for consistency with netdb.in.h.
15928         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15929
15930 2009-03-01  Bruno Haible  <bruno@clisp.org>
15931
15932         More support for FreeMiNT.
15933         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15934         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15935
15936 2009-03-01  Bruno Haible  <bruno@clisp.org>
15937
15938         More support for FreeMiNT.
15939         * lib/fpurge.c (fpurge): Correct last commit.
15940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15941
15942 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15943
15944         Fix unportable awk script in vc-list-files.
15945         * build-aux/vc-list-files: In the replacement awk script, use
15946         substr with a second argument of 1, not zero.
15947         Report by Simon Josefsson.
15948
15949 2009-02-28  Bruno Haible  <bruno@clisp.org>
15950
15951         More support for FreeMiNT.
15952         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15953         to FreeMiNT today.
15954         * lib/fwriting.c (fwriting): Likewise.
15955         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15956
15957 2009-02-28  Bruno Haible  <bruno@clisp.org>
15958
15959         * tests/test-freadseek.c (main): Disable test beyond end of file on
15960         FreeMiNT.
15961         * tests/test-ftello.c (main): Likewise.
15962         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15963
15964 2009-02-28  Bruno Haible  <bruno@clisp.org>
15965
15966         Add tentative support for FreeMiNT.
15967         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15968         * lib/fpurge.c (fpurge): Likewise.
15969         * lib/freadable.c (freadable): Likewise.
15970         * lib/freading.c (freading): Likewise.
15971         * lib/freadptr.c (freadptr): Likewise.
15972         * lib/freadseek.c (freadptrinc): Likewise.
15973         * lib/fseeko.c (rpl_fseeko): Likewise.
15974         * lib/fseterr.c (fseterr): Likewise.
15975         * lib/fwritable.c (fwritable): Likewise.
15976         * lib/fwriting.c (fwriting): Likewise.
15977         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15978         Hourihane.
15979         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15980
15981 2009-02-28  Bruno Haible  <bruno@clisp.org>
15982
15983         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15984         SIGCHLD.
15985         Reported by Jim Meyering.
15986
15987 2009-02-28  Bruno Haible  <bruno@clisp.org>
15988
15989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15990         Mention the results of these tests on various platforms.
15991         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15992         order.
15993         * doc/posix-functions/printf.texi: Likewise.
15994         * doc/posix-functions/snprintf.texi: Likewise.
15995         * doc/posix-functions/sprintf.texi: Likewise.
15996         * doc/posix-functions/vfprintf.texi: Likewise.
15997         * doc/posix-functions/vprintf.texi: Likewise.
15998         * doc/posix-functions/vsnprintf.texi: Likewise.
15999         * doc/posix-functions/vsprintf.texi: Likewise.
16000         * doc/glibc-functions/obstack_printf.texi: Likewise.
16001         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16002
16003 2009-02-28  Bruno Haible  <bruno@clisp.org>
16004
16005         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16006         Reported by Loïc Minier <lool@dooz.org>.
16007
16008 2009-02-27  Bruno Haible  <bruno@clisp.org>
16009
16010         * gnulib-tool (func_import): Make the sed expression used to create the
16011         sed script for updating the .gitignore file POSIX compliant.
16012         Reported by Eric Blake.
16013
16014 2009-02-27  Bruno Haible  <bruno@clisp.org>
16015
16016         * gnulib-tool (sed): Don't alias as "sed --posix".
16017         Reported by Eric Blake.
16018
16019 2009-02-27  Bruno Haible  <bruno@clisp.org>
16020
16021         Avoid test link errors.
16022         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16023         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16024         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16025         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16027
16028 2009-02-27  Bruno Haible  <bruno@clisp.org>
16029
16030         Avoid spurious "(cached)" in configure output.
16031         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16032         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16034         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16035         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16036         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16037         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16038         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16039         Reported by Eric Blake.
16040
16041 2009-02-27  Eric Blake  <ebb9@byu.net>
16042
16043         printf: fix regression in previous patch
16044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16045
16046 2009-02-27  Bruno Haible  <bruno@clisp.org>
16047
16048         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16049         value.
16050         * lib/stdint.in.h: Likewise.
16051         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16052
16053 2009-02-27  Eric Blake  <ebb9@byu.net>
16054
16055         doc: mention more functions added in cygwin 1.7.0
16056         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16057         addition.
16058         * doc/posix-functions/open_wmemstream.texi: Likewise.
16059         * doc/posix-functions/wcsnlen.texi: Likewise.
16060         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16061         * doc/posix-functions/wcstod.texi: Likewise.
16062         * doc/posix-functions/wcstof.texi: Likewise.
16063         * doc/posix-functions/wcstoimax.texi: Likewise.
16064         * doc/posix-functions/wcstok.texi: Likewise.
16065         * doc/posix-functions/wcstoumax.texi: Likewise.
16066
16067         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16069         * doc/posix-functions/fprintf.texi: Update.
16070         * doc/posix-functions/printf.texi: Update.
16071         * doc/posix-functions/snprintf.texi: Update.
16072         * doc/posix-functions/sprintf.texi: Update.
16073         * doc/posix-functions/vfprintf.texi: Update.
16074         * doc/posix-functions/vprintf.texi: Update.
16075         * doc/posix-functions/vsnprintf.texi: Update.
16076         * doc/posix-functions/vsprintf.texi: Update.
16077         * doc/glibc-functions/obstack_printf.texi: Update.
16078         * doc/glibc-functions/obstack_vprintf.texi: Update.
16079
16080 2009-02-26  Eric Blake  <ebb9@byu.net>
16081
16082         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16083         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16084         compilation bug by using runtime conversion.
16085         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16086         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16087         * modules/ceill-tests (Files): Use nan.h.
16088         * modules/floorl-tests (Files): Likewise.
16089         * modules/frexpl-tests (Files): Likewise.
16090         * modules/isnanl-tests (Files): Likewise.
16091         * modules/ldexpl-tests (Files): Likewise.
16092         * modules/roundl-tests (Files): Likewise.
16093         * modules/truncl-tests (Files): Likewise.
16094         * tests/test-ceill.c (main): Use a working NaN.
16095         * tests/test-floorl.c (main): Likewise.
16096         * tests/test-frexpl.c (main): Likewise.
16097         * tests/test-isnan.c (test_long_double): Likewise.
16098         * tests/test-isnanl.h (main): Likewise.
16099         * tests/test-ldexpl.h (main): Likewise.
16100         * tests/test-roundl.h (main): Likewise.
16101         * tests/test-truncl.h (main): Likewise.
16102         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16103
16104 2009-02-26  Eric Blake  <ebb9@byu.net>
16105             Bruno Haible  <bruno@clisp.org>
16106
16107         Work around a *printf bug with %ls on Solaris.
16108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16109         precision is specified, sprintf stops converting the wide string
16110         argument when the number of bytes that have been produced by this
16111         conversion equals or exceeds the precision.
16112         * doc/posix-functions/fprintf.texi: Update.
16113         * doc/posix-functions/printf.texi: Update.
16114         * doc/posix-functions/snprintf.texi: Update.
16115         * doc/posix-functions/sprintf.texi: Update.
16116         * doc/posix-functions/vfprintf.texi: Update.
16117         * doc/posix-functions/vprintf.texi: Update.
16118         * doc/posix-functions/vsnprintf.texi: Update.
16119         * doc/posix-functions/vsprintf.texi: Update.
16120         * doc/glibc-functions/obstack_printf.texi: Update.
16121         * doc/glibc-functions/obstack_vprintf.texi: Update.
16122
16123 2009-02-26  Eric Blake  <ebb9@byu.net>
16124
16125         stdlib: favor compiler check of random.h
16126         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16127         to avoid an ObjC random.h installed by Swarm.
16128
16129 2009-02-26  Bruno Haible  <bruno@clisp.org>
16130
16131         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16132         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16133         Reported by Gary V. Vaughan <gary@gnu.org>.
16134
16135 2009-02-26  Bruno Haible  <bruno@clisp.org>
16136
16137         Fix *printf behaviour regarding the %ls directive.
16138         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16139         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16140         NEED_PRINTF_DIRECTIVE_LS.
16141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16142         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16144         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16145         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16146         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16147         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16152         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16153         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16154         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16155         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16156         * doc/posix-functions/fprintf.texi: Update.
16157         * doc/posix-functions/printf.texi: Update.
16158         * doc/posix-functions/snprintf.texi: Update.
16159         * doc/posix-functions/sprintf.texi: Update.
16160         * doc/posix-functions/vfprintf.texi: Update.
16161         * doc/posix-functions/vprintf.texi: Update.
16162         * doc/posix-functions/vsnprintf.texi: Update.
16163         * doc/posix-functions/vsprintf.texi: Update.
16164         * doc/glibc-functions/obstack_printf.texi: Update.
16165         * doc/glibc-functions/obstack_vprintf.texi: Update.
16166         Reported by Eric Blake.
16167
16168 2009-02-25  Bruno Haible  <bruno@clisp.org>
16169
16170         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16171         with known value.
16172         Reported by Gary V. Vaughan <gary@gnu.org>.
16173
16174 2009-02-25  Bruno Haible  <bruno@clisp.org>
16175
16176         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16177         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16178         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16179         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16180         Reported by Gary V. Vaughan <gary@gnu.org>.
16181
16182 2009-02-25  Bruno Haible  <bruno@clisp.org>
16183
16184         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16185         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16186         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16187         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16188         Reported by Gary V. Vaughan <gary@gnu.org>.
16189
16190 2009-02-25  Eric Blake  <ebb9@byu.net>
16191
16192         tests: skip fseek/ftell tests if ungetc is broken
16193         * m4/ungetc.m4: New file.
16194         * modules/fseek-tests: Split test, so ungetc dependency is
16195         separate from rest of test.
16196         * modules/fseeko-tests: Likewise.
16197         * modules/ftell-tests: Likewise.
16198         * modules/ftello-tests: Likewise.
16199         * tests/test-fseek.c (main): Isolate ungetc dependency.
16200         * tests/test-fseeko.c (main): Likewise.
16201         * tests/test-ftell.c (main): Likewise.
16202         * tests/test-ftello.c (main): Likewise.
16203         * tests/test-fseek2.sh: New file.
16204         * tests/test-fseeko2.sh: Likewise.
16205         * tests/test-ftell2.sh: Likewise.
16206         * tests/test-ftello2.sh: Likewise.
16207
16208 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16209
16210         test-getaddrinfo: fix usage of skip return code 77
16211         * tests/test-gettaddrinfo.c: Return skip code 77 only
16212         for first occurance of skip (4x77 is not 77)
16213
16214 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16215
16216         strtod: avoid C99 decl-after-statement
16217         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16218
16219 2009-02-24  Eric Blake  <ebb9@byu.net>
16220
16221         strtod: detect HP-UX 11.31 bug
16222         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16223         Reported by Gary V. Vaughan.
16224
16225 2009-02-23  Bruno Haible  <bruno@clisp.org>
16226
16227         Fix invalid read past end of memory block.
16228         * lib/vasnprintf.c (DCHAR_SET): Define.
16229         (local_wcslen): Define only when needed.
16230         (local_strnlen, local_wcsnlen): New functions.
16231         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16232         directives that involve a conversion ourselves.
16233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16234         wcsnlen, mbrtowc, wcrtomb.
16235         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16236         * tests/test-vasprintf-posix.c (test_function): Likewise.
16237         * tests/test-snprintf-posix.h (test_function): Likewise.
16238         * tests/test-sprintf-posix.h (test_function): Likewise.
16239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16240
16241 2009-02-22  Bruno Haible  <bruno@clisp.org>
16242
16243         Implement new clarified decomposition of Hangul syllables.
16244         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16245         of type LTV, return only a pairwise decomposition.
16246         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16247         Likewise.
16248         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16249         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16250         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16251
16252 2009-02-22  Bruno Haible  <bruno@clisp.org>
16253
16254         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16255         zero-length results and shrink excess allocated memory.
16256         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16257         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16258         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16259         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16260         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16261         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16262         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16263         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16264         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16265         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16266         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16267         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16268
16269 2009-02-21  Bruno Haible  <bruno@clisp.org>
16270
16271         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16272         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16273         spaces after a period. Put a space between a macro name and its
16274         argument list. Trivial rewordings.
16275         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16276         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16277         (main): Return 0 explicitly.
16278
16279 2009-02-21  Bruno Haible  <bruno@clisp.org>
16280
16281         Tests for module 'uninorm/filter'.
16282         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16283         * modules/uninorm/filter-tests: New file.
16284
16285         New module 'uninorm/filter'.
16286         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16287         uninorm_filter_flush, uninorm_filter_free): New declarations.
16288         * lib/uninorm/uninorm-filter.c: New file.
16289         * modules/uninorm/filter: New file.
16290
16291 2009-02-21  Bruno Haible  <bruno@clisp.org>
16292
16293         Tests for module 'uninorm/nfkc'.
16294         * tests/uninorm/test-nfkc.c: New file.
16295         * tests/uninorm/test-u8-nfkc.c: New file.
16296         * tests/uninorm/test-u16-nfkc.c: New file.
16297         * tests/uninorm/test-u32-nfkc.c: New file.
16298         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16299         * tests/uninorm/test-u32-nfkc-big.c: New file.
16300         * modules/uninorm/nfkc-tests: New file.
16301
16302         New module 'uninorm/nfkc'.
16303         * lib/uninorm/nfkc.c: New file.
16304         * modules/uninorm/nfkc: New file.
16305
16306         Tests for module 'uninorm/nfkd'.
16307         * tests/uninorm/test-nfkd.c: New file.
16308         * tests/uninorm/test-u8-nfkd.c: New file.
16309         * tests/uninorm/test-u16-nfkd.c: New file.
16310         * tests/uninorm/test-u32-nfkd.c: New file.
16311         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16312         * tests/uninorm/test-u32-nfkd-big.c: New file.
16313         * modules/uninorm/nfkd-tests: New file.
16314
16315         New module 'uninorm/nfkd'.
16316         * lib/uninorm/nfkd.c: New file.
16317         * modules/uninorm/nfkd: New file.
16318
16319         Tests for module 'uninorm/nfc'.
16320         * tests/uninorm/test-nfc.c: New file.
16321         * tests/uninorm/test-u8-nfc.c: New file.
16322         * tests/uninorm/test-u16-nfc.c: New file.
16323         * tests/uninorm/test-u32-nfc.c: New file.
16324         * tests/uninorm/test-u32-nfc-big.sh: New file.
16325         * tests/uninorm/test-u32-nfc-big.c: New file.
16326         * modules/uninorm/nfc-tests: New file.
16327
16328         New module 'uninorm/nfc'.
16329         * lib/uninorm/nfc.c: New file.
16330         * modules/uninorm/nfc: New file.
16331
16332         Tests for module 'uninorm/nfd'.
16333         * tests/uninorm/test-nfd.c: New file.
16334         * tests/uninorm/test-u8-nfd.c: New file.
16335         * tests/uninorm/test-u16-nfd.c: New file.
16336         * tests/uninorm/test-u32-nfd.c: New file.
16337         * tests/uninorm/test-u32-nfd-big.sh: New file.
16338         * tests/uninorm/test-u32-nfd-big.c: New file.
16339         * tests/uninorm/test-u32-normalize-big.h: New file.
16340         * tests/uninorm/test-u32-normalize-big.c: New file.
16341         * tests/uninorm/NormalizationTest.txt: New file, created from
16342         Unicode 5.1.0 NormalizationTest.txt.
16343         * modules/uninorm/nfd-tests: New file.
16344
16345         New module 'uninorm/nfd'.
16346         * lib/uninorm/nfd.c: New file.
16347         * modules/uninorm/nfd: New file.
16348
16349         New module 'uninorm/u32-normalize'.
16350         * lib/uninorm/u32-normalize.c: New file.
16351         * modules/uninorm/u32-normalize: New file.
16352
16353         New module 'uninorm/u16-normalize'.
16354         * lib/uninorm/u16-normalize.c: New file.
16355         * modules/uninorm/u16-normalize: New file.
16356
16357         New module 'uninorm/u8-normalize'.
16358         * lib/uninorm/u8-normalize.c: New file.
16359         * lib/uninorm/normalize-internal.h: New file.
16360         * lib/uninorm/u-normalize-internal.h: New file.
16361         * modules/uninorm/u8-normalize: New file.
16362
16363         New module 'uninorm/decompose-internal'.
16364         * lib/uninorm/decompose-internal.c: New file.
16365         * modules/uninorm/decompose-internal: New file.
16366
16367         Tests for module 'uninorm/composition'.
16368         * tests/uninorm/test-composition.c: New file.
16369         * modules/uninorm/composition-tests: New file.
16370
16371         New module 'uninorm/composition'.
16372         * lib/uninorm/composition.c: New file.
16373         * lib/uninorm/composition-table.gperf: New file, generated by
16374         gen-uni-tables.
16375         * modules/uninorm/composition: New file.
16376
16377         Tests for module 'uninorm/compat-decomposition'.
16378         * tests/uninorm/test-compat-decomposition.c: New file.
16379         * modules/uninorm/compat-decomposition-tests: New file.
16380
16381         New module 'uninorm/compat-decomposition'.
16382         * lib/uninorm/decompose-internal.h: New file.
16383         * lib/uninorm/compat-decomposition.c: New file.
16384         * modules/uninorm/compat-decomposition: New file.
16385
16386         Tests for module 'uninorm/canonical-decomposition'.
16387         * tests/uninorm/test-canonical-decomposition.c: New file.
16388         * modules/uninorm/canonical-decomposition-tests: New file.
16389
16390         New module 'uninorm/canonical-decomposition'.
16391         * lib/uninorm/canonical-decomposition.c: New file.
16392         * modules/uninorm/canonical-decomposition: New file.
16393
16394         Tests for module 'uninorm/decomposition'.
16395         * tests/uninorm/test-decomposition.c: New file.
16396         * modules/uninorm/decomposition-tests: New file.
16397
16398         New module 'uninorm/decomposition'.
16399         * lib/uninorm/decomposition.c: New file.
16400         * modules/uninorm/decomposition: New file.
16401
16402         New module 'uninorm/decomposition-table'.
16403         * lib/uninorm/decomposition-table.h: New file.
16404         * lib/uninorm/decomposition-table.c: New file.
16405         * lib/uninorm/decomposition-table1.h: New file, generated by
16406         gen-uni-tables.
16407         * lib/uninorm/decomposition-table2.h: New file, generated by
16408         gen-uni-tables.
16409         * modules/uninorm/decomposition-table: New file.
16410
16411         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16412         (UC_DECOMP_*): New enumeration items.
16413         (get_decomposition): New function.
16414         (struct decomp_table): New type.
16415         (output_decomposition, output_decomposition_tables): New functions.
16416         (unicode_composition_exclusions): New variable.
16417         (fill_composition_exclusions, debug_output_composition_tables): New
16418         functions.
16419         (main): Accept one more argument. Invoke fill_composition_exclusions.
16420         Output decomposition and composition tables.
16421
16422         New module 'uninorm/base'.
16423         * lib/uninorm.h: New file.
16424         * lib/unictype.h: Update comment.
16425         * modules/uninorm/base: New file.
16426
16427 2009-02-21  David Lutterkort  <lutter@redhat.com>
16428
16429         Tests for module 'safe-alloc'.
16430         * tests/test-safe-alloc.c: New file.
16431         * modules/safe-alloc-tests: New file.
16432
16433         New module 'safe-alloc'.
16434         * lib/safe-alloc.h: New file.
16435         * lib/safe-alloc.c: New file.
16436         * m4/safe-alloc.m4: New file.
16437         * modules/safe-alloc: New file.
16438         * doc/safe-alloc.texi: New file.
16439         * doc/gnulib.texi: Include it.
16440         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16441         safe-alloc.
16442
16443 2009-02-18  Bruno Haible  <bruno@clisp.org>
16444
16445         Fix link error on non-glibc systems.
16446         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16447         variable.
16448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16449
16450 2009-02-18  Jim Meyering  <meyering@redhat.com>
16451
16452         fts: avoid used-uninitialized error due to recent change
16453         * lib/fts.c (fts_read): Guard uses of the new member,
16454         parent->fts_n_dirs_remaining, since it's not relevant for
16455         the parent of a directory specified on the command-line.
16456
16457 2009-02-17  James Youngman  <jay@gnu.org>
16458             Bruno Haible  <bruno@clisp.org>
16459
16460         * m4/include_next.m4: Reformulate comment.
16461
16462 2009-02-16  Jim Meyering  <meyering@redhat.com>
16463
16464         fts: add #if guards so that the fts_lgpl module still builds
16465         * lib/fts.c: Guard just-added hash-table-using parts with
16466         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16467         Reported by Simon Josefsson.
16468
16469 2009-02-15  Bruno Haible  <bruno@clisp.org>
16470
16471         * modules/array-mergesort-tests: New file.
16472         * tests/test-array-mergesort.c: New file.
16473
16474         New module 'array-mergesort'.
16475         * modules/array-mergesort: New file.
16476         * lib/array-mergesort.h: New file.
16477
16478 2009-02-15  Bruno Haible  <bruno@clisp.org>
16479
16480         Fix 2009-02-07 commit.
16481         * lib/gen-uni-tables.c (output_predicate, output_category,
16482         output_combclass, output_bidi_category, output_decimal_digit,
16483         output_digit, output_numeric, output_mirror, output_scripts,
16484         output_ident_category, output_simple_mapping): Fix format directives.
16485         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16486
16487 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16488
16489         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16490         fixes are available from IBM.
16491
16492 2009-02-13  Jim Meyering  <meyering@redhat.com>
16493
16494         fts: arrange not to stat non-directories in more cases
16495         This makes GNU find (when it doesn't need to stat each file)
16496         *much* more efficient at traversing reiserfs file systems.
16497         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16498         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16499         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16500         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16501         (leaf_optimization_applies): New function.
16502         (LCO_hash, LCO_compare): New helper functions.
16503         (link_count_optimize_ok): New function.
16504         (fts_stat): Initialize new member (if dir).
16505         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16506         we've just stat'ed a directory.  Skip the stat call when possible.
16507         ---
16508         Note this AFS-related exchange:
16509         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16510         and note find's pioctl call in find/fstype.c.
16511         But that is necessary only if you want to enable the
16512         optimization for AFS, and for now, I don't.
16513
16514         fts: move a function definition "up" (no semantic change)
16515         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16516         "up" to precede upcoming use of a related function.
16517
16518 2009-02-11  Jim Meyering  <meyering@redhat.com>
16519
16520         fts: correct internal computation of nlinks (optimization-related)
16521         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16522         whether the current entry is a directory, so don't test it.
16523
16524 2009-02-10  Bruno Haible  <bruno@clisp.org>
16525
16526         Tests for module 'uniwbrk/ulc-wordbreaks'.
16527         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16528         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16529         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16530
16531         Tests for module 'uniwbrk/u32-wordbreaks'.
16532         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16533         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16534
16535         Tests for module 'uniwbrk/u16-wordbreaks'.
16536         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16537         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16538
16539         Tests for module 'uniwbrk/u8-wordbreaks'.
16540         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16541         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16542
16543 2009-02-10  Bruno Haible  <bruno@clisp.org>
16544
16545         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16546         property.
16547         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16548         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16549         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16550
16551 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16552
16553         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16554         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16555
16556 2009-02-10  Bruno Haible  <bruno@clisp.org>
16557
16558         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16559         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16560         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16561         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16562         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16563         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16564
16565 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16566
16567         * lib/sockets.h (gl_fd_to_handle): New function.
16568
16569         * tests/test-sockets.c: Call gl_fd_to_handle.
16570
16571 2009-02-09  Bruno Haible  <bruno@clisp.org>
16572
16573         * doc/havelib.texi: Document the conventions on bi-arch systems.
16574
16575 2009-02-08  Bruno Haible  <bruno@clisp.org>
16576
16577         Document the AC_LIB_LINKFLAGS macro.
16578         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16579         * doc/gnulib.texi: Include it.
16580
16581 2009-02-08  Bruno Haible  <bruno@clisp.org>
16582
16583         Fix wrong order of sections, compared to TOC.
16584         * doc/gnulib.texi: Include relocatable-maint.texi after the
16585         "Regular expressions" node, not before.
16586
16587 2009-02-08  Bruno Haible  <bruno@clisp.org>
16588
16589         Tests for module 'unicase/totitle'.
16590         * modules/unicase/totitle-tests: New file.
16591
16592         Tests for module 'unicase/tolower'.
16593         * modules/unicase/tolower-tests: New file.
16594
16595         Tests for module 'unicase/toupper'.
16596         * modules/unicase/toupper-tests: New file.
16597         * tests/unicase/test-mapping-part1.h: New file.
16598         * tests/unicase/test-mapping-part2.h: New file.
16599
16600         New module 'unicase/totitle'.
16601         * modules/unicase/totitle: New file.
16602         * lib/unicase/totitle.c: New file.
16603
16604         New module 'unicase/tolower'.
16605         * modules/unicase/tolower: New file.
16606         * lib/unicase/tolower.c: New file.
16607
16608         New module 'unicase/toupper'.
16609         * modules/unicase/toupper: New file.
16610         * lib/unicase/toupper.c: New file.
16611         * lib/unicase/simple-mapping.h: New file.
16612
16613         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16614         (mapping_table): New structure.
16615         (output_simple_mapping): New function.
16616         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16617         * modules/gen-uni-tables (Description): Update.
16618         * lib/unicase/toupper.h: New file, automatically generated by
16619         gen-uni-tables.
16620         * lib/unicase/tolower.h: New file, automatically generated by
16621         gen-uni-tables.
16622         * lib/unicase/totitle.h: New file, automatically generated by
16623         gen-uni-tables.
16624         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16625         gen-uni-tables.
16626         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16627         gen-uni-tables.
16628         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16629         gen-uni-tables.
16630
16631         New module 'unicase/base'.
16632         * modules/unicase/base: New file.
16633         * lib/unicase.h: New file.
16634
16635 2009-02-08  Bruno Haible  <bruno@clisp.org>
16636
16637         New module 'uniwbrk/ulc-wordbreaks'.
16638         * modules/uniwbrk/ulc-wordbreaks: New file.
16639         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16640
16641         New module 'uniwbrk/u32-wordbreaks'.
16642         * modules/uniwbrk/u32-wordbreaks: New file.
16643         * lib/uniwbrk/u32-wordbreaks.c: New file.
16644
16645         New module 'uniwbrk/u16-wordbreaks'.
16646         * modules/uniwbrk/u16-wordbreaks: New file.
16647         * lib/uniwbrk/u16-wordbreaks.c: New file.
16648
16649         New module 'uniwbrk/u8-wordbreaks'.
16650         * modules/uniwbrk/u8-wordbreaks: New file.
16651         * lib/uniwbrk/u8-wordbreaks.c: New file.
16652         * lib/uniwbrk/u-wordbreaks.h: New file.
16653
16654         New module 'uniwbrk/table'.
16655         * modules/uniwbrk/table: New file.
16656         * lib/uniwbrk/wbrktable.h: New file.
16657         * lib/uniwbrk/wbrktable.c: New file.
16658
16659         New module 'uniwbrk/wordbreak-property'.
16660         * modules/uniwbrk/wordbreak-property: New file.
16661         * lib/uniwbrk/wordbreak-property.c: New file.
16662
16663         * lib/gen-uni-tables.c (WBP_*): New enum items.
16664         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16665         (unicode_org_wbp): New variable.
16666         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16667         New functions.
16668         (wbp_table): New structure.
16669         (output_wbp, output_wbrk_tables): New functions.
16670         (main): Accept additional argument. Invoke fill_org_wbp,
16671         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16672         output_wbrk_tables.
16673         * modules/gen-uni-tables (Description): Update.
16674         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16675         gen-uni-tables.
16676
16677         New module 'uniwbrk/base'.
16678         * modules/uniwbrk/base: New file.
16679         * lib/uniwbrk.h: New file.
16680
16681 2009-02-08  Bruno Haible  <bruno@clisp.org>
16682
16683         Update to Unicode 5.1.0.
16684         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16685         U+2185..U+2188.
16686         (is_property_default_ignorable_code_point): Don't include characters
16687         of category Cc or Cs and not-a-characters.
16688         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16689         U+0D79, U+109E, U+109F, U+A60C.
16690         * lib/unictype/bidi_of.h: Regenerated.
16691         * lib/unictype/blocks.h: Regenerated.
16692         * lib/unictype/categ_C.h: Regenerated.
16693         * lib/unictype/categ_Cf.h: Regenerated.
16694         * lib/unictype/categ_Cn.h: Regenerated.
16695         * lib/unictype/categ_L.h: Regenerated.
16696         * lib/unictype/categ_Ll.h: Regenerated.
16697         * lib/unictype/categ_Lm.h: Regenerated.
16698         * lib/unictype/categ_Lo.h: Regenerated.
16699         * lib/unictype/categ_Lu.h: Regenerated.
16700         * lib/unictype/categ_M.h: Regenerated.
16701         * lib/unictype/categ_Mc.h: Regenerated.
16702         * lib/unictype/categ_Me.h: Regenerated.
16703         * lib/unictype/categ_Mn.h: Regenerated.
16704         * lib/unictype/categ_N.h: Regenerated.
16705         * lib/unictype/categ_Nd.h: Regenerated.
16706         * lib/unictype/categ_Nl.h: Regenerated.
16707         * lib/unictype/categ_No.h: Regenerated.
16708         * lib/unictype/categ_P.h: Regenerated.
16709         * lib/unictype/categ_Pd.h: Regenerated.
16710         * lib/unictype/categ_Pe.h: Regenerated.
16711         * lib/unictype/categ_Pf.h: Regenerated.
16712         * lib/unictype/categ_Pi.h: Regenerated.
16713         * lib/unictype/categ_Po.h: Regenerated.
16714         * lib/unictype/categ_Ps.h: Regenerated.
16715         * lib/unictype/categ_S.h: Regenerated.
16716         * lib/unictype/categ_Sk.h: Regenerated.
16717         * lib/unictype/categ_Sm.h: Regenerated.
16718         * lib/unictype/categ_So.h: Regenerated.
16719         * lib/unictype/categ_of.h: Regenerated.
16720         * lib/unictype/combining.h: Regenerated.
16721         * lib/unictype/ctype_alnum.h: Regenerated.
16722         * lib/unictype/ctype_alpha.h: Regenerated.
16723         * lib/unictype/ctype_graph.h: Regenerated.
16724         * lib/unictype/ctype_lower.h: Regenerated.
16725         * lib/unictype/ctype_print.h: Regenerated.
16726         * lib/unictype/ctype_punct.h: Regenerated.
16727         * lib/unictype/ctype_upper.h: Regenerated.
16728         * lib/unictype/decdigit.h: Regenerated.
16729         * lib/unictype/digit.h: Regenerated.
16730         * lib/unictype/mirror.h: Regenerated.
16731         * lib/unictype/numeric.h: Regenerated.
16732         * lib/unictype/pr_alphabetic.h: Regenerated.
16733         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16734         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16735         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16736         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16737         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16738         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16739         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16740         * lib/unictype/pr_combining.h: Regenerated.
16741         * lib/unictype/pr_dash.h: Regenerated.
16742         * lib/unictype/pr_decimal_digit.h: Regenerated.
16743         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16744         * lib/unictype/pr_deprecated.h: Regenerated.
16745         * lib/unictype/pr_diacritic.h: Regenerated.
16746         * lib/unictype/pr_extender.h: Regenerated.
16747         * lib/unictype/pr_format_control.h: Regenerated.
16748         * lib/unictype/pr_grapheme_base.h: Regenerated.
16749         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16750         * lib/unictype/pr_grapheme_link.h: Regenerated.
16751         * lib/unictype/pr_id_continue.h: Regenerated.
16752         * lib/unictype/pr_id_start.h: Regenerated.
16753         * lib/unictype/pr_ideographic.h: Regenerated.
16754         * lib/unictype/pr_ignorable_control.h: Regenerated.
16755         * lib/unictype/pr_lowercase.h: Regenerated.
16756         * lib/unictype/pr_math.h: Regenerated.
16757         * lib/unictype/pr_numeric.h: Regenerated.
16758         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16759         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16760         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16761         * lib/unictype/pr_other_id_continue.h: Regenerated.
16762         * lib/unictype/pr_other_lowercase.h: Regenerated.
16763         * lib/unictype/pr_other_math.h: Regenerated.
16764         * lib/unictype/pr_punctuation.h: Regenerated.
16765         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16766         * lib/unictype/pr_soft_dotted.h: Regenerated.
16767         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16768         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16769         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16770         * lib/unictype/pr_uppercase.h: Regenerated.
16771         * lib/unictype/pr_xid_continue.h: Regenerated.
16772         * lib/unictype/pr_xid_start.h: Regenerated.
16773         * lib/unictype/pr_zero_width.h: Regenerated.
16774         * lib/unictype/scripts.h: Regenerated.
16775         * lib/unictype/scripts_byname.gperf: Regenerated.
16776         * lib/unictype/sy_java_ident.h: Regenerated.
16777         * lib/unilbrk/lbrkprop1.h: Regenerated.
16778         * lib/unilbrk/lbrkprop2.h: Regenerated.
16779         * tests/unictype/test-categ_C.c: Regenerated.
16780         * tests/unictype/test-categ_Cf.c: Regenerated.
16781         * tests/unictype/test-categ_Cn.c: Regenerated.
16782         * tests/unictype/test-categ_L.c: Regenerated.
16783         * tests/unictype/test-categ_Ll.c: Regenerated.
16784         * tests/unictype/test-categ_Lm.c: Regenerated.
16785         * tests/unictype/test-categ_Lo.c: Regenerated.
16786         * tests/unictype/test-categ_Lu.c: Regenerated.
16787         * tests/unictype/test-categ_M.c: Regenerated.
16788         * tests/unictype/test-categ_Mc.c: Regenerated.
16789         * tests/unictype/test-categ_Me.c: Regenerated.
16790         * tests/unictype/test-categ_Mn.c: Regenerated.
16791         * tests/unictype/test-categ_N.c: Regenerated.
16792         * tests/unictype/test-categ_Nd.c: Regenerated.
16793         * tests/unictype/test-categ_Nl.c: Regenerated.
16794         * tests/unictype/test-categ_No.c: Regenerated.
16795         * tests/unictype/test-categ_P.c: Regenerated.
16796         * tests/unictype/test-categ_Pd.c: Regenerated.
16797         * tests/unictype/test-categ_Pe.c: Regenerated.
16798         * tests/unictype/test-categ_Pf.c: Regenerated.
16799         * tests/unictype/test-categ_Pi.c: Regenerated.
16800         * tests/unictype/test-categ_Po.c: Regenerated.
16801         * tests/unictype/test-categ_Ps.c: Regenerated.
16802         * tests/unictype/test-categ_S.c: Regenerated.
16803         * tests/unictype/test-categ_Sk.c: Regenerated.
16804         * tests/unictype/test-categ_Sm.c: Regenerated.
16805         * tests/unictype/test-categ_So.c: Regenerated.
16806         * tests/unictype/test-ctype_alnum.c: Regenerated.
16807         * tests/unictype/test-ctype_alpha.c: Regenerated.
16808         * tests/unictype/test-ctype_graph.c: Regenerated.
16809         * tests/unictype/test-ctype_lower.c: Regenerated.
16810         * tests/unictype/test-ctype_print.c: Regenerated.
16811         * tests/unictype/test-ctype_punct.c: Regenerated.
16812         * tests/unictype/test-ctype_upper.c: Regenerated.
16813         * tests/unictype/test-decdigit.h: Regenerated.
16814         * tests/unictype/test-digit.h: Regenerated.
16815         * tests/unictype/test-numeric.h: Regenerated.
16816         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16817         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16818         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16819         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16820         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16821         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16822         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16823         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16824         * tests/unictype/test-pr_combining.c: Regenerated.
16825         * tests/unictype/test-pr_dash.c: Regenerated.
16826         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16827         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16828         * tests/unictype/test-pr_deprecated.c: Regenerated.
16829         * tests/unictype/test-pr_diacritic.c: Regenerated.
16830         * tests/unictype/test-pr_extender.c: Regenerated.
16831         * tests/unictype/test-pr_format_control.c: Regenerated.
16832         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16833         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16834         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16835         * tests/unictype/test-pr_id_continue.c: Regenerated.
16836         * tests/unictype/test-pr_id_start.c: Regenerated.
16837         * tests/unictype/test-pr_ideographic.c: Regenerated.
16838         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16839         * tests/unictype/test-pr_lowercase.c: Regenerated.
16840         * tests/unictype/test-pr_math.c: Regenerated.
16841         * tests/unictype/test-pr_numeric.c: Regenerated.
16842         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16843         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16844         Regenerated.
16845         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16846         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16847         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16848         * tests/unictype/test-pr_other_math.c: Regenerated.
16849         * tests/unictype/test-pr_punctuation.c: Regenerated.
16850         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16851         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16852         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16853         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16854         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16855         * tests/unictype/test-pr_uppercase.c: Regenerated.
16856         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16857         * tests/unictype/test-pr_xid_start.c: Regenerated.
16858         * tests/unictype/test-pr_zero_width.c: Regenerated.
16859
16860         Update to Unicode 5.1.0.
16861         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16862         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16863         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16864         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16865         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16866         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16867         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16868         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16869         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16870         (nonspacing_table_ind): Update.
16871         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16872
16873         Update to Unicode 5.1.0.
16874         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16875         code transform.
16876         * lib/uniname/uniname.c (unicode_character_name,
16877         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16878         * lib/uniname/uninames.h: Regenerated.
16879         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16880
16881 2009-02-07  Bruno Haible  <bruno@clisp.org>
16882
16883         Merge gen-ctype and gen-lbrk into a single program.
16884         * lib/gen-uni-tables.c: New file, incorporating
16885         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16886         Add directory prefixes to the names of the generated files.
16887         * lib/unictype/gen-ctype.c: Remove file.
16888         * lib/unilbrk/gen-lbrk.c: Remove file.
16889         * modules/gen-uni-tables: New file.
16890         * modules/unictype/gen-ctype: Remove file.
16891         * modules/unilbrk/gen-lbrk: Remove file.
16892
16893 2009-02-07  Bruno Haible  <bruno@clisp.org>
16894
16895         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16896
16897         New module 'unistr/u32-strcoll'.
16898         * modules/unistr/u32-strcoll: New file.
16899         * lib/unistr/u32-strcoll.c: New file.
16900
16901         New module 'unistr/u16-strcoll'.
16902         * modules/unistr/u16-strcoll: New file.
16903         * lib/unistr/u16-strcoll.c: New file.
16904
16905         New module 'unistr/u8-strcoll'.
16906         * modules/unistr/u8-strcoll: New file.
16907         * lib/unistr/u8-strcoll.c: New file.
16908         * lib/unistr/u-strcoll.h: New file.
16909
16910 2009-02-07  Bruno Haible  <bruno@clisp.org>
16911
16912         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16913         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16914         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16915         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16916         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16917         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16918
16919 2009-02-07  Bruno Haible  <bruno@clisp.org>
16920
16921         Make 64-bit clean.
16922         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16923         output_combclass, output_bidi_category, output_decimal_digit,
16924         output_digit, output_numeric, output_mirror, output_scripts,
16925         output_ident_category): Use proper width specifier in format strings.
16926
16927 2009-02-07  Bruno Haible  <bruno@clisp.org>
16928
16929         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16930         failure behaviour.
16931
16932 2009-02-07  Jim Meyering  <meyering@redhat.com>
16933
16934         regex: avoid compilation failure with upcoming gcc-4.4
16935         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16936         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16937         "... error: integer overflow in preprocessor expression".
16938
16939 2009-02-05  Ben Pfaff  <blp@gnu.org>
16940
16941         Fix link errors on Windows when close module is used.
16942         * modules/close: Add $(LIB_CLOSE) to Link section.
16943         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16944         $(LIB_CLOSE) on Windows.
16945
16946 2009-02-05  Jim Meyering  <meyering@redhat.com>
16947
16948         still avoid unused-parameter warnings, but do it cleanly
16949         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16950         (get_fs_usage): Cast to void instead.
16951         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16952         (dev_from_mount_options, read_file_system_list): Cast to void.
16953         Prompted by Bruno Haible.
16954
16955 2009-02-04  Jim Meyering  <meyering@redhat.com>
16956
16957         fsusage.c: correct copyright year
16958         * lib/fsusage.c: Reflect year in which the change is pushed into
16959
16960         avoid misc. warnings
16961         * lib/fsusage.c (UNUSED_PARAM): Define.
16962         (get_fs_usage): Mark parameter "disk" as unused.
16963         * lib/getugroups.c (getgrent): Use "void" in prototype.
16964         * lib/mountlist.c: Mark unused parameters.
16965         (read_file_system_list): Declare a local with "const".
16966         * lib/nanosleep.c (getnow): Declare static.
16967         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16968
16969         dirfd: set errno upon failure
16970         * lib/dirfd.c: Include <errno.h>.
16971         Set errno to ENOTSUP when returning -1.
16972         * modules/dirfd (Depends-on): Add errno.
16973         Suggested by John Kodis <kodis@comcast.net>.
16974
16975 2009-02-01  Bruno Haible  <bruno@clisp.org>
16976
16977         Don't assume sizeof (long) >= sizeof (void *).
16978         * lib/memcmp.c: Include stdint.h.
16979         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16980         srcp2 to 'const byte *'.
16981         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16982         types to uintptr_t.
16983         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16984         * modules/memcmp (Depends-on): Add stdint.
16985         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16986
16987 2009-01-30  Eric Blake  <ebb9@byu.net>
16988
16989         fix more require-before-expand issues
16990         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16991         expand, AC_PROG_AWK.
16992         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16993
16994 2009-01-28  Eric Blake  <ebb9@byu.net>
16995
16996         version-etc: use consistent URL formatting
16997         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16998         Improve formatting.  Use fputs for string without %.
16999
17000 2009-01-28  Jim Meyering  <meyering@redhat.com>
17001
17002         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17003         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17004         "underquoted definition of NAME" from autoconf-2.59.
17005
17006 2009-01-28  Bruno Haible  <bruno@clisp.org>
17007
17008         * doc/gnulib.texi: Add "Obsolete modules" to index.
17009
17010 2009-01-28  Jim Meyering  <meyering@redhat.com>
17011
17012         useless-if-before-free: recognize more variants
17013         * build-aux/useless-if-before-free: Also recognize e.g.,
17014         if (NULL != p) free (p);
17015
17016 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17017
17018         test-getaddrinfo: skip (don't fail) this test when there's no network
17019         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17020         on the presumption that it means you lack network access.
17021
17022 2009-01-26  Jim Meyering  <meyering@redhat.com>
17023
17024         fflush: avoid warnings on modern systems
17025         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17026         pos and result, into scopes where they're used.
17027
17028 2009-01-26  Eric Blake  <ebb9@byu.net>
17029
17030         Silence warning reintroduced by recent extensions patch.
17031         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17032         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17033         autoconf.
17034
17035         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17036         * m4/00gnulib.m4: New file.
17037         * gnulib-tool (func_get_filelist): Always use it.
17038         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17039         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17040
17041 2009-01-25  Bruno Haible  <bruno@clisp.org>
17042
17043         Make test-quotearg work on MacOS X and AIX.
17044         * tests/test-quotearg.sh: New file.
17045         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17046         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17047         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17048         include <libintl.h>.
17049         (fake_locale): Remove variable.
17050         (gettext, dgettext, dcgettext): Remove functions.
17051         (main): Instead of setting a fake locale, set a real locale. Call
17052         textdomain and bindtextdomain.
17053         * modules/quotearg-tests (Files): Add the new files.
17054         (Depends-on): Add gettext, setenv, unsetenv.
17055         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17056         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17057         Augment TESTS_ENVIRONMENT.
17058
17059 2009-01-25  Bruno Haible  <bruno@clisp.org>
17060
17061         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17062         fr_FR.ISO8859-1 locale on MacOS X.
17063         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17064         ja_JP.eucJP locale on MacOS X.
17065         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17066         zh_CN.GB18030 locale on MacOS X.
17067
17068 2009-01-25  Bruno Haible  <bruno@clisp.org>
17069
17070         Avoid link errors on MacOS X 10.3.
17071         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17072         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17073
17074 2009-01-25  Bruno Haible  <bruno@clisp.org>
17075
17076         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17077         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17078         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17079         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17080         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17081         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17082         posix_spawnattr_init, posix_spawnattr_setsigmask,
17083         posix_spawnattr_setflags, posix_spawnattr_destroy.
17084
17085         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17086         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17087         * modules/execute (Files): Remove m4/posix_spawn.m4.
17088         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17089         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17090         posix_spawnattr_init, posix_spawnattr_setsigmask,
17091         posix_spawnattr_setflags, posix_spawnattr_destroy.
17092
17093 2009-01-25  Bruno Haible  <bruno@clisp.org>
17094
17095         * lib/glthread/threadlib.c: Include <stdlib.h>.
17096
17097 2009-01-25  Bruno Haible  <bruno@clisp.org>
17098
17099         * lib/glthread/threadlib.c (dummy): New declaration.
17100
17101 2009-01-25  Bruno Haible  <bruno@clisp.org>
17102
17103         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17104         multibyte characters also for the GB18030 encoding. Don't crash when
17105         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17106
17107 2009-01-25  Bruno Haible  <bruno@clisp.org>
17108
17109         Avoid redefining 'struct random_data' on OSF/1 5.1.
17110         * lib/stdlib.in.h: Include <random.h> if it exists.
17111         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17112         HAVE_RANDOM_H. Include <random.h> when testing whether
17113         'struct random_data' exists.
17114         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17115
17116 2009-01-25  Bruno Haible  <bruno@clisp.org>
17117
17118         Don't install charset.alias on MacOS X >= 10.3.
17119         * lib/localcharset.c (DARWIN7): New macro.
17120         (get_charset_aliases): Hardcode the result for Darwin7.
17121         * modules/localcharset (install-exec-local): Don't install
17122         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17123
17124 2009-01-25  Bruno Haible  <bruno@clisp.org>
17125
17126         Don't install charset.alias on mingw and Cygwin.
17127         * modules/localcharset (install-exec-local): Don't install
17128         charset.alias on mingw and Cygwin, if the file does not yet exist.
17129         The result for these platforms is hardcoded in localcharset.c.
17130
17131 2009-01-25  Bruno Haible  <bruno@clisp.org>
17132
17133         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17134         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17135         before requiring AC_USE_SYSTEM_EXTENSIONS.
17136
17137 2009-01-25  Jim Meyering  <meyering@redhat.com>
17138
17139         c-strtod: avoid warnings
17140         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17141         "assignment discards qualifiers from pointer target type" warnings.
17142
17143 2009-01-24  Bruno Haible  <bruno@clisp.org>
17144
17145         Add support for non-UTF-8 locales on MacOS X.
17146         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17147         canonical encodings. For Darwin 7 and newer, don't map traditional
17148         encodings to UTF-8.
17149         Reported by Vincent Lefevre <vincent@vinc17.org>
17150         at <http://savannah.gnu.org/bugs/?25235>.
17151
17152 2009-01-24  Bruno Haible  <bruno@clisp.org>
17153
17154         * doc/gnulib.texi (Obsolete modules): New section.
17155         Reported by Mike Frysinger <vapier@gentoo.org>.
17156
17157 2009-01-24  Bruno Haible  <bruno@clisp.org>
17158
17159         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17160         (%.dvi): New rule.
17161
17162 2009-01-24  Bruno Haible  <bruno@clisp.org>
17163
17164         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17165         Reported by Eric Blake.
17166
17167 2009-01-24  Bruno Haible  <bruno@clisp.org>
17168
17169         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17170         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17171         Reported by Gary V. Vaughan <gary@gnu.org>.
17172
17173 2009-01-24  Bruno Haible  <bruno@clisp.org>
17174
17175         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17176
17177 2009-01-23  Bruno Haible  <bruno@clisp.org>
17178
17179         Make c-strtod, c-strtold usable in libraries.
17180         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17181         (C_STRTOD): Call strdup instead of xstrdup.
17182         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17183         * modules/c-strtold (Depends-on): Likewise.
17184         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17185         * NEWS: Mention the change.
17186         Reported by Michael Gold <mgold@ncf.ca>.
17187
17188 2009-01-23  Jim Meyering  <meyering@redhat.com>
17189
17190         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17191         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17192         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17193
17194 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17195
17196         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17197         GNU CoreUtils.
17198         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17199         * modules/version-etc (Description): Update.
17200
17201 2009-01-22  Bruno Haible  <bruno@clisp.org>
17202
17203         Cache the C locale object.
17204         * lib/c-strtod.c (c_locale_cache): New variable.
17205         (c_locale): New function.
17206         (C_STRTOD): Use it, and don't call freelocale.
17207         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17208         Suggested by Paolo Bonzini.
17209
17210 2009-01-21  Bruno Haible  <bruno@clisp.org>
17211
17212         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17213         conditions other than overflow.
17214
17215 2009-01-21  Bruno Haible  <bruno@clisp.org>
17216
17217         * lib/c-strtod.c: Include errno.h.
17218         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17219         value from STRTOD_L and STRTOD.
17220
17221 2009-01-21  Bruno Haible  <bruno@clisp.org>
17222         and Jim Meyering  <meyering@redhat.com>
17223
17224         nanosleep: skip configure test (fail it) for apple universal builds
17225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17226         universal builds, assume that nanosleep does not work.
17227         * modules/nanosleep (Depends-on): Add multiarch.
17228
17229         mktime: skip configure test (fail it) for apple universal builds
17230         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17231         universal builds, assume that mktime does not work.
17232         * modules/mktime (Depends-on): Add multiarch.
17233
17234 2009-01-21  Eric Blake  <ebb9@byu.net>
17235
17236         multiarch: avoid expand-before-require warning
17237         * modules/multiarch (configure.ac): Require, rather than expand,
17238         gl_MULTIARCH.
17239         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17240         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17241         enforce that all clients require it.  Partial reversion of
17242         2008-12-29 patch.
17243
17244         error: avoid expand-before-require warning
17245         * modules/errno (configure.ac): Require, rather than expand,
17246         gl_HEADER_ERRNO_H.
17247         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17248         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17249         enforce that all clients require it.
17250
17251         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17252         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17253         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17254         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17255
17256 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17257
17258         Revert:
17259         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17260
17261         regex: do not depend on obsolete modules.
17262         * modules/regex: Remove memcmp and memmove.
17263
17264 2009-01-20  Bruno Haible  <bruno@clisp.org>
17265
17266         Make the 'link' module link on Windows NT 4.
17267         * lib/link.c (_WIN32_WINNT): Don't define.
17268         (CreateHardLinkFuncType): New type.
17269         (CreateHardLinkFunc, initialized): New variables.
17270         (initialize): New function.
17271         (link): Invoke CreateHardLink indirectly through the function pointer.
17272
17273 2009-01-20  Bruno Haible  <bruno@clisp.org>
17274
17275         Fix compilation failure on mingw.
17276         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17277
17278 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17279
17280         * doc/c-strtod.texi: Mention a couple of restrictions.
17281
17282 2009-01-20  Jim Meyering  <meyering@redhat.com>
17283
17284         gettimeofday: move more declarations out of functions
17285         * lib/gettimeofday.c: Move extern declarations of tzset and
17286         gmtime out of containing functions.  Prompted by Bruno Haible.
17287
17288 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17289
17290         regex: do not depend on obsolete modules.
17291         * modules/regex: Remove memcmp and memmove.
17292
17293 2009-01-19  Bruno Haible  <bruno@clisp.org>
17294
17295         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17296         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17297         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17298         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17299         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17300
17301 2009-01-19  Bruno Haible  <bruno@clisp.org>
17302
17303         * tests/test-link.c: Include <errno.h>.
17304         (main): Exit with code 77 when a hard link cannot be created due to
17305         the file system.
17306         * tests/test-link.sh: Skip test when a hard link cannot be created due
17307         to the file system.
17308         Suggested by Eric Blake.
17309
17310 2009-01-19  Martin Lambers  <marlam@marlam.de>
17311
17312         * modules/link-tests: New file.
17313         * tests/test-link.sh: New file.
17314         * tests/test-link.c: New file.
17315
17316 2009-01-19  Eric Blake  <ebb9@byu.net>
17317
17318         doc: mention another function added in cygwin 1.7.0
17319         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17320         Another new function in cygwin 1.7.
17321
17322 2009-01-19  Bruno Haible  <bruno@clisp.org>
17323
17324         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17325         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17326         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17327         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17328         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17329         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17331         * m4/md4.m4 (gl_MD4): Likewise.
17332         * m4/md5.m4 (gl_MD5): Likewise.
17333         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17334         * m4/sha1.m4 (gl_SHA1): Likewise.
17335         * m4/sha256.m4 (gl_SHA256): Likewise.
17336         * m4/sha512.m4 (gl_SHA512): Likewise.
17337
17338 2009-01-19  Bruno Haible  <bruno@clisp.org>
17339
17340         * modules/uniname/uniname-tests (Depends-on): Add progname.
17341         * tests/uniname/test-uninames.c: Include progname.h.
17342         (main): Call set_program_name.
17343
17344         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17345         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17346         (main): Call set_program_name.
17347
17348         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17349         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17350         (main): Call set_program_name.
17351
17352         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17353         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17354         (main): Call set_program_name.
17355
17356         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17357         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17358         (main): Call set_program_name.
17359
17360         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17361         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17362         (main): Call set_program_name.
17363
17364         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17365         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17366         (main): Call set_program_name.
17367
17368         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17369         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17370         (main): Call set_program_name.
17371
17372         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17373         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17374         (main): Call set_program_name.
17375
17376 2009-01-19  Eric Blake  <ebb9@byu.net>
17377
17378         test-unistd: test previous patch
17379         * tests/test-unistd.c: Test *_FILENO macros.
17380
17381         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17382         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17383         Guarantee a definition.
17384         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17385         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17386         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17387         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17388         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17389         Likewise.
17390         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17391         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17392         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17393         Likewise.
17394         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17395         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17396         (STDERR_FILENO): Likewise.
17397         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17398         (STDERR_FILENO): Likewise.
17399         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17400         (STDERR_FILENO): Likewise.
17401         Reported by Elbert Pol.
17402
17403 2009-01-19  Eric Blake  <ebb9@byu.net>
17404
17405         doc: mention more functions added in cygwin 1.7.0
17406         * doc/posix-functions/abort.texi (abort): Update wording related
17407         to cygwin.
17408         * doc/posix-functions/daylight.texi (daylight): Likewise.
17409         * doc/posix-functions/optarg.texi (optarg): Likewise.
17410         * doc/posix-functions/optarg.texi (opterr): Likewise.
17411         * doc/posix-functions/optarg.texi (optind): Likewise.
17412         * doc/posix-functions/optarg.texi (optopt): Likewise.
17413         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17414         worked in 1.5.x, and was withdrawn in 1.7.
17415         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17416         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17417         cygwin versions.
17418         * doc/posix-functions/perror.texi (perror): Likewise.
17419         * doc/posix-functions/printf.texi (printf): Likewise.
17420         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17421         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17422         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17423         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17424         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17425         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17426         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17427         Likewise.
17428         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17429         Likewise.
17430         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17431         this function.
17432         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17433         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17434         Likewise.
17435         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17436         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17437         * doc/posix-functions/confstr.texi (confstr): Likewise.
17438         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17439         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17440         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17441         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17442         * doc/posix-functions/fputws.texi (fputws): Likewise.
17443         * doc/posix-functions/fwide.texi (fwide): Likewise.
17444         * doc/posix-functions/getwc.texi (getwc): Likewise.
17445         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17446         * doc/posix-functions/putwc.texi (putwc): Likewise.
17447         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17448         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17449         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17450         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17451         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17452         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17453         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17454         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17455         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17456         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17457         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17458
17459 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17460
17461         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17462         * lib/ioctl.c: Include <sys/ioctl.h>.
17463
17464 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17465
17466         * modules/getdate-tests (Depends-on): Add progname.
17467         * tests/test-getdate.c: Use progname module, to avoid link errors
17468         on non-glibc systems.
17469
17470 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17471
17472         * modules/filenamecat-tests (Depends-on): Add progname.
17473         * modules/fstrcmp-tests (Depends-on): Likewise.
17474
17475         * tests/test-filenamecat.c: Use progname module, to avoid link
17476         errors on non-glibc systems.
17477         * tests/test-fstrcmp.c: Likewise.
17478
17479 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17480
17481         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17482         * lib/gettimeofday.c: Move extern declaration out of function.
17483
17484 2009-01-18  Bruno Haible  <bruno@clisp.org>
17485
17486         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17487         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17488         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17489
17490 2009-01-18  Bruno Haible  <bruno@clisp.org>
17491
17492         * lib/strftime.c (MEMPCPY): Remove unused macro.
17493         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17494
17495 2009-01-18  Martin Lambers  <marlam@marlam.de>
17496
17497         New module 'link'.
17498         * lib/unistd.in.h (link): New declaration.
17499         * lib/link.c: New file.
17500         * m4/link.m4: New file.
17501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17502         HAVE_LINK.
17503         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17504         * modules/link: New file.
17505         * doc/posix-functions/link.texi: Mention the new module.
17506
17507 2009-01-18  Bruno Haible  <bruno@clisp.org>
17508
17509         * tests/test-avltree_list.c (main): Call set_program_name.
17510         * tests/test-avltree_oset.c (main): Likewise.
17511         * tests/test-obstack-printf.c: Include progname.h.
17512         (main): Call set_program_name.
17513         * tests/test-quotearg.c: Include progname.h.
17514         (main): Call set_program_name.
17515         * tests/test-xmemdup0.c: Include progname.h.
17516         (main): Call set_program_name.
17517
17518 2009-01-18  Bruno Haible  <bruno@clisp.org>
17519
17520         New module 'alphasort'.
17521         * lib/dirent.in.h (alphasort): New declaration.
17522         * lib/alphasort.c: New file, from glibc with modifications.
17523         * m4/alphasort.m4: New file.
17524         * modules/alphasort: New file.
17525         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17526         HAVE_ALPHASORT.
17527         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17528         HAVE_ALPHASORT.
17529         * doc/posix-functions/alphasort.texi: Mention the new module and the
17530         portability problems.
17531
17532 2009-01-18  Bruno Haible  <bruno@clisp.org>
17533
17534         New module 'scandir'.
17535         * lib/dirent.in.h (scandir): New declaration.
17536         * lib/scandir.c: New file, from glibc with modifications.
17537         * m4/scandir.m4: New file.
17538         * modules/scandir: New file.
17539         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17540         HAVE_SCANDIR.
17541         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17542         HAVE_SCANDIR.
17543         * doc/posix-functions/scandir.texi: Mention the new module and the
17544         portability problems.
17545
17546 2009-01-17  Bruno Haible  <bruno@clisp.org>
17547
17548         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17549         Update documentation.
17550         (func_remove_suffix): Escape all dots in the suffix. Update
17551         documentation.
17552         (func_filter_filelist): Update documentation.
17553         Reported by Ralf Wildenhues.
17554
17555 2009-01-17  Bruno Haible  <bruno@clisp.org>
17556
17557         * modules/dprintf-posix-tests: New file.
17558         * tests/test-dprintf-posix.sh: New file.
17559         * tests/test-dprintf-posix.c: New file.
17560
17561         New modules 'dprintf', 'dprintf-posix'.
17562         * lib/stdio.in.h (dprintf): New declaration.
17563         * lib/dprintf.c: New file.
17564         * m4/dprintf.m4: New file.
17565         * m4/dprintf-posix.m4: New file.
17566         * modules/dprintf: New file.
17567         * modules/dprintf-posix: New file.
17568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17569         HAVE_DPRINTF, REPLACE_DPRINTF.
17570         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17571         HAVE_DPRINTF, REPLACE_DPRINTF.
17572         * doc/posix-functions/dprintf.texi: Mention the new modules.
17573
17574 2009-01-17  Bruno Haible  <bruno@clisp.org>
17575
17576         * modules/vdprintf-posix-tests: New file.
17577         * tests/test-vdprintf-posix.sh: New file.
17578         * tests/test-vdprintf-posix.c: New file.
17579
17580         New modules 'vdprintf', 'vdprintf-posix'.
17581         * lib/stdio.in.h (vdprintf): New declaration.
17582         * lib/vdprintf.c: New file.
17583         * m4/vdprintf.m4: New file.
17584         * m4/vdprintf-posix.m4: New file.
17585         * modules/vdprintf: New file.
17586         * modules/vdprintf-posix: New file.
17587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17588         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17589         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17590         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17591         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17592
17593 2009-01-17  Bruno Haible  <bruno@clisp.org>
17594
17595         Fix replacement of fopen on mingw.
17596         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17597         mingw.
17598
17599 2009-01-17  Bruno Haible  <bruno@clisp.org>
17600
17601         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17602         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17603
17604 2009-01-17  Bruno Haible  <bruno@clisp.org>
17605
17606         Avoid test-fflush2.sh failure on mingw.
17607         * tests/test-fflush2.c: Include binary-io.h.
17608         (main): Put standard input into binary mode.
17609         * modules/fflush-tests (Depends-on): Add binary-io.
17610
17611 2009-01-17  Bruno Haible  <bruno@clisp.org>
17612
17613         * lib/wchar.in.h: In another particular situation, include only the
17614         system's <wchar.h> file.
17615         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17616         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17617         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17618
17619 2009-01-17  Bruno Haible  <bruno@clisp.org>
17620
17621         Support for stripping executables in --enable-relocatable.
17622         * build-aux/install-reloc: Expect one more argument, or an environment
17623         variable RELOC_STRIP_PROG. If set, strip the destination program and
17624         its wrapper.
17625         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17626         RELOC_STRIP_PROG.
17627         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17628         to set RELOCATABLE_STRIP.
17629         * NEWS: Mention the new Makefile requirement.
17630
17631 2009-01-17  Bruno Haible  <bruno@clisp.org>
17632
17633         * build-aux/install-reloc: Remove debugging information left over by
17634         C compiler on MacOS X.
17635
17636 2009-01-17  Bruno Haible  <bruno@clisp.org>
17637
17638         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17639         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17640         _NSGetExecutablePath.
17641
17642 2009-01-16  Jim Meyering  <meyering@redhat.com>
17643
17644         strerror: avoid warnings about discarding "const"
17645         * lib/strerror.c (rpl_strerror): Instead of returning a const
17646         string from each and every "case", use a variable, and add a single
17647         cast after the switch.
17648
17649 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17650
17651         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17652
17653 2009-01-16  Bruno Haible  <bruno@clisp.org>
17654
17655         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17656         array initializer syntax that also works in C++ mode.
17657         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17658
17659 2009-01-16  Jim Meyering  <meyering@redhat.com>
17660
17661         poll: suppress a warning
17662         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17663         to ignore "...unsigned expression < 0 is always false" warnings.
17664
17665 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17666
17667         poll: remove declarations of unused variables
17668         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17669         sockbuf and optlen.
17670
17671 2009-01-15  Bruno Haible  <bruno@clisp.org>
17672
17673         Make fflush-after-ungetc POSIX compliant on BSD systems.
17674         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17675         (clear_ungetc_buffer): Implement also for other systems.
17676         (rpl_fflush): On glibc systems, invoke
17677         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17678         clear_ungetc_buffer after fetching the stream's position, not before.
17679
17680 2009-01-15  Bruno Haible  <bruno@clisp.org>
17681
17682         Make fflush-after-ungetc POSIX compliant on glibc systems.
17683         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17684         after ungetc.
17685         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17686         (rpl_fflush): On glibc systems, simply call the system's fflush
17687         function after clearing the ungetc buffer.
17688         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17689         Instead, lseek only to the end of file, then use the system's fseeko
17690         for the rest. On glibc systems, reset the EOF indicator bit.
17691
17692 2009-01-15  Jim Meyering  <meyering@redhat.com>
17693
17694         openmp.m4: revert quote-adding change, for portability to older autoconf
17695         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17696         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17697         Simon Josefsson noticed the problem when using autoconf-2.61.
17698
17699 2009-01-15  Bruno Haible  <bruno@clisp.org>
17700
17701         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17702         * tests/test-fflush2.c (ASSERT): Always fail.
17703         (main): Add two tests for fflush() after ungetc(), taking into account
17704         the Austin Group's clarification.
17705         Suggested by Eric Blake.
17706
17707 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17708
17709         mktime.m4: remove K&R-style function prototypes
17710         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17711         for the Sun C++ compiler.
17712
17713 2009-01-14  Bruno Haible  <bruno@clisp.org>
17714
17715         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17716         while including <wchar.h>.
17717         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17718         the system's <wchar.h> file.
17719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17720
17721 2009-01-14  Bruno Haible  <bruno@clisp.org>
17722
17723         * m4/csharp.m4: Don't mention gettext on the serial number line.
17724         * m4/csharpexec.m4: Likewise.
17725         * m4/eaccess.m4: Likewise.
17726         * m4/javaexec.m4: Likewise.
17727         * m4/sig_atomic_t.m4: Likewise.
17728         * m4/tmpdir.m4: Likewise.
17729         * m4/intldir.m4: Bump gettext version.
17730         * m4/lib-ld.m4: Likewise.
17731
17732 2009-01-14  Bruno Haible  <bruno@clisp.org>
17733
17734         * lib/progname.c (set_program_name): Add more comments.
17735         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17736
17737 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17738
17739         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17740         were sys/stat.h does not define it.
17741
17742 2009-01-14  Jim Meyering  <meyering@redhat.com>
17743
17744         many *.m4 files: improve m4 quoting
17745         99% of this change was performed by running the following commands:
17746         git ls-files | grep '\.m4$' | xargs perl -pi \
17747           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17748           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17749           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17750           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17751         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17752         The remainder were to add Copyright dates, increment serial numbers,
17753         undo some changes in comments, exclude m4/intl.m4, and add quotes
17754         around the "1" in ",1" where the unusual spacing prohibited the
17755         above regexps from doing the job.  For more details, see
17756         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17757         * m4/acl.m4: Modified.
17758         * m4/afs.m4: Likewise.
17759         * m4/alloca.m4: Likewise.
17760         * m4/argp.m4: Likewise.
17761         * m4/argz.m4: Likewise.
17762         * m4/atexit.m4: Likewise.
17763         * m4/bison-i18n.m4: Likewise.
17764         * m4/bison.m4: Likewise.
17765         * m4/byteswap.m4: Likewise.
17766         * m4/c-stack.m4: Likewise.
17767         * m4/c-strtod.m4: Likewise.
17768         * m4/calloc.m4: Likewise.
17769         * m4/canonicalize-lgpl.m4: Likewise.
17770         * m4/chown.m4: Likewise.
17771         * m4/clock_time.m4: Likewise.
17772         * m4/codeset.m4: Likewise.
17773         * m4/copy-file.m4: Likewise.
17774         * m4/csharp.m4: Likewise.
17775         * m4/csharpcomp.m4: Likewise.
17776         * m4/csharpexec.m4: Likewise.
17777         * m4/d-ino.m4: Likewise.
17778         * m4/d-type.m4: Likewise.
17779         * m4/dirfd.m4: Likewise.
17780         * m4/double-slash-root.m4: Likewise.
17781         * m4/eaccess.m4: Likewise.
17782         * m4/eealloc.m4: Likewise.
17783         * m4/environ.m4: Likewise.
17784         * m4/errno_h.m4: Likewise.
17785         * m4/euidaccess.m4: Likewise.
17786         * m4/execute.m4: Likewise.
17787         * m4/fatal-signal.m4: Likewise.
17788         * m4/fchdir.m4: Likewise.
17789         * m4/fcntl_h.m4: Likewise.
17790         * m4/fileblocks.m4: Likewise.
17791         * m4/filenamecat.m4: Likewise.
17792         * m4/findprog.m4: Likewise.
17793         * m4/flexmember.m4: Likewise.
17794         * m4/fnmatch.m4: Likewise.
17795         * m4/fopen.m4: Likewise.
17796         * m4/fpending.m4: Likewise.
17797         * m4/fprintf-posix.m4: Likewise.
17798         * m4/free.m4: Likewise.
17799         * m4/frexp.m4: Likewise.
17800         * m4/frexpl.m4: Likewise.
17801         * m4/fsusage.m4: Likewise.
17802         * m4/ftruncate.m4: Likewise.
17803         * m4/gc-camellia.m4: Likewise.
17804         * m4/gc-random.m4: Likewise.
17805         * m4/gc.m4: Likewise.
17806         * m4/getaddrinfo.m4: Likewise.
17807         * m4/getcwd-abort-bug.m4: Likewise.
17808         * m4/getcwd-path-max.m4: Likewise.
17809         * m4/getdate.m4: Likewise.
17810         * m4/getdomainname.m4: Likewise.
17811         * m4/getgroups.m4: Likewise.
17812         * m4/gethostname.m4: Likewise.
17813         * m4/gethrxtime.m4: Likewise.
17814         * m4/getline.m4: Likewise.
17815         * m4/getloadavg.m4: Likewise.
17816         * m4/getndelim2.m4: Likewise.
17817         * m4/getpass.m4: Likewise.
17818         * m4/gettext.m4: Likewise.
17819         * m4/gettime.m4: Likewise.
17820         * m4/gettimeofday.m4: Likewise.
17821         * m4/gnulib-common.m4: Likewise.
17822         * m4/group-member.m4: Likewise.
17823         * m4/host-os.m4: Likewise.
17824         * m4/iconv.m4: Likewise.
17825         * m4/iconv_open.m4: Likewise.
17826         * m4/inet_ntop.m4: Likewise.
17827         * m4/inet_pton.m4: Likewise.
17828         * m4/inline.m4: Likewise.
17829         * m4/intldir.m4: Likewise.
17830         * m4/intlmacosx.m4: Likewise.
17831         * m4/intmax.m4: Likewise.
17832         * m4/intmax_t.m4: Likewise.
17833         * m4/inttypes.m4: Likewise.
17834         * m4/inttypes_h.m4: Likewise.
17835         * m4/inttypes-pri.m4: Likewise.
17836         * m4/isapipe.m4: Likewise.
17837         * m4/isnand.m4: Likewise.
17838         * m4/isnanf.m4: Likewise.
17839         * m4/isnanl.m4: Likewise.
17840         * m4/javacomp.m4: Likewise.
17841         * m4/javaexec.m4: Likewise.
17842         * m4/jm-winsz1.m4: Likewise.
17843         * m4/jm-winsz2.m4: Likewise.
17844         * m4/lchown.m4: Likewise.
17845         * m4/lcmessage.m4: Likewise.
17846         * m4/ldexpl.m4: Likewise.
17847         * m4/lib-ld.m4: Likewise.
17848         * m4/lib-link.m4: Likewise.
17849         * m4/libsigsegv.m4: Likewise.
17850         * m4/link-follow.m4: Likewise.
17851         * m4/localcharset.m4: Likewise.
17852         * m4/locale-fr.m4: Likewise.
17853         * m4/locale-ja.m4: Likewise.
17854         * m4/locale-tr.m4: Likewise.
17855         * m4/locale-zh.m4: Likewise.
17856         * m4/lock.m4: Likewise.
17857         * m4/longlong.m4: Likewise.
17858         * m4/ls-mntd-fs.m4: Likewise.
17859         * m4/lstat.m4: Likewise.
17860         * m4/malloc.m4: Likewise.
17861         * m4/mathl.m4: Likewise.
17862         * m4/mbrtowc.m4: Likewise.
17863         * m4/mbstate_t.m4: Likewise.
17864         * m4/mbswidth.m4: Likewise.
17865         * m4/memchr.m4: Likewise.
17866         * m4/memcmp.m4: Likewise.
17867         * m4/memcpy.m4: Likewise.
17868         * m4/memmem.m4: Likewise.
17869         * m4/memmove.m4: Likewise.
17870         * m4/mempcpy.m4: Likewise.
17871         * m4/memrchr.m4: Likewise.
17872         * m4/memset.m4: Likewise.
17873         * m4/minmax.m4: Likewise.
17874         * m4/mkdir-slash.m4: Likewise.
17875         * m4/mkdtemp.m4: Likewise.
17876         * m4/mktime.m4: Likewise.
17877         * m4/mmap-anon.m4: Likewise.
17878         * m4/mountlist.m4: Likewise.
17879         * m4/nanosleep.m4: Likewise.
17880         * m4/nls.m4: Likewise.
17881         * m4/nocrash.m4: Likewise.
17882         * m4/open.m4: Likewise.
17883         * m4/openat.m4: Likewise.
17884         * m4/openmp.m4: Likewise.
17885         * m4/pathmax.m4: Likewise.
17886         * m4/perl.m4: Likewise.
17887         * m4/physmem.m4: Likewise.
17888         * m4/pipe.m4: Likewise.
17889         * m4/po.m4: Likewise.
17890         * m4/poll.m4: Likewise.
17891         * m4/posixtm.m4: Likewise.
17892         * m4/posixver.m4: Likewise.
17893         * m4/printf-frexp.m4: Likewise.
17894         * m4/printf-frexpl.m4: Likewise.
17895         * m4/printf-posix.m4: Likewise.
17896         * m4/printf-posix-rpl.m4: Likewise.
17897         * m4/printf.m4: Likewise.
17898         * m4/progtest.m4: Likewise.
17899         * m4/putenv.m4: Likewise.
17900         * m4/readline.m4: Likewise.
17901         * m4/readlink.m4: Likewise.
17902         * m4/readutmp.m4: Likewise.
17903         * m4/realloc.m4: Likewise.
17904         * m4/regex.m4: Likewise.
17905         * m4/relocatable.m4: Likewise.
17906         * m4/relocatable-lib.m4: Likewise.
17907         * m4/rename-dest-slash.m4: Likewise.
17908         * m4/rename.m4: Likewise.
17909         * m4/rmdir-errno.m4: Likewise.
17910         * m4/rmdir.m4: Likewise.
17911         * m4/roundf.m4: Likewise.
17912         * m4/roundl.m4: Likewise.
17913         * m4/rpmatch.m4: Likewise.
17914         * m4/save-cwd.m4: Likewise.
17915         * m4/selinux-selinux-h.m4: Likewise.
17916         * m4/setenv.m4: Likewise.
17917         * m4/settime.m4: Likewise.
17918         * m4/sig2str.m4: Likewise.
17919         * m4/sig_atomic_t.m4: Likewise.
17920         * m4/signalblocking.m4: Likewise.
17921         * m4/signbit.m4: Likewise.
17922         * m4/sigpipe.m4: Likewise.
17923         * m4/sockets.m4: Likewise.
17924         * m4/sockpfaf.m4: Likewise.
17925         * m4/st_dm_mode.m4: Likewise.
17926         * m4/stat-time.m4: Likewise.
17927         * m4/stdbool.m4: Likewise.
17928         * m4/stdint.m4: Likewise.
17929         * m4/stdint_h.m4: Likewise.
17930         * m4/stpcpy.m4: Likewise.
17931         * m4/stpncpy.m4: Likewise.
17932         * m4/strcase.m4: Likewise.
17933         * m4/strchrnul.m4: Likewise.
17934         * m4/strcspn.m4: Likewise.
17935         * m4/strdup.m4: Likewise.
17936         * m4/strftime.m4: Likewise.
17937         * m4/strndup.m4: Likewise.
17938         * m4/strnlen.m4: Likewise.
17939         * m4/strpbrk.m4: Likewise.
17940         * m4/strptime.m4: Likewise.
17941         * m4/strsep.m4: Likewise.
17942         * m4/strtod.m4: Likewise.
17943         * m4/strtoimax.m4: Likewise.
17944         * m4/strtok_r.m4: Likewise.
17945         * m4/strtol.m4: Likewise.
17946         * m4/strtoll.m4: Likewise.
17947         * m4/strtoul.m4: Likewise.
17948         * m4/strtoull.m4: Likewise.
17949         * m4/strtoumax.m4: Likewise.
17950         * m4/strverscmp.m4: Likewise.
17951         * m4/threadlib.m4: Likewise.
17952         * m4/timegm.m4: Likewise.
17953         * m4/tm_gmtoff.m4: Likewise.
17954         * m4/tmpdir.m4: Likewise.
17955         * m4/tmpfile.m4: Likewise.
17956         * m4/tzset.m4: Likewise.
17957         * m4/uintmax_t.m4: Likewise.
17958         * m4/unlinkdir.m4: Likewise.
17959         * m4/unlocked-io.m4: Likewise.
17960         * m4/uptime.m4: Likewise.
17961         * m4/userspec.m4: Likewise.
17962         * m4/utimbuf.m4: Likewise.
17963         * m4/utime.m4: Likewise.
17964         * m4/utimes-null.m4: Likewise.
17965         * m4/utimes.m4: Likewise.
17966         * m4/vararrays.m4: Likewise.
17967         * m4/vasnprintf.m4: Likewise.
17968         * m4/vfprintf-posix.m4: Likewise.
17969         * m4/vprintf-posix.m4: Likewise.
17970         * m4/wait-process.m4: Likewise.
17971         * m4/wchar_t.m4: Likewise.
17972         * m4/wint_t.m4: Likewise.
17973         * m4/write-any-file.m4: Likewise.
17974         * m4/yield.m4: Likewise.
17975
17976 2009-01-13  Bruno Haible  <bruno@clisp.org>
17977
17978         Avoid test-copy-file.sh failures when ACL support insufficient.
17979         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17980         TESTS_ENVIRONMENT.
17981         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17982         Reported by Jim Meyering.
17983
17984 2009-01-13  Bruno Haible  <bruno@clisp.org>
17985
17986         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17987         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17988         * modules/unistdio/u8-printf-parse (Files): Likewise.
17989         * modules/unistdio/u32-printf-parse (Files): Likewise.
17990         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17991
17992 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17993
17994         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17995         and m4/inttypes_h.m4 too.
17996
17997 2009-01-12  Eric Blake  <ebb9@byu.net>
17998
17999         tests: IRIX 6.2 cc can't compile -0.0 into .data
18000         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18001         rather than at compile-time.
18002         * tests/test-floorl.c (minus_zero): Likewise.
18003         * tests/test-frexpl.c (minus_zero): Likewise.
18004         * tests/test-isnan.c (minus_zerol): Likewise.
18005         * tests/test-isnanl.h (minus_zero): Likewise.
18006         * tests/test-ldexpl.c (minus_zero): Likewise.
18007         * tests/test-roundl.c (minus_zero): Likewise.
18008         * tests/test-signbit.c (minus_zerol): Likewise.
18009         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18010         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18011         * tests/test-truncl.c (minus_zero): Likewise.
18012         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18013         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18014         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18015
18016 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18017
18018         regex: fix glibc bug 9697
18019         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18020         handling.
18021
18022 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18023
18024         regex: fix glibc bug 697
18025         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18026         being NULL also if there are no backreferences.
18027
18028 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18029
18030         regex: merge glibc changes
18031         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18032         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18033         re_string_skip_chars, re_string_reconstruct): Likewise.
18034         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18035
18036 2009-01-07  Jim Meyering  <meyering@redhat.com>
18037
18038         poll: filter through cppi
18039         * lib/poll.c: Indent cpp directives to reflect nesting.
18040
18041 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18042
18043         poll: don't return uninitialized
18044         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18045
18046 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18047
18048         avoid compile failure on AIX 6.1
18049         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18050         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18051
18052 2009-01-04  Jim Meyering  <meyering@redhat.com>
18053
18054         remove duplicate inclusion of <stdio.h>
18055         * tests/test-fprintf-posix.c: Likewise.
18056         * tests/test-printf-posix.c: Likewise.
18057         * tests/test-snprintf-posix.c: Likewise.
18058         * tests/test-sprintf-posix.c: Likewise.
18059         * tests/test-vasprintf-posix.c: Likewise.
18060         * tests/test-vfprintf-posix.c: Likewise.
18061         * tests/test-vprintf-posix.c: Likewise.
18062         * tests/test-vsnprintf-posix.c: Likewise.
18063         * tests/test-vsprintf-posix.c: Likewise.
18064
18065 2009-01-03  Jim Meyering  <meyering@redhat.com>
18066
18067         gnulib-tool: fix sed-based filtering
18068         * gnulib-tool (func_filter_filelist): Remove extra backslash
18069         in sed_fff_filter definition.
18070
18071 2009-01-02  Jim Meyering  <meyering@redhat.com>
18072
18073         strftime: avoid compilation failure on Solaris 2.6
18074         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18075         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18076         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18077         be available.  Reported by Tom G. Christensen.  Details in
18078         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18079
18080 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18081             Bruno Haible  <bruno@clisp.org>
18082
18083         Speed up gnulib-tool by doing more string processing through shell
18084         built-ins.
18085         * gnulib-tool (fast_func_append): New variable.
18086         (func_remove_prefix, func_remove_suffix): New functions.
18087         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18088         (func_filter_filelist): New function.
18089         (func_get_dependencies): Use func_remove_suffix instead of sed.
18090         (func_get_automake_snippet): Use func_filter_filelist instead of a
18091         subshell and sed invocation.
18092
18093 2009-01-01  Bruno Haible  <bruno@clisp.org>
18094
18095         Fix a security bug.
18096         * gnulib-tool (func_import, import, update): Don't allow the characters
18097         '"', '$', '`', '\' in macro arguments that become part of commands that
18098         are evaluated.
18099
18100 2009-01-01  Bruno Haible  <bruno@clisp.org>
18101
18102         * gnulib-tool (func_reset_sigpipe): Add more comments.
18103
18104 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18105
18106         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18107         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18108         already know the answer.
18109
18110 2009-01-01  Jim Meyering  <meyering@redhat.com>
18111
18112         * lib/version-etc.c (version_etc_va): Update copyright year.
18113
18114 2008-12-30  Bruno Haible  <bruno@clisp.org>
18115
18116         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18117         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18118         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18119
18120 2008-12-29  Eric Blake  <ebb9@byu.net>
18121
18122         multiarch: avoid autoconf AC_REQUIRE bug
18123         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18124         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18125         2.63 and older.
18126         Reported by Bruno Haible, and analyzed in
18127         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18128
18129 2008-12-29  Bruno Haible  <bruno@clisp.org>
18130
18131         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18132         files in subdirectories correctly.
18133         Reported by Ralf Wildenhues.
18134
18135 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18136
18137         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18138         rather than 'join FILE -', for Solaris join.
18139
18140 2008-12-29  Bruno Haible  <bruno@clisp.org>
18141
18142         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18143         quoting.
18144         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18145         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18146         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18147         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18148         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18149         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18150         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18151         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18152         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18153         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18154         * m4/nls.m4 (AM_NLS): Likewise.
18155         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18156         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18157         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18158         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18159         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18160         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18161         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18162         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18163         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18164         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18165         * m4/xsize.m4 (gl_XSIZE): Likewise.
18166         Suggested by Jim Meyering.
18167
18168 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18169
18170         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18171         * lib/parse-duration.c: use a switch instead of cascading if's.
18172
18173 2008-12-29  Eric Blake  <ebb9@byu.net>
18174
18175         wchar.h: supply WEOF on Irix 5.3
18176         * lib/wchar.in.h (wint_t): Also supply WEOF.
18177         * lib/wctype.in.h (wint_t): Likewise.
18178         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18179         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18180         Reported by Tom G. Christensen.
18181
18182 2008-12-26  Bruno Haible  <bruno@clisp.org>
18183
18184         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18185         i486, i586, i686.
18186
18187 2008-12-26  Bruno Haible  <bruno@clisp.org>
18188
18189         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18190
18191 2008-12-26  Bruno Haible  <bruno@clisp.org>
18192
18193         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18194         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18195         not __STDC_CONSTANT_MACROS.
18196         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18197
18198 2008-12-25  Bruno Haible  <bruno@clisp.org>
18199
18200         Add support for universal builds to vasnprintf.
18201         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18202         universal builds, guess no.
18203         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18204         * modules/vasprintf-posix (Depends-on): Likewise.
18205         * modules/fprintf-posix (Depends-on): Likewise.
18206         * modules/vfprintf-posix (Depends-on): Likewise.
18207         * modules/snprintf-posix (Depends-on): Likewise.
18208         * modules/vsnprintf-posix (Depends-on): Likewise.
18209         * modules/sprintf-posix (Depends-on): Likewise.
18210         * modules/vsprintf-posix (Depends-on): Likewise.
18211         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18212         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18213         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18214         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18215         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18216         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18217         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18218
18219         Add support for universal builds to <inttypes.h>.
18220         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18221         _SCNu64_PREFIX): In Apple
18222         universal builds, define directly, using _LP64.
18223         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18224         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18225         * modules/inttypes (Depends-on): Add multiarch.
18226         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18227
18228         Add support for universal builds to <stdint.h>.
18229         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18230         universal builds, define directly, using _LP64.
18231         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18232         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18233         and size_t.
18234         * modules/stdint (Depends-on): Add multiarch.
18235         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18236
18237         New module 'multiarch'.
18238         * modules/multiarch: New file.
18239         * m4/multiarch.m4: New file.
18240
18241 2008-12-25  Bruno Haible  <bruno@clisp.org>
18242
18243         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18244
18245 2008-12-25  Bruno Haible  <bruno@clisp.org>
18246
18247         * modules/btowc (License): Relicense under LGPLv2+.
18248         * modules/mbsinit (License): Likewise.
18249         * modules/mbrtowc (License): Likewise.
18250         * modules/wcrtomb (License): Likewise.
18251         * modules/streq (License): Likewise.
18252         Reported by David Lutterkort <lutter@redhat.com>.
18253
18254 2008-12-23  Bruno Haible  <bruno@clisp.org>
18255
18256         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18257
18258 2008-12-23  Bruno Haible  <bruno@clisp.org>
18259
18260         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18262         GETADDRINFO_LIB, not in LIBS.
18263         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18264         * modules/canon-host (Link): Likewise.
18265         * NEWS: Mention the change.
18266         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18267         GETADDRINFO_LIB.
18268
18269 2008-12-22  Bruno Haible  <bruno@clisp.org>
18270
18271         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18272         * doc/posix-functions/iswalpha_l.texi: Likewise.
18273         * doc/posix-functions/iswblank_l.texi: Likewise.
18274         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18275         * doc/posix-functions/iswctype_l.texi: Likewise.
18276         * doc/posix-functions/iswdigit_l.texi: Likewise.
18277         * doc/posix-functions/iswgraph_l.texi: Likewise.
18278         * doc/posix-functions/iswlower_l.texi: Likewise.
18279         * doc/posix-functions/iswprint_l.texi: Likewise.
18280         * doc/posix-functions/iswpunct_l.texi: Likewise.
18281         * doc/posix-functions/iswspace_l.texi: Likewise.
18282         * doc/posix-functions/iswupper_l.texi: Likewise.
18283         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18284         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18285         * doc/posix-functions/open_wmemstream.texi: Likewise.
18286         * doc/posix-functions/swscanf.texi: Likewise.
18287         * doc/posix-functions/towctrans_l.texi: Likewise.
18288         * doc/posix-functions/towlower.texi: Likewise.
18289         * doc/posix-functions/towlower_l.texi: Likewise.
18290         * doc/posix-functions/towupper.texi: Likewise.
18291         * doc/posix-functions/towupper_l.texi: Likewise.
18292         * doc/posix-functions/vfwprintf.texi: Likewise.
18293         * doc/posix-functions/vfwscanf.texi: Likewise.
18294         * doc/posix-functions/vswscanf.texi: Likewise.
18295         * doc/posix-functions/vwprintf.texi: Likewise.
18296         * doc/posix-functions/vwscanf.texi: Likewise.
18297         * doc/posix-functions/wcpcpy.texi: Likewise.
18298         * doc/posix-functions/wcpncpy.texi: Likewise.
18299         * doc/posix-functions/wcscasecmp.texi: Likewise.
18300         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18301         * doc/posix-functions/wcscoll_l.texi: Likewise.
18302         * doc/posix-functions/wcsdup.texi: Likewise.
18303         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18304         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18305         * doc/posix-functions/wcsnlen.texi: Likewise.
18306         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18307         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18308         * doc/posix-functions/wctrans_l.texi: Likewise.
18309         * doc/posix-functions/wctype_l.texi: Likewise.
18310         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18311         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18312         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18313         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18314         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18315         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18316         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18317         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18318         * doc/glibc-functions/wcschrnul.texi: Likewise.
18319         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18320         * doc/glibc-functions/wcstod_l.texi: Likewise.
18321         * doc/glibc-functions/wcstof_l.texi: Likewise.
18322         * doc/glibc-functions/wcstol_l.texi: Likewise.
18323         * doc/glibc-functions/wcstold_l.texi: Likewise.
18324         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18325         * doc/glibc-functions/wcstoq.texi: Likewise.
18326         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18327         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18328         * doc/glibc-functions/wcstouq.texi: Likewise.
18329         * doc/glibc-functions/wmempcpy.texi: Likewise.
18330
18331 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18332             Eric Blake  <ebb9@byu.net>
18333             Paolo Bonzini  <bonzini@gnu.org>
18334             Bruno Haible  <bruno@clisp.org>
18335
18336         Make c-stack work on Haiku.
18337         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18338         (c_stack_action): Use SA_ONSTACK flag.
18339
18340 2008-12-22  Bruno Haible  <bruno@clisp.org>
18341
18342         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18343
18344 2008-12-22  Bruno Haible  <bruno@clisp.org>
18345
18346         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18347         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18348         being overridden.
18349         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18350         New macros.
18351         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18353         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18354         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18355
18356 2008-12-22  Bruno Haible  <bruno@clisp.org>
18357
18358         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18359         from test code.
18360
18361 2008-12-22  Eric Blake  <ebb9@byu.net>
18362
18363         Avoid gcc warnings on cygwin.
18364         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18365         Avoid unused variable.
18366         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18367         Likewise.
18368
18369 2008-12-22  Bruno Haible  <bruno@clisp.org>
18370
18371         Remove HAVE_MBRTOWC conditionals.
18372         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18373         (mbscasecmp): Assume mbrtowc function.
18374         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18375         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18376         * lib/mbschr.c: Include mbuiter.h unconditionally.
18377         (mbschr): Assume mbrtowc function.
18378         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18379         (mbscspn): Assume mbrtowc function.
18380         * lib/mbslen.c: Include mbuiter.h unconditionally.
18381         (mbslen): Assume mbrtowc function.
18382         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18383         (mbsncasecmp): Assume mbrtowc function.
18384         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18385         (mbsnlen): Assume mbrtowc function.
18386         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18387         (mbspbrk): Assume mbrtowc function.
18388         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18389         (mbspcasecmp): Assume mbrtowc function.
18390         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18391         (mbsrchr): Assume mbrtowc function.
18392         * lib/mbssep.c: Include mbuiter.h unconditionally.
18393         (mbssep): Assume mbrtowc function.
18394         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18395         (mbsspn): Assume mbrtowc function.
18396         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18397         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18398         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18399         (mbstok_r): Assume mbrtowc function.
18400         * lib/propername.c: Include mbuiter.h unconditionally.
18401         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18402         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18403         (trim2): Assume mbrtowc function.
18404         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18405         (mbsnwidth): Assume mbrtowc function.
18406         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18407         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18408         fallback definitions.
18409         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18410
18411 2008-12-22  Bruno Haible  <bruno@clisp.org>
18412
18413         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18414
18415 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18416
18417         * modules/regex: Request emulations for the mb*/wc* functions we need.
18418         * m4/regex.m4: Don't look for those functions here.
18419         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18420
18421 2008-12-22  Bruno Haible  <bruno@clisp.org>
18422
18423         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18424
18425 2008-12-21  Bruno Haible  <bruno@clisp.org>
18426
18427         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18428         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18429         (Include): Remove conditionalization.
18430         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18431         (Include): Remove conditionalization.
18432         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18433         (Include): Remove conditionalization.
18434         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18435         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18436         * NEWS: Mention the change.
18437         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18438         via Sergey Poznyakoff <gray@gnu.org.ua>.
18439
18440 2008-12-21  Bruno Haible  <bruno@clisp.org>
18441
18442         * MODULES.html.sh (Extended multibyte and wide character utilities
18443         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18444         wcrtomb, wcsrtombs.
18445         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18446         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18447         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18448         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18449
18450 2008-12-21  Bruno Haible  <bruno@clisp.org>
18451
18452         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18453
18454 2008-12-21  Bruno Haible  <bruno@clisp.org>
18455
18456         * modules/wcsnrtombs-tests: New file.
18457         * tests/test-wcsnrtombs1.sh: New file.
18458         * tests/test-wcsnrtombs2.sh: New file.
18459         * tests/test-wcsnrtombs3.sh: New file.
18460         * tests/test-wcsnrtombs4.sh: New file.
18461         * tests/test-wcsnrtombs.c: New file.
18462
18463         New module 'wcsnrtombs'.
18464         * lib/wchar.in.h (wcsnrtombs): New declaration.
18465         * lib/wcsnrtombs.c: New file.
18466         * lib/wcsrtombs-state.c: New file.
18467         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18468         (internal_state): Remove variable.
18469         * m4/wcsnrtombs.m4: New file.
18470         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18471         compilation units.
18472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18473         HAVE_WCSNRTOMBS.
18474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18475         HAVE_WCSNRTOMBS.
18476         * modules/wcsnrtombs: New file.
18477         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18478         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18479
18480 2008-12-21  Bruno Haible  <bruno@clisp.org>
18481
18482         * modules/wcsrtombs-tests: New file.
18483         * tests/test-wcsrtombs1.sh: New file.
18484         * tests/test-wcsrtombs2.sh: New file.
18485         * tests/test-wcsrtombs3.sh: New file.
18486         * tests/test-wcsrtombs4.sh: New file.
18487         * tests/test-wcsrtombs.c: New file.
18488
18489         New module 'wcsrtombs'.
18490         * lib/wchar.in.h (wcsrtombs): New declaration.
18491         * lib/wcsrtombs.c: New file.
18492         * m4/wcsrtombs.m4: New file.
18493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18494         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18496         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18497         * modules/wcsrtombs: New file.
18498         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18499         bugs.
18500
18501 2008-12-21  Bruno Haible  <bruno@clisp.org>
18502
18503         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18504         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18505         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18506         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18507         if not correct.
18508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18509         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18510         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18511         m4/locale-zh.m4, m4/codeset.m4.
18512         * doc/posix-functions/wcrtomb.texi: Document the bug.
18513
18514 2008-12-21  Bruno Haible  <bruno@clisp.org>
18515
18516         Work around a btowc() bug on IRIX 6.5.
18517         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18518         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18519         REPLACE_WTOBC if not.
18520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18521         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18522         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18523
18524 2008-12-21  Bruno Haible  <bruno@clisp.org>
18525
18526         * modules/wcrtomb-tests: New file.
18527         * tests/test-wcrtomb.sh: New file.
18528         * tests/test-wcrtomb.c: New file.
18529
18530         New module 'wcrtomb'.
18531         * lib/wchar.in.h (wcrtomb): New declaration.
18532         * lib/wcrtomb.c: New file.
18533         * m4/wcrtomb.m4: New file.
18534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18535         HAVE_WCRTOMB.
18536         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18537         HAVE_WCRTOMB.
18538         * modules/wcrtomb: New file.
18539         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18540
18541 2008-12-21  Bruno Haible  <bruno@clisp.org>
18542
18543         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18544         * modules/mbsrtowcs (Files): Likewise.
18545         * modules/wctob (Files): Likewise.
18546         * modules/c-strcase-tests (Files): Likewise.
18547         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18548         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18549         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18550         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18551         * modules/vasnprintf-posix-tests (Files): Likewise.
18552
18553 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18554
18555         gitlog-to-changelog: pass all command-line arguments to git-log
18556         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18557         it is sometimes convenient to filter the commits in various ways.
18558         gitlog-to-changelog only allows --since to specify a start date,
18559         but git-log itself supports many other filtering mechanisms.
18560         At the moment, I want to filter by branch name.  Rather than
18561         adding a --branch option to gitlog-to-changelog, it seems more
18562         flexible to simply pass all options directly to git-log and let
18563         git do the work.  Notice that this effectively makes --since a
18564         redundant option for gitlog-to-changelog, but removing it would
18565         require current usage to change since calls would then require
18566         an additional '--'.
18567
18568 2008-12-21  Bruno Haible  <bruno@clisp.org>
18569
18570         * modules/mbsnrtowcs-tests: New file.
18571         * tests/test-mbsnrtowcs1.sh: New file.
18572         * tests/test-mbsnrtowcs2.sh: New file.
18573         * tests/test-mbsnrtowcs3.sh: New file.
18574         * tests/test-mbsnrtowcs4.sh: New file.
18575         * tests/test-mbsnrtowcs.c: New file.
18576
18577         New module 'mbsnrtowcs'.
18578         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18579         * lib/mbsnrtowcs.c: New file.
18580         * lib/mbsrtowcs-state.c: New file.
18581         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18582         (internal_state): Remove variable.
18583         * m4/mbsnrtowcs.m4: New file.
18584         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18585         compilation units.
18586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18587         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18588         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18589         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18590         * modules/mbsnrtowcs: New file.
18591         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18592         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18593         portability problem.
18594
18595 2008-12-21  Bruno Haible  <bruno@clisp.org>
18596
18597         Work around mbsrtowcs bug.
18598         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18599         (gl_FUNC_MBSRTOWCS): Invoke it.
18600         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18601         m4/locale-zh.m4.
18602         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18603
18604 2008-12-21  Bruno Haible  <bruno@clisp.org>
18605
18606         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18607
18608 2008-12-21  Bruno Haible  <bruno@clisp.org>
18609
18610         Update doc for AIX.
18611         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18612         16-bit wchar_t type.
18613         * doc/posix-functions/btowc.texi: Likewise.
18614         * doc/posix-functions/fgetwc.texi: Likewise.
18615         * doc/posix-functions/fgetws.texi: Likewise.
18616         * doc/posix-functions/fputwc.texi: Likewise.
18617         * doc/posix-functions/fputws.texi: Likewise.
18618         * doc/posix-functions/fwide.texi: Likewise.
18619         * doc/posix-functions/fwprintf.texi: Likewise.
18620         * doc/posix-functions/fwscanf.texi: Likewise.
18621         * doc/posix-functions/getwchar.texi: Likewise.
18622         * doc/posix-functions/getwc.texi: Likewise.
18623         * doc/posix-functions/iswalnum.texi: Likewise.
18624         * doc/posix-functions/iswalpha.texi: Likewise.
18625         * doc/posix-functions/iswblank.texi: Likewise.
18626         * doc/posix-functions/iswcntrl.texi: Likewise.
18627         * doc/posix-functions/iswctype.texi: Likewise.
18628         * doc/posix-functions/iswdigit.texi: Likewise.
18629         * doc/posix-functions/iswgraph.texi: Likewise.
18630         * doc/posix-functions/iswlower.texi: Likewise.
18631         * doc/posix-functions/iswprint.texi: Likewise.
18632         * doc/posix-functions/iswpunct.texi: Likewise.
18633         * doc/posix-functions/iswspace.texi: Likewise.
18634         * doc/posix-functions/iswupper.texi: Likewise.
18635         * doc/posix-functions/iswxdigit.texi: Likewise.
18636         * doc/posix-functions/mbrtowc.texi: Likewise.
18637         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18638         * doc/posix-functions/mbstowcs.texi: Likewise.
18639         * doc/posix-functions/mbtowc.texi: Likewise.
18640         * doc/posix-functions/putwchar.texi: Likewise.
18641         * doc/posix-functions/putwc.texi: Likewise.
18642         * doc/posix-functions/swprintf.texi: Likewise.
18643         * doc/posix-functions/tolower.texi: Likewise.
18644         * doc/posix-functions/toupper.texi: Likewise.
18645         * doc/posix-functions/towctrans.texi: Likewise.
18646         * doc/posix-functions/ungetwc.texi: Likewise.
18647         * doc/posix-functions/vswprintf.texi: Likewise.
18648         * doc/posix-functions/wcrtomb.texi: Likewise.
18649         * doc/posix-functions/wcscat.texi: Likewise.
18650         * doc/posix-functions/wcschr.texi: Likewise.
18651         * doc/posix-functions/wcscmp.texi: Likewise.
18652         * doc/posix-functions/wcscoll.texi: Likewise.
18653         * doc/posix-functions/wcscpy.texi: Likewise.
18654         * doc/posix-functions/wcscspn.texi: Likewise.
18655         * doc/posix-functions/wcsftime.texi: Likewise.
18656         * doc/posix-functions/wcslen.texi: Likewise.
18657         * doc/posix-functions/wcsncat.texi: Likewise.
18658         * doc/posix-functions/wcsncmp.texi: Likewise.
18659         * doc/posix-functions/wcsncpy.texi: Likewise.
18660         * doc/posix-functions/wcspbrk.texi: Likewise.
18661         * doc/posix-functions/wcsrchr.texi: Likewise.
18662         * doc/posix-functions/wcsrtombs.texi: Likewise.
18663         * doc/posix-functions/wcsspn.texi: Likewise.
18664         * doc/posix-functions/wcsstr.texi: Likewise.
18665         * doc/posix-functions/wcstod.texi: Likewise.
18666         * doc/posix-functions/wcstof.texi: Likewise.
18667         * doc/posix-functions/wcstoimax.texi: Likewise.
18668         * doc/posix-functions/wcstok.texi: Likewise.
18669         * doc/posix-functions/wcstold.texi: Likewise.
18670         * doc/posix-functions/wcstoll.texi: Likewise.
18671         * doc/posix-functions/wcstol.texi: Likewise.
18672         * doc/posix-functions/wcstombs.texi: Likewise.
18673         * doc/posix-functions/wcstoull.texi: Likewise.
18674         * doc/posix-functions/wcstoul.texi: Likewise.
18675         * doc/posix-functions/wcstoumax.texi: Likewise.
18676         * doc/posix-functions/wcswidth.texi: Likewise.
18677         * doc/posix-functions/wcsxfrm.texi: Likewise.
18678         * doc/posix-functions/wctob.texi: Likewise.
18679         * doc/posix-functions/wctomb.texi: Likewise.
18680         * doc/posix-functions/wctrans.texi: Likewise.
18681         * doc/posix-functions/wctype.texi: Likewise.
18682         * doc/posix-functions/wcwidth.texi: Likewise.
18683         * doc/posix-functions/wmemchr.texi: Likewise.
18684         * doc/posix-functions/wmemcmp.texi: Likewise.
18685         * doc/posix-functions/wmemcpy.texi: Likewise.
18686         * doc/posix-functions/wmemmove.texi: Likewise.
18687         * doc/posix-functions/wmemset.texi: Likewise.
18688         * doc/posix-functions/wprintf.texi: Likewise.
18689         * doc/posix-functions/wscanf.texi: Likewise.
18690
18691 2008-12-21  Bruno Haible  <bruno@clisp.org>
18692
18693         Update doc for HP-UX 11.11.
18694         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18695         in HP-UX version 11.00, not in all versions of HP-UX 11.
18696         * doc/posix-functions/fwide.texi: Likewise.
18697         * doc/posix-functions/fwprintf.texi: Likewise.
18698         * doc/posix-functions/fwscanf.texi: Likewise.
18699         * doc/posix-functions/inet_ntop.texi: Likewise.
18700         * doc/posix-functions/inet_pton.texi: Likewise.
18701         * doc/posix-functions/mbrlen.texi: Likewise.
18702         * doc/posix-functions/mbrtowc.texi: Likewise.
18703         * doc/posix-functions/mbsinit.texi: Likewise.
18704         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18705         * doc/posix-functions/swprintf.texi: Likewise.
18706         * doc/posix-functions/swscanf.texi: Likewise.
18707         * doc/posix-functions/towctrans.texi: Likewise.
18708         * doc/posix-functions/vfwprintf.texi: Likewise.
18709         * doc/posix-functions/vswprintf.texi: Likewise.
18710         * doc/posix-functions/vwprintf.texi: Likewise.
18711         * doc/posix-functions/wcrtomb.texi: Likewise.
18712         * doc/posix-functions/wcsrtombs.texi: Likewise.
18713         * doc/posix-functions/wcsstr.texi: Likewise.
18714         * doc/posix-functions/wctob.texi: Likewise.
18715         * doc/posix-functions/wctrans.texi: Likewise.
18716         * doc/posix-functions/wmemchr.texi: Likewise.
18717         * doc/posix-functions/wmemcmp.texi: Likewise.
18718         * doc/posix-functions/wmemcpy.texi: Likewise.
18719         * doc/posix-functions/wmemmove.texi: Likewise.
18720         * doc/posix-functions/wmemset.texi: Likewise.
18721         * doc/posix-functions/wprintf.texi: Likewise.
18722         * doc/posix-functions/wscanf.texi: Likewise.
18723
18724 2008-12-21  Bruno Haible  <bruno@clisp.org>
18725
18726         Work around a portability problem.
18727         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18728         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18729
18730 2008-12-20  Bruno Haible  <bruno@clisp.org>
18731
18732         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18733         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18734         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18736         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18737
18738         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18739         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18740         set.
18741         (GNULIB_defined_mbstate_t): New macro.
18742         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18743         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18744         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18745         reuses the system's mbrtowc function but works around the bugs.
18746         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18747         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18748         macros.
18749         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18750         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18751         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18752         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18753         REPLACE_MBSINIT if mbsinit needs to be overridden.
18754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18755         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18756         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18757         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18758         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18759         m4/locale-zh.m4.
18760         (Depends): Add mbsinit.
18761         * modules/mbsinit (Depends): Add mbrtowc.
18762         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18763
18764 2008-12-20  Bruno Haible  <bruno@clisp.org>
18765
18766         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18767         so that there are no conversion errors on AIX.
18768         * tests/test-mbsrtowcs.c (main): LIkewise.
18769
18770 2008-12-20  Bruno Haible  <bruno@clisp.org>
18771
18772         Work around wctob bug on Solaris <= 9.
18773         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18774         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18775         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18776         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18777         * modules/wctob (Files): Add m4/locale-fr.m4.
18778         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18779
18780 2008-12-20  Bruno Haible  <bruno@clisp.org>
18781
18782         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18783         /dev/null.
18784         * tests/test-select-in.sh: Likewise.
18785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18786
18787 2008-12-20  Bruno Haible  <bruno@clisp.org>
18788
18789         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18790         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18791         Cygwin 1.5.x.
18792
18793 2008-12-20  Bruno Haible  <bruno@clisp.org>
18794
18795         Ensure mbstate_t is defined on HP-UX 11.11.
18796         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18797         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18798         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18799         AC_USE_SYSTEM_EXTENSIONS.
18800         * modules/fnmatch (Depends-on): Add extensions.
18801         * modules/mbrlen (Depends-on): Likewise.
18802         * modules/mbrtowc (Depends-on): Likewise.
18803         * modules/mbsinit (Depends-on): Likewise.
18804         * modules/mbsrtowcs (Depends-on): Likewise.
18805         * modules/mbswidth (Depends-on): Likewise.
18806         * modules/quotearg (Depends-on): Likewise.
18807         * modules/strftime (Depends-on): Likewise.
18808
18809 2008-12-20  Bruno Haible  <bruno@clisp.org>
18810
18811         Ensure wctob is declared on IRIX 6.5.
18812         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18813         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18814         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18815         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18816         of HAVE_WCTOB.
18817         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18818         HAVE_WCTOB.
18819         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18820
18821 2008-12-19  Bruno Haible  <bruno@clisp.org>
18822
18823         * modules/mbsrtowcs-tests: New file.
18824         * tests/test-mbsrtowcs1.sh: New file.
18825         * tests/test-mbsrtowcs2.sh: New file.
18826         * tests/test-mbsrtowcs3.sh: New file.
18827         * tests/test-mbsrtowcs4.sh: New file.
18828         * tests/test-mbsrtowcs.c: New file.
18829
18830         New module 'mbsrtowcs'.
18831         * lib/wchar.in.h (mbsrtowcs): New declaration.
18832         * lib/mbsrtowcs.c: New file.
18833         * m4/mbsrtowcs.m4: New file.
18834         * modules/mbsrtowcs: New file.
18835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18836         HAVE_MBSRTOWCS.
18837         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18838         HAVE_MBSRTOWCS.
18839         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18840
18841 2008-12-19  Bruno Haible  <bruno@clisp.org>
18842
18843         New module 'mbrlen'.
18844         * lib/wchar.in.h (mbrlen): New declaration.
18845         * lib/mbrlen.c: New file.
18846         * m4/mbrlen.m4: New file.
18847         * modules/mbrlen: New file.
18848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18849         HAVE_MBRLEN.
18850         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18851         HAVE_MBRLEN.
18852         * doc/posix-functions/mbrlen.texi: Document the new module.
18853
18854 2008-12-19  Bruno Haible  <bruno@clisp.org>
18855
18856         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18857         * modules/mbrtowc (Depends-on): Add verify.
18858         Suggested by Paul Eggert.
18859
18860 2008-12-18  Bruno Haible  <bruno@clisp.org>
18861
18862         * modules/mbsinit-tests: New file.
18863         * tests/test-mbsinit.sh: New file.
18864         * tests/test-mbsinit.c: New file.
18865
18866 2008-12-18  Bruno Haible  <bruno@clisp.org>
18867
18868         * modules/mbrtowc-tests: New file.
18869         * tests/test-mbrtowc1.sh: New file.
18870         * tests/test-mbrtowc2.sh: New file.
18871         * tests/test-mbrtowc3.sh: New file.
18872         * tests/test-mbrtowc4.sh: New file.
18873         * tests/test-mbrtowc.c: New file.
18874
18875         New module 'mbrtowc'.
18876         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18877         mbsinit and mbrtowc.
18878         (mbrtowc): New declaration.
18879         * lib/mbrtowc.c: New file.
18880         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18881         * modules/mbrtowc: New file.
18882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18883         HAVE_MBRTOWC.
18884         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18885         HAVE_MBRTOWC.
18886         * doc/posix-functions/mbrtowc.texi: Document the new module.
18887
18888 2008-12-18  Bruno Haible  <bruno@clisp.org>
18889
18890         New module 'wctob'.
18891         * lib/wchar.in.h (wctob): New declaration.
18892         * lib/wctob.c: New file.
18893         * m4/wctob.m4: New file.
18894         * modules/wctob: New file.
18895         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18896         HAVE_WCTOB.
18897         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18898         * doc/posix-functions/wctob.texi: Document the new module.
18899
18900 2008-12-18  Bruno Haible  <bruno@clisp.org>
18901
18902         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18903         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18904
18905 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18906
18907         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18908         G. Christensen" <tgc@jupiterrise.com>.
18909
18910         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18911         G. Christensen" <tgc@jupiterrise.com>.
18912
18913         * lib/flock.c: Need to include string.h.  Reported by "Tom
18914         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18915         <ebb9@byu.net>.
18916
18917 2008-12-18  Bruno Haible  <bruno@clisp.org>
18918
18919         * m4/locale-ja.m4: New file, from GNU gettext.
18920
18921 2008-12-17  Bruno Haible  <bruno@clisp.org>
18922
18923         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18924         Suggested by Eric Blake.
18925
18926 2008-12-17  Bruno Haible  <bruno@clisp.org>
18927
18928         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18929
18930 2008-12-17  Bruno Haible  <bruno@clisp.org>
18931
18932         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18933         * modules/mbsinit (Depends-on): Add verify.
18934         Suggested by Paul Eggert.
18935
18936 2008-12-17  Bruno Haible  <bruno@clisp.org>
18937
18938         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18939         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18940         gl_FUNC_MBRTOWC.
18941         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18942         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18943         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18944         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18945         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18946         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18947         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18948         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18949         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18950         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18951         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18952         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18953         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18954         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18955         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18956         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18957         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18958         * modules/trim (configure.ac): Likewise.
18959
18960 2008-12-17  Bruno Haible  <bruno@clisp.org>
18961
18962         * modules/btowc-tests: New file.
18963         * tests/test-btowc1.sh: New file.
18964         * tests/test-btowc2.sh: New file.
18965         * tests/test-btowc.c: New file.
18966
18967         New module 'btowc'.
18968         * lib/wchar.in.h (btowc): New declaration.
18969         * lib/btowc.c: New file.
18970         * m4/btowc.m4: New file.
18971         * modules/btowc: New file.
18972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18973         HAVE_BTOWC.
18974         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18975         * doc/posix-functions/btowc.texi: Document the new module.
18976
18977 2008-12-17  Bruno Haible  <bruno@clisp.org>
18978
18979         New module 'mbsinit'.
18980         * lib/wchar.in.h (mbsinit): New declaration.
18981         * lib/mbsinit.c: New file.
18982         * m4/mbsinit.m4: New file.
18983         * modules/mbsinit: New file.
18984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18985         HAVE_MBSINIT.
18986         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18987         HAVE_MBSINIT.
18988         * doc/posix-functions/mbsinit.texi: Document the new module.
18989
18990 2008-12-16  Bruno Haible  <bruno@clisp.org>
18991
18992         * lib/unistd.in.h: Add comment.
18993         * tests/test-environ.c: Don't include <stdlib.h>.
18994
18995 2008-12-16  Bruno Haible  <bruno@clisp.org>
18996
18997         * lib/parse-duration.h (parse_duration): Document return value
18998         convention.
18999         * lib/parse-duration.c: Include specification header first. Add
19000         comments.
19001         (_): Remove macro.
19002         (parse_year_month_day, parse_hour_minute_second): Move side effects
19003         outside of strchr call.
19004         (parse_non_iso8601): Move side effects outside of isspace call.
19005         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19006         call.
19007
19008 2008-12-16  Bruno Haible  <bruno@clisp.org>
19009
19010         * tests/test-parse-duration.sh: Produce no output when the test
19011         succeeds.
19012
19013 2008-12-16  Bruno Haible  <bruno@clisp.org>
19014
19015         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19016         expressions.
19017
19018 2008-12-15  Bruno Haible  <bruno@clisp.org>
19019
19020         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19021         * doc/glibc-functions/flistxattr.texi: Likewise.
19022         * doc/glibc-functions/fopencookie.texi: Likewise.
19023         * doc/glibc-functions/fremovexattr.texi: Likewise.
19024         * doc/glibc-functions/fsetxattr.texi: Likewise.
19025         * doc/glibc-functions/getxattr.texi: Likewise.
19026         * doc/glibc-functions/lgetxattr.texi: Likewise.
19027         * doc/glibc-functions/listxattr.texi: Likewise.
19028         * doc/glibc-functions/llistxattr.texi: Likewise.
19029         * doc/glibc-functions/lremovexattr.texi: Likewise.
19030         * doc/glibc-functions/lsetxattr.texi: Likewise.
19031         * doc/glibc-functions/removexattr.texi: Likewise.
19032         * doc/glibc-functions/setxattr.texi: Likewise.
19033         * doc/posix-functions/open_memstream.texi: Likewise.
19034
19035 2008-12-15  Eric Blake  <ebb9@byu.net>
19036
19037         Update doc for cygwin 1.7.
19038         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19039         functions.
19040         * doc/posix-functions/fchmodat.texi: Likewise.
19041         * doc/posix-functions/fchownat.texi: Likewise.
19042         * doc/posix-functions/fdopendir.texi: Likewise.
19043         * doc/posix-functions/fmemopen.texi: Likewise.
19044         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19045         * doc/posix-functions/fstatat.texi: Likewise.
19046         * doc/posix-functions/futimens.texi: Likewise.
19047         * doc/posix-functions/gai_strerror.texi: Likewise.
19048         * doc/posix-functions/getaddrinfo.texi: Likewise.
19049         * doc/posix-functions/getnameinfo.texi: Likewise.
19050         * doc/posix-functions/if_freenameindex.texi: Likewise.
19051         * doc/posix-functions/if_indextoname.texi: Likewise.
19052         * doc/posix-functions/if_nameindex.texi: Likewise.
19053         * doc/posix-functions/if_nametoindex.texi: Likewise.
19054         * doc/posix-functions/insque.texi: Likewise.
19055         * doc/posix-functions/linkat.texi: Likewise.
19056         * doc/posix-functions/llrint.texi: Likewise.
19057         * doc/posix-functions/llrintf.texi: Likewise.
19058         * doc/posix-functions/llrintl.texi: Likewise.
19059         * doc/posix-functions/lockf.texi: Likewise.
19060         * doc/posix-functions/lrintl.texi: Likewise.
19061         * doc/posix-functions/mkdirat.texi: Likewise.
19062         * doc/posix-functions/mkfifoat.texi: Likewise.
19063         * doc/posix-functions/mknodat.texi: Likewise.
19064         * doc/posix-functions/mq_close.texi: Likewise.
19065         * doc/posix-functions/mq_getattr.texi: Likewise.
19066         * doc/posix-functions/mq_notify.texi: Likewise.
19067         * doc/posix-functions/mq_open.texi: Likewise.
19068         * doc/posix-functions/mq_receive.texi: Likewise.
19069         * doc/posix-functions/mq_send.texi: Likewise.
19070         * doc/posix-functions/mq_setattr.texi: Likewise.
19071         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19072         * doc/posix-functions/mq_timedsend.texi: Likewise.
19073         * doc/posix-functions/mq_unlink.texi: Likewise.
19074         * doc/posix-functions/open_memstream.texi: Likewise.
19075         * doc/posix-functions/openat.texi: Likewise.
19076         * doc/posix-functions/posix_fadvise.texi: Likewise.
19077         * doc/posix-functions/posix_fallocate.texi: Likewise.
19078         * doc/posix-functions/posix_madvise.texi: Likewise.
19079         * doc/posix-functions/posix_memalign.texi: Likewise.
19080         * doc/posix-functions/posix_openpt.texi: Likewise.
19081         * doc/posix-functions/readlinkat.texi: Likewise.
19082         * doc/posix-functions/remque.texi: Likewise.
19083         * doc/posix-functions/renameat.texi: Likewise.
19084         * doc/posix-functions/rintl.texi: Likewise.
19085         * doc/posix-functions/sem_unlink.texi: Likewise.
19086         * doc/posix-functions/shm_open.texi: Likewise.
19087         * doc/posix-functions/shm_unlink.texi: Likewise.
19088         * doc/posix-functions/signgam.texi: Likewise.
19089         * doc/posix-functions/sigset.texi: Likewise.
19090         * doc/posix-functions/stpcpy.texi: Likewise.
19091         * doc/posix-functions/stpncpy.texi: Likewise.
19092         * doc/posix-functions/strerror.texi: Likewise.
19093         * doc/posix-functions/strtod.texi: Likewise.
19094         * doc/posix-functions/symlinkat.texi: Likewise.
19095         * doc/posix-functions/unlinkat.texi: Likewise.
19096         * doc/posix-functions/utimensat.texi: Likewise.
19097         * doc/glibc-functions/bindresvport.texi: Likewise.
19098         * doc/glibc-functions/dn_expand.texi: Likewise.
19099         * doc/glibc-functions/exp10.texi: Likewise.
19100         * doc/glibc-functions/exp10f.texi: Likewise.
19101         * doc/glibc-functions/fgetxattr.texi: Likewise.
19102         * doc/glibc-functions/flistxattr.texi: Likewise.
19103         * doc/glibc-functions/fopencookie.texi: Likewise.
19104         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19105         * doc/glibc-functions/fremovexattr.texi: Likewise.
19106         * doc/glibc-functions/fsetxattr.texi: Likewise.
19107         * doc/glibc-functions/getifaddrs.texi: Likewise.
19108         * doc/glibc-functions/getxattr.texi: Likewise.
19109         * doc/glibc-functions/lgetxattr.texi: Likewise.
19110         * doc/glibc-functions/listxattr.texi: Likewise.
19111         * doc/glibc-functions/llistxattr.texi: Likewise.
19112         * doc/glibc-functions/lremovexattr.texi: Likewise.
19113         * doc/glibc-functions/lsetxattr.texi: Likewise.
19114         * doc/glibc-functions/pow10.texi: Likewise.
19115         * doc/glibc-functions/pow10f.texi: Likewise.
19116         * doc/glibc-functions/rcmd_af.texi: Likewise.
19117         * doc/glibc-functions/removexattr.texi: Likewise.
19118         * doc/glibc-functions/res_init.texi: Likewise.
19119         * doc/glibc-functions/res_mkquery.texi: Likewise.
19120         * doc/glibc-functions/res_query.texi: Likewise.
19121         * doc/glibc-functions/res_querydomain.texi: Likewise.
19122         * doc/glibc-functions/res_send.texi: Likewise.
19123         * doc/glibc-functions/rresvport_af.texi: Likewise.
19124         * doc/glibc-functions/setxattr.texi: Likewise.
19125         * doc/glibc-functions/strcasestr.texi: Likewise.
19126
19127 2008-12-15  Bruno Haible  <bruno@clisp.org>
19128
19129         Fix compilation error on OSF/1 4.0.
19130         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19131         <sys/time.h>, simply delegate to the system header.
19132         Reported by Daniel Richard G. <oss@teragram.com>.
19133
19134 2008-12-15  Bruno Haible  <bruno@clisp.org>
19135
19136         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19137         * doc/posix-functions/fchmodat.texi: Likewise.
19138         * doc/posix-functions/fchownat.texi: Likewise.
19139         * doc/posix-functions/fdopendir.texi: Likewise.
19140         * doc/posix-functions/fstatat.texi: Likewise.
19141         * doc/posix-functions/mkdirat.texi: Likewise.
19142         * doc/posix-functions/unlinkat.texi: Likewise.
19143
19144 2008-12-14  Bruno Haible  <bruno@clisp.org>
19145
19146         Update doc for POSIX:2008.
19147         * doc/posix-functions/faccessat.texi: New file.
19148         * doc/posix-functions/fchmodat.texi: New file.
19149         * doc/posix-functions/fchownat.texi: New file.
19150         * doc/posix-functions/fdopendir.texi: New file.
19151         * doc/posix-functions/fstatat.texi: New file.
19152         * doc/posix-functions/futimens.texi: New file.
19153         * doc/posix-functions/linkat.texi: New file.
19154         * doc/posix-functions/mkdirat.texi: New file.
19155         * doc/posix-functions/mkfifoat.texi: New file.
19156         * doc/posix-functions/mknodat.texi: New file.
19157         * doc/posix-functions/open_wmemstream.texi: New file.
19158         * doc/posix-functions/openat.texi: New file.
19159         * doc/posix-functions/psiginfo.texi: New file.
19160         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19161         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19162         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19163         * doc/posix-functions/readlinkat.texi: New file.
19164         * doc/posix-functions/renameat.texi: New file.
19165         * doc/posix-functions/strerror_l.texi: New file.
19166         * doc/posix-functions/symlinkat.texi: New file.
19167         * doc/posix-functions/unlinkat.texi: New file.
19168         * doc/posix-functions/utimensat.texi: New file.
19169         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19170
19171 2008-12-14  Bruno Haible  <bruno@clisp.org>
19172
19173         Update doc for POSIX:2008.
19174         * doc/posix-functions/alphasort.texi: Renamed from
19175         doc/glibc-functions/alphasort.texi.
19176         * doc/posix-functions/dirfd.texi: Renamed from
19177         doc/glibc-functions/dirfd.texi.
19178         * doc/posix-functions/dprintf.texi: Renamed from
19179         doc/glibc-functions/dprintf.texi.
19180         * doc/posix-functions/duplocale.texi: Renamed from
19181         doc/glibc-functions/duplocale.texi.
19182         * doc/posix-functions/fexecve.texi: Renamed from
19183         doc/glibc-functions/fexecve.texi.
19184         * doc/posix-functions/fmemopen.texi: Renamed from
19185         doc/glibc-functions/fmemopen.texi.
19186         * doc/posix-functions/freelocale.texi: Renamed from
19187         doc/glibc-functions/freelocale.texi.
19188         * doc/posix-functions/getdate_err.texi: Renamed from
19189         doc/glibc-functions/getdate_err.texi.
19190         * doc/posix-functions/isalnum_l.texi: Renamed from
19191         doc/glibc-functions/isalnum_l.texi.
19192         * doc/posix-functions/isalpha_l.texi: Renamed from
19193         doc/glibc-functions/isalpha_l.texi.
19194         * doc/posix-functions/isblank_l.texi: Renamed from
19195         doc/glibc-functions/isblank_l.texi.
19196         * doc/posix-functions/iscntrl_l.texi: Renamed from
19197         doc/glibc-functions/iscntrl_l.texi.
19198         * doc/posix-functions/isdigit_l.texi: Renamed from
19199         doc/glibc-functions/isdigit_l.texi.
19200         * doc/posix-functions/isgraph_l.texi: Renamed from
19201         doc/glibc-functions/isgraph_l.texi.
19202         * doc/posix-functions/islower_l.texi: Renamed from
19203         doc/glibc-functions/islower_l.texi.
19204         * doc/posix-functions/isprint_l.texi: Renamed from
19205         doc/glibc-functions/isprint_l.texi.
19206         * doc/posix-functions/ispunct_l.texi: Renamed from
19207         doc/glibc-functions/ispunct_l.texi.
19208         * doc/posix-functions/isspace_l.texi: Renamed from
19209         doc/glibc-functions/isspace_l.texi.
19210         * doc/posix-functions/isupper_l.texi: Renamed from
19211         doc/glibc-functions/isupper_l.texi.
19212         * doc/posix-functions/iswalnum_l.texi: Renamed from
19213         doc/glibc-functions/iswalnum_l.texi.
19214         * doc/posix-functions/iswalpha_l.texi: Renamed from
19215         doc/glibc-functions/iswalpha_l.texi.
19216         * doc/posix-functions/iswblank_l.texi: Renamed from
19217         doc/glibc-functions/iswblank_l.texi.
19218         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19219         doc/glibc-functions/iswcntrl_l.texi.
19220         * doc/posix-functions/iswctype_l.texi: Renamed from
19221         doc/glibc-functions/iswctype_l.texi.
19222         * doc/posix-functions/iswdigit_l.texi: Renamed from
19223         doc/glibc-functions/iswdigit_l.texi.
19224         * doc/posix-functions/iswgraph_l.texi: Renamed from
19225         doc/glibc-functions/iswgraph_l.texi.
19226         * doc/posix-functions/iswlower_l.texi: Renamed from
19227         doc/glibc-functions/iswlower_l.texi.
19228         * doc/posix-functions/iswprint_l.texi: Renamed from
19229         doc/glibc-functions/iswprint_l.texi.
19230         * doc/posix-functions/iswpunct_l.texi: Renamed from
19231         doc/glibc-functions/iswpunct_l.texi.
19232         * doc/posix-functions/iswspace_l.texi: Renamed from
19233         doc/glibc-functions/iswspace_l.texi.
19234         * doc/posix-functions/iswupper_l.texi: Renamed from
19235         doc/glibc-functions/iswupper_l.texi.
19236         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19237         doc/glibc-functions/iswxdigit_l.texi.
19238         * doc/posix-functions/isxdigit_l.texi: Renamed from
19239         doc/glibc-functions/isxdigit_l.texi.
19240         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19241         doc/glibc-functions/mbsnrtowcs.texi.
19242         * doc/posix-functions/mkdtemp.texi: Renamed from
19243         doc/glibc-functions/mkdtemp.texi.
19244         * doc/posix-functions/newlocale.texi: Renamed from
19245         doc/glibc-functions/newlocale.texi.
19246         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19247         doc/glibc-functions/nl_langinfo_l.texi.
19248         * doc/posix-functions/open_memstream.texi: Renamed from
19249         doc/glibc-functions/open_memstream.texi.
19250         * doc/posix-functions/opterr.texi: Renamed from
19251         doc/glibc-functions/opterr.texi.
19252         * doc/posix-functions/optind.texi: Renamed from
19253         doc/glibc-functions/optind.texi.
19254         * doc/posix-functions/optopt.texi: Renamed from
19255         doc/glibc-functions/optopt.texi.
19256         * doc/posix-functions/psignal.texi: Renamed from
19257         doc/glibc-functions/psignal.texi.
19258         * doc/posix-functions/scandir.texi: Renamed from
19259         doc/glibc-functions/scandir.texi.
19260         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19261         doc/glibc-functions/sched_get_priority_min.texi.
19262         * doc/posix-functions/signgam.texi: Renamed from
19263         doc/glibc-functions/signgam.texi.
19264         * doc/posix-functions/stpcpy.texi: Renamed from
19265         doc/glibc-functions/stpcpy.texi.
19266         * doc/posix-functions/stpncpy.texi: Renamed from
19267         doc/glibc-functions/stpncpy.texi.
19268         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19269         doc/glibc-functions/strcasecmp_l.texi.
19270         * doc/posix-functions/strcoll_l.texi: Renamed from
19271         doc/glibc-functions/strcoll_l.texi.
19272         * doc/posix-functions/strfmon_l.texi: Renamed from
19273         doc/glibc-functions/strfmon_l.texi.
19274         * doc/posix-functions/strftime_l.texi: Renamed from
19275         doc/glibc-functions/strftime_l.texi.
19276         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19277         doc/glibc-functions/strncasecmp_l.texi.
19278         * doc/posix-functions/strndup.texi: Renamed from
19279         doc/glibc-functions/strndup.texi.
19280         * doc/posix-functions/strnlen.texi: Renamed from
19281         doc/glibc-functions/strnlen.texi.
19282         * doc/posix-functions/strsignal.texi: Renamed from
19283         doc/glibc-functions/strsignal.texi.
19284         * doc/posix-functions/strxfrm_l.texi: Renamed from
19285         doc/glibc-functions/strxfrm_l.texi.
19286         * doc/posix-functions/timer_gettime.texi: Renamed from
19287         doc/glibc-functions/timer_gettime.texi.
19288         * doc/posix-functions/tolower_l.texi: Renamed from
19289         doc/glibc-functions/tolower_l.texi.
19290         * doc/posix-functions/toupper_l.texi: Renamed from
19291         doc/glibc-functions/toupper_l.texi.
19292         * doc/posix-functions/towctrans_l.texi: Renamed from
19293         doc/glibc-functions/towctrans_l.texi.
19294         * doc/posix-functions/towlower_l.texi: Renamed from
19295         doc/glibc-functions/towlower_l.texi.
19296         * doc/posix-functions/towupper_l.texi: Renamed from
19297         doc/glibc-functions/towupper_l.texi.
19298         * doc/posix-functions/uselocale.texi: Renamed from
19299         doc/glibc-functions/uselocale.texi.
19300         * doc/posix-functions/vdprintf.texi: Renamed from
19301         doc/glibc-functions/vdprintf.texi.
19302         * doc/posix-functions/wcpcpy.texi:
19303         Renamed from doc/glibc-functions/wcpcpy.texi.
19304         * doc/posix-functions/wcpncpy.texi: Renamed from
19305         doc/glibc-functions/wcpncpy.texi.
19306         * doc/posix-functions/wcscasecmp.texi: Renamed from
19307         doc/glibc-functions/wcscasecmp.texi.
19308         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19309         doc/glibc-functions/wcscasecmp_l.texi.
19310         * doc/posix-functions/wcscoll_l.texi: Renamed from
19311         doc/glibc-functions/wcscoll_l.texi.
19312         * doc/posix-functions/wcsdup.texi: Renamed from
19313         doc/glibc-functions/wcsdup.texi.
19314         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19315         doc/glibc-functions/wcsncasecmp.texi.
19316         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19317         doc/glibc-functions/wcsncasecmp_l.texi.
19318         * doc/posix-functions/wcsnlen.texi: Renamed from
19319         doc/glibc-functions/wcsnlen.texi.
19320         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19321         doc/glibc-functions/wcsnrtombs.texi.
19322         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19323         doc/glibc-functions/wcsxfrm_l.texi.
19324         * doc/posix-functions/wctrans_l.texi: Renamed from
19325         doc/glibc-functions/wctrans_l.texi.
19326         * doc/posix-functions/wctype_l.texi: Renamed from
19327         doc/glibc-functions/wctype_l.texi.
19328         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19329         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19330         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19331         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19332         these subsections.
19333         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19334         Remove sections.
19335
19336 2008-12-14  Bruno Haible  <bruno@clisp.org>
19337
19338         Update doc for POSIX:2008.
19339         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19340
19341 2008-12-14  Bruno Haible  <bruno@clisp.org>
19342
19343         Update doc for POSIX:2008.
19344         * doc/pastposix-functions/bcmp.texi: Renamed from
19345         doc/posix-functions/bcmp.texi.
19346         * doc/pastposix-functions/bcopy.texi: Renamed from
19347         doc/posix-functions/bcopy.texi.
19348         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19349         doc/posix-functions/bsd_signal.texi.
19350         * doc/pastposix-functions/bzero.texi: Renamed from
19351         doc/posix-functions/bzero.texi.
19352         * doc/pastposix-functions/ecvt.texi: Renamed from
19353         doc/posix-functions/ecvt.texi.
19354         * doc/pastposix-functions/fcvt.texi: Renamed from
19355         doc/posix-functions/fcvt.texi.
19356         * doc/pastposix-functions/ftime.texi: Renamed from
19357         doc/posix-functions/ftime.texi.
19358         * doc/pastposix-functions/gcvt.texi: Renamed from
19359         doc/posix-functions/gcvt.texi.
19360         * doc/pastposix-functions/getcontext.texi: Renamed from
19361         doc/posix-functions/getcontext.texi.
19362         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19363         doc/posix-functions/gethostbyaddr.texi.
19364         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19365         doc/posix-functions/gethostbyname.texi.
19366         * doc/pastposix-functions/getwd.texi: Renamed from
19367         doc/posix-functions/getwd.texi.
19368         * doc/pastposix-functions/h_errno.texi: Renamed from
19369         doc/posix-functions/h_errno.texi.
19370         * doc/pastposix-functions/index.texi: Renamed from
19371         doc/posix-functions/index.texi.
19372         * doc/pastposix-functions/makecontext.texi: Renamed from
19373         doc/posix-functions/makecontext.texi.
19374         * doc/pastposix-functions/mktemp.texi: Renamed from
19375         doc/posix-functions/mktemp.texi.
19376         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19377         doc/posix-functions/pthread_attr_getstackaddr.texi.
19378         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19379         doc/posix-functions/pthread_attr_setstackaddr.texi.
19380         * doc/pastposix-functions/rindex.texi: Renamed from
19381         doc/posix-functions/rindex.texi.
19382         * doc/pastposix-functions/scalb.texi: Renamed from
19383         doc/posix-functions/scalb.texi.
19384         * doc/pastposix-functions/setcontext.texi: Renamed from
19385         doc/posix-functions/setcontext.texi.
19386         * doc/pastposix-functions/swapcontext.texi: Renamed from
19387         doc/posix-functions/swapcontext.texi.
19388         * doc/pastposix-functions/ualarm.texi: Renamed from
19389         doc/posix-functions/ualarm.texi.
19390         * doc/pastposix-functions/usleep.texi: Renamed from
19391         doc/posix-functions/usleep.texi.
19392         * doc/pastposix-functions/vfork.texi: Renamed from
19393         doc/posix-functions/vfork.texi.
19394         * doc/pastposix-functions/wcswcs.texi: Renamed from
19395         doc/posix-functions/wcswcs.texi.
19396         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19397         (Function Substitutes): Update.
19398
19399 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19400
19401         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19402         m4/strerror.m4.
19403
19404 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19405             Bruno Haible  <bruno@clisp.org>
19406
19407         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19408
19409 2008-12-13  Bruno Haible  <bruno@clisp.org>
19410
19411         * modules/strtoull (Depends-on): Remove unistd.
19412
19413 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19414
19415         * modules/strtoull (Depends-on): Add stdlib.
19416
19417 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19418
19419         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19420
19421 2008-12-10  Jim Meyering  <meyering@redhat.com>
19422
19423         gl_ASSERT: don't say assertions are disabled when they're not
19424         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19425         "checking whether to enable assertions... no", when they are in
19426         fact enabled.  This is solely a bug in the output of configure.
19427         In spite of saying "no", NDEBUG was not defined in that case.
19428         Also, as noted by Eric Blake, leave assertions enabled upon
19429         --enable-assert=INVALID.
19430
19431 2008-12-10  Bruno Haible  <bruno@clisp.org>
19432
19433         Change MODULES.html to refer to POSIX:2008 where possible.
19434         * MODULES.html.sh (POSIX2008_URL): New variable.
19435         (posix_headers): Remove sys/timeb, ucontext.
19436         (posix2001_headers): New variable.
19437         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19438         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19439         index, makecontext, mktemp, pthread_attr_getstackaddr,
19440         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19441         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19442         (posix2001_functions): New variable.
19443         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19444         otherwise.
19445
19446 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19447
19448         add missing include to parse-duration.c
19449         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19450         * modules/parse-duration (Depends-on): Add xalloc.
19451
19452         fix sed script reading maint.mk
19453         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19454         (syntax-check-rules): Use it.
19455
19456 2008-12-09  Bruno Haible  <bruno@clisp.org>
19457
19458         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19459         MacOS X 10.4/PowerPC.
19460         Reported by Simon Josefsson.
19461
19462 2008-12-08  Jim Meyering  <meyering@redhat.com>
19463
19464         work around mingw's lack of some S_IF definitions
19465         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19466         Reported by Simon Josefsson.
19467
19468 2008-12-08  Bruno Haible  <bruno@clisp.org>
19469
19470         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19471         applied to variables. Needed on MacOS X 10.4/PowerPC.
19472         Reported by Simon Josefsson.
19473
19474 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19475         and Eric Blake  <ebb9@byu.net>
19476
19477         assert: honor --enable-assert
19478         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19479         order to honor --enable-assert, rather than treating it as a
19480         synonym for --disable-assert.
19481
19482 2008-12-08  Jim Meyering  <meyering@redhat.com>
19483
19484         * lib/posixtm.c: Remove now-useless declaration of mktime.
19485
19486         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19487
19488 2008-12-07  Bruno Haible  <bruno@clisp.org>
19489
19490         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19491         test_once): Mark functions as static.
19492         * tests/test-tls.c (test_tls): Likewise.
19493
19494 2008-12-07  Bruno Haible  <bruno@clisp.org>
19495
19496         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19497         iconv_register_autodetect.
19498
19499 2008-12-07  Jim Meyering  <meyering@redhat.com>
19500
19501         posixtm.c: avoid a warning
19502         * lib/posixtm.c (posixtime): Don't initialize tm0.
19503         It's no longer needed to placate gcc4's -Wuninitialized,
19504         and the attempt to placate would elicit a new warning.
19505
19506         unicodeio.c: mark unused parameters
19507         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19508         (fallback_failure_callback): Likewise.
19509
19510 2008-12-07  Bruno Haible  <bruno@clisp.org>
19511
19512         * gnulib-tool (func_create_testdir): When building the tests
19513         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19514         Reported by Simon Josefsson.
19515
19516 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19517
19518         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19519
19520 2008-12-06  Bruno Haible  <bruno@clisp.org>
19521
19522         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19523         Suggested by Eric Blake.
19524
19525 2008-12-06  Bruno Haible  <bruno@clisp.org>
19526
19527         Fix a c-stack test failure on MacOS X.
19528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19529         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19530         handler for SIGBUS as well.
19531         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19532         install a signal handler for SIGBUS as well.
19533         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19534
19535 2008-12-06  Bruno Haible  <bruno@clisp.org>
19536
19537         Advocacy documentation.
19538         * doc/gnulib-intro.texi (Benefits): New section.
19539         * doc/gnulib.texi: Update.
19540
19541 2008-12-06  Bruno Haible  <bruno@clisp.org>
19542
19543         Document the 'manywarnings' module.
19544         * doc/manywarnings.texi: New file.
19545         * doc/gnulib.texi: Include it.
19546
19547 2008-12-05  Eric Blake  <ebb9@byu.net>
19548
19549         tests: silence some gcc warnings
19550         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19551         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19552         type mismatches.
19553
19554 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19555             Bruno Haible  <bruno@clisp.org>
19556
19557         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19558
19559 2008-11-29  Jim Meyering  <meyering@redhat.com>
19560
19561         unicodeio.c: mark unused parameters
19562         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19563         (fallback_failure_callback): Likewise.
19564
19565         fts: fix a thinko
19566         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19567         (set_stat_type): Return S_IF*-valued "type" directly.
19568         Prompted by James Youngman's spotting a related bug.
19569         Confirmed by further testing through find.
19570
19571         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19572         * lib/fts.c (D_TYPE): Define.
19573         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19574         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19575         (s_ifmt_shift_bits): New function.
19576         (set_stat_type): New function.
19577         (fts_build): When not calling fts_stat, call set_stat_type
19578         to propagate dirent.d_type info to fts_read caller.
19579         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19580         fts_statp->st_mode type information may be valid.
19581
19582 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19583
19584         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19585         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19586         <sds@gnu.org>.
19587
19588 2008-11-20  Bruno Haible  <bruno@clisp.org>
19589
19590         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19591         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19592         INCLUDE_NEXT.
19593         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19594         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19595         * modules/math (Makefile.am): Substitute
19596         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19597         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19598
19599 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19600             Bruno Haible  <bruno@clisp.org>
19601
19602         * lib/stdint.in.h: Define all type macros so that their expansion is
19603         a single typedef'ed token. Fixes a compilation failure in Boost which
19604         does "using ::int8_t;".
19605
19606 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19607
19608         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19609         gl_MANYWARN_ALL_GCC.
19610         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19611         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19612         * modules/manywarnings: New file.
19613         * MODULES.html.sh: Mention manywarnings module.
19614
19615 2008-11-18  Bruno Haible  <bruno@clisp.org>
19616
19617         * doc/gnulib-tool.texi (Unit tests): New section.
19618
19619 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19620
19621         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19622         paths like 'lib/po/foo.po'.
19623
19624 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19625
19626         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19627         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19628
19629 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19630
19631         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19632         parameter works.
19633
19634 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19635
19636         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19637
19638 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19639
19640         * modules/parse-duration-tests: New file.
19641         * tests/test-parse-duration.sh: New file.
19642         * tests/test-parse-duration.c: New file.
19643
19644         New module 'parse-duration'.
19645         * lib/parse-duration.h: New file.
19646         * lib/parse-duration.c: New file.
19647         * modules/parse-duration: New file.
19648
19649 2008-11-17  Bruno Haible  <bruno@clisp.org>
19650
19651         * tests/test-select-out.sh: Comment out the first pipe test.
19652         Reported by Simon Josefsson.
19653
19654 2008-11-17  Bruno Haible  <bruno@clisp.org>
19655
19656         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19657         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19658         gl_HOSTENT.
19659
19660 2008-11-17  Bruno Haible  <bruno@clisp.org>
19661
19662         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19663         -lnetwork and -lnet. Needed for Haiku and BeOS.
19664
19665 2008-11-16  Bruno Haible  <bruno@clisp.org>
19666
19667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19668
19669 2008-11-16  Bruno Haible  <bruno@clisp.org>
19670
19671         Avoid test failure on Haiku.
19672         * tests/test-fsync.c: Include <errno.h>.
19673         (main): Don't require that fsync (0) fails.
19674
19675 2008-11-15  Bruno Haible  <bruno@clisp.org>
19676
19677         New module 'hostent'.
19678         * modules/hostent: New file.
19679         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19680
19681 2008-11-15  Bruno Haible  <bruno@clisp.org>
19682
19683         New module 'servent'.
19684         * modules/servent: New file.
19685         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19686
19687 2008-11-15  Bruno Haible  <bruno@clisp.org>
19688
19689         Avoid generating same test program with two different rules.
19690         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19691         test-frexp to test-frexp-nolibm.
19692         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19693         test-frexpl to test-frexpl-nolibm.
19694
19695 2008-11-15  Bruno Haible  <bruno@clisp.org>
19696
19697         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19698         $(FREXPL_LIBM).
19699
19700 2008-11-15  Bruno Haible  <bruno@clisp.org>
19701
19702         * lib/netdb.in.h: Activate the definitions also when the system's
19703         <netdb.h> has 'struct addrinfo'.
19704         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19705         EAI_OVERFLOW or AI_NUMERICSERV.
19706         * doc/posix-headers/netdb.texi: Document the problem.
19707
19708 2008-11-15  Bruno Haible  <bruno@clisp.org>
19709
19710         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19711
19712         Make the 'sched' module work on platforms where <sched.h> exists but
19713         is incomplete (such as Haiku).
19714         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19715         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19716         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19717         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19718         HAVE_STRUCT_SCHED_PARAM.
19719         * modules/sched (Depends-on): Add include_next.
19720         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19721         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19722         * doc/posix-headers/sched.texi: Document the issue.
19723
19724 2008-11-13  Jim Meyering  <meyering@redhat.com>
19725
19726         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19727         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19728         test would fail due to the difference in the Report bugs to ...
19729         line.  The expected address is empty, "<>", while the actual
19730         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19731
19732 2008-11-12  Bruno Haible  <bruno@clisp.org>
19733
19734         lstat: don't compile lstat.c on systems lacking lstat
19735         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19736         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19737         Reported by Daniel P. Berrange via Jim Meyering.
19738
19739 2008-11-12  Jim Meyering  <meyering@redhat.com>
19740
19741         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19742
19743 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19744
19745         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19746         instead.
19747
19748 2008-11-12  Bruno Haible  <bruno@clisp.org>
19749
19750         * lib/unicodeio.c: Include unistr.h.
19751         (utf8_wctomb): Remove function.
19752         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19753
19754 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19755
19756         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19757         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19758         <bruno@clisp.org>.
19759         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19760
19761 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19762
19763         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19764         * doc/gnulib.texi: Add section for warnings.
19765
19766 2008-11-11  Bruno Haible  <bruno@clisp.org>
19767
19768         * lib/sockets.h: Add a comment.
19769
19770 2008-11-11  Karl Berry  <karl@gnu.org>
19771
19772         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19773
19774 2008-11-11  Eric Blake  <ebb9@byu.net>
19775
19776         fdl.texi: avoid git symlinks
19777         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19778
19779 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19780
19781         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19782
19783 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19784
19785         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19786         (gl_WARN_ADD): Substitute $2 if literal.
19787
19788 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19789
19790         * m4/warning.m4: Remove.
19791
19792 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19793
19794         * m4/warnings.m4: Almost complete rewrite. :-)
19795
19796 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19797
19798         * modules/warnings: New module.
19799         * m4/warnings.m4: New file.
19800         * MODULES.html.sh: Mention warnings module.
19801         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19802         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19803
19804 2008-11-10  Eric Blake  <ebb9@byu.net>
19805
19806         fdl.texi: make a symlink to the latest version
19807         * doc/standards.texi: Revert today's earlier change.
19808         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19809         * doc/fdl.texi: ...and replace this with a symlink to the newer
19810         fdl-1.3.texi.
19811
19812 2008-11-10  Bruno Haible  <bruno@clisp.org>
19813
19814         * tests/test-select-fd.c (main): Accept the result file name as fourth
19815         argument.
19816         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19817         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19818
19819 2008-11-10  Bruno Haible  <bruno@clisp.org>
19820
19821         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19822         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19823         as autoconf-substituted macros.
19824         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19825         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19826         gl_NETDB_H_DEFAULTS. Set these variables.
19827         * modules/netdb (Makefile.am): Substitute these variables.
19828
19829 2008-11-10  Eric Blake  <ebb9@byu.net>
19830
19831         standards.texi: include correct file for FDL 1.3
19832         * doc/standards.texi (GNU Free Documentation License): Change
19833         include file to pull in FDL 1.3, not 1.2.
19834
19835         fdl.texi: revert accidental change to license
19836         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19837
19838 2008-11-10  Bruno Haible  <bruno@clisp.org>
19839
19840         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19841         cross-compiling guesses also when the native compile gives no result.
19842
19843 2008-11-10  Bruno Haible  <bruno@clisp.org>
19844
19845         * lib/spawni.c (__spawni): Force variable into the stack.
19846
19847 2008-11-10  Bruno Haible  <bruno@clisp.org>
19848
19849         Add support for Haiku.
19850         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19851         glibc and BeOS, but also on Haiku.
19852         * lib/fpurge.c (fpurge): Likewise.
19853         * lib/freadable.c (freadable): Likewise.
19854         * lib/freadahead.c (freadahead): Likewise.
19855         * lib/freading.c (freading): Likewise.
19856         * lib/freadptr.c (freadptr): Likewise.
19857         * lib/freadseek.c (freadptrinc): Likewise.
19858         * lib/fseeko.c (rpl_fseeko): Likewise.
19859         * lib/fseterr.c (fseterr): Likewise.
19860         * lib/fwritable.c (fwritable): Likewise.
19861         * lib/fwriting.c (fwriting): Likewise.
19862         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19863
19864 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19865
19866         * lib/config.charset: Treat Haiku like BeOS.
19867
19868 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19869
19870         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19871         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19872
19873 2008-11-08  Bruno Haible  <bruno@clisp.org>
19874
19875         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19876         AC_CACHE_CHECK.
19877
19878 2008-11-08  Bruno Haible  <bruno@clisp.org>
19879
19880         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19881
19882 2008-11-08  Bruno Haible  <bruno@clisp.org>
19883
19884         * tests/test-select-fd.c: New file.
19885         * tests/test-select-in.sh: New file.
19886         * tests/test-select-out.sh: New file.
19887         * tests/test-select-stdin.c: New file.
19888         * modules/select-tests (Files): Add the new files.
19889         (Depends-on): Add gettimeofday.
19890         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19891         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19892         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19893
19894 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19895             Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19898
19899 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19900
19901         * build-aux/pmccabe2html: Added support for C++ source files.
19902
19903 2008-11-05  Ben Pfaff  <blp@gnu.org>
19904
19905         Fix lib/close.c build on Windows.
19906         * modules/close (Files): Add lib/w32sock.h.
19907
19908 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19909
19910         Accept Bison's NEWS format.
19911         * build-aux/announce-gen (print_news_deltas): Tweak
19912         $re_prefix.
19913
19914 2008-11-04  Bruno Haible  <bruno@clisp.org>
19915
19916         * modules/random_r (Maintainer): Add glibc.
19917
19918 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19919
19920         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19921         by karl@freefriends.org (Karl Berry).
19922         * doc/alloca.texi: Likewise.
19923         * doc/c-ctype.texi: Likewise.
19924         * doc/c-strcase.texi: Likewise.
19925         * doc/c-strcaseeq.texi: Likewise.
19926         * doc/c-strcasestr.texi: Likewise.
19927         * doc/c-strstr.texi: Likewise.
19928         * doc/c-strtod.texi: Likewise.
19929         * doc/c-strtold.texi: Likewise.
19930         * doc/ctime.texi: Likewise.
19931         * doc/error.texi: Likewise.
19932         * doc/fdl.texi: Likewise.
19933         * doc/gcd.texi: Likewise.
19934         * doc/getdate.texi: Likewise.
19935         * doc/gnulib-intro.texi: Likewise.
19936         * doc/gnulib-tool.texi: Likewise.
19937         * doc/gnulib.texi: Likewise.
19938         * doc/inet_ntoa.texi: Likewise.
19939         * doc/maintain.texi: Likewise.
19940         * doc/make-stds.texi: Likewise.
19941         * doc/quote.texi: Likewise.
19942         * doc/regexprops-generic.texi: Likewise.
19943         * doc/standards.texi: Likewise.
19944         * doc/verify.texi: Likewise.
19945         * doc/visibility.texi: Likewise.
19946         * doc/gnulib.texi (GNU Free Documentation License): Include
19947         fdl-1.3.texi instead of fdl.texi.
19948
19949 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19950
19951         * doc/fdl-1.3.texi: New file, from
19952         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19953         * modules/fdl-1.3: Add.
19954         * MODULES.html.sh: Add fdl-1.3.
19955
19956 2008-11-03  Bruno Haible  <bruno@clisp.org>
19957
19958         Make determination of absolute name of header file work with AIX xlc.
19959         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19960         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19961         preprocessing.
19962         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19963         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19964
19965 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19966
19967         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19968         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19969         <ludo@gnu.org>.
19970
19971 2008-11-02  Bruno Haible  <bruno@clisp.org>
19972
19973         Mark 'strpbrk' obsolete.
19974         * modules/strpbrk (Status, Notice): New sections.
19975         * modules/strtok_r (Depends-on): Add strpbrk.
19976
19977 2008-11-02  Bruno Haible  <bruno@clisp.org>
19978
19979         Mark 'strdup' obsolete.
19980         * modules/strdup (Status, Notice): New sections.
19981         * modules/findprog (Depends-on): Add strdup.
19982         * modules/getaddrinfo (Depends-on): Likewise.
19983         * modules/localename (Depends-on): Likewise.
19984         * modules/relocatable-lib (Depends-on): Likewise.
19985         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19986         * modules/relocatable-prog (Depends-on): Likewise.
19987         * modules/trim (Depends-on): Likewise.
19988         * modules/unictype/gen-ctype (Depends-on): Likewise.
19989         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19990
19991 2008-11-02  Bruno Haible  <bruno@clisp.org>
19992
19993         Mark 'strcspn' obsolete.
19994         * modules/strcspn (Status, Notice): New sections.
19995
19996 2008-11-02  Bruno Haible  <bruno@clisp.org>
19997
19998         Mark 'rmdir' obsolete.
19999         * modules/rmdir (Status, Notice): New sections.
20000         * modules/clean-temp (Depends-on): Add rmdir.
20001         * modules/openat (Depends-on): Likewise.
20002
20003 2008-11-02  Bruno Haible  <bruno@clisp.org>
20004
20005         Mark 'raise' obsolete.
20006         * modules/raise (Status, Notice): New sections.
20007         (Include): Specify <signal.h>.
20008         * modules/stdio (Depends-on): Add raise.
20009         * modules/write (Depends-on): Likewise.
20010
20011 2008-11-02  Bruno Haible  <bruno@clisp.org>
20012
20013         Mark 'memset' obsolete.
20014         * modules/memset (Status, Notice): New sections.
20015
20016 2008-11-02  Bruno Haible  <bruno@clisp.org>
20017
20018         Mark 'memmove' obsolete.
20019         * modules/memmove (Status, Notice): New sections.
20020         * modules/argp (Depends-on): Add memmove.
20021         * modules/argz (Depends-on): Likewise.
20022         * modules/canonicalize (Depends-on): Likewise.
20023         * modules/canonicalize-lgpl (Depends-on): Likewise.
20024         * modules/fts (Depends-on): Likewise.
20025         * modules/getcwd (Depends-on): Likewise.
20026         * modules/human (Depends-on): Likewise.
20027         * modules/regex (Depends-on): Likewise.
20028         * modules/striconveh (Depends-on): Likewise.
20029         * modules/trim (Depends-on): Likewise.
20030         * modules/unistr/u8-move (Depends-on): Likewise.
20031         * modules/unistr/u16-move (Depends-on): Likewise.
20032         * modules/unistr/u32-move (Depends-on): Likewise.
20033
20034 2008-11-02  Bruno Haible  <bruno@clisp.org>
20035
20036         Mark 'memcpy' obsolete.
20037         * modules/memcpy (Status, Notice): New sections.
20038
20039 2008-11-02  Bruno Haible  <bruno@clisp.org>
20040
20041         Mark 'memcmp' obsolete.
20042         * modules/memcmp (Status, Notice): New sections.
20043         * modules/argmatch (Depends-on): Add memchr.
20044         * modules/backupfile (Depends-on): Likewise.
20045         * modules/c-strcasestr (Depends-on): Likewise.
20046         * modules/crypto/des (Depends-on): Likewise.
20047         * modules/csharpcomp (Depends-on): Likewise.
20048         * modules/fnmatch (Depends-on): Likewise.
20049         * modules/git-merge-changelog (Depends-on): Likewise.
20050         * modules/isnand (Depends-on): Likewise.
20051         * modules/isnand-nolibm (Depends-on): Likewise.
20052         * modules/isnanf (Depends-on): Likewise.
20053         * modules/isnanf-nolibm (Depends-on): Likewise.
20054         * modules/isnanl (Depends-on): Likewise.
20055         * modules/isnanl-nolibm (Depends-on): Likewise.
20056         * modules/mbchar (Depends-on): Likewise.
20057         * modules/memcoll (Depends-on): Likewise.
20058         * modules/quotearg (Depends-on): Likewise.
20059         * modules/regex (Depends-on): Likewise.
20060         * modules/relocatable-prog (Depends-on): Likewise.
20061         * modules/same (Depends-on): Likewise.
20062         * modules/signbit (Depends-on): Likewise.
20063         * modules/strcasestr-simple (Depends-on): Likewise.
20064         * modules/unictype/gen-ctype (Depends-on): Likewise.
20065         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20066         * modules/uniname/uniname (Depends-on): Likewise.
20067         * modules/unistr/u8-cmp (Depends-on): Likewise.
20068
20069 2008-11-02  Bruno Haible  <bruno@clisp.org>
20070
20071         Mark 'memchr' obsolete.
20072         * modules/memchr (Status, Notice): New sections.
20073         * modules/argp (Depends-on): Add memchr.
20074         * modules/base64 (Depends-on): Likewise.
20075         * modules/c-strcasestr (Depends-on): Likewise.
20076         * modules/chdir-long (Depends-on): Likewise.
20077         * modules/fnmatch (Depends-on): Likewise.
20078         * modules/getsubopt (Depends-on): Likewise.
20079         * modules/git-merge-changelog (Depends-on): Likewise.
20080         * modules/glob (Depends-on): Likewise.
20081         * modules/strcasestr-simple (Depends-on): Likewise.
20082         * modules/strnlen (Depends-on): Likewise.
20083
20084 2008-11-02  Bruno Haible  <bruno@clisp.org>
20085
20086         Mark 'atexit' obsolete.
20087         * modules/atexit (Status, Notice): New sections.
20088         * modules/chdir-long (Depends-on): Add atexit.
20089         * modules/wait-process (Depends-on): Likewise.
20090
20091 2008-11-02  Bruno Haible  <bruno@clisp.org>
20092
20093         * gnulib-tool: New option --with-obsolete.
20094         (func_usage): Document it.
20095         (func_modules_transitive_closure): Drop obsolete dependencies if
20096         incobsolete is not true.
20097         (func_import): Read and save the incobsolete variable to the cache.
20098
20099 2008-11-02  Bruno Haible  <bruno@clisp.org>
20100
20101         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20102         * gnulib-tool: New option --extract-status.
20103         (func_usage): Document it.
20104         (sed_extract_prog): Recognize it.
20105         (func_get_status): New function.
20106
20107 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20108
20109         * modules/sockets (License): Change from LGPL to LGPLv2+.
20110
20111 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20112
20113         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20114
20115 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20116
20117         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20118         Mention times and sys_times.
20119         * modules/sys_times, modules/sys_times-tests: New modules.
20120         * modules/times, modules/times-tests: Likewise
20121         * m4/sys_times_h.m4: New file.
20122         * lib/sys_times.in.h: Likewise
20123         * lib/times.c: Likewise.
20124         * tests/test-sys_times.c: Likewise.
20125         * tests/test-times.c: Likewise.
20126         * doc/posix-headers/sys_times.texi: Update.
20127         * doc/posix-functions/times.texi: Update.
20128
20129 2008-10-28  Jim Meyering  <meyering@redhat.com>
20130
20131         * modules/tempname (Depends-on): Add lstat.
20132
20133         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20134
20135 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20136
20137         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20138         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20139         using idiom used elsewhere in gnulib.
20140
20141 2008-10-27  Jim Meyering  <meyering@redhat.com>
20142
20143         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20144
20145 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20146
20147         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20148         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20149         programs.
20150         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20151
20152 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20153
20154         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20155
20156 2008-10-27  Bruno Haible  <bruno@clisp.org>
20157
20158         * tests/test-lstat.c: Include <stdio.h>.
20159
20160 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20161
20162         * modules/lstat-tests: New module.
20163         * tests/test-lstat.c: New file.
20164
20165 2008-10-26  Jim Meyering  <meyering@redhat.com>
20166
20167         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20168
20169 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20170             Bruno Haible  <bruno@clisp.org>
20171
20172         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20173         * modules/configmake (Include): Add a note that the include must come
20174         after all system headers.
20175         * lib/javaversion.c: Include configmake.h after all other includes.
20176
20177 2008-10-26  Bruno Haible  <bruno@clisp.org>
20178
20179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20180         HAVE_STRUCT_RANDOM_DATA to 1.
20181         (gl_STDLIB_H): Simplify.
20182
20183 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20184
20185         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20186         substitute HAVE_STRUCT_RANDOM_DATA.
20187         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20188         random_data.
20189         * modules/stdlib (Makefile.am): Substitute
20190         HAVE_STRUCT_RANDOM_DATA.
20191
20192 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20193
20194         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20195         * doc/gnulib-intro.texi (Copyright): Likewise.
20196
20197 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20198
20199         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20200         findings.
20201
20202 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20203             Bruno Haible  <bruno@clisp.org>
20204
20205         * lib/unistd.in.h: Include <winsock2.h>.
20206         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20207         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20208         Provide dummy declarations.
20209         (gethostname): Override.
20210         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20211         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20212         gl_PREREQ_SYS_H_WINSOCK2.
20213         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20214         * doc/posix-functions/gethostname.texi: More details.
20215
20216 2008-10-25  Bruno Haible  <bruno@clisp.org>
20217
20218         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20219         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20220         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20221
20222         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20223         here ...
20224         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20226         gl_UNISTD_H_DEFAULTS.
20227
20228 2008-10-25  Eric Blake  <ebb9@byu.net>
20229
20230         signbit: avoid spurious compiler failure
20231         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20232         declarations inside function.
20233
20234 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20235             Bruno Haible  <bruno@clisp.org>
20236
20237         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20238         * modules/random_r (Depends-on): Add stdint.
20239
20240 2008-10-24  Bruno Haible  <bruno@clisp.org>
20241
20242         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20243         Eggert.
20244         * modules/strerror (License): Likewise.
20245
20246 2008-10-24  Jim Meyering  <meyering@redhat.com>
20247
20248         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20249         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20250
20251 2008-10-24  Eric Blake  <ebb9@byu.net>
20252
20253         getgroups: fix compilation when getgroups is available
20254         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20255         but with <config.h> override of getgroups disabled.
20256
20257 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20258
20259         * doc/gnulib.texi (Header files): Add note about C++ problems.
20260         Explained by Bruno Haible <bruno@clisp.org>.
20261
20262 2008-10-23  Bruno Haible  <bruno@clisp.org>
20263
20264         Define a dummy SA_NODEFER macro on Interix.
20265         * lib/signal.in.h (SA_NODEFER): Define fallback.
20266         Reported by Aleksey Cheusov <cheusov@tut.by> via
20267         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20268
20269 2008-10-23  Bruno Haible  <bruno@clisp.org>
20270
20271         * modules/freadahead (License): Change to LGPLv2+.
20272         Suggested by Simon Josefsson.
20273
20274 2008-10-23  Jim Meyering  <meyering@redhat.com>
20275
20276         random_r: new module
20277         * modules/random_r: New file.
20278         * m4/random_r.m4: New file.
20279         * lib/random_r.c: New file, from glibc.
20280         * modules/random_r-tests: New file.
20281         * tests/test-random_r.c: New file.
20282         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20283          Declare.
20284         (RAND_MAX): Define.
20285         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20286         * modules/stdlib: Substitute them, too.
20287         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20288         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20289         * doc/glibc-functions/random_r.texi: Likewise.
20290         * doc/glibc-functions/setstate_r.texi: Likewise.
20291         * doc/glibc-functions/srandom_r.texi: Likewise.
20292         * config/srclist.txt: Mention it.
20293
20294 2008-10-23  David Lutterkort  <lutter@redhat.com>
20295
20296         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20297         link requirement
20298
20299 2008-10-23  Jim Meyering  <meyering@redhat.com>
20300
20301         selinux-h: mark parameters of stub functions as intentionally unused
20302         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20303         * lib/se-context.in.h: Likewise.
20304
20305 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20306
20307         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20308
20309 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20310
20311         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20312
20313 2008-10-22  Eric Blake  <ebb9@byu.net>
20314
20315         glthread/thread: avoid compiler warning
20316         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20317         Add unreachable abort to silence compiler.
20318
20319 2008-10-22  Eric Blake  <ebb9@byu.net>
20320
20321         netdb: also supply struct addrinfo for cygwin 1.5.x
20322         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20323         older cygwin.
20324         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20325         cygwin.
20326         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20327
20328 2008-10-22  Bruno Haible  <bruno@clisp.org>
20329
20330         * users.txt: Update entry about pspp.
20331
20332 2008-10-21  Bruno Haible  <bruno@clisp.org>
20333
20334         Simplification.
20335         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20336         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20337
20338         Simplification.
20339         * lib/ioctl.c (ioctl): Don't undefine.
20340         * lib/socket.c (socket): Don't undefine.
20341
20342         Remove unused module indicator macros.
20343         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20344         GNULIB_$1 as a C macro.
20345
20346         * doc/posix-functions/close.texi: Undo last change.
20347         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20348         Windows platforms.
20349
20350 2008-10-21  Bruno Haible  <bruno@clisp.org>
20351
20352         Add gethostname() declaration to <unistd.h>.
20353         * lib/unistd.in.h (gethostname): New declaration.
20354         * lib/gethostname.c: Include <unistd.h>.
20355         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20356         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20358         and HAVE_GETHOSTNAME.
20359         * modules/gethostname (Depends-on): Add unistd.
20360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20361         (Include): Specify <unistd.h>.
20362         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20363         HAVE_GETHOSTNAME.
20364         * tests/test-gethostname.c: Include <unistd.h> first.
20365
20366 2008-10-21  Bruno Haible  <bruno@clisp.org>
20367
20368         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20369         * modules/select-tests (Depends-on): Likewise.
20370         Reported by Simon Josefsson.
20371
20372 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20373
20374         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20375         * lib/accept.c: New file, based on winsock.c.
20376         * lib/bind.c: New file, based on winsock.c.
20377         * lib/connect.c: New file, based on winsock.c.
20378         * lib/getpeername.c: New file, based on winsock.c.
20379         * lib/getsockname.c: New file, based on winsock.c.
20380         * lib/getsockopt.c: New file, based on winsock.c.
20381         * lib/ioctl.c: New file, based on winsock.c.
20382         * lib/listen.c: New file, based on winsock.c.
20383         * lib/recv.c: New file, based on winsock.c.
20384         * lib/recvfrom.c: New file, based on winsock.c.
20385         * lib/send.c: New file, based on winsock.c.
20386         * lib/sendto.c: New file, based on winsock.c.
20387         * lib/setsockopt.c: New file, based on winsock.c.
20388         * lib/shutdown.c: New file, based on winsock.c.
20389         * lib/socket.c: New file, based on winsock.c.
20390         * lib/w32sock.h: New file, based on winsock.c.
20391         * lib/winsock.c: Remove file.
20392         * modules/accept: Likewise.
20393         * modules/bind: Likewise.
20394         * modules/connect: Likewise.
20395         * modules/getpeername: Likewise.
20396         * modules/getsockname: Likewise.
20397         * modules/getsockopt: Likewise.
20398         * modules/ioctl: Likewise.
20399         * modules/listen: Likewise.
20400         * modules/recv: Likewise.
20401         * modules/recvfrom: Likewise.
20402         * modules/send: Likewise.
20403         * modules/sendto: Likewise.
20404         * modules/setsockopt: Likewise.
20405         * modules/shutdown: Likewise.
20406         * modules/socket: Use socket.c instead of winsock.c.
20407         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20408         * doc/posix-functions/accept.texi: Doc fix.
20409         * doc/posix-functions/bind.texi: Doc fix.
20410         * doc/posix-functions/close.texi: Doc fix.
20411         * doc/posix-functions/connect.texi: Doc fix.
20412         * doc/posix-functions/getpeername.texi: Doc fix.
20413         * doc/posix-functions/getsockname.texi: Doc fix.
20414         * doc/posix-functions/getsockopt.texi: Doc fix.
20415         * doc/posix-functions/ioctl.texi: Doc fix.
20416         * doc/posix-functions/listen.texi: Doc fix.
20417         * doc/posix-functions/recv.texi: Doc fix.
20418         * doc/posix-functions/recvfrom.texi: Doc fix.
20419         * doc/posix-functions/send.texi: Doc fix.
20420         * doc/posix-functions/sendto.texi: Doc fix.
20421         * doc/posix-functions/setsockopt.texi: Doc fix.
20422         * doc/posix-functions/shutdown.texi: Doc fix.
20423         * doc/posix-functions/socket.texi: Doc fix.
20424
20425 2008-10-20  Bruno Haible  <bruno@clisp.org>
20426
20427         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20428         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20429         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20430         as an alias for SIGABRT.
20431         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20432         (sigaction): Map it to SIGABRT.
20433         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20434
20435 2008-10-20  Bruno Haible  <bruno@clisp.org>
20436
20437         * lib/fts.c: Don't include lstat.h.
20438         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20439
20440         Move the lstat() declaration to <sys/stat.h>.
20441         * lib/lstat.h: Remove file.
20442         * lib/sys_stat.in.h: Add special invocation convention.
20443         (lstat): New declaration.
20444         * lib/lstat.c (orig_lstat): New function.
20445         (rpl_lstat): Use orig_lstat instead of lstat.
20446         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20447         AC_C_INLINE. Set REPLACE_LSTAT.
20448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20449         and REPLACE_LSTAT.
20450         * modules/lstat (Files): Remove lib/lstat.h.
20451         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20452         (Include): Specify <sys/stat.h> instead of lstat.h.
20453         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20454         REPLACE_LSTAT.
20455         * NEWS: Mention the change.
20456
20457 2008-10-20  Bruno Haible  <bruno@clisp.org>
20458
20459         * modules/posix_spawn-tests: New file.
20460         * tests/test-posix_spawn3.c: New file.
20461
20462 2008-10-20  Bruno Haible  <bruno@clisp.org>
20463
20464         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20465         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20466         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20467         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20468         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20469
20470 2008-10-20  Bruno Haible  <bruno@clisp.org>
20471
20472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20473         of posix_spawn on AIX 5.3.
20474
20475 2008-10-20  Bruno Haible  <bruno@clisp.org>
20476
20477         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20478
20479 2008-10-20  Bruno Haible  <bruno@clisp.org>
20480
20481         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20482         of AC_LANG_PROGRAM.
20483
20484 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20485
20486         * lib/netdb.in.h: Don't define GNU specific constants until they
20487         are supported or needed.  Reported by Bruno Haible
20488         <bruno@clisp.org>.
20489
20490 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20491
20492         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20493
20494 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20495
20496         * lib/getaddrinfo.h: Remove file.
20497         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20498         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20499         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20500         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20501         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20502         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20503         * tests/test-getaddrinfo.c: Likewise.
20504         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20505         * NEWS: Mention change.
20506
20507 2008-10-19  Bruno Haible  <bruno@clisp.org>
20508
20509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20510
20511 2008-10-19  Bruno Haible  <bruno@clisp.org>
20512
20513         * lib/wait-process.c: Include simply <sys/wait.h>.
20514         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20515         WIFSTOPPED): Remove fallback definitions.
20516         * modules/wait-process (Depends-on): Add sys_wait.
20517
20518         New module 'sys_wait'.
20519         * modules/sys_wait: New file.
20520         * lib/sys_wait.in.h: New file, partially copied from
20521         lib/wait-process.c.
20522         * m4/sys_wait_h.m4: New file.
20523         * doc/posix-headers/sys_wait.texi: Mention the new module.
20524
20525 2008-10-19  Bruno Haible  <bruno@clisp.org>
20526
20527         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20528
20529 2008-10-19  Bruno Haible  <bruno@clisp.org>
20530
20531         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20532         * lib/wait-process.c (WAIT_T): Remove type.
20533         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20534         (wait_subprocess): Update.
20535
20536 2008-10-19  Bruno Haible  <bruno@clisp.org>
20537
20538         New module 'atoll'.
20539         * modules/atoll: New file.
20540         * lib/stdlib.in.h (atoll): New declaration.
20541         * lib/atoll.c: New file, from glibc with modifications.
20542         * m4/atoll.m4: New file.
20543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20544         HAVE_ATOLL.
20545         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20546         * doc/posix-functions/atoll.texi: Mention the new module.
20547
20548 2008-10-19  Bruno Haible  <bruno@clisp.org>
20549
20550         Add strtoull() declaration to <stdlib.h>.
20551         * lib/stdlib.in.h (strtoull): New declaration.
20552         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20553         Set HAVE_STRTOULL.
20554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20555         HAVE_STRTOULL.
20556         * modules/strtoull (Depends-on): Add stdlib.
20557         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20558         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20559         HAVE_STRTOULL.
20560
20561 2008-10-19  Bruno Haible  <bruno@clisp.org>
20562
20563         Add strtoll() declaration to <stdlib.h>.
20564         * lib/stdlib.in.h (strtoll): New declaration.
20565         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20566         Set HAVE_STRTOLL.
20567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20568         HAVE_STRTOLL.
20569         * modules/strtoll (Depends-on): Add stdlib.
20570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20571         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20572
20573 2008-10-19  Bruno Haible  <bruno@clisp.org>
20574
20575         * modules/bcopy (Depends-on): Add strings.
20576         (Include): Specify <strings.h>.
20577
20578 2008-10-19  Bruno Haible  <bruno@clisp.org>
20579
20580         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20581
20582 2008-10-19  Bruno Haible  <bruno@clisp.org>
20583
20584         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20585         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20586         mingw.
20587
20588 2008-10-19  Bruno Haible  <bruno@clisp.org>
20589
20590         * lib/atanl.c: Don't include isnanl.h.
20591         * lib/cosl.c: Likewise.
20592         * lib/ldexpl.c: Likewise.
20593         * lib/logl.c: Likewise.
20594         * lib/sinl.c: Likewise.
20595         * lib/sqrtl.c: Likewise.
20596         * lib/tanl.c: Likewise.
20597
20598         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20599         * lib/isnanf.h: Remove file.
20600         * lib/isnand.h: Remove file.
20601         * lib/isnanl.h: Remove file.
20602         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20603         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20604         macros.
20605         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20606         HAVE_ISNANF, don't define it as a C macro.
20607         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20608         HAVE_ISNAND, don't define it as a C macro.
20609         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20610         HAVE_ISNANL, don't define it as a C macro.
20611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20612         HAVE_ISNAN[FDL].
20613         * modules/isnanf (Files): Remove lib/isnanf.h.
20614         (Depends-on): Add math.
20615         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20616         (Include): Specify <math.h> instead of isnanf.h.
20617         * modules/isnand (Files): Remove lib/isnand.h.
20618         (Depends-on): Add math.
20619         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20620         (Include): Specify <math.h> instead of isnand.h.
20621         * modules/isnanl (Files): Remove lib/isnanl.h.
20622         (Depends-on): Add math.
20623         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20624         (Include): Specify <math.h> instead of isnanl.h.
20625         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20626         HAVE_ISNAN[FDL].
20627         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20628         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20629         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20630         * NEWS: Mention the change.
20631
20632 2008-10-18  Bruno Haible  <bruno@clisp.org>
20633
20634         Add getusershell(), setusershell(), endusershell() declarations to
20635         <unistd.h>.
20636         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20637         declarations.
20638         * lib/getusershell.c: Include unistd.h.
20639         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20640         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20641         HAVE_GETUSERSHELL.
20642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20643         and HAVE_GETUSERSHELL.
20644         * modules/getusershell (Depends-on): Add unistd, extensions.
20645         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20646         (Include): Specify <unistd.h>.
20647         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20648         HAVE_GETUSERSHELL.
20649
20650 2008-10-18  Bruno Haible  <bruno@clisp.org>
20651
20652         Add a getloadavg() declaration to <stdlib.h>.
20653         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20654         getloadavg declaration.
20655         (getloadavg): New declaration.
20656         * lib/getloadavg.c: Include <stdlib.h> first.
20657         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20658         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20659         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20661         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20662         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20663         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20664         (Include): Specify <stdlib.h>.
20665         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20666         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20667
20668 2008-10-18  Bruno Haible  <bruno@clisp.org>
20669
20670         * lib/dirchownmod.c: Don't include lchmod.h.
20671
20672         Move the lchmod() declaration to <sys/stat.h>.
20673         * lib/lchmod.h: Remove file.
20674         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20675         (lchmod): New declaration, moved here from lib/lchown.h.
20676         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20677         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20679         and HAVE_LCHMOD.
20680         * modules/lchmod (Files): Remove lib/lchmod.h.
20681         (Depends-on): Add sys_stat, extensions.
20682         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20683         (Include): Specify <sys/stat.h> instead of lchmod.h.
20684         * modules/sys_stat (Depends-on): Add link-warning.
20685         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20686         definition of GL_LINK_WARNING.
20687         * NEWS: Mention the change.
20688
20689 2008-10-18  Bruno Haible  <bruno@clisp.org>
20690
20691         * lib/fchdir.c: Don't include dirfd.h.
20692         * lib/fts.c: Likewise.
20693         * lib/getcwd.c: Likewise.
20694         * lib/glob.c: Likewise.
20695
20696         Move the dirfd() declaration to <dirent.h>.
20697         * lib/dirfd.h: Remove file.
20698         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20699         (dirfd): New declaration.
20700         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20701         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20702         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20703         HAVE_DECL_DIRFD.
20704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20705         HAVE_DECL_DIRFD.
20706         * modules/dirfd (Files): Remove lib/dirfd.h.
20707         (Depends-on): Add dirent, extensions.
20708         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20709         (Include): Specify <dirent.h> instead of dirfd.h.
20710         * modules/dirent (Depends-on): Add link-warning.
20711         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20712         definition of GL_LINK_WARNING.
20713         * NEWS: Mention the change.
20714
20715 2008-10-18  Bruno Haible  <bruno@clisp.org>
20716
20717         Move the euidaccess() declaration to <unistd.h>.
20718         * lib/euidaccess.h: Remove file.
20719         * lib/unistd.in.h (euidaccess): New declaration.
20720         * lib/euidaccess.c: Don't include euidaccess.h.
20721         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20722         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20724         and HAVE_EUIDACCESS.
20725         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20726         (Depends-on): Add unistd.
20727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20728         (Include): Specify <unistd.h> instead of euidaccess.h.
20729         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20730         HAVE_EUIDACCESS.
20731         * NEWS: Mention the change.
20732
20733 2008-10-18  Bruno Haible  <bruno@clisp.org>
20734
20735         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20736
20737         Move the getdomainname() declaration to <unistd.h>.
20738         * lib/getdomainname.h: Remove file.
20739         * lib/unistd.in.h (getdomainname): New declaration.
20740         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20741         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20742         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20743         HAVE_GETDOMAINNAME.
20744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20745         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20746         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20747         (Depends-on): Add unistd, extensions.
20748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20749         (Includes): Specify <unistd.h> instead of getdomainname.h.
20750         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20751         HAVE_GETDOMAINNAME.
20752         * NEWS: Mention the change.
20753
20754 2008-10-18  Bruno Haible  <bruno@clisp.org>
20755
20756         * modules/dirent: New file.
20757         * m4/dirent_h.m4: New file.
20758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20759         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20760         * modules/fchdir (Files): Remove lib/dirent.in.h.
20761         (Depends-on): Add dirent.
20762         (Makefile.am): Move rules to modules/dirent.
20763         * doc/posix-headers/dirent.texi: Mention the new module.
20764
20765 2008-10-18  Bruno Haible  <bruno@clisp.org>
20766
20767         Avoid -Wunused-parameter warnings in public gnulib header files.
20768         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20769         macro.
20770         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20771
20772 2008-10-18  Bruno Haible  <bruno@clisp.org>
20773
20774         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20775         * doc/glibc-functions/error.texi: Mention the module 'error'.
20776         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20777         * doc/glibc-functions/getdomainname.texi: Mention the module
20778         'getdomainname'.
20779         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20780         * doc/glibc-functions/getpagesize.texi: Mention the module
20781         'getpagesize'.
20782         * doc/glibc-functions/getusershell.texi: Mention the module
20783         'getusershell'.
20784         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20785         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20786         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20787         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20788         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20789         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20790         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20791         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20792         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20793         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20794         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20795         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20796         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20797         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20798
20799 2008-10-17  Bruno Haible  <bruno@clisp.org>
20800
20801         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20802         HP-UX and IRIX, use -0.0L.
20803         * tests/test-ceill.c (minus_zero): Likewise.
20804         * tests/test-floorl.c (minus_zero): Likewise.
20805         * tests/test-frexpl.c (minus_zero): Likewise.
20806         * tests/test-isnan.c (minus_zerol): Likewise.
20807         * tests/test-isnanl.h (minus_zero): Likewise.
20808         * tests/test-ldexpl.c (minus_zero): Likewise.
20809         * tests/test-roundl.c (minus_zero): Likewise.
20810         * tests/test-signbit.c (minus_zerol): Likewise.
20811         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20812         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20813         * tests/test-truncl.c (minus_zero): Likewise.
20814         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20815         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20816         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20817         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20818
20819 2008-10-17  Bruno Haible  <bruno@clisp.org>
20820
20821         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20822         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20823         that it gets activated only for gcc >= 3.0.
20824         * lib/dirent.in.h: Likewise.
20825         * lib/errno.in.h: Likewise.
20826         * lib/fcntl.in.h: Likewise.
20827         * lib/float.in.h: Likewise.
20828         * lib/iconv.in.h: Likewise.
20829         * lib/inttypes.in.h: Likewise.
20830         * lib/locale.in.h: Likewise.
20831         * lib/math.in.h: Likewise.
20832         * lib/netdb.in.h: Likewise.
20833         * lib/netinet_in.in.h: Likewise.
20834         * lib/search.in.h: Likewise.
20835         * lib/signal.in.h: Likewise.
20836         * lib/spawn.in.h: Likewise.
20837         * lib/stdarg.in.h: Likewise.
20838         * lib/stdint.in.h: Likewise.
20839         * lib/stdio.in.h: Likewise.
20840         * lib/stdlib.in.h: Likewise.
20841         * lib/string.in.h: Likewise.
20842         * lib/strings.in.h: Likewise.
20843         * lib/sys_file.in.h: Likewise.
20844         * lib/sys_ioctl.in.h: Likewise.
20845         * lib/sys_select.in.h: Likewise.
20846         * lib/sys_socket.in.h: Likewise.
20847         * lib/sys_stat.in.h: Likewise.
20848         * lib/sys_time.in.h: Likewise.
20849         * lib/sysexits.in.h: Likewise.
20850         * lib/time.in.h: Likewise.
20851         * lib/unistd.in.h: Likewise.
20852         * lib/wchar.in.h: Likewise.
20853         * lib/wctype.in.h: Likewise.
20854         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20855
20856 2008-10-17  Jim Meyering  <meyering@redhat.com>
20857
20858         ignore-value: don't depend on inline module
20859         * modules/ignore-value (Depends-on): Remove 'inline'.
20860         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20861         Suggestion from Bruno Haible.
20862
20863 2008-10-17  Bruno Haible  <bruno@clisp.org>
20864
20865         New implementation of condition variables for Win32.
20866         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20867         (gl_linked_waitqueue_t): New type.
20868         (gl_cond_t): Use it.
20869         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20870         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20871         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20872         (glthread_cond_init_func, glthread_cond_wait_func,
20873         glthread_cond_timedwait_func, glthread_cond_signal_func,
20874         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20875         Reimplemented on the basis of gl_linked_waitqueue_t.
20876         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20877         gl_waitqueue_t.
20878         (gl_rwlock_t): Update.
20879         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20880
20881 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20882
20883         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20884         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20885
20886 2008-10-17  Jim Meyering  <meyering@redhat.com>
20887
20888         ignore-value: new module
20889         * modules/ignore-value: New file.
20890         * lib/ignore-value.h: New file.
20891         * MODULES.html.sh (Compiler warning management): New section,
20892         just for this module.  More to come.
20893
20894 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20895
20896         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20897         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20898         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20899
20900 2008-10-16  Jim Meyering  <meyering@redhat.com>
20901
20902         openat-die.c: avoid 'no previous prototype' warning
20903         * lib/openat-die.c: Include "openat.h".
20904         Reported by Reuben Thomas <rrt@sc3d.org>.
20905
20906 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20907
20908         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20909         * lib/netdb.in.h: Fix typo.
20910         Reported by Bruno Haible  <bruno@clisp.org>
20911
20912         * lib/netdb.in.h: Include sys/socket.h for platforms without
20913         netdb.h, to get structures like hostent on MinGW.
20914         * modules/netdb (Depends-on): Add sys_socket.
20915
20916 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20917
20918         * modules/netdb, modules/netdb-tests: New file.
20919         * m4/netdb_h.m4: New file.
20920         * lib/netdb.in.h: Add, currently just an empty file pending
20921         definitions.
20922         * tests/test-netdb.c: New file.
20923         * doc/posix-headers/netdb.texi: Mention that we replace it if
20924         needed.
20925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20926         netdb.
20927
20928 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20929
20930         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20931         with code.
20932
20933 2008-10-13  Bruno Haible  <bruno@clisp.org>
20934
20935         * lib/glthread/cond.c (glthread_cond_wait_func,
20936         glthread_cond_timedwait_func): Add a comment.
20937
20938 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20939
20940         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20941         * tests/test-select.c: Likewise,
20942
20943 2008-10-13  Bruno Haible  <bruno@clisp.org>
20944
20945         * lib/glthread/cond.c (glthread_cond_wait_func,
20946         glthread_cond_timedwait_func): Fix variable name.
20947         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20948
20949 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20950
20951         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20953         struct sockaddr.sa_len.
20954         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20955
20956 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20957
20958         * build-aux/pmccabe2html: Add css and css_url parameters.
20959
20960 2008-10-12  Bruno Haible  <bruno@clisp.org>
20961
20962         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20963         calling aclx_get.
20964         Reported by Rainer Tammer <tammer@tammer.net>.
20965
20966 2008-10-12  Bruno Haible  <bruno@clisp.org>
20967
20968         Use msvcrt aware primitives for creation/termination of Win32 threads.
20969         * lib/glthread/thread.c: Include <process.h>.
20970         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20971         (wrapper_func): Update signature.
20972         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20973
20974 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20975             Bruno Haible  <bruno@clisp.org>
20976
20977         Provide a Win32 implementation of the 'cond' module.
20978         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20979         * lib/glthread/cond.c (glthread_cond_init_func,
20980         glthread_cond_wait_func, glthread_cond_timedwait_func,
20981         glthread_cond_signal_func, glthread_cond_broadcast_func,
20982         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20983         * modules/cond (Dependencies): Add gettimeofday.
20984
20985 2008-10-11  Bruno Haible  <bruno@clisp.org>
20986
20987         Make sleep work on older versions of mingw.
20988         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20989         only whether it exists.
20990         * doc/posix-functions/sleep.texi: Mention the problem with older
20991         versions of mingw.
20992
20993 2008-10-11  Bruno Haible  <bruno@clisp.org>
20994
20995         New module 'shutdown'.
20996         * modules/shutdown: New file.
20997         * lib/sys_socket.in.h (shutdown): New declaration.
20998         * lib/winsock.c (shutdown): New function.
20999         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21000         GNULIB_SHUTDOWN.
21001         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21002         * doc/posix-functions/shutdown.texi: Document the new module.
21003
21004 2008-10-11  Jim Meyering  <meyering@redhat.com>
21005
21006         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21007
21008 2008-10-11  Bruno Haible  <bruno@clisp.org>
21009
21010         New module 'fclose'.
21011         * modules/fclose: New file.
21012         * lib/stdio.in.h (fclose): New declaration.
21013         * lib/fclose.c: New file.
21014         * m4/fclose.m4: New file.
21015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21016         REPLACE_FCLOSE.
21017         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21018         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21019         REPLACE_FCLOSE.
21020         * modules/close (Depends-on): fclose.
21021         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21022
21023 2008-10-11  Bruno Haible  <bruno@clisp.org>
21024
21025         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21026         set errno and don't call _close.
21027
21028 2008-10-10  Bruno Haible  <bruno@clisp.org>
21029
21030         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21031         ACL, not afterwards. Fixes test failure on Cygwin.
21032
21033 2008-10-09  Ben Pfaff  <blp@gnu.org>
21034
21035         * build-aux/announce-gen: Fix gnulib version related part of usage
21036         message.  Die with a useful error message if no tarballs are
21037         found.
21038
21039 2008-10-10  Jim Meyering  <meyering@redhat.com>
21040
21041         bootstrap: use git's --depth=N option only if it's supported
21042         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21043         recognize the --depth option.  Reported by Pádraig Brady.
21044
21045 2008-10-09  Bruno Haible  <bruno@clisp.org>
21046
21047         New module 'ioctl'.
21048         * modules/ioctl: New file.
21049         * lib/sys_socket.in.h (ioctl): Remove declaration.
21050         * lib/winsock.c: Include <sys/ioctl.h>.
21051         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21052         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21053         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21054         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21055         * doc/posix-functions/ioctl.texi: Mention the new module.
21056
21057 2008-10-09  Bruno Haible  <bruno@clisp.org>
21058
21059         New module 'sys_ioctl'.
21060         * lib/sys_ioctl.in.h: New file.
21061         * m4/sys_ioctl_h.m4: New file.
21062         * modules/sys_ioctl: New file.
21063         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21064
21065 2008-10-09  Bruno Haible  <bruno@clisp.org>
21066
21067         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21068         * lib/winsock.c: Include <stdarg.h>.
21069         (rpl_ioctl): Change to second argument 'int' and then varargs.
21070
21071 2008-10-09  Bruno Haible  <bruno@clisp.org>
21072
21073         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21074         when the sys_socket module is present and the system has <winsock2.h>.
21075
21076 2008-10-09  Bruno Haible  <bruno@clisp.org>
21077
21078         * doc/posix-functions/close.texi: Mention module 'close' instead of
21079         module 'sys_socket'.
21080
21081 2008-10-09  Bruno Haible  <bruno@clisp.org>
21082
21083         * doc/glibc-headers/sys_ioctl.texi: New file.
21084         * doc/gnulib.texi: Include it.
21085
21086 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21087             Bruno Haible  <bruno@clisp.org>
21088
21089         Combine the two replacements of 'close'.
21090         * lib/sys_socket.in.h (close): Define to a reminder to include
21091         <unistd.h>.
21092         (_gl_close_fd_maybe_socket): New declaration.
21093         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21094         * lib/winsock.c (close): Remove undefinition.
21095         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21096         needed for the gnulib module 'close'.
21097         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21098         define to an error symbol or to a warning, if suitable.
21099         * lib/close.c: Include <sys/socket.h>.
21100         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21101         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21102         UNISTD_H_HAVE_WINSOCK2_H.
21103         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21105         UNISTD_H_HAVE_WINSOCK2_H.
21106         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21107         (configure.ac): Set a module indicator.
21108         (Makefile.am): Substitute GNULIB_CLOSE.
21109         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21110         * modules/poll-tests (Depends-on): Add close.
21111         * modules/select-tests (Depends-on): Likewise.
21112
21113 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21114             Bruno Haible  <bruno@clisp.org>
21115
21116         New module 'close'.
21117         * modules/close: New file.
21118         * lib/unistd.in.h (close): Move declaration out of the
21119         FCHDIR_REPLACEMENT scope.
21120         (_gl_unregister_fd): New declaration.
21121         * lib/close.c: New file.
21122         * lib/fchdir.c (rpl_close): Remove function.
21123         * m4/close.m4: New file.
21124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21125         close.
21126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21127         REPLACE_CLOSE.
21128         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21129         REPLACE_CLOSE.
21130         * modules/fchdir (Depends-on): Add close.
21131
21132 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21133             Bruno Haible  <bruno@clisp.org>
21134
21135         * lib/fcntl.in.h (open): Simplify conditionals.
21136         (_gl_register_fd): New declaration.
21137         * lib/fchdir.c (rpl_open): Remove function.
21138         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21139         also.
21140         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21142         open.
21143
21144 2008-10-09  Jim Meyering  <meyering@redhat.com>
21145
21146         GNUmakefile: use the more name-space-friendly "_version"
21147         * top/GNUmakefile (_dummy): Update.
21148         (_version): Rename from "version".
21149
21150 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21151             Bruno Haible  <bruno@clisp.org>
21152
21153         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21154         rpl_close.
21155         (_gl_register_fd): New function, extracted from rpl_open.
21156         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21157         (rpl_open, rpl_opendir): Use _gl_register_fd.
21158
21159 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21160
21161         Fix organization of 'open' replacement.
21162         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21163         (gl_FUNC_OPEN): Use it.
21164         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21165
21166 2008-10-08  Bruno Haible  <bruno@clisp.org>
21167
21168         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21169
21170 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21171
21172         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21173         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21174         listen).
21175
21176 2008-10-08  Eric Blake  <ebb9@byu.net>
21177
21178         GNUmakefile: add 'make version' target
21179         * top/GNUmakefile (_curr-ver): Split version update rules...
21180         (version): ...into a target.
21181
21182 2008-10-07  Bruno Haible  <bruno@clisp.org>
21183
21184         Use a more portable replacement expression for -0.0L.
21185         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21186         instead of -0.0L. Fix m4 quotation.
21187
21188         * tests/test-signbit.c: Include <float.h>.
21189         (minus_zero): New variable.
21190         (test_signbitl): Use minus_zero instead of -zero.
21191         * modules/signbit-tests (Depends-on): Add float.
21192
21193         * tests/test-ceill.c: Include <float.h>.
21194         (zero): Remove variable.
21195         (minus_zero): New variable.
21196         (main): Use minus_zero instead of -zero.
21197         * modules/ceill-tests (Depends-on): Add float.
21198
21199         * tests/test-floorl.c: Include <float.h>.
21200         (zero): Remove variable.
21201         (minus_zero): New variable.
21202         (main): Use minus_zero instead of -zero.
21203         * modules/floorl-tests (Depends-on): Add float.
21204
21205         * tests/test-roundl.c: Include <float.h>.
21206         (zero): Remove variable.
21207         (minus_zero): New variable.
21208         (main): Use minus_zero instead of -zero.
21209         * modules/roundl-tests (Depends-on): Add float.
21210
21211         * tests/test-truncl.c: Include <float.h>.
21212         (zero): Remove variable.
21213         (minus_zero): New variable.
21214         (main): Use minus_zero instead of -zero.
21215         * modules/truncl-tests (Depends-on): Add float.
21216
21217         * tests/test-frexpl.c (zero): Remove variable.
21218         (minus_zero): New variable.
21219         (main): Use minus_zero instead of -zero.
21220         * modules/frexpl-tests (Depends-on): Add float.
21221
21222         * tests/test-isnan.c (zerol): Remove variable.
21223         (minus_zerol): New variable.
21224         (test_long_double): Use minus_zerol instead of -zerol.
21225         * modules/isnan-tests (Depends-on): Add float.
21226
21227         * tests/test-isnanl.h (zero): Remove variable.
21228         (minus_zero): New variable.
21229         (main): Use minus_zero instead of -zero.
21230         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21231         * modules/isnanl-tests (Depends-on): Add float.
21232
21233         * tests/test-ldexpl.c (zero): Remove variable.
21234         (minus_zero): New variable.
21235         (main): Use minus_zero instead of -zero.
21236         * modules/ldexpl-tests (Depends-on): Add float.
21237
21238         * tests/test-snprintf-posix.h (zerol): Remove variable.
21239         (minus_zerol): New variable.
21240         (test_function): Use minus_zerol instead of -zerol.
21241         * modules/snprintf-posix-tests (Depends-on): Add float.
21242         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21243
21244         * tests/test-sprintf-posix.h (zerol): Remove variable.
21245         (minus_zerol): New variable.
21246         (test_function): Use minus_zerol instead of -zerol.
21247         * modules/sprintf-posix-tests (Depends-on): Add float.
21248         * modules/vsprintf-posix-tests (Depends-on): Add float.
21249
21250         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21251         (minus_zerol): New variable.
21252         (test_function): Use minus_zerol instead of -zerol.
21253         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21254
21255         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21256         (minus_zerol): New variable.
21257         (test_function): Use minus_zerol instead of -zerol.
21258         * modules/vasprintf-posix-tests (Depends-on): Add float.
21259
21260 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21261
21262         * MODULES.html.sh (Support for building documentation): Mention
21263         pmccabe2html.  Sort entries.
21264
21265         Add pmccabe2html module, from gnupdf.
21266         * build-aux/pmccabe.css: New file.
21267         * build-aux/pmccabe2html: New file.
21268         * m4/pmccabe2html.m4: New file.
21269         * modules/pmccabe2html: New file.
21270
21271 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21272
21273         flock: new module
21274         * MODULES.html.sh: Add to list of modules.
21275         * lib/flock.c: flock implementation for Windows and Unix systems
21276         which have fcntl.
21277         * doc/glibc-functions/flock.texi: Update documentation.
21278         * lib/sys_file.in.h: <sys/file.h> header file.
21279         * m4/flock.m4: M4 macros.
21280         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21281         * modules/flock: flock module.
21282         * modules/flock-tests: flock tests module.
21283         * modules/sys_file: sys/file.h module.
21284         * tests/test-flock.c: test suite for flock.
21285
21286 2008-10-06  Jim Meyering  <meyering@redhat.com>
21287
21288         bootstrap: check for LT_INIT more portably still ;-)
21289         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21290         Spotted by Bruno Haible.
21291
21292 2008-10-06  Eric Blake  <ebb9@byu.net>
21293
21294         test-signbit: avoid tripping Irix cc bug on -0.0L
21295         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21296         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21297         entire testsuite consistent and avoids an Irix 6.2 bug.
21298
21299 2008-10-05  Bruno Haible  <bruno@clisp.org>
21300             Jim Meyering  <jim@meyering.net>
21301
21302         Add an option for ignoring EPIPE during close_stdout.
21303         * lib/closeout.h: Include <stdbool.h>.
21304         (close_stdout_set_ignore_EPIPE): New declaration.
21305         * lib/closeout.c: Include <stdbool.h>.
21306         (ignore_EPIPE): New variable.
21307         (close_stdout_set_ignore_EPIPE): New function.
21308         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21309         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21310         failure.
21311         * modules/closeout (Depends-on): Add stdbool.
21312
21313 2008-10-05  Bruno Haible  <bruno@clisp.org>
21314
21315         * modules/accept: New file.
21316         * modules/bind: New file.
21317         * modules/connect: New file.
21318         * modules/getpeername: New file.
21319         * modules/getsockname: New file.
21320         * modules/getsockopt: New file.
21321         * modules/listen: New file.
21322         * modules/recv: New file.
21323         * modules/recvfrom: New file.
21324         * modules/send: New file.
21325         * modules/sendto: New file.
21326         * modules/setsockopt: New file.
21327         * modules/socket: New file.
21328         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21329         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21330         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21331         the particular module is requested. Add a link warning when the
21332         particular module is not requested.
21333         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21334         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21335         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21336         the particular module is requested.
21337         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21338         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21339         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21340         * modules/sys_socket (Depends-on): Add link-warning.
21341         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21342         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21343         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21344         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21345         GL_LINK_WARNING.
21346         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21347         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21348         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21349         * doc/posix-functions/getpeername.texi: Mention the new module
21350         'getpeername'.
21351         * doc/posix-functions/getsockname.texi: Mention the new module
21352         'getsockname'.
21353         * doc/posix-functions/getsockopt.texi: Mention the new module
21354         'getsockopt'.
21355         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21356         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21357         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21358         * doc/posix-functions/send.texi: Mention the new module 'send'.
21359         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21360         * doc/posix-functions/setsockopt.texi: Mention the new module
21361         'setsockopt'.
21362         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21363         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21364         listen, connect, accept.
21365         * modules/select-tests (Depends-on): Likewise.
21366
21367 2008-10-05  Bruno Haible  <bruno@clisp.org>
21368
21369         * lib/winsock.c (strerror): Remove unused #undef.
21370         (rpl_close): Remove unused local variable.
21371
21372         * modules/sys_socket (Depends-on); Add errno.
21373
21374 2008-10-05  Bruno Haible  <bruno@clisp.org>
21375
21376         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21377         (select): Add a link warning when the 'select' module is not used.
21378         * modules/sys_select (Depends-on): Add link-warning.
21379         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21380         Suggested by Paolo Bonzini.
21381
21382 2008-10-05  Jim Meyering  <meyering@redhat.com>
21383
21384         bootstrap: check for LT_INIT more portably
21385         * build-aux/bootstrap: Avoid using grep -E, since it's not
21386         portable enough.  Suggestion from Bruno Haible.
21387
21388 2008-10-05  Bruno Haible  <bruno@clisp.org>
21389
21390         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21391         as being fixed by gnulib.
21392
21393 2008-10-05  Bruno Haible  <bruno@clisp.org>
21394
21395         * modules/select-tests: New file, mostly copied from
21396         modules/sys_select-tests.
21397         * tests/test-select.c: New file, mostly copied from
21398         tests/test-sys_select.c.
21399         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21400         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21401         (Makefile.am): Remove test_sys_select_LDADD.
21402
21403         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21404         to an undefined symbol, for an error message.
21405         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21406         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21407         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21408         winsock-select.c here.
21409         * modules/sys_select (Files): Remove lib/winsock-select.c.
21410         (Depends-on): Remove alloca.
21411         (Makefile.am): Substitute GNULIB_SELECT.
21412         * modules/select: New file.
21413         * doc/posix-functions/select.texi: Update.
21414
21415 2008-10-05  Bruno Haible  <bruno@clisp.org>
21416
21417         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21418         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21419         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21420         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21421         getdtablesize.
21422         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21423         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21424
21425 2008-10-05  Bruno Haible  <bruno@clisp.org>
21426
21427         * modules/getdtablesize-tests: New file.
21428         * tests/test-getdtablesize.c: New file.
21429
21430         New module 'getdtablesize'.
21431         * lib/unistd.in.h (getdtablesize): New declaration.
21432         * lib/getdtablesize.c: New file.
21433         * m4/getdtablesize.m4: New file.
21434         * modules/getdtablesize: New file.
21435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21436         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21437         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21438         HAVE_GETDTABLESIZE.
21439         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21440
21441 2008-10-05  Bruno Haible  <bruno@clisp.org>
21442
21443         * modules/sched (Makefile.am): Fix typo.
21444         Reported by Simon Josefsson.
21445
21446 2008-10-05  Jim Meyering  <meyering@redhat.com>
21447
21448         bootstrap: check for LT_INIT, too
21449         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21450         are deprecated.  Suggestion from Ralf Wildenhues.
21451
21452 2008-10-05  Bruno Haible  <bruno@clisp.org>
21453
21454         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21455         overriding them by ours.
21456         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21457
21458 2008-10-05  Jim Meyering  <meyering@redhat.com>
21459
21460         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21461         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21462         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21463
21464 2008-10-04  Bruno Haible  <bruno@clisp.org>
21465
21466         * modules/dup2 (License): Change to LGPLv2+.
21467         * modules/sleep (License): Likewise.
21468         * modules/perror (License): Likewise.
21469         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21470         Blake.
21471         * modules/signal (License): Likewise.
21472         * modules/sigprocmask (License): Likewise.
21473         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21474         Meyering.
21475
21476 2008-10-04  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21479         Reported by Rainer Tammer <tammer@tammer.net>.
21480
21481 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21482             Bruno Haible  <bruno@clisp.org>
21483
21484         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21485         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21486         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21487
21488 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21489
21490         filevercmp: new module
21491         * lib/filevercmp.h: New function filevercmp comparing version strings.
21492         * lib/filevercmp.c: Implementation of filevercmp function.
21493         * modules/filevercmp: Module metadata.
21494         * tests/test-filevercmp.c: Unit test for new module.
21495         * modules/filevercmp-tests: Unit test metadata.
21496         * MODULES.html.sh: Add filevercmp module.
21497
21498 2008-10-03  Bruno Haible  <bruno@clisp.org>
21499
21500         * lib/c-ctype.h: Add comment.
21501         Reported by Jim Meyering.
21502
21503 2008-10-02  Bruno Haible  <bruno@clisp.org>
21504
21505         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21506
21507 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21508
21509         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21510         name of bootstrap.conf accordingly.
21511
21512 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21513
21514         * build-aux/bootstrap: Install git-merge-changelog configuration
21515         items into .gitconfig if needed.
21516
21517 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21518
21519         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21520         git repository, and initialize/update it accordingly.
21521
21522 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21523
21524         * modules/fsync-tests: New file.
21525         * tests/test-fsync.c: New file.
21526
21527         New module 'fsync'.
21528         * lib/fsync.c: New file.
21529         * m4/fsync.m4: New file.
21530         * modules/fsync: New file.
21531         * lib/unistd.in.h (fsync): New declaration.
21532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21533         GNULIB_FSYNC and HAVE_FSYNC.
21534         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21535         * MODULES.html.sh (posix_functions): Add fsync.
21536         * doc/posix-functions/fsync.texi: Mention the new module.
21537
21538 2008-10-02  Jim Meyering  <meyering@redhat.com>
21539
21540         fts.c: sync with similar code from coreutils' remove.c
21541         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21542         Guard also with "#if defined __linux__", since for now at least,
21543         this code is Linux-kernel-specific.
21544
21545 2008-10-02  Jim Meyering  <meyering@redhat.com>
21546
21547         fts: bug fixes
21548         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21549         Include <sys/vfs.h>, not <sys/statfs.h>.
21550
21551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21552         Include <sys/vfs.h>, not <sys/statfs.h>.
21553
21554 2008-10-01  Bruno Haible  <bruno@clisp.org>
21555
21556         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21557         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21558         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21559         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21560         * doc/posix-functions/posix_spawnp.texi: Likewise.
21561         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21562         whether posix_spawn actually works.
21563         * m4/pipe.m4 (gl_PIPE): Likewise.
21564         * modules/execute (Files): Add m4/posix_spawn.m4.
21565         * modules/pipe (Files): Add m4/posix_spawn.m4.
21566         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21567
21568 2008-10-01  Jim Meyering  <meyering@redhat.com>
21569
21570         remove trailing spaces
21571         * NEWS: Likewise.
21572         * lib/poll.c (poll): Likewise.
21573         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21574         * lib/winsock.c (rpl_close): Likewise.
21575         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21576         * modules/yield: Likewise.
21577         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21578         * tests/test-sys_select.c (connect_to_socket): Likewise.
21579
21580         fts.c: adjust a new interface to be more generally useful
21581         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21582         (fts_build): Adjust caller.
21583
21584 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21585
21586         * modules/cond-tests: New file.
21587         * tests/test-cond.c: New file.
21588
21589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21590             Bruno Haible  <bruno@clisp.org>
21591
21592         * modules/cond (Dependencies): Add errno, time.
21593         * lib/glthread/cond.h: Include <time.h>.
21594         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21595         across platforms.
21596
21597 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21598             Bruno Haible  <bruno@clisp.org>
21599
21600         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21601
21602 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21603             Bruno Haible  <bruno@clisp.org>
21604
21605         * modules/tls-tests (Depends-on): Add thread, yield.
21606         (configure.ac): Remove all checks.
21607         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21608         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21609         gl_thread_self): Remove definitions. Include glthread/thread.h and
21610         glthread/yield.h instead.
21611         (test_tls): Pass an additional NULL argument to gl_thread_join.
21612
21613 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21614             Bruno Haible  <bruno@clisp.org>
21615
21616         * modules/lock-tests (Depends-on): Add thread, yield.
21617         (configure.ac): Remove all checks.
21618         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21619         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21620         gl_thread_self): Remove definitions. Include glthread/thread.h and
21621         glthread/yield.h instead.
21622         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21623         additional NULL argument to gl_thread_join.
21624
21625 2008-09-30  Bruno Haible  <bruno@clisp.org>
21626
21627         Fix the Win32 implementation of the 'thread' module.
21628         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21629         pointer type.
21630         (gl_thread_self): Invoke gl_thread_self_func.
21631         (gl_thread_self_func): New declaration.
21632         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21633         (do_init_self_key, init_self_key): New functions.
21634         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21635         Remove some fields.
21636         (running_threads, running_lock): Remove variables.
21637         (get_current_thread_handle): New function.
21638         (gl_thread_self_func, wrapper_func, glthread_create_func,
21639         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21640         simplified.
21641
21642 2008-09-30  Bruno Haible  <bruno@clisp.org>
21643
21644         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21645         files.
21646
21647 2008-09-30  Jim Meyering  <meyering@redhat.com>
21648
21649         fts.m4: correct the test for statfs.f_type
21650         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21651         when checking for statfs.f_type.
21652
21653 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21654
21655         tests: avoid some compiler warnings
21656         * tests/test-memchr.c (main): Pass NULL indirectly.
21657         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21658
21659 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21660
21661         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21662         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21663         exactly specified dayshifts.
21664         (dayshift): New rule.
21665         (rel): Add dayshift.
21666         (relative_time_table) [tomorrow, yesterday, today, now]:
21667         Use tDAY_SHIFT in place of tDAY_UNIT.
21668         * tests/test-getdate.c: Add tests for now-disallowed countable
21669         dayshifts, e.g., "4 yesterday ago".
21670
21671 2008-09-29  Bruno Haible  <bruno@clisp.org>
21672
21673         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21674         * tests/test-posix_spawn1.in.sh: Renamed from
21675         tests/test-posix_spawn.in.sh.
21676         * tests/test-posix_spawn2.c: New file.
21677         * tests/test-posix_spawn2.in.sh: New file.
21678         * modules/posix_spawnp-tests (Files): Update.
21679         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21680
21681 2008-09-29  Bruno Haible  <bruno@clisp.org>
21682
21683         Propagate effects of putenv/setenv/unsetenv to child processes.
21684         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21685         * lib/pipe.c (create_pipe): Likewise.
21686
21687 2008-09-29  Bruno Haible  <bruno@clisp.org>
21688
21689         Enable use of shell scripts as executables in mingw.
21690         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21691         run the program as a shell script.
21692         * lib/pipe.c (create_pipe): Likewise.
21693         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21694         resulting array.
21695
21696 2008-09-29  Eric Blake  <ebb9@byu.net>
21697
21698         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21699
21700 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21701
21702         * doc/posix-functions/accept.texi: Update mingw problems.
21703         * doc/posix-functions/bind.texi: Update mingw problems.
21704         * doc/posix-functions/close.texi: Update mingw problems.
21705         * doc/posix-functions/connect.texi: Update mingw problems.
21706         * doc/posix-functions/getpeername.texi: Update mingw problems.
21707         * doc/posix-functions/getsockname.texi: Update mingw problems.
21708         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21709         * doc/posix-functions/ioctl.texi: Update mingw problems.
21710         * doc/posix-functions/listen.texi: Update mingw problems.
21711         * doc/posix-functions/recv.texi: Update mingw problems.
21712         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21713         * doc/posix-functions/select.texi: Update mingw problems.
21714         * doc/posix-functions/send.texi: Update mingw problems.
21715         * doc/posix-functions/sendto.texi: Update mingw problems.
21716         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21717         * doc/posix-functions/socket.texi: Update mingw problems.
21718
21719 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21720             Bruno Haible  <bruno@clisp.org>
21721
21722         * lib/sys_select.in.h: Include sys/time.h.
21723         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21724         * modules/sys_select: Depend on sys_time.
21725         * tests/test-sys_select.c: Test that sys/select.h defines struct
21726         timeval fully.
21727
21728 2008-09-29  Bruno Haible  <bruno@clisp.org>
21729
21730         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21731         * lib/sys_select.in.h: Likewise.
21732
21733 2008-09-29  Bruno Haible  <bruno@clisp.org>
21734
21735         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21736
21737 2008-09-29  Bruno Haible  <bruno@clisp.org>
21738
21739         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21740         Set LIBSOCKET instead of augmenting LIBS.
21741         * modules/sockets (Link): New section.
21742         * modules/sockets-tests (test_sockets_LDADD): New variable.
21743         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21744         * modules/poll-tests (test_poll_LDADD): New variable.
21745         * NEWS: Document the change.
21746
21747 2008-09-29  Bruno Haible  <bruno@clisp.org>
21748
21749         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21750         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21751         ARPA_INET_H directly.
21752         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21753
21754 2008-09-28  Bruno Haible  <bruno@clisp.org>
21755
21756         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21757         from gl_HEADER_SYS_SOCKET.
21758         (gl_HEADER_SYS_SOCKET): Invoke it.
21759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21760
21761 2008-09-28  Bruno Haible  <bruno@clisp.org>
21762
21763         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21764         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21765         Needed on OSF/1 4.0.
21766
21767 2008-09-28  Bruno Haible  <bruno@clisp.org>
21768
21769         Override open more carefully.
21770         * lib/open.c (orig_open): New function.
21771         (rpl_open): Use orig_open instead of open.
21772         * lib/fcntl.in.h: Add special invocation convention.
21773         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21774         (gl_FUNC_OPEN): Invoke it.
21775
21776         Override freopen more carefully.
21777         * lib/freopen.c (orig_freopen): New function.
21778         (rpl_freopen): Use orig_freopen instead of freopen.
21779         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21780         (gl_FUNC_FREOPEN): Invoke it.
21781
21782         Override fopen more carefully.
21783         * lib/fopen.c (orig_fopen): New function.
21784         (rpl_fopen): Use orig_fopen instead of fopen.
21785         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21786         (gl_FUNC_FOPEN): Invoke it.
21787         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21788
21789 2008-09-28  Bruno Haible  <bruno@clisp.org>
21790
21791         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21792         SIGPIPE.
21793
21794 2008-09-28  Bruno Haible  <bruno@clisp.org>
21795
21796         * tests/test-sigaction.c (handler, main): Disable the check whether
21797         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21798         glibc systems with LinuxThreads.
21799
21800 2008-09-28  Bruno Haible  <bruno@clisp.org>
21801
21802         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21803
21804         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21805         with AIX xlc.
21806         * lib/fcntl.in.h (open): Likewise.
21807         Reported by Rainer Tammer <tammer@tammer.net>.
21808
21809 2008-09-28  Bruno Haible  <bruno@clisp.org>
21810
21811         * modules/posix_spawnp-tests: New file.
21812         * tests/test-posix_spawn.c: New file.
21813         * tests/test-posix_spawn.in.sh: New file.
21814
21815         New module 'posix_spawnp'.
21816         * modules/posix_spawnp: New file.
21817         * lib/spawnp.c: New file, from GNU libc with modifications.
21818         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21819
21820         New module 'posix_spawn'.
21821         * modules/posix_spawn: New file.
21822         * lib/spawn.c: New file, from GNU libc with modifications.
21823         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21824
21825         New module 'posix_spawnattr_destroy'.
21826         * modules/posix_spawnattr_destroy: New file.
21827         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21828         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21829         module.
21830
21831         New module 'posix_spawnattr_setsigmask'.
21832         * modules/posix_spawnattr_setsigmask: New file.
21833         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21834         modifications.
21835         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21836         new module.
21837
21838         New module 'posix_spawnattr_getsigmask'.
21839         * modules/posix_spawnattr_getsigmask: New file.
21840         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21841         modifications.
21842         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21843         new module.
21844
21845         New module 'posix_spawnattr_setsigdefault'.
21846         * modules/posix_spawnattr_setsigdefault: New file.
21847         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21848         modifications.
21849         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21850         new module.
21851
21852         New module 'posix_spawnattr_getsigdefault'.
21853         * modules/posix_spawnattr_getsigdefault: New file.
21854         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21855         modifications.
21856         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21857         new module.
21858
21859         New module 'posix_spawnattr_setschedpolicy'.
21860         * modules/posix_spawnattr_setschedpolicy: New file.
21861         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21862         modifications.
21863         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21864         new module.
21865
21866         New module 'posix_spawnattr_getschedpolicy'.
21867         * modules/posix_spawnattr_getschedpolicy: New file.
21868         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21869         modifications.
21870         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21871         new module.
21872
21873         New module 'posix_spawnattr_setschedparam'.
21874         * modules/posix_spawnattr_setschedparam: New file.
21875         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21876         modifications.
21877         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21878         new module.
21879
21880         New module 'posix_spawnattr_getschedparam'.
21881         * modules/posix_spawnattr_getschedparam: New file.
21882         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21883         modifications.
21884         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21885         new module.
21886
21887         New module 'posix_spawnattr_setpgroup'.
21888         * modules/posix_spawnattr_setpgroup: New file.
21889         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21890         modifications.
21891         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21892         module.
21893
21894         New module 'posix_spawnattr_getpgroup'.
21895         * modules/posix_spawnattr_getpgroup: New file.
21896         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21897         modifications.
21898         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21899         module.
21900
21901         New module 'posix_spawnattr_setflags'.
21902         * modules/posix_spawnattr_setflags: New file.
21903         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21904         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21905         module.
21906
21907         New module 'posix_spawnattr_getflags'.
21908         * modules/posix_spawnattr_getflags: New file.
21909         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21910         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21911         module.
21912
21913         New module 'posix_spawnattr_init'.
21914         * modules/posix_spawnattr_init: New file.
21915         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21916         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21917         module.
21918
21919         New module 'posix_spawn_file_actions_destroy'.
21920         * modules/posix_spawn_file_actions_destroy: New file.
21921         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21922         modifications.
21923         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21924         the new module.
21925
21926         New module 'posix_spawn_file_actions_addopen'.
21927         * modules/posix_spawn_file_actions_addopen: New file.
21928         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21929         modifications.
21930         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21931         the new module.
21932
21933         New module 'posix_spawn_file_actions_adddup2'.
21934         * modules/posix_spawn_file_actions_adddup2: New file.
21935         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21936         modifications.
21937         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21938         the new module.
21939
21940         New module 'posix_spawn_file_actions_addclose'.
21941         * modules/posix_spawn_file_actions_addclose: New file.
21942         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21943         modifications.
21944         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21945         the new module.
21946
21947         New module 'posix_spawn_file_actions_init'.
21948         * modules/posix_spawn_file_actions_init: New file.
21949         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21950         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21951         new module.
21952
21953         New module 'posix_spawn-internal'.
21954         * modules/posix_spawn-internal: New file.
21955         * lib/spawn_int.h: New file, from GNU libc with modifications.
21956         * lib/spawni.c: New file, from GNU libc with modifications.
21957         * m4/posix_spawn.m4: New file.
21958
21959         New module 'spawn'.
21960         * modules/spawn: New file.
21961         * lib/spawn.in.h: New file, from GNU libc with modifications.
21962         * m4/spawn_h.m4: New file.
21963         * doc/posix-headers/spawn.texi: Mention the new module.
21964
21965 2008-09-28  Bruno Haible  <bruno@clisp.org>
21966
21967         * modules/sched-tests: New file.
21968         * tests/test-sched.c: New file.
21969
21970         New module 'sched'.
21971         * modules/sched: New file.
21972         * lib/sched.in.h: New file.
21973         * m4/sched_h.m4: New file.
21974         * doc/posix-headers/sched.texi: Mention the new module.
21975
21976 2008-09-27  Eric Blake  <ebb9@byu.net>
21977
21978         Fix previous patch, and tweak references to $0.
21979         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21980         (func_version, func_gnulib_dir): Don't call this program
21981         gnulib-tool.
21982         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21983         with using $0 in function.
21984         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21985         (func_fatal_error): Reuse the name the user invoked us with.
21986
21987 2008-09-27  Bruno Haible  <bruno@clisp.org>
21988
21989         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21990         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21991         (gl_ICONV_H): Not here.
21992         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21993         instead of assigning ICONV_H directly.
21994
21995         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21997         WCHAR_H directly.
21998
21999 2008-09-27  Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22002         * modules/arpa_inet (Depends-on): Add link-warning.
22003         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22004         * modules/unistd (Makefile.am): Likewise.
22005
22006 2008-09-26  Bruno Haible  <bruno@clisp.org>
22007
22008         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22009         variables.
22010         (func_version): Essentially copied from gnulib-tool.
22011         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22012         func_readlink): Copied from gnulib-tool.
22013
22014 2008-09-26  Bruno Haible  <bruno@clisp.org>
22015
22016         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22017         invoking git-version-gen.
22018
22019 2008-09-26  Bruno Haible  <bruno@clisp.org>
22020
22021         * posix-modules: Update to directory names changed on 2008-01-19.
22022         Remove commas in output before splitting into words. No more need to
22023         avoid 'ftruncate' since 2007-02-19.
22024
22025 2008-09-26  Bruno Haible  <bruno@clisp.org>
22026
22027         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22028
22029 2008-09-26  Bruno Haible  <bruno@clisp.org>
22030
22031         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22032         * modules/fwriteerror (Depends-on): Add errno.
22033
22034 2008-09-26  Bruno Haible  <bruno@clisp.org>
22035
22036         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22037         * tests/test-vc-list-files-cvs.sh: Likewise.
22038
22039 2008-09-26  Bruno Haible  <bruno@clisp.org>
22040
22041         * doc/posix-headers/sys_resource.texi: Reorder items.
22042
22043 2008-09-26  Jim Meyering  <meyering@redhat.com>
22044
22045         fts: tweak inode comparison function
22046         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22047         inode numbers, as documented.
22048
22049         fts: sort dirent entries on inode number before traversing
22050         This avoids a quadratic, seek-related performance penalty when
22051         operating on a directory containing many entries (measurable at 10k;
22052         3.5 hours at 2 million entries with a cold cache) on certain types
22053         of file systems, including ext3 and ext4, but not tmpfs.
22054         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22055         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22056         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22057         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22058         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22059         (fts_build): Set the stat.st_ino member from D_INO.
22060         If it is likely to be useful, sort dirent entries on inode number.
22061
22062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22063         and the struct statfs.f_type member.
22064         * modules/fts (Depends-on): Add d-ino.
22065
22066 2008-09-26  Bruno Haible  <bruno@clisp.org>
22067
22068         * modules/sigpipe-die (Depends-on): Add sigpipe.
22069
22070         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22071         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22072         and GNULIB_STDIO_H_SIGPIPE are set.
22073         * lib/stdio-write.c: New file.
22074         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22075         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22076         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22077         REPLACE_STDIO_WRITE_FUNCS.
22078         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22079         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22080         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22081         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22082         * modules/stdio (Files): Add lib/stdio-write.c.
22083         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22084         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22085         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22086         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22087         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22088         REPLACE_FPRINTF_POSIX.
22089         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22090         REPLACE_PRINTF_POSIX.
22091         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22092         REPLACE_VFPRINTF_POSIX.
22093         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22094         REPLACE_VPRINTF_POSIX.
22095         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22096         SIGPIPE issue.
22097         * doc/posix-functions/fputc.texi: Likewise.
22098         * doc/posix-functions/fputs.texi: Likewise.
22099         * doc/posix-functions/fwrite.texi: Likewise.
22100         * doc/posix-functions/printf.texi: Likewise.
22101         * doc/posix-functions/putc.texi: Likewise.
22102         * doc/posix-functions/putchar.texi: Likewise.
22103         * doc/posix-functions/puts.texi: Likewise.
22104         * doc/posix-functions/vfprintf.texi: Likewise.
22105         * doc/posix-functions/vprintf.texi: Likewise.
22106
22107         * modules/safe-write (Depends-on): Add write.
22108
22109         * modules/sigpipe-tests: New file.
22110         * tests/test-sigpipe.c: New file.
22111         * tests/test-sigpipe.sh: New file.
22112
22113         * modules/write: New file.
22114         * lib/unistd.in.h: Include <sys/types.h>.
22115         (write): New declaration.
22116         * lib/write.c: New file.
22117         * m4/write.m4: New file.
22118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22119         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22120         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22121         GNULIB_WRITE, REPLACE_WRITE.
22122         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22123         and the SIGPIPE issue.
22124
22125         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22126         (raise): New declaration.
22127         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22128         (ext_signal): New function.
22129         (rpl_raise): New function.
22130         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22131         GNULIB_SIGNAL_H_SIGPIPE.
22132         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22133         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22134
22135         * modules/sigpipe: New file.
22136         * m4/sigpipe.m4: New file.
22137
22138 2008-09-25  Derek Price  <derek@ximbiot.com>
22139             Bruno Haible  <bruno@clisp.org>
22140
22141         * gnulib-tool (func_import): Report all license incompatibilities, not
22142         just the first one.
22143
22144 2008-09-25  Bruno Haible  <bruno@clisp.org>
22145
22146         * gnulib-tool (func_import): When computing the edits, consider not
22147         only the Makefile.ams that exist but also those that will be generated.
22148
22149 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22150
22151         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22152         fixes gnulib-tool --test warning about duplicate dependency.
22153
22154 2008-09-25  Bruno Haible  <bruno@clisp.org>
22155
22156         * gnulib-tool: Don't ask the user to perform edits in the generated
22157         Makefile.ams.
22158         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22159         apply to the Makefile.am being generated.
22160         (func_emit_tests_Makefile_am): Execute edits that apply to the
22161         Makefile.am being generated.
22162         (func_import): Setup list of Makefile.am edits before emitting the
22163         Makefile.ams, not at the end.
22164         (func_create_testdir): Update.
22165         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22166
22167 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22168
22169         * gnulib-tool (func_import): Store the --tests-base option in the
22170         comment in gnulib-cache.m4.
22171
22172 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22173
22174         * NEWS: Document increased portability that sys_select now provides.
22175
22176         * lib/sys_select.in.h: Install select wrapper.
22177         * lib/sys_socket.in.h: Use more descriptive name when there is no
22178         select wrapper.
22179         * lib/winsock-select.c: New.
22180         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22181         Require gl_HEADER_SYS_SOCKET.
22182         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22183         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22184         * tests/test-sys_select.c: Add functional tests.
22185
22186 2008-09-24  Eric Blake  <ebb9@byu.net>
22187
22188         open, fopen: close fd leak in last patch
22189         * lib/open.c (rpl_open): Close fd before returning error.
22190         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22191         * doc/posix-functions/open.texi (open): Document that Irix also
22192         has the bug.
22193         * doc/posix-functions/fopen.texi (fopen): Likewise.
22194         Reported by Paolo Bonzini.
22195
22196 2008-09-24  Bruno Haible  <bruno@clisp.org>
22197
22198         Ensure that a filename ending in a slash cannot be used to access a
22199         non-directory.
22200         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22201         to check whether it's really a directory.
22202         * lib/fopen.c: Include fcntl.h, unistd.h.
22203         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22204         and fdopen().
22205         * modules/fopen (Depends-on): Add unistd.
22206         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22207         * tests/test-fopen.c (main): Likewise.
22208         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22209         * doc/posix-functions/fopen.texi: Likewise.
22210         Reported by Eric Blake.
22211
22212 2008-09-23  Eric Blake  <ebb9@byu.net>
22213
22214         c-stack: avoid compiler optimizations when provoking overflow
22215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22216         recursion harder to optimize, to ensure a stack overflow occurs.
22217         * tests/test-c-stack.c (recurse): Likewise.
22218         Borrowed from libsigsegv.
22219
22220         c-stack: work around Irix sigaltstack bug
22221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22222         whether sigaltstack uses wrong end of stack_t (copied in part from
22223         libsigsegv).
22224         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22225         Irix bug, without requiring an over-allocation.
22226         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22227         bug.
22228
22229         fopen: document mingw bug on directories
22230         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22231         not allowing a stream visiting a directory, even though reading
22232         from such a stream is not portable.
22233
22234 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22235
22236         * lib/poll.c: Rewrite.
22237         * modules/poll: Depend on alloca.
22238
22239 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22240
22241         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22242         instead define prototypes for a full set of wrappers.  Ensure
22243         that Cygwin does not use the compatibility code, which is only
22244         for MinGW.
22245         * lib/winsock.c: New.
22246         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22247         * modules/sys_socket: Add lib/winsock.c.
22248
22249         * modules/poll-tests: Add errno and perror.
22250         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22251
22252 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22253
22254         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22255
22256 2008-09-23  Bruno Haible  <bruno@clisp.org>
22257
22258         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22259         * doc/glibc-functions/*: Likewise.
22260
22261 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22262
22263         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22264         success.
22265
22266 2008-09-22  Eric Blake  <ebb9@byu.net>
22267             Bruno Haible  <bruno@clisp.org>
22268
22269         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22270         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22271         supply %A but mishandle pseudo-NaN.
22272         Reported by Simon Josefsson.
22273
22274 2008-09-21  Bruno Haible  <bruno@clisp.org>
22275
22276         * tests/test-lock.c (main): Tweak skip message.
22277         * tests/test-tls.c (main): Likewise.
22278
22279 2008-09-21  Bruno Haible  <bruno@clisp.org>
22280
22281         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22282         whether 'struct sigaction' has sa_sigaction here...
22283         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22284         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22285
22286 2008-09-21  Bruno Haible  <bruno@clisp.org>
22287
22288         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22289         section.
22290         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22291         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22292         the new section.
22293         (Support for obsolete systems lacking POSIX:2001): New section.
22294         (String handling <string.h>): Move strdup to the new section.
22295         Suggested by Simon Josefsson and Paolo Bonzini.
22296
22297 2008-09-21  Bruno Haible  <bruno@clisp.org>
22298
22299         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22300         exponents in %e and %g results on 'long double'. Needed for mingw's
22301         improved *printf functions.
22302         * tests/test-vasprintf-posix.c (test_function): Likewise.
22303         * tests/test-snprintf-posix.h (test_function): Likewise.
22304         * tests/test-sprintf-posix.h (test_function): Likewise.
22305         Reported by Eric Blake.
22306
22307 2008-09-21  Bruno Haible  <bruno@clisp.org>
22308
22309         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22310         * tests/test-sprintf-posix.h (test_function): Likewise.
22311
22312 2008-09-21  Bruno Haible  <bruno@clisp.org>
22313
22314         * modules/getpass (Depends-on): Add strdup-posix.
22315
22316         New module 'strdup-posix'.
22317         * modules/strdup-posix: New file.
22318         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22319         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22321         REPLACE_STRDUP.
22322         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22323         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22325         strdup-posix.
22326
22327         * modules/strdup (Depends-on): Remove malloc-posix.
22328
22329 2008-09-20  Bruno Haible  <bruno@clisp.org>
22330
22331         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22332         Wildenhues.
22333
22334 2008-09-20  Bruno Haible  <bruno@clisp.org>
22335
22336         Ensure that wint_t gets defined on IRIX 5.3.
22337         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22338         * lib/wctype.in.h (wint_t): Likewise.
22339         (__wctype_wint_t): Remove type.
22340         (isw*): Use wint_t instead of __wctype_wint_t.
22341         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22342         * modules/wchar (Files): Add m4/wint_t.m4.
22343         (Makefile.am): Substitute HAVE_WINT_T.
22344         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22345         * tests/test-wctype.c: Check that wint_t is defined.
22346         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22347         * doc/posix-headers/wctype.texi: Likewise.
22348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22349
22350 2008-09-18  Bruno Haible  <bruno@clisp.org>
22351
22352         * gnulib-tool (func_exit): Update comment.
22353
22354 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22355
22356         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22357         assumes strdup exists and does not depend on strdup to return
22358         ENOMEM on out of memory conditions.
22359
22360 2008-09-18  Bruno Haible  <bruno@clisp.org>
22361
22362         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22363         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22364         digits for the exponent.
22365
22366 2008-09-18  Jim Meyering  <meyering@redhat.com>
22367             Bruno Haible  <bruno@clisp.org>
22368
22369         * lib/vasnprintf.c (decimal_point_char): Define also if
22370         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22371
22372 2008-09-16  Bruno Haible  <bruno@clisp.org>
22373         and Eric Blake  <ebb9@byu.net>
22374
22375         vasnprintf: support Irix 5.3
22376         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22377         that mishandle long double infinity.
22378         Reported by Tom G. Christensen.
22379
22380 2008-09-16  Bruno Haible  <bruno@clisp.org>
22381
22382         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22383         Solaris 9.
22384         * doc/glibc-functions/alphasort.texi: Likewise.
22385         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22386
22387 2008-09-16  Jim Meyering  <meyering@redhat.com>
22388
22389         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22390         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22391         a umask modification leak out of a subshell.  Otherwise, the
22392         opensolaris /bin/sh would be accepted and thus cause unwarranted
22393         failures in the coreutils test suite.
22394
22395 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22396
22397         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22398         to succeed.
22399
22400 2008-09-16  Jim Meyering  <meyering@redhat.com>
22401
22402         avoid spurious test failure when library is built without ACL support
22403         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22404         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22405         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22406         * tests/test-copy-acl.sh: Likewise.
22407
22408 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22409
22410         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22411         based on character occurrence counts.
22412
22413 2008-09-15  Eric Blake  <ebb9@byu.net>
22414
22415         tests: avoid some compiler warnings
22416         * tests/test-memchr.c (main): Pass NULL indirectly.
22417         * tests/test-closein.c (main): Avoid unused variable.
22418
22419 2008-09-15  Bruno Haible  <bruno@clisp.org>
22420
22421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22422         are missing on OpenBSD 4.0 individually.
22423         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22424
22425 2008-09-15  Bruno Haible  <bruno@clisp.org>
22426
22427         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22428         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22429         * doc/posix-functions/perror.texi: Likewise.
22430         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22431         is missing.
22432         Reported by Eric Blake.
22433
22434         * lib/errno.in.h: Use replacement values >= 2000.
22435         Reported by Eric Blake.
22436
22437 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22438
22439         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22440         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22441         limit.
22442         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22443         compareseq was aborted.
22444
22445 2008-09-14  Bruno Haible  <bruno@clisp.org>
22446
22447         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22448         yvec_edit_count.
22449         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22450         (fstrcmp_bounded): Simplify result computation accordingly.
22451
22452 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22453
22454         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22455         (fstrcmp): Define in terms of fstrcmp_bounded.
22456         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22457         lower_bound argument.
22458         Return quickly if the result is certainly < lower_bound.
22459         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22460
22461 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22462
22463         * lib/diffseq.h (EARLY_ABORT): New macro.
22464         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22465         evaluates to true.
22466
22467 2008-09-14  Bruno Haible  <bruno@clisp.org>
22468
22469         * modules/perror-tests: New file.
22470         * tests/test-perror.sh: New file.
22471         * tests/test-perror.c: New file.
22472
22473         New module 'perror'.
22474         * lib/stdio.in.h (perror): New declaration.
22475         * lib/perror.c: New file.
22476         * m4/perror.m4: New file.
22477         * modules/perror: New file.
22478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22479         * doc/posix-functions/perror.texi: Mention the perror module.
22480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22481         REPLACE_PERROR.
22482         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22483         REPLACE_PERROR.
22484
22485 2008-09-14  Bruno Haible  <bruno@clisp.org>
22486
22487         * modules/stdio (Makefile.am): Reorder to match the order in
22488         lib/stdio.in.h.
22489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22490
22491 2008-09-13  Bruno Haible  <bruno@clisp.org>
22492
22493         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22494
22495 2008-09-13  Bruno Haible  <bruno@clisp.org>
22496
22497         Extend strerror to cover the added errno values.
22498         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22499         (rpl_strerror): Provide error messages for the added errno values and
22500         for the WSA* values.
22501         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22502         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22503         strerror.
22504         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22505         * modules/strerror (Depends-on): Add errno.
22506         * doc/posix-functions/strerror.texi: Document the change.
22507         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22508         and EOVERFLOW.
22509
22510 2008-09-13  Bruno Haible  <bruno@clisp.org>
22511
22512         * modules/EOVERFLOW: Remove file.
22513         * m4/eoverflow.m4: Remove file.
22514         * modules/EOVERFLOW-tests: Remove file.
22515         * tests/test-EOVERFLOW.c: Remove file.
22516         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22517         * modules/ftell (Depends-on): Likewise.
22518         * modules/getdelim (Depends-on): Likewise.
22519         * modules/getugroups (Depends-on): Likewise.
22520         * modules/poll (Depends-on): Likewise.
22521         * modules/snprintf (Depends-on): Likewise.
22522         * modules/sprintf-posix (Depends-on): Likewise.
22523         * modules/vasnprintf (Depends-on): Likewise.
22524         * modules/vasprintf (Depends-on): Likewise.
22525         * modules/vfprintf-posix (Depends-on): Likewise.
22526         * modules/vsnprintf (Depends-on): Likewise.
22527         * modules/vsprintf-posix (Depends-on): Likewise.
22528         * modules/xvasprintf (Depends-on): Likewise.
22529         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22530         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22531         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22532         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22533         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22534         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22535         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22536         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22537         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22538         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22539         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22540         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22541         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22542         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22543         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22544         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22545         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22546         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22547         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22548         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22549         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22550         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22551         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22552         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22553         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22554         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22555         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22556         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22557         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22558         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22559         * MODULES.html.sh: Remove EOVERFLOW.
22560         * NEWS: Mention the change.
22561
22562 2008-09-13  Bruno Haible  <bruno@clisp.org>
22563
22564         * modules/errno-tests: New file.
22565         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22566
22567         * lib/errno.in.h: New file.
22568         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22569         * modules/errno: New file.
22570         * doc/posix-headers/errno.texi: Update documentation.
22571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22572
22573 2008-09-13  Bruno Haible  <bruno@clisp.org>
22574
22575         * tests/test-poll.c: Use #if for native Windows, rather than testing
22576         __MSVCRT__.
22577
22578 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22579             Bruno Haible  <bruno@clisp.org>
22580
22581         * lib/glob.c: Don't include <pwd.h> on native Windows.
22582         (WINDOWS32): New macro.
22583         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22584
22585 2008-09-13  Bruno Haible  <bruno@clisp.org>
22586
22587         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22588         (ETIMEDOUT): Remove macro.
22589         (glthread_cond_timedwait_multithreaded): New declaration.
22590         (glthread_cond_timedwait): Use it.
22591         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22592         (glthread_cond_timedwait_multithreaded): New function.
22593
22594 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22595
22596         * modules/poll-tests: Do not check for io.h.
22597         * tests/test-poll.c: Check for __MSVCRT__ instead.
22598
22599 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22600
22601         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22602         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22603         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22604
22605 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22606
22607         * modules/poll-tests: New.
22608         * tests/test-poll.c: New.
22609
22610 2008-09-12  Eric Blake  <ebb9@byu.net>
22611
22612         frexp: test for NetBSD failure on -0.0
22613         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22614         not all, bugs from NetBSD 3.0 have been fixed.
22615         * doc/posix-functions/frexp.texi (frexp): Document bug.
22616         Reported by Thomas Klausner.
22617
22618         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22619         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22620         literal -0.0.
22621         Reported by Jonathan C. Patschke <jp@centtech.com>.
22622
22623 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22624
22625         * lib/glthread/cond.h: Use dummy implementation also if
22626         USE_WIN32_THREADS.
22627
22628 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22629
22630         * modules/fnmatch-posix (License): Change to LGPLv2+.
22631         * modules/fnmatch-gnu (License): Likewise.
22632
22633 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22634
22635         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22636
22637 2008-09-11  Jim Meyering  <meyering@redhat.com>
22638
22639         * users.txt: Add gtk-vnc.
22640
22641 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22642
22643         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22644         rotate amounts.
22645
22646         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22647         required for 16-bit and 8-bit rotates.
22648         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22649         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22650         UINT8_MAX instead of hard-coded constants.
22651         Suggested by Paul Eggert.
22652
22653 2008-09-07  Bruno Haible  <bruno@clisp.org>
22654
22655         * tests/test-striconveh.c (main): Check behaviour when converting from
22656         UTF-7.
22657
22658         Make striconveh work better with stateful encodings.
22659         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22660         that iconv does not increment the inptr when returning -1/EINVAL.
22661
22662 2008-09-07  Bruno Haible  <bruno@clisp.org>
22663
22664         * build-aux/config.rpath: Update according to libtool-2.2.6.
22665         * build-aux/config.libpath: Likewise.
22666
22667 2008-09-06  Bruno Haible  <bruno@clisp.org>
22668
22669         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22670         * lib/freadptr.c (freadptr): Likewise.
22671         * lib/freadseek.c (freadptrinc): Likewise.
22672         Reported by Simon Josefsson.
22673
22674 2008-09-06  Bruno Haible  <bruno@clisp.org>
22675
22676         * modules/freadptr (License): Change to LGPLv2+.
22677         * modules/freadseek (License): Likewise.
22678         Suggested by Eric Blake.
22679
22680         * modules/memchr2 (License): Change to LGPLv2+.
22681         Approved by Eric Blake.
22682
22683 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22684             Bruno Haible  <bruno@clisp.org>
22685
22686         Make gnulib-tool work with native 'sed' on AIX.
22687         * gnulib-tool (sed_noop): New variable.
22688         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22689         func_add_or_update, func_create_testdir): Use it to initialize sed
22690         script variables.
22691         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22692
22693 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22694             Bruno Haible  <bruno@clisp.org>
22695
22696         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22697         also works after #include directives.
22698
22699 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22700
22701         getdate.y: reject an out-of-range timezone value
22702         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22703         the range [-24...+24].  When specified with only one or two digits,
22704         * tests/test-getdate.c: Tests for the fix.
22705         * doc/getdate.texi: Document this change.
22706
22707 2008-09-03  Bruno Haible  <bruno@clisp.org>
22708
22709         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22710
22711 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22712
22713         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22714         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22715         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22716         Blake <ebb9@byu.net>.
22717
22718         * tests/test-bitrotate.c: Add more test vectors.
22719
22720 2008-09-02  Eric Blake  <ebb9@byu.net>
22721
22722         vasnprintf-posix: handle large precision via %.*d
22723         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22724         when handling it ourselves.
22725         * tests/test-vasnprintf-posix.c (test_function): Add test.
22726         * tests/test-snprintf-posix.h (test_function): Likewise.
22727         * tests/test-sprintf-posix.h (test_function): Likewise.
22728         * tests/test-vasprintf-posix.c (test_function): Likewise.
22729         Reported by Alain Guibert.
22730
22731 2008-09-01  Eric Blake  <ebb9@byu.net>
22732
22733         c-stack: make configure-time check more robust
22734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22735         successful sigaction call.
22736         Reported by Tom G. Christensen.
22737
22738 2008-09-01  Bruno Haible  <bruno@clisp.org>
22739
22740         New module 'findprog-lgpl'.
22741         * modules/findprog-lgpl: New file.
22742         * lib/findprog-lgpl.c: New file.
22743         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22744         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22745         to decide whether to use strdup or xstrdup, concatenated_filename or
22746         xconcatenated_filename.
22747
22748 2008-09-01  Bruno Haible  <bruno@clisp.org>
22749
22750         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22751         'xconcat-filename' (GPL).
22752         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22753         (License): Change to LGPLv2+.
22754         * modules/xconcat-filename: New file.
22755         * lib/concat-filename.h (concatenated_filename): Change specification.
22756         (xconcatenated_filename): New declaration.
22757         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22758         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22759         memory situations.
22760         * lib/xconcat-filename.c: New file.
22761         * NEWS: Mention the change.
22762         * lib/findprog.c: Include concat-filename.h, not filename.h.
22763         (find_in_path): Use xconcatenated_filename instead of
22764         concatenated_filename.
22765         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22766         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22767         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22768         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22769         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22770         instead of concatenated_filename.
22771         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22772         (execute_java_class): Use xconcatenated_filename instead of
22773         concatenated_filename.
22774         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22775         * modules/javacomp (Depends-on): Likewise.
22776         * modules/javaexec (Depends-on): Likewise.
22777
22778 2008-09-01  Bruno Haible  <bruno@clisp.org>
22779
22780         Split module 'filename' into 'filename' and 'concat-filename'.
22781         * modules/filename: Keep only lib/filename.h.
22782         (License): Change to LGPLv2+.
22783         * modules/concat-filename: New file, extracted from modules/filename.
22784         * lib/filename.h (concatenated_filename): Remove declaration.
22785         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22786         * lib/concat-filename.c: Include concat-filename.h.
22787         * NEWS: Mention the change.
22788
22789 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22790
22791         * lib/bitrotate.h (rotl8, rotr8): Add.
22792
22793         * modules/bitrotate (configure.ac): Need
22794         AC_REQUIRE([AC_C_INLINE]).
22795         (Description): Mention stdint.h.  Reported by Bruno Haible
22796         <bruno@clisp.org>.
22797
22798         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22799         Paolo Bonzini <bonzini@gnu.org>.
22800
22801 2008-08-31  Bruno Haible  <bruno@clisp.org>
22802
22803         Assume Solaris specific bi-arch conventions on Solaris systems.
22804         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22805         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22806         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22807         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22808         like acl_libdirstem.
22809         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22810         acl_libdirstem.
22811         * NEWS: Mention the change.
22812         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22813
22814 2008-08-31  Jim Meyering  <meyering@redhat.com>
22815
22816         * lib/strftime.h: Add comments describing the two added arguments.
22817
22818         remove duplicate #include directives
22819         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22820         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22821
22822 2008-08-31  Bruno Haible  <bruno@clisp.org>
22823
22824         New module 'sigpipe-die'.
22825         * modules/sigpipe-die: New file.
22826         * lib/sigpipe-die.h: New file.
22827         * lib/sigpipe-die.c: New file.
22828         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22829
22830 2008-08-31  Bruno Haible  <bruno@clisp.org>
22831
22832         Don't override previously installed signal handlers.
22833         * lib/fatal-signal.c (saved_sigactions): New variable.
22834         (uninstall_handlers): Reset the signal to the saved handler, not
22835         to SIG_DFL (except when ignored).
22836         (install_handlers): Save the previous handlers.
22837
22838 2008-08-30  Bruno Haible  <bruno@clisp.org>
22839
22840         * gnulib-tool (func_reset_sigpipe): New function.
22841         (func_get_automake_snippet, func_modules_transitive_closure,
22842         func_import): Invoke it before a join command that reads from stdin,
22843         to avoid "echo: write error: Broken pipe" error messages on stderr.
22844         Reported by Sam Steingold <sds@gnu.org>.
22845
22846 2008-08-30  Bruno Haible  <bruno@clisp.org>
22847
22848         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22849         Code copied from m4/open.m4.
22850         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22851         access and the filename ends in a slash. Code copied from lib/open.c.
22852         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22853         * tests/test-fopen.c (main): Check against bug with trailing slash.
22854
22855 2008-08-29  Bruno Haible  <bruno@clisp.org>
22856
22857         Avoid some "gcc -pedantic" warnings.
22858         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22859         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22860         * lib/dirent.in.h: Likewise.
22861         * lib/fcntl.in.h: Likewise.
22862         * lib/float.in.h: Likewise.
22863         * lib/iconv.in.h: Likewise.
22864         * lib/inttypes.in.h: Likewise.
22865         * lib/locale.in.h: Likewise.
22866         * lib/math.in.h: Likewise.
22867         * lib/netinet_in.in.h: Likewise.
22868         * lib/search.in.h: Likewise.
22869         * lib/signal.in.h: Likewise.
22870         * lib/stdarg.in.h: Likewise.
22871         * lib/stdint.in.h: Likewise.
22872         * lib/stdio.in.h: Likewise.
22873         * lib/stdlib.in.h: Likewise.
22874         * lib/string.in.h: Likewise.
22875         * lib/strings.in.h: Likewise.
22876         * lib/sys_select.in.h: Likewise.
22877         * lib/sys_socket.in.h: Likewise.
22878         * lib/sys_stat.in.h: Likewise.
22879         * lib/sys_time.in.h: Likewise.
22880         * lib/sysexits.in.h: Likewise.
22881         * lib/time.in.h: Likewise.
22882         * lib/unistd.in.h: Likewise.
22883         * lib/wchar.in.h: Likewise.
22884         * lib/wctype.in.h: Likewise.
22885         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22886         * modules/fchdir (Makefile.am): Likewise.
22887         * modules/fcntl (Makefile.am): Likewise.
22888         * modules/float (Makefile.am): Likewise.
22889         * modules/iconv_open (Makefile.am): Likewise.
22890         * modules/inttypes (Makefile.am): Likewise.
22891         * modules/locale (Makefile.am): Likewise.
22892         * modules/math (Makefile.am): Likewise.
22893         * modules/netinet_in (Makefile.am): Likewise.
22894         * modules/search (Makefile.am): Likewise.
22895         * modules/signal (Makefile.am): Likewise.
22896         * modules/stdarg (Makefile.am): Likewise.
22897         * modules/stdint (Makefile.am): Likewise.
22898         * modules/stdio (Makefile.am): Likewise.
22899         * modules/stdlib (Makefile.am): Likewise.
22900         * modules/string (Makefile.am): Likewise.
22901         * modules/strings (Makefile.am): Likewise.
22902         * modules/sys_select (Makefile.am): Likewise.
22903         * modules/sys_socket (Makefile.am): Likewise.
22904         * modules/sys_stat (Makefile.am): Likewise.
22905         * modules/sys_time (Makefile.am): Likewise.
22906         * modules/sysexits (Makefile.am): Likewise.
22907         * modules/time (Makefile.am): Likewise.
22908         * modules/unistd (Makefile.am): Likewise.
22909         * modules/wchar (Makefile.am): Likewise.
22910         * modules/wctype (Makefile.am): Likewise.
22911         Reported by Reuben Thomas <rrt@sc3d.org>.
22912
22913 2008-08-29  Bruno Haible  <bruno@clisp.org>
22914
22915         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22916         any more.
22917
22918 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22919
22920         * MODULES.html.sh (Misc): Add bitrotate.
22921
22922         * modules/bitrotate: New file.
22923
22924         * lib/bitrotate.h: New file.
22925
22926         * modules/bitrotate-tests: New file.
22927
22928         * tests/test-bitrotate.c: New file.
22929
22930         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22931         on the bitrotate module.
22932
22933         * lib/arctwo.c: Use new bitrotate module.
22934
22935 2008-08-29  Jim Meyering  <meyering@redhat.com>
22936
22937         bootstrap: merge changes from coreutils
22938         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22939         of copied files.  Remove a kludge, now that this is fixed.
22940         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22941         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22942         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22943
22944 2008-08-29  Bruno Haible  <bruno@clisp.org>
22945
22946         * MODULES.html.sh: Remove --cvs-urls option.
22947
22948 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22949
22950         maint.mk: adjust to file name change
22951         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22952
22953 2008-08-28  Jim Meyering  <meyering@redhat.com>
22954
22955         * modules/getndelim2 (License): Relicense to LGPLv2+.
22956         Approved by Richard Stallman for the version of 1995, and by
22957         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22958
22959 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22960
22961         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22962         dummy if one is not available.  Do not touch them if
22963         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22964         (getc_maybe_unlocked): New.
22965         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22966
22967 2008-08-26  Eric Blake  <ebb9@byu.net>
22968
22969         doc/INSTALL: resync from autoconf
22970         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22971         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22972         moving...
22973         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22974         * INSTALL: Regenerate.
22975         * INSTALL.ISO: New file.
22976         * INSTALL.UTF-8: Likewise.
22977
22978 2008-08-26  Jim Meyering  <meyering@redhat.com>
22979
22980         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22981         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22982         these definitions conditional, so that they may be overridden, too.
22983
22984 2008-08-26  Bruno Haible  <bruno@clisp.org>
22985
22986         Generate INSTALL file variants with prettier quotes.
22987         * doc/Makefile (INSTALL_PRELUDE): New macro.
22988         (INSTALL): Use it.
22989         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22990
22991 2008-08-26  Bruno Haible  <bruno@clisp.org>
22992
22993         Run makeinfo in an English locale.
22994         * doc/Makefile (MAKEINFO): New variable.
22995
22996 2008-08-26  Bruno Haible  <bruno@clisp.org>
22997
22998         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22999         Suggested by Eric Blake.
23000
23001 2008-08-25  Bruno Haible  <bruno@clisp.org>
23002
23003         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23004
23005 2008-08-25  Eric Blake  <ebb9@byu.net>
23006
23007         c-stack: test that stack overflow can be caught
23008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23009         that platform allows handling stack overflow; at least OS/2 EMX
23010         has sigaltstack, but crashes before transferring control to
23011         handler on stack overflow.
23012         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23013         check for HAVE_STACK_OVERFLOW_HANDLING.
23014         Reported by Elbert Pol.
23015
23016 2008-08-25  Bruno Haible  <bruno@clisp.org>
23017
23018         * doc/posix-functions/strftime.texi: Fix description of strftime
23019         module.
23020
23021 2008-08-24  Bruno Haible  <bruno@clisp.org>
23022
23023         * tests/uniwidth/test-uc_width2.c: New file.
23024         * tests/uniwidth/test-uc_width2.sh: New file.
23025         * modules/uniwidth/width-tests (Files): Add the new files.
23026         (TESTS): Add uniwidth/test-uc_width2.sh.
23027         (TESTS_ENVIRONMENT): New variable.
23028         (check_PROGRAMS): Add test-uc_width2.
23029         (test_uc_width2_SOURCES): New variable.
23030
23031         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23032         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23033         not 0x00AB.
23034         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23035
23036 2008-08-22  Eric Blake  <ebb9@byu.net>
23037
23038         test-lock, test-tls: mention why a test is skipped
23039         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23040         skipped.
23041         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23042
23043         count-one-bits: relax license
23044         * modules/count-one-bits (License): Relicense to LGPLv2+.
23045         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23046
23047 2008-08-22  Andreas Schwab  <schwab@suse.de>
23048
23049         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23050         Remove spurious space in assignment.
23051
23052 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23053
23054         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23055         Paul Eggert <eggert@CS.UCLA.EDU>.
23056
23057 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23058
23059         * modules/gettext: Add m4/threadlib.m4.
23060
23061 2008-08-19  Eric Blake  <ebb9@byu.net>
23062
23063         test-c-stack: fix compilation failure on FreeBSD 5.0
23064         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23065         headers before <sys/resource.h>.
23066         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23067         the bug.
23068         Reported by Nelson H. F. Beebe.
23069
23070         strverscmp: migrate from "strverscmp.h" to <string.h>
23071         * modules/string (Makefile.am): Add new hooks.
23072         * modules/strverscmp (Files): Remove strverscmp.h.
23073         (Depends-on): Add string.
23074         (configure.ac): Add indicator.
23075         (Include): Mention new header.
23076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23077         defaults.
23078         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23079         results.
23080         * lib/strverscmp.h: Delete.
23081         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23082         * tests/test-strverscmp.c (includes): Adjust client.
23083         * lib/check-version.c (includes): Likewise.
23084         * NEWS: Document the change.
23085
23086         strverscmp: add unit test
23087         * modules/strverscmp-tests: New file.
23088         * tests/test-strverscmp.c: Likewise.
23089
23090 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23091
23092         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23093         regarding Windows crypto stuff, from Mono.
23094
23095 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23096
23097         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23098         if present, for intel RND.  Return error on failures.
23099
23100 2008-08-18  Ben Pfaff  <blp@gnu.org>
23101
23102         gitlog-to-changelog: give better diagnostic for failed pipe-open
23103         * build-aux/gitlog-to-changelog: Improve error message: suggest
23104         that the version of Git may be too old.
23105
23106 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23107
23108         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23109         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23110
23111 2008-08-18  Bruno Haible  <bruno@clisp.org>
23112
23113         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23114         pthread_in_use().
23115
23116 2008-08-18  Bruno Haible  <bruno@clisp.org>
23117
23118         * lib/glthread/threadlib.c: Include <pthread.h>.
23119
23120 2008-08-18  Bruno Haible  <bruno@clisp.org>
23121
23122         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23123         glthread_recursive_lock_* macros.
23124         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23125         Fix syntax error.
23126
23127 2008-08-18  Bruno Haible  <bruno@clisp.org>
23128
23129         * lib/glthread/thread.c: Avoid forcing a context switch right after
23130         thread creation.
23131
23132 2008-08-17  Bruno Haible  <bruno@clisp.org>
23133
23134         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23135         * lib/glthread/thread.h: Provide Win32 specific implementation.
23136         * modules/thread (Files): Add lib/glthread/thread.c.
23137         (Depends-on): Add lock.
23138         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23139
23140 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23141
23142         New module 'yield'.
23143         * modules/yield: New file.
23144         * lib/glthread/yield.h: New file.
23145         * m4/yield.m4: New file.
23146         * MODULES.html.sh (Multithreading): Add yield.
23147
23148 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23149
23150         New module 'thread'.
23151         * modules/thread: New file.
23152         * lib/glthread/thread.h: New file.
23153         * m4/thread.m4: New file.
23154         * MODULES.html.sh (Multithreading): Add thread.
23155
23156 2008-08-17  Bruno Haible  <bruno@clisp.org>
23157
23158         * lib/glthread/lock.h: Include <stdlib.h> always.
23159         * lib/glthread/tls.h: Likewise.
23160         * lib/glthread/cond.h: Likewise.
23161
23162 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23163
23164         New module 'cond'.
23165         * modules/cond: New file.
23166         * lib/glthread/cond.h: New file.
23167         * lib/glthread/cond.c: New file.
23168         * m4/cond.m4: New file.
23169         * MODULES.html.sh (Multithreading): Add cond.
23170
23171 2008-08-16  Eric Blake  <ebb9@byu.net>
23172
23173         c-stack: fix regression on Irix 5.3 from 2008-06-21
23174         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23175         sa_sigaction...
23176         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23177         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23178         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23179         * modules/signal (Makefile.am): Use the value.
23180         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23181         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23182         * doc/posix-headers/signal.texi (signal.h): Document this
23183         portability issue.
23184         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23185         Reported by Tom G. Christensen.
23186
23187 2008-08-17  Bruno Haible  <bruno@clisp.org>
23188
23189         New module 'threadlib'.
23190         * modules/threadlib: New file.
23191         * lib/glthread/threadlib.c: New file, extracted from
23192         lib/glthread/lock.c.
23193         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23194         functions.
23195         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23196         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23197         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23198         macros.
23199         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23200         (gl_DISABLE_THREADS): Remove macro.
23201         * modules/lock (Files): Remove build-aux/config.rpath.
23202         (Depends-on): Remove havelib. Add threadlib.
23203         (configure.ac-early): Remove section.
23204         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23205         * modules/tls (Depends-on): Remove lock. Add threadlib.
23206         (Link): New section, copied from threadlib.
23207         * MODULES.html.sh (Multithreading): Add threadlib.
23208
23209 2008-08-14  Bruno Haible  <bruno@clisp.org>
23210
23211         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23212         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23213         glthread_rwlock_unlock, glthread_rwlock_destroy,
23214         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23215         glthread_recursive_lock_destroy): Define as macros always.
23216         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23217         glthread_lock_lock.
23218         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23219         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23220         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23221         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23222         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23223         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23224         (glthread_recursive_lock_lock_func): Renamed from
23225         glthread_recursive_lock_lock.
23226         (glthread_recursive_lock_unlock_func): Renamed from
23227         glthread_recursive_lock_unlock.
23228         (glthread_recursive_lock_destroy_func): Renamed from
23229         glthread_recursive_lock_destroy.
23230
23231 2008-08-14  Bruno Haible  <bruno@clisp.org>
23232
23233         * lib/glthread/lock.h: Renamed from lib/lock.h.
23234         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23235         * lib/glthread/tls.h: Renamed from lib/tls.h.
23236         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23237         * lib/fstrcmp.c: Update includes.
23238         * lib/strsignal.c: Update includes.
23239         * modules/lock (Files, Makefile.am): Update.
23240         (Include): Change to "glthread/lock.h".
23241         * modules/tls (Files, Makefile.am): Update.
23242         (Include): Change to "glthread/tls.h".
23243         * tests/test-lock.c: Update includes.
23244         * tests/test-tls.c: Update includes.
23245         * NEWS: Mention the renamed header files.
23246
23247 2008-08-11  Jim Meyering  <meyering@redhat.com>
23248
23249         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23250
23251 2008-08-11  Eric Blake  <ebb9@byu.net>
23252
23253         test-c-stack: avoid C99-ism
23254         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23255         before statement.
23256         Reported by Alain Guibert.
23257
23258 2008-08-10  Jim Meyering  <meyering@redhat.com>
23259
23260         ensure that return value of uinttostr et al are not ignored
23261         * lib/inttostr.h (__GNUC_PREREQ): Define.
23262         (__attribute_warn_unused_result__): Define.
23263         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23264
23265 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23266
23267         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23268         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23269
23270 2008-08-07  Jim Meyering  <meyering@redhat.com>
23271
23272         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23273
23274         * modules/mkstemp (License): Relicense under LGPLv2+.
23275         * modules/tempname (License): Likewise.
23276
23277 2008-08-06  Bruno Haible  <bruno@clisp.org>
23278
23279         * lib/poll.c (poll): Further micro-optimization.
23280
23281 2008-08-06  Jim Meyering  <meyering@redhat.com>
23282
23283         inet_pton.c: use locale-independent tolower
23284         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23285         (inet_pton6): Use c_tolower rather than tolower.
23286         * modules/inet_pton (Depends-on): Add c-ctype.
23287
23288 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23289
23290         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23291         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23292
23293 2008-08-06  Jim Meyering  <meyering@redhat.com>
23294
23295         * modules/inet_pton (License): Relicense under LGPLv2+.
23296
23297 2008-08-03  Bruno Haible  <bruno@clisp.org>
23298
23299         Additional non-aborting API for lock and tls.
23300         * lib/lock.h: Include <errno.h>.
23301         (glthread_lock_init): New macro/function.
23302         (gl_lock_init): Define as wrapper around glthread_lock_init.
23303         (glthread_lock_lock): New macro/function.
23304         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23305         (glthread_lock_unlock): New macro/function.
23306         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23307         (glthread_lock_destroy): New macro/function.
23308         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23309         (glthread_rwlock_init): New macro/function.
23310         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23311         (glthread_rwlock_rdlock): New macro/function.
23312         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23313         (glthread_rwlock_wrlock): New macro/function.
23314         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23315         (glthread_rwlock_unlock): New macro/function.
23316         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23317         (glthread_rwlock_destroy): New macro/function.
23318         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23319         (glthread_recursive_lock_init): New macro/function.
23320         (gl_recursive_lock_init): Define as wrapper around
23321         glthread_recursive_lock_init.
23322         (glthread_recursive_lock_lock): New macro/function.
23323         (gl_recursive_lock_lock): Define as wrapper around
23324         glthread_recursive_lock_lock.
23325         (glthread_recursive_lock_unlock): New macro/function.
23326         (gl_recursive_lock_unlock): Define as wrapper around
23327         glthread_recursive_lock_unlock.
23328         (glthread_recursive_lock_destroy): New macro/function.
23329         (gl_recursive_lock_destroy): Define as wrapper around
23330         glthread_recursive_lock_destroy.
23331         (glthread_once): New macro/function.
23332         (gl_once): Define as wrapper around glthread_once.
23333         Update function declarations.
23334         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23335         glthread_rwlock_init. Return error code.
23336         (glthread_rwlock_rdlock_multithreaded): Renamed from
23337         glthread_rwlock_rdlock. Return error code.
23338         (glthread_rwlock_wrlock_multithreaded): Renamed from
23339         glthread_rwlock_wrlock. Return error code.
23340         (glthread_rwlock_unlock_multithreaded): Renamed from
23341         glthread_rwlock_unlock. Return error code.
23342         (glthread_rwlock_destroy_multithreaded): Renamed from
23343         glthread_rwlock_destroy. Return error code.
23344         (glthread_recursive_lock_init_multithreaded): Renamed from
23345         glthread_recursive_lock_init. Return error code.
23346         (glthread_recursive_lock_lock_multithreaded): Renamed from
23347         glthread_recursive_lock_lock. Return error code.
23348         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23349         glthread_recursive_lock_unlock. Return error code.
23350         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23351         glthread_recursive_lock_destroy. Return error code.
23352         (glthread_once_call): Make static.
23353         (glthread_once_multithreaded): Renamed from glthread_once.
23354         * lib/tls.h: Include <errno.h>.
23355         (glthread_tls_key_init): New macro/function.
23356         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23357         (glthread_tls_set): New macro/function.
23358         (gl_tls_set): Define as wrapper around glthread_tls_set.
23359         (glthread_tls_key_destroy): New macro/function.
23360         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23361         Update function declarations.
23362         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23363         glthread_tls_get.
23364         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23365
23366 2008-08-04  Eric Blake  <ebb9@byu.net>
23367
23368         gnumakefile: use space, not TAB, outside of targets
23369         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23370
23371 2008-08-02  Jim Meyering  <meyering@redhat.com>
23372
23373         getdate.y: avoid locale-dependent date parsing failure
23374         In Turkish locales, getdate would fail to recognize keywords
23375         containing a lowercase "i".  The solution is not to rely on
23376         locale-sensitive case-conversion.
23377         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23378         (lookup_word): Use c_toupper in place of toupper.
23379         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23380         Reported by Vefa Bicakci <bicave@superonline.com> in
23381         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23382         * modules/getdate (Depends-on): Add c-ctype.
23383
23384 2008-08-02  Bruno Haible  <bruno@clisp.org>
23385
23386         * gnulib-tool (func_import): When updating or creating a .gitignore
23387         file, prepend each added line with a slash, and ignore leading slashes
23388         from the existing lines.
23389         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23390
23391 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23392
23393         Portability fix for GNU make 3.79.1.
23394         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23395         versions do not understand.
23396
23397 2008-08-01  Bruno Haible  <bruno@clisp.org>
23398
23399         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23400         * tests/test-isnanf.h (zero): New variable.
23401         (main): Avoid literal -0.0f.
23402         * tests/test-isnand.h (zero): New variable.
23403         (main): Avoid literal -0.0.
23404         * tests/test-isnanl.h (zero): New variable.
23405         (main): Avoid literal -0.0L.
23406         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23407         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23408         -0.0, -0.0L.
23409         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23410         (test_signbitd): Avoid literal -0.0.
23411         (test_signbitl): Avoid literal -0.0L.
23412         * tests/test-ceilf1.c (zero): New variable.
23413         (main): Avoid literal -0.0f.
23414         * tests/test-ceill.c (zero): New variable.
23415         (main): Avoid literal -0.0L.
23416         * tests/test-floorf1.c (zero): New variable.
23417         (main): Avoid literal -0.0f.
23418         * tests/test-floorl.c (zero): New variable.
23419         (main): Avoid literal -0.0L.
23420         * tests/test-roundf1.c (zero): New variable.
23421         (main): Avoid literal -0.0f.
23422         * tests/test-round1.c (zero): New variable.
23423         (main): Avoid literal -0.0.
23424         * tests/test-roundl.c (zero): New variable.
23425         (main): Avoid literal -0.0L.
23426         * tests/test-truncf1.c (zero): New variable.
23427         (main): Avoid literal -0.0f.
23428         * tests/test-trunc1.c (zero): New variable.
23429         (main): Avoid literal -0.0.
23430         * tests/test-truncl.c (zero): New variable.
23431         (main): Avoid literal -0.0L.
23432         * tests/test-frexp.c (zero): New variable.
23433         (main): Avoid literal -0.0.
23434         * tests/test-frexpl.c (zero): New variable.
23435         (main): Avoid literal -0.0L.
23436         * tests/test-ldexpl.c (zero): New variable.
23437         (main): Avoid literal -0.0L.
23438         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23439         (zerod, zerol): New variables.
23440         (test_function): Avoid literals -0.0, -0.0L.
23441         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23442         (zerod, zerol): New variables.
23443         (test_function): Avoid literals -0.0, -0.0L.
23444         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23445         (zerod, zerol): New variables.
23446         (test_function): Avoid literals -0.0, -0.0L.
23447         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23448         (zerod, zerol): New variables.
23449         (test_function): Avoid literals -0.0, -0.0L.
23450         * tests/test-strtod.c (zero): New variable.
23451         (main): Avoid literal -0.0.
23452         Reported by Jonathan C. Patschke <jp@centtech.com>.
23453
23454 2008-07-31  Jim Meyering  <meyering@redhat.com>
23455
23456         sha256.h: correct definition of SHA224_DIGEST_SIZE
23457         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23458         Reported by Paulie Pena IV <paulie4@gmail.com>.
23459         Define as 224 / 8, rather than as a literal.
23460         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23461         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23462         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23463
23464 2008-07-31  Bruno Haible  <bruno@clisp.org>
23465
23466         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23467         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23468         Reported by Jonathan Patschke <jp@centtech.com>.
23469
23470 2008-07-31  Bruno Haible  <bruno@clisp.org>
23471
23472         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23473         Reported by Paolo Bonzini <bonzini@gnu.org>.
23474
23475 2008-07-30  Eric Blake  <ebb9@byu.net>
23476
23477         test-strtod: allow compilation without -lm
23478         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23479         Reported by Dennis Clarke <blastwave@gmail.com>.
23480
23481 2008-07-28  Jim Meyering  <meyering@redhat.com>
23482
23483         bootstrap: work also when there are no .po files in po/
23484         * build-aux/bootstrap (update_po_files): Complete the change
23485         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23486
23487 2008-07-27  Jim Meyering  <meyering@redhat.com>
23488
23489         * users.txt: Add zile.
23490
23491 2008-07-26  Ben Pfaff  <blp@gnu.org>
23492
23493         Add missing dependencies on new m4/exponent[fdl].m4 files.
23494         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23495         * modules/isnand-nolibm: Add m4/exponentd.m4.
23496         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23497         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23498         m4/isnan[fdl].m4, because the macros actually used moved.
23499         Reported by Jim Meyering.
23500
23501 2008-07-14  Ben Pfaff  <blp@gnu.org>
23502
23503         Add isinf module.
23504         * lib/isinf.c: New file.
23505         * lib/math.in.h: Define isinf macro if we have decided to replace
23506         it.
23507         * m4/isinf.m4: New file.
23508         * m4/math_h.m4: Initialize and substitute variables for isinf
23509         module.
23510         * modules/isinf: New file.
23511         * modules/isinf-tests: New file.
23512         * modules/math: Add substitutions for new module.
23513         * tests/test-isinf.c: New file.
23514         * doc/posix-functions/isinf.texi: Mention new module.
23515         * MODULES.html.sh: Mention new module.
23516
23517 2008-07-14  Ben Pfaff  <blp@gnu.org>
23518
23519         Factor out some macros for use by additional modules.
23520         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23521         exponentf.m4.
23522         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23523         exponentd.m4.
23524         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23525         file exponentl.m4.
23526         * m4/exponentf.m4: New file.
23527         * m4/exponentd.m4: New file.
23528         * m4/exponentl.m4: New file.
23529         * modules/isnanf: Use new file m4/exponentf.m4.
23530         * modules/isnand: Use new file m4/exponentd.m4.
23531         * modules/isnanl: Use new file m4/exponentl.m4.
23532
23533 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23534
23535         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23536         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23537         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23538         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23539
23540         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23541         readlink on platforms without PATH_MAX.
23542
23543 2008-07-21  Eric Blake  <ebb9@byu.net>
23544
23545         Warn, not fail, on stale version.
23546         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23547
23548         Don't allow installation with stale devel version number.
23549         * top/GNUmakefile (_is-install-target): New macro.
23550         (_curr-ver): Forbid installation with stale version number.
23551
23552 2008-07-20  Bruno Haible  <bruno@clisp.org>
23553
23554         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23555         TESTS_ENVIRONMENT.
23556         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23557
23558 2008-07-20  Bruno Haible  <bruno@clisp.org>
23559
23560         * lib/c-stack.h (c_stack_action): Add documentation.
23561         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23562
23563 2008-07-20  Bruno Haible  <bruno@clisp.org>
23564
23565         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23566         * modules/readlink (License): Likewise.
23567
23568 2008-07-17  Eric Blake  <ebb9@byu.net>
23569
23570         * modules/c-stack (Link): Fix typo.
23571
23572         Make c-stack use libsigsegv, when available.
23573         * modules/c-stack (Depends-on): Add libsigsegv.
23574         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23575         needed.
23576         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23577         (segv_handler, overflow_handler, c_stack_action)
23578         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23579         implementation when libsigsegv is available, but only when using
23580         the library is necessary.
23581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23582         comment, explaining why XSI check fails on Linux.
23583         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23584         * tests/test-c-stack2.sh: Tweak skip message.
23585         * NEWS: Document new link-time requirements.
23586
23587 2008-07-16  Eric Blake  <ebb9@byu.net>
23588
23589         c-stack: Expose false positives when not using libsigsegv.
23590         * modules/c-stack-tests (Files): Expand test.
23591         * tests/test-c-stack.c (main): Add means to conditionally trigger
23592         non-overflow SIGSEGV.
23593         * tests/test-c-stack2.sh: New file.
23594
23595 2008-07-14  Bruno Haible  <bruno@clisp.org>
23596
23597         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23598         Reported by Eric Blake.
23599
23600 2008-07-14  Sam Steingold  <sds@gnu.org>
23601             Bruno Haible  <bruno@clisp.org>
23602
23603         New module libsigsegv.
23604         * modules/libsigsegv: New file.
23605         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23606         modifications.
23607         * MODULES.html.sh (Signal handling): New section.
23608
23609 2008-07-14  Bruno Haible  <bruno@clisp.org>
23610
23611         * modules/unictype/ctype-* (Description): Add the word "function".
23612         Improves the resulting doc in MODULES.html.
23613
23614 2008-07-12  Ben Pfaff  <blp@gnu.org>
23615
23616         Add longlong module.
23617         * modules/longlong: New file.
23618
23619 2008-07-12  Bruno Haible  <bruno@clisp.org>
23620
23621         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23622         to empty.
23623
23624 2008-07-10  Ben Pfaff  <blp@gnu.org>
23625
23626         Add isnan module.
23627         * doc/posix-functions/isnan.texi: Mention new module.
23628         * lib/math.in.h: Define isnan macro if we have decided to replace
23629         it.
23630         * m4/isnan.m4: New file.
23631         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23632         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23633         also.
23634         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23635         redundancy.
23636         * m4/math_h.m4: Initialize and substitute variables for isnan
23637         module.
23638         * modules/isnan: New file.
23639         * modules/isnan-tests: New file.
23640         * modules/math: Add substitutions for new module.
23641         * tests/test-isnan.c: New file.
23642         * MODULES.html.sh: Mention new module.
23643
23644 2008-07-10  Ben Pfaff  <blp@gnu.org>
23645
23646         Add isnanf module.
23647         * lib/isnanf.m4: New file.
23648         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23649         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23650         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23651         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23652         * modules/isnanf: New file.
23653         * modules/isnanf-tests: New file.
23654         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23655         files.
23656         * tests/test-isnanf-nolibm.c: factored most of its contents into
23657         new file tests/test-isnanf.h.
23658         * tests/test-isnanf.h: New file.
23659         * tests/test-isnanf.c: New file.
23660         * MODULES.html.sh: Mention new module.
23661         * doc/glibc-functions/isnanf.texi: Mention new module.
23662
23663 2008-07-10  Ben Pfaff  <blp@gnu.org>
23664
23665         Add isnand module.
23666         * lib/isnand.h: New file.
23667         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23668         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23669         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23670         functionality also.
23671         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23672         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23673         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23674         * modules/isnand: New file.
23675         * modules/isnand-tests: New file.
23676         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23677         files.
23678         * tests/test-isnand-nolibm.c: factored most of its contents into
23679         new file tests/test-isnand.h.
23680         * tests/test-isnand.h: New file.
23681         * tests/test-isnand.c: New file.
23682         * MODULES.html.sh: Mention new module.
23683
23684 2008-07-10  Ben Pfaff  <blp@gnu.org>
23685
23686         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23687         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23688         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23689         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23690         * modules/isnanf-nolibm: Update references to renamed files.
23691         * modules/isnand-nolibm: Likewise.
23692         * modules/isnanf-nolibm-tests: Likewise.
23693         * modules/isnand-nolibm-tests: Likewise.
23694         * lib/frexp.c: Likewise.
23695         * lib/isfinite.c: Likewise.
23696         * lib/signbitd.c: Likewise.
23697         * lib/signbitf.c: Likewise.
23698         * lib/vasnprintf.c: Likewise.
23699         * tests/test-ceilf1.c: Likewise.
23700         * tests/test-ceilf2.c: Likewise.
23701         * tests/test-floorf1.c: Likewise.
23702         * tests/test-floorf2.c: Likewise.
23703         * tests/test-frexp.c: Likewise.
23704         * tests/test-round1.c: Likewise.
23705         * tests/test-round2.c: Likewise.
23706         * tests/test-roundf1.c: Likewise.
23707         * tests/test-strtod.c: Likewise.
23708         * tests/test-trunc1.c: Likewise.
23709         * tests/test-trunc2.c: Likewise.
23710         * tests/test-truncf1.c: Likewise.
23711         * tests/test-truncf2.c: Likewise.
23712         * NEWS: Mention the renamed header files.
23713
23714 2008-07-11  Jim Meyering  <meyering@redhat.com>
23715
23716         vc-list-files: make the last-resort awk code more portable
23717         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23718         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23719         does not support it.
23720
23721 2008-07-10  Eric Blake  <ebb9@byu.net>
23722
23723         Work with tar's bootstrap.
23724         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23725         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23726         an m4 comment.
23727
23728 2008-07-09  Jim Meyering  <meyering@redhat.com>
23729
23730         posix-shell.m4: fix typo that made this test malfunction
23731         * m4/posix-shell.m4: Remove capitalization in variable name.
23732
23733 2008-07-08  Bruno Haible  <bruno@clisp.org>
23734
23735         * m4/onceonly.m4: Update comments.
23736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23737
23738 2008-07-04  Jim Meyering  <meyering@redhat.com>
23739
23740         * users.txt: Add vc-dwim.
23741         (bison, coreutils): Use the gitweb URL.
23742
23743 2008-07-03  Jim Meyering  <meyering@redhat.com>
23744
23745         * users.txt: Add libffcall.  From Sam Steingold.
23746
23747 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23748
23749         getdate.y: do not ignore TZ with relative day, month or year offset
23750         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23751         relative-date-handling, since otherwise, the latter would clobber the
23752         sole output (an updated Start value) of the tz-handling block.
23753         * tests/test-getdate.c: Tests for the fix
23754
23755 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23756
23757         Recognize 'foo_LIBRARIES += libgnu.a'.
23758         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23759         makefile snippet has already specified an installation location,
23760         also using '+='.
23761
23762 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23763
23764         getdate.y: factor out common actions
23765         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23766         Use them in place of open-coded actions.
23767
23768 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23769
23770         Add self-test for getdate module.
23771         * modules/getdate-tests: New file.
23772         * tests/test-getdate.c: New file.
23773
23774 2008-06-29  Bruno Haible  <bruno@clisp.org>
23775
23776         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23777         .gitignore.
23778         Reported by Sylvain Beucler <beuc@beuc.net>.
23779
23780 2008-06-29  Bruno Haible  <bruno@clisp.org>
23781
23782         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23783         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23784
23785 2008-06-29  Bruno Haible  <bruno@clisp.org>
23786
23787         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23788         EXTRA_DIST.
23789         Reported by Sylvain Beucler <beuc@beuc.net>.
23790
23791 2008-06-26  Jim Meyering  <meyering@redhat.com>
23792
23793         make several modules depend on the "open" module
23794         This provides slightly increased consistency when opening-for-write
23795         the name of a non-directory spelled with a trailing slash.
23796         * modules/chdir-safer: Likewise.
23797         * modules/chown: Likewise.
23798         * modules/clean-temp: Likewise.
23799         * modules/copy-file: Likewise.
23800         * modules/fchdir: Likewise.
23801         * modules/fcntl-safer: Likewise.
23802         * modules/pipe: Likewise.
23803         * modules/utime: Likewise.
23804         Prompted by Eric Blake and Bruno Haible.
23805
23806 2008-06-24  Andreas Schwab  <schwab@suse.de>
23807
23808         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23809         literals can be used as initializers for global variables.
23810
23811 2008-06-23  Eric Blake  <ebb9@byu.net>
23812
23813         Make gnulib-cache.m4 easier to diff.
23814         * gnulib-tool (func_import): Allow newlines when reading cached
23815         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23816
23817 2008-06-23  Bruno Haible  <bruno@clisp.org>
23818
23819         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23820         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23821         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23822         m4/signalblocking.m4.
23823         (gl_PREREQ_SIGACTION): Don't invoke it.
23824         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23825         gl_PREREQ_SIG_HANDLER_H.
23826         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23827         Don't check for sigaction here.
23828
23829 2008-06-23  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23832         (install_handlers): Don't set the SA_RESETHAND flag.
23833
23834 2008-06-23  Bruno Haible  <bruno@clisp.org>
23835
23836         * m4/sigaction.m4: Comment fixes.
23837         * lib/signal.in.h: Likewise.
23838
23839 2008-06-23  Eric Blake  <ebb9@byu.net>
23840
23841         Fix typo.
23842         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23843
23844         Avoid SA_ namespace.
23845         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23846         Reported by Ralf Wildenhues.
23847
23848         Avoid test failure due to SA_RESTORER.
23849         * tests/test-sigaction.c (SA_MASK): New macro.
23850         (main): Avoid failing due to extension flags being set.
23851         Reported by Jim Meyering.
23852
23853         Revert use of sig-handler.h in sigprocmask.c.
23854         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23855         it requires the existence of struct sigaction.
23856         * lib/sigprocmask.c (handler_t): Restore typedef.
23857         (rpl_signal, old_handlers): Use local type.
23858
23859 2008-06-22  Bruno Haible  <bruno@clisp.org>
23860
23861         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23862         conditionally.
23863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23864
23865 2008-06-22  Bruno Haible  <bruno@clisp.org>
23866
23867         * doc/posix-functions/siginterrupt.texi: Move note.
23868
23869         * lib/signal.in.h (SA_RESTART): New macro.
23870         * lib/sigaction.c: Update comment.
23871
23872         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23873
23874         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23875         (gl_PREREQ_SIGPROCMASK): Invoke it.
23876         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23877
23878         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23879
23880         * lib/sigprocmask.c: Update a comment.
23881
23882 2008-06-21  Eric Blake  <ebb9@byu.net>
23883
23884         Use sigaction module rather than signal().
23885         * modules/c-stack (Depends-on): Add sigaction.
23886         * modules/fatal-signal (Depends-on): Likewise.
23887         * modules/nanosleep (Depends-on): Likewise.
23888         * modules/sigprocmask (Files): Add sig-handler.h.
23889         * modules/sigaction (Files): Likewise.
23890         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23891         Eggert.
23892         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23893         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23894         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23895         (init_fatal_signals): Likewise.
23896         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23897         (siginterrupt): Delete fallback.
23898         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23899         instead.
23900         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23901         siginterrupt.
23902
23903         New module sigaction, for mingw.
23904         * modules/sigaction: New module...
23905         * modules/sigaction-tests: ...and its test.
23906         * m4/sigaction.m4: New file.
23907         * lib/sigaction.c: Likewise.
23908         * tests/test-sigaction.c: Likewise.
23909         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23910         * modules/signal (Makefile.am): Likewise.
23911         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23912         needed.
23913         * doc/posix-headers/signal.texi (signal.h): Mention provided
23914         types.
23915         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23916         that sigaction is preferable.
23917         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23918         module.
23919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23920         sigaction.
23921
23922         Improve robustness of sigprocmask by overriding signal.
23923         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23924         is in use.
23925         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23926         (SIGKILL, SIGSTOP): Provide fallbacks.
23927         (rpl_signal): Implement.
23928         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23929         signal can be called inside handlers.
23930
23931         Fix nanosleep module on mingw.
23932         * modules/nanosleep (Depends-on): Add sys_select.
23933         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23934
23935         Fix licensing of sigprocmask.
23936         * modules/raise (License): Relicense as LGPL.
23937
23938 2008-06-21  Bruno Haible  <bruno@clisp.org>
23939
23940         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23941         result if it contains question marks.
23942         Reported by Michael Geng <linux@michaelgeng.de>.
23943
23944 2008-06-19  Bruno Haible  <bruno@clisp.org>
23945
23946         Fix CVS-ism.
23947         * doc/gnulib.texi: Include updated-stamp.texi.
23948         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23949         (updated-stamp.texi): New rule.
23950         (gnulib.info): Depend on it.
23951         * doc/.gitignore: Add updated-stamp.texi.
23952         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23953
23954 2008-06-19  Bruno Haible  <bruno@clisp.org>
23955
23956         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23957         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23958
23959 2008-06-19  Eric Blake  <ebb9@byu.net>
23960
23961         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23962         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23963         Reported by Stepan Kasal.
23964
23965 2008-06-18  Bruno Haible  <bruno@clisp.org>
23966
23967         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23968         Reported by Eric Blake.
23969
23970 2008-06-18  Eric Blake  <ebb9@byu.net>
23971
23972         Work around cygwin 1.5.25 strsignal bug.
23973         * tests/test-strsignal.c: Allow for const char *.
23974         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23975
23976 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23977
23978         * users.txt: Update URL to article and add author/date
23979         information.
23980
23981 2008-06-17  Bruno Haible  <bruno@clisp.org>
23982
23983         New macro gl_DISABLE_THREADS.
23984         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23985         if the user did not pass --enable-threads or --disable-threads option.
23986         (gl_DISABLE_THREADS): New macro.
23987         Reported by Eric Blake <ebb9@byu.net>.
23988
23989 2008-06-17  Bruno Haible  <bruno@clisp.org>
23990
23991         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23992         when the macro ignores it.
23993         Based on a patch by Eric Blake <ebb9@byu.net>.
23994
23995 2008-06-17  Bruno Haible  <bruno@clisp.org>
23996
23997         * modules/tls (License): Change to LGPLv2+.
23998         Reported by Eric Blake.
23999
24000 2008-06-17  Eric Blake  <ebb9@byu.net>
24001
24002         Simplify c-stack prerequisites.
24003         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24005         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24006         check.
24007         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24008         <sys/resource.h>.
24009
24010         Move c-stack test into testsuite.
24011         * modules/c-stack-tests: New file.
24012         * lib/c-stack.c [DEBUG]: Move test program...
24013         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24014         fail test if sigaltstack is lacking.
24015         * tests/test-c-stack.sh: New driver file.
24016
24017 2008-06-16  Eric Blake  <ebb9@byu.net>
24018
24019         Use raise module consistently.
24020         * modules/fatal-signal (Depends-on): Add raise.
24021         * modules/sigprocmask (Depends-on): Likewise.
24022         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24023         * lib/sigprocmask.c (sigprocmask): Likewise.
24024         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24025         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24026
24027         Fix compliance bug in sigpending.
24028         * lib/sigprocmask.c (sigpending): Return pending array via
24029         parameter, not return value.
24030
24031 2008-06-14  Eric Blake  <ebb9@byu.net>
24032
24033         Improve obstack-printf test code.
24034         * tests/test-obstack-printf.c (test_function): Fix comment, and
24035         simplify usage of obstack_* in macros.  Add a test for coverage.
24036         Reported by Bruno Haible.
24037
24038 2008-06-14  Bruno Haible  <bruno@clisp.org>
24039
24040         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24041         array size as a constant, not as a const variable.
24042         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24043         AC_USE_SYSTEM_EXTENSIONS.
24044         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24045         Test whether the obstack_printf function actually exists.
24046         * modules/obstack-printf (Depends-on): Add extensions.
24047         (Include): Remove obstack.h.
24048         * modules/obstack-printf-posix (Depends-on): Add extensions.
24049         (Include): Remove obstack.h.
24050
24051 2008-06-13  Eric Blake  <ebb9@byu.net>
24052
24053         Add obstack-printf and obstack-printf-posix modules.
24054         * modules/obstack-printf: New file.
24055         * modules/obstack-printf-posix: Likewise.
24056         * MODULES.html.sh (Misc): Mention them.
24057         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24058         Likewise.
24059         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24060         Likewise.
24061         * modules/stdio (Makefile.am): Accomodate new modules.
24062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24063         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24064         Declare.
24065         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24066         functions.
24067         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24068         (gl_REPLACE_OBSTACK_PRINTF): New macros
24069         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24070         * tests/test-obstack-printf.c: New file.
24071         * modules/obstack-printf-tests: Likewise.
24072         * modules/obstack-printf-posix-tests: Likewise.
24073
24074 2008-06-11  Bruno Haible  <bruno@clisp.org>
24075
24076         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24077         * lib/open.c: Include errno.h.
24078         (open): Fail when attempting to write to a file that has a trailing
24079         slash.
24080         * tests/test-open.c (main): Test against trailing slash bug.
24081         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24082
24083 2008-06-10  Bruno Haible  <bruno@clisp.org>
24084
24085         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24086         for $? to work inside the trap command, with various /bin/sh-s.
24087         * tests/test-vc-list-files-cvs.sh: Likewise.
24088
24089 2008-06-10  Bruno Haible  <bruno@clisp.org>
24090
24091         * lib/acl-internal.h: Don't include gettext.h here.
24092         * lib/set-mode-acl.c: Include gettext.h here.
24093         * lib/copy-acl.c: Likewise.
24094
24095 2008-06-10  Bruno Haible  <bruno@clisp.org>
24096
24097         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24098         * lib/wait-process.c (wait_subprocess): Likewise.
24099         * lib/execute.h (execute): Add termsigp argument.
24100         * lib/execute.c (execute): Likewise.
24101         * lib/csharpcomp.c (compile_csharp_using_pnet,
24102         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24103         * lib/csharpexec.c (execute_csharp_using_pnet,
24104         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24105         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24106         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24107         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24108         is_jikes_present): Update.
24109         * lib/javaexec.c (execute_java_class): Update.
24110         * lib/javaversion.c (execute_and_read_line): Update.
24111         * NEWS: Document the changes.
24112         Reported by Eric Blake.
24113
24114 2008-06-10  Eric Blake  <ebb9@byu.net>
24115
24116         Add missing include.
24117         * tests/test-strstr.c (includes): Add <signal.h>.
24118         * tests/test-strcasestr.c (includes): Likewise.
24119         * tests/test-memmem.c (includes): Likewise.
24120
24121 2008-06-10  Bruno Haible  <bruno@clisp.org>
24122
24123         * lib/wait-process.c (wait_subprocess): Add an assertion.
24124
24125 2008-06-10  Bruno Haible  <bruno@clisp.org>
24126
24127         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24128
24129 2008-06-10  Bruno Haible  <bruno@clisp.org>
24130
24131         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24132         using alarm().
24133         * tests/test-strcasestr.c (main): Likewise.
24134         * tests/test-strstr.c (main): Likewise.
24135
24136 2008-06-09  Bruno Haible  <bruno@clisp.org>
24137
24138         Work around the Solaris 10 ACE ACLs ABI change.
24139         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24140         declare if ACL_NO_TRIVIAL is present.
24141         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24142         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24143         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24144         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24145         define if ACL_NO_TRIVIAL is present.
24146         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24147         and use the current ABI.
24148         (file_has_acl): Use same #if condition as elsewhere.
24149         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24150         in use, and use the current ABI.
24151         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24152         Reported by Jim Meyering.
24153
24154 2008-06-09  Eric Blake  <ebb9@byu.net>
24155
24156         Work around environments that (stupidly) ignore SIGALRM.
24157         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24158         before using alarm().
24159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24161         Reported by Ian Beckwith <ianb@erislabs.net>.
24162
24163         Produce autobuild blurb earlier in log.
24164         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24165
24166 2008-06-09  Jim Meyering  <meyering@redhat.com>
24167         and OndÅ™ej Vašík  <ovasik@redhat.com>
24168
24169         utimens.c: correct kernel bug work-around
24170         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24171         failure, not success, and the kernel bug we're trying to work
24172         around affects not just the utimensat call, but also the fallback
24173         futimens call.
24174         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24175         not success.
24176         [HAVE_FUTIMENS]: Use the same work-around, here.
24177
24178 2008-06-09  Jim Meyering  <meyering@redhat.com>
24179
24180         add more guards around definition of ACE_-related code
24181         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24182         ALLOW and ACE_OWNER are also defined.
24183
24184 2008-06-08  Bruno Haible  <bruno@clisp.org>
24185
24186         * lib/acl-internal.h: Add me as co-author.
24187         * lib/file-has-acl.c: Likewise.
24188         * lib/set-mode-acl.c: Likewise.
24189         * lib/copy-acl.c: Likewise.
24190
24191 2008-06-08  Bruno Haible  <bruno@clisp.org>
24192
24193         Add support for AIX ACLs.
24194         * lib/acl-internal.h (acl_nontrivial): New declaration.
24195         * lib/file-has-acl.c (acl_nontrivial): New function.
24196         (file_has_acl): Add implementation using AIX 4 ACL API.
24197         * lib/set-mode-acl.c (qset_acl): Likewise.
24198         * lib/copy-acl.c (qcopy_acl): Likewise.
24199
24200 2008-06-08  Bruno Haible  <bruno@clisp.org>
24201
24202         Add support for HP-UX ACLs.
24203         * lib/acl-internal.h (acl_nontrivial): New declaration.
24204         * lib/file-has-acl.c (acl_nontrivial): New function.
24205         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24206         * lib/set-mode-acl.c (qset_acl): Likewise.
24207         * lib/copy-acl.c (qcopy_acl): Likewise.
24208
24209 2008-06-08  Bruno Haible  <bruno@clisp.org>
24210
24211         Add support for Cygwin ACLs.
24212         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24213         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24214         the chmod_or_fchmod call.
24215         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24216
24217 2008-06-08  Bruno Haible  <bruno@clisp.org>
24218
24219         Fix bug with setuid modes in Solaris 10+ code.
24220         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24221         succeeded, when the mode contains some special bits.
24222
24223 2008-06-08  Bruno Haible  <bruno@clisp.org>
24224
24225         Add support for Solaris 7..10 ACLs.
24226         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24227         declarations.
24228         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24229         functions.
24230         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24231         * lib/set-mode-acl.c (qset_acl): Likewise.
24232         * lib/copy-acl.c (qcopy_acl): Likewise.
24233
24234 2008-06-08  Bruno Haible  <bruno@clisp.org>
24235
24236         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24237         declaration.
24238         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24239         (acl_access_nontrivial): Remove MacOS X case.
24240         (file_has_acl): Use acl_extended_nontrivial.
24241         * lib/copy-acl.c (qcopy_acl): Likewise.
24242
24243 2008-06-08  Bruno Haible  <bruno@clisp.org>
24244
24245         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24246
24247 2008-06-08  Jim Meyering  <meyering@redhat.com>
24248
24249         * modules/acl (Maintainer): Add Bruno Haible.
24250
24251 2008-06-07  Bruno Haible  <bruno@clisp.org>
24252
24253         Improve support for Tru64 ACLs.
24254         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24255         ACL on OSF/1.
24256
24257 2008-06-07  Bruno Haible  <bruno@clisp.org>
24258
24259         Add support for MacOS X ACLs.
24260         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24261         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24262         * lib/set-mode-acl.c (qset_acl): Likewise.
24263         * lib/copy-acl.c (qcopy_acl): Likewise.
24264
24265 2008-06-07  Bruno Haible  <bruno@clisp.org>
24266
24267         Fix memory leak introduced on 2008-05-22.
24268         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24269         use.
24270
24271 2008-06-07  Bruno Haible  <bruno@clisp.org>
24272
24273         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24274         to construct an empty ACL.
24275
24276 2008-06-07  Bruno Haible  <bruno@clisp.org>
24277
24278         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24279         precisely.
24280         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24281
24282 2008-06-07  Bruno Haible  <bruno@clisp.org>
24283
24284         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24285         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24286
24287 2008-06-07  Bruno Haible  <bruno@clisp.org>
24288
24289         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24290         regardless of POSIX.
24291         * doc/posix-functions/_longjmp.texi: Likewise.
24292         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24293         SystemV platform in this case.
24294
24295 2008-06-06  Eric Blake  <ebb9@byu.net>
24296
24297         Document abort() bugs.
24298         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24299
24300         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24301         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24302         sigsetjmp.
24303         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24304         siglongjmp, but only as a macro.
24305         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24306         is obsolete.
24307         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24308
24309         Tweak documentation to cover cygwin argz bugs.
24310         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24311         argz bug fix; no code change needed since no cygwin releases
24312         occurred between the last fix and the bug being tested.
24313         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24314         module and recently fixed cygwin bugs.
24315         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24316         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24317         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24318         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24319         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24320         Likewise.
24321         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24322         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24323         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24324         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24325         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24326         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24327         Likewise.
24328
24329         Avoid gcc warning on cygwin.
24330         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24331         !ACL_NO_TRIVIAL]: Avoid unused variable.
24332
24333 2008-06-05  Eric Blake  <ebb9@byu.net>
24334
24335         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24336         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24337         git-version-gen fails to come up with a version.
24338         Reported by Simon Josefsson.
24339
24340 2008-06-05  Jim Meyering  <meyering@redhat.com>
24341             Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         utimens.c: work around a probable Linux kernel bug
24344         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24345         appears to be a kernel bug that causes utimensat to return 280
24346         instead of 0, indicating success.
24347
24348 2008-06-04  Bruno Haible  <bruno@clisp.org>
24349
24350         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24351         2008-06-01 commit.
24352
24353 2008-06-04  Bruno Haible  <bruno@clisp.org>
24354
24355         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24356         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24357         (file_has_acl): Use it. Save errno afterwards.
24358         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24359
24360 2008-06-03  Bruno Haible  <bruno@clisp.org>
24361
24362         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24363         draft code. Simplify #ifs.
24364         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24365         Put Solaris code after POSIX-draft code. Fix comments regarding
24366         Solaris 10, HP-UX. Mention Cygwin.
24367         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24368
24369 2008-06-03  Eric Blake  <ebb9@byu.net>
24370
24371         Provide fallback for older kernels.
24372         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24373         Provide runtime fallback if kernel lacks support.
24374         Reported by Mike Frysinger.
24375
24376 2008-06-02  Bruno Haible  <bruno@clisp.org>
24377
24378         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24379         it exists.
24380
24381 2008-06-02  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24384         * lib/copy-acl.c (qcopy_acl): Update comment.
24385
24386 2008-06-02  Bruno Haible  <bruno@clisp.org>
24387
24388         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24389         like ACL APIs.
24390
24391 2008-06-02  Bruno Haible  <bruno@clisp.org>
24392
24393         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24394         * tests/test-set-mode-acl.sh: Likewise.
24395         * tests/test-copy-acl.sh: Likewise.
24396         * tests/test-copy-file.sh: Likewise.
24397
24398 2008-06-02  Bruno Haible  <bruno@clisp.org>
24399
24400         * tests/test-file-has-acl.sh: Remove unused code.
24401
24402 2008-06-01  Bruno Haible  <bruno@clisp.org>
24403
24404         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24405         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24406         messages.
24407         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24408
24409 2008-06-01  Bruno Haible  <bruno@clisp.org>
24410
24411         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24412         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24413         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24414         APIs.
24415         * modules/acl-tests (configure.ac): Remove tests now contained in
24416         m4/acl.m4.
24417
24418 2008-06-02  Jim Meyering  <meyering@redhat.com>
24419
24420         announce-gen: use a better key-server host name
24421         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24422         it may be more consistently reliable.  Suggested by Werner Koch
24423         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24424
24425 2008-06-01  Bruno Haible  <bruno@clisp.org>
24426
24427         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24428         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24429
24430 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24431
24432         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24433
24434 2008-06-01  Bruno Haible  <bruno@clisp.org>
24435
24436         New ACL tests.
24437         * tests/test-file-has-acl.sh: New file.
24438         * tests/test-file-has-acl.c: New file.
24439         * tests/test-set-mode-acl.sh: New file.
24440         * tests/test-set-mode-acl.c: New file.
24441         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24442         * tests/test-copy-acl.c: New file.
24443         * modules/acl-tests: New file, based on modules/copy-file-tests.
24444         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24445         (Depends-on): Add acl-tests.
24446         (configure.ac): Remove checks.
24447         (Makefile.am): Don't create test-sameacls program here any more.
24448
24449 2008-06-01  Bruno Haible  <bruno@clisp.org>
24450
24451         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24452         * tests/test-sameacls.c: Include progname.h.
24453         (main): Invoke set_program_name. Portability fixes for MacOS X,
24454         Solaris, HP-UX.
24455
24456 2008-06-01  Bruno Haible  <bruno@clisp.org>
24457
24458         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24459         function.
24460         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24461
24462 2008-06-01  Bruno Haible  <bruno@clisp.org>
24463
24464         * modules/rpmatch (Depends-on): Add strdup.
24465
24466 2008-06-01  Bruno Haible  <bruno@clisp.org>
24467
24468         * lib/pipe.c: Include unistd-safer.h.
24469         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24470         * modules/pipe (Depends-on): Add unistd-safer.
24471
24472 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24473
24474         * modules/autobuild (configure.ac): Call AB_INIT.
24475
24476 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24477
24478         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24479         Suggested by Bruno Haible <bruno@clisp.org>.
24480
24481 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24482
24483         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24484         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24485         <bruno@clisp.org>.
24486
24487 2008-05-29  Eric Blake  <ebb9@byu.net>
24488
24489         Prefer new POSIX 200x interfaces over futimesat.
24490         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24491         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24492         when available.
24493         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24494
24495 2008-05-28  Bruno Haible  <bruno@clisp.org>
24496
24497         * modules/stpcpy (License): Change to LGPLv2+.
24498         Requested by David Lutterkort <dlutter@redhat.com>.
24499
24500 2008-05-27  Bruno Haible  <bruno@clisp.org>
24501
24502         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24503         current mingw.
24504         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24505
24506 2008-05-27  Bruno Haible  <bruno@clisp.org>
24507
24508         * modules/iconv_open (Link): New section, from module 'iconv'.
24509         * modules/striconv (Link): Likewise.
24510         * modules/striconveh (Link): Likewise.
24511         * modules/xstriconv (Link): Likewise.
24512         * modules/unicodeio (Link): Likewise.
24513         * modules/propername (Link): Likewise.
24514         Reported by Jim Meyering.
24515
24516 2008-05-26  Jim Meyering  <meyering@redhat.com>
24517
24518         sha256: do not artificially restrict buffer length to be < 2^32
24519         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24520         uint32_t to size_t.
24521         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24522         to match.
24523
24524         avoid unaligned access errors, e.g., on sparc
24525         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24526         direct access through a possibly-unaligned uint64* pointer.
24527         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24528         direct access through a possibly-unaligned uint32* pointer.
24529         Prompted by this patch from Tom "spot" Callaway:
24530         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24531
24532         sha512.c: fix typo in comment
24533         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24534
24535 2008-05-25  Bruno Haible  <bruno@clisp.org>
24536
24537         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24538         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24539         (Makefile.am): Update lib_SOURCES.
24540
24541 2008-05-25  Bruno Haible  <bruno@clisp.org>
24542
24543         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24544
24545 2008-05-25  Jim Meyering  <meyering@redhat.com>
24546
24547         useless-if-before-free: freed expr may have white-space differences
24548         * build-aux/useless-if-before-free: Recognize cases in which the
24549         freed expression differs from the tested one in embedded white
24550         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24551         $1 was used, so we can't make any regexp shy.  Improved tests now
24552         detect this.
24553
24554         useless-if-before-free: accept white space in the expression.
24555         * build-aux/useless-if-before-free: For now, any white space
24556         in the expression must be identical in the free argument.
24557
24558         useless-if-before-free: efficiency tweak
24559         * build-aux/useless-if-before-free: Make the expression-matching
24560         regexp "shy".
24561         Make the *outer* regexp shy, not the expr-matching one.
24562
24563         update code-in-comment to accept cast of free arg
24564         * build-aux/useless-if-before-free: Update regexp.
24565
24566 2008-05-25  Bruno Haible  <bruno@clisp.org>
24567
24568         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24569         * modules/copy-file-tests (Files, Makefile.am): Update.
24570         * tests/test-copy-file.c (func_test_copy): Update.
24571
24572 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24573
24574         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24575
24576 2008-05-23  Bruno Haible  <bruno@clisp.org>
24577
24578         Improve support for ACLs on OSF/1.
24579         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24580         Remove fallback for unknown flavors of ACLs.
24581
24582 2008-05-22  Bruno Haible  <bruno@clisp.org>
24583
24584         Add support for ACLs on OSF/1.
24585         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24586         replacements.
24587         (acl_free_text): New macro fallback.
24588         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24589         acl_free.
24590         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24591         acl_free_text function. Require AC_C_INLINE.
24592
24593 2008-05-22  Bruno Haible  <bruno@clisp.org>
24594
24595         Make copy_acl work on MacOS X 10.5.
24596         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24597         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24598         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24599         If MODE_INSIDE_ACL, don't assume that every system has the same text
24600         representation for ACLs as FreeBSD.
24601         * lib/copy-acl.c (copy_acl): Add support for platforms with
24602         !MODE_INSIDE_ACL.
24603         * lib/file-has-acl.c (file_has_acl): Likewise.
24604         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24605         FreeBSD, MacOS X, or IRIX, respectively.
24606
24607 2008-05-22  Bruno Haible  <bruno@clisp.org>
24608
24609         * lib/acl.h: Don't include <sys/acl.h>.
24610         (GETACLCNT): Move fallback to lib/acl-internal.h.
24611         * lib/acl-internal.h: Include <sys/acl.h> here.
24612         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24613
24614 2008-05-22  Bruno Haible  <bruno@clisp.org>
24615
24616         Split off copy_acl function to separate file.
24617         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24618         * lib/acl.c (copy_acl): Moved function to separate file.
24619         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24620         * modules/acl (Files): Add lib/copy-acl.c.
24621         (Makefiles.am): Augment lib_SOURCES.
24622
24623 2008-05-22  Bruno Haible  <bruno@clisp.org>
24624
24625         * modules/copy-file-tests: New file.
24626         * tests/test-copy-file.sh: New file.
24627         * tests/test-copy-file.c: New file.
24628         * tests/test-copy-file-sameacls.c: New file.
24629
24630 2008-05-22  Eric Blake  <ebb9@byu.net>
24631
24632         Avoid gcc warning.
24633         * tests/test-memcmp.c (main): Pass NULL indirectly.
24634
24635 2008-05-21  Bruno Haible  <bruno@clisp.org>
24636
24637         Add reference doc about ACLs.
24638         * doc/acl-resources.txt: New file.
24639         * doc/acl-cygwin.txt: New file.
24640
24641 2008-05-21  Bruno Haible  <bruno@clisp.org>
24642
24643         Avoid one more warning from gcc.
24644         * lib/vasnprintf.c (IF_LINT): Update comments.
24645         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24646
24647 2008-05-21  Jim Meyering  <meyering@redhat.com>
24648
24649         avoid a warning from gcc
24650         * lib/vasnprintf.c (IF_LINT): Define.
24651         (scale10_round_decimal_long_double):
24652         Use it to avoid a "may be used uninitialized" warning.
24653         (scale10_round_decimal_double): Likewise.
24654
24655 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24656
24657         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24658         declared.
24659
24660 2008-05-20  Bruno Haible  <bruno@clisp.org>
24661
24662         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24663         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24664
24665 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24666
24667         * modules/memcmp-tests: New file.
24668         * tests/test-memcmp.c: New file.
24669
24670 2008-05-19  Bruno Haible  <bruno@clisp.org>
24671
24672         * modules/propername (Notice, configure.ac): Put quoted "..." into
24673         --keyword option.
24674         * lib/propername.h: Update comments accordingly.
24675         Reported by Eric Blake.
24676
24677 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24678
24679         * modules/getpass-gnu (Depends-on): Add fseeko.
24680
24681 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24682
24683         * modules/base64-tests: New file.
24684
24685 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24686
24687         * lib/base64.c (base64_decode_ctx): If a decode context structure
24688         was passed in use it to ignore newlines.  If a context structure
24689         was _not_ passed in, continue to treat newlines as garbage (this
24690         is the historical behavior).  Formerly base64_decode.
24691         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24692         takes a decode context structure.
24693         * lib/base64.h (base64_decode): Macro for four-argument calls.
24694         (base64_decode_alloc): Likewise.
24695         * lib/base64.c (base64_decode_ctx): If a decode context structure
24696         was passed in use it to ignore newlines.  If a context structure
24697         was _not_ passed in, continue to treat newlines as garbage (this
24698         is the historical behavior).  Formerly base64_decode.
24699         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24700         takes a decode context structure.
24701         * lib/base64.h (base64_decode): Macro for four-argument calls.
24702         (base64_decode_alloc): Likewise.
24703
24704 2008-05-19  Jim Meyering  <meyering@redhat.com>
24705
24706         avoid a warning from gcc
24707         * lib/trim.c (IF_LINT): Define.
24708         (trim2): Use it to avoid a "may be used uninitialized" warning.
24709
24710         Fix doc typo.
24711         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24712
24713 2008-05-19  Bruno Haible  <bruno@clisp.org>
24714
24715         * doc/glibc-functions/getpass.texi: Document limits of other
24716         implementations.
24717
24718 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24719             Bruno Haible <bruno@clisp.org>
24720
24721         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24722
24723 2008-05-18  Bruno Haible  <bruno@clisp.org>
24724
24725         * modules/propername: New file, from GNU gettext.
24726         * lib/propername.h: New file, from GNU gettext.
24727         * lib/propername.c: New file, from GNU gettext.
24728         * MODULES.html.sh (Internationalization functions): Add propername.
24729
24730 2008-05-16  Jim Meyering  <meyering@redhat.com>
24731             Bruno Haible  <bruno@clisp.org>
24732
24733         Avoid some warnings from "gcc -Wshadow".
24734         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24735
24736 2008-05-15  Eric Blake  <ebb9@byu.net>
24737
24738         Extend previous patch to cygwin 1.7.0.
24739         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24740         fast implementation in cygwin >= 1.7.0.
24741         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24743
24744 2008-05-15  Bruno Haible  <bruno@clisp.org>
24745
24746         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24747         implementation in glibc >= 2.9.
24748         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24750
24751 2008-05-15  Bruno Haible  <bruno@clisp.org>
24752
24753         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24754         (Unicode string functions): Add unilbrk/*.
24755         Reported by Karl Berry.
24756
24757 2008-05-15  Eric Blake  <ebb9@byu.net>
24758
24759         Fix violation of <stdbool.h> replacement in regex.
24760         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24761         * lib/regexec.c (re_search_internal): Likewise.
24762         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24763
24764 2008-05-15  Jim Meyering  <meyering@redhat.com>
24765
24766         avoid distracting test output when git or cvs is not found
24767         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24768         * tests/test-vc-list-files-git.sh: Likewise.
24769
24770 2008-05-15  Eric Blake  <ebb9@byu.net>
24771
24772         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24773         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24774         glibc version.
24775         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24776         * doc/posix-functions/strstr.texi (strstr): Likewise.
24777         * lib/str-two-way.h (MAX): Sychronize with glibc.
24778
24779 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24780
24781         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24782         opr.ctx_type.
24783         (calc_first): Initialize constraint field.
24784         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24785         Fix grammar.
24786         (duplicate_node): Merge constraint field for all node types.
24787         (calc_eclosure_iter): Look at constraint field for all node types.
24788         * lib/regex_internal.c (create_cd_newstate): Don't look at
24789         opr.ctx_type.
24790
24791 2008-05-14  Bruno Haible  <bruno@clisp.org>
24792
24793         Help GCC to do better code generation.
24794         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24795         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24796         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24797         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24798         Declare with attribute 'malloc' if supported.
24799
24800 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24801
24802         use "echo STR|wc -c" rather than unportable "expr length STR"
24803         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24804         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24805
24806 2008-05-14  Jim Meyering  <meyering@redhat.com>
24807
24808         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24809         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24810         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24811         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24812         via Collin Lasse.
24813
24814 2008-05-14  Eric Blake  <ebb9@byu.net>
24815
24816         Avoid quadratic growth in gl_LIBSOURCES.
24817         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24818         Suggested by Bruno Haible.
24819
24820         Test xmemdup0.
24821         * modules/xmemdup0-tests: New file.
24822         * tests/test-xmemdup0.c: Likewise.
24823
24824 2008-05-13  Eric Blake  <ebb9@byu.net>
24825
24826         Split xmemdup0 into its own module.
24827         * modules/xmemdup0: New file.
24828         * lib/xmemdup0.h: Likewise.
24829         * lib/xmemdup0.c: Likewise.
24830         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24831         * lib/xalloc.h (xmemdup0): Remove.
24832         * lib/xmalloc.c (xmemdup0): Likewise.
24833
24834 2008-05-13  Eric Blake  <ebb9@byu.net>
24835             Bruno Haible  <bruno@clisp.org>
24836
24837         Reduce number of forks required during autoconf.
24838         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24839         and gl_LIBSOURCES_DIR.
24840         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24841         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24842         m4_syscmd per file.
24843         <m4_foreach_w>: Move...
24844         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24845
24846 2008-05-13  Eric Blake  <ebb9@byu.net>
24847
24848         * gnulib-tool: Fix various comment typos.
24849
24850 2008-05-12  Bruno Haible  <bruno@clisp.org>
24851
24852         Tailor the linebreaking algorithm.
24853         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24854
24855 2008-05-12  Bruno Haible  <bruno@clisp.org>
24856
24857         Update to Unicode 5.0.0.
24858         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24859         LBP_JV, LBP_JT. Redistribute values.
24860         (unilbrk_table): Change size.
24861         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24862         Unicode TR#14 rev. 22.
24863         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24864         LBP_JV, LBP_JT. Redistribute values.
24865         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24866         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24867         Update.
24868         * lib/unilbrk/lbrkprop1.h: Regenerated.
24869         * lib/unilbrk/lbrkprop2.h: Regenerated.
24870         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24871         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24872         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24873         Likewise.
24874         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24875         Likewise.
24876         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24877         result.
24878         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24879         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24880         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24881         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24882         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24883         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24884
24885 2008-05-11  Bruno Haible  <bruno@clisp.org>
24886
24887         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24888
24889 2008-05-11  Bruno Haible  <bruno@clisp.org>
24890
24891         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24892         * modules/unilbrk/gen-lbrk: New file.
24893
24894 2008-05-11  Bruno Haible  <bruno@clisp.org>
24895
24896         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24897         * m4/sha512.m4 (gl_SHA512): Likewise.
24898
24899 2008-05-11  Jim Meyering  <meyering@redhat.com>
24900
24901         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24902         * modules/crypto/sha256: New file.
24903         * modules/crypto/sha512: Likewise.
24904         * lib/sha256.c: Likewise.
24905         * lib/sha256.h: Likewise.
24906         * lib/sha512.c: Likewise.
24907         * lib/sha512.h: Likewise.
24908         * lib/u64.h: Likewise.
24909         * m4/sha256.m4: Likewise.
24910         * m4/sha512.m4: Likewise.
24911         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24912
24913 2008-05-10  Bruno Haible  <bruno@clisp.org>
24914
24915         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24916         (Input/Output <stdio.h>): Add xprintf.
24917         (Signal handling <signal.h>): Add strsignal.
24918         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24919         (Core language properties): Add func.
24920         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24921         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24922         strings.
24923         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24924         (Input/output): New section.
24925         (File system functions): Add openat-die, stat-macros.
24926         (Networking functions): Add sockets.
24927         (Unicode string functions): Add unictype/*.
24928         (Support for building libraries and executables): Add gperf.
24929         (Support for building documentation): Add agpl-3.0.
24930         (Misc): Add nocrash.
24931
24932 2008-05-10  Bruno Haible  <bruno@clisp.org>
24933
24934         * modules/unictype/gen-ctype: New file.
24935
24936 2008-05-10  Jim Meyering  <meyering@redhat.com>
24937
24938         Make chdir-safer.c more efficient on a system with no symlinks.
24939         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24940         also if ELOOP is zero.  Suggested by Bruno Haible.
24941
24942         Make chdir-safer.c slightly safer.
24943         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24944         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24945
24946         Avoid compile failure on systems without ELOOP (like mingw).
24947         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24948         Reported by Bruno Haible.
24949
24950 2008-05-10  Bruno Haible  <bruno@clisp.org>
24951
24952         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24953         (is_utf8_encoding): Use a case-insensitive comparison.
24954         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24955         streq.
24956
24957 2008-05-10  Bruno Haible  <bruno@clisp.org>
24958
24959         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24960         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24961         * lib/unilbrk/ulc-common.h (iconv_string_length,
24962         iconv_string_keeping_offsets): Remove declarations.
24963         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24964         Don't include <iconv.h>, streq.h, xsize.h.
24965         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24966         conversion.
24967         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24968         <iconv.h>, streq.h, xsize.h.
24969         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24970         conversion.
24971         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24972         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24973         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24974         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24975
24976 2008-05-10  Bruno Haible  <bruno@clisp.org>
24977
24978         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24979         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24980
24981         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24982         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24983
24984         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24985         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24986
24987         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24988         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24989
24990         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24991         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24992
24993         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24994         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24995
24996         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24997         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24998
24999         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25000         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25001
25002 2008-05-10  Bruno Haible  <bruno@clisp.org>
25003
25004         Split up 'linebreak' module.
25005         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25006         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25007         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25008         modifications.
25009         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25010         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25011         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25012         lib/linebreak.c.
25013         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25014         lib/linebreak.c.
25015         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25016         lib/linebreak.c.
25017         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25018         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25019         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25020         lib/linebreak.c.
25021         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25022         lib/linebreak.c.
25023         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25024         lib/linebreak.c.
25025         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25026         lib/linebreak.c.
25027         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25028         lib/linebreak.c.
25029         * modules/unilbrk/base: New file.
25030         * modules/unilbrk/tables: New file.
25031         * modules/unilbrk/u8-possible-linebreaks: New file.
25032         * modules/unilbrk/u16-possible-linebreaks: New file.
25033         * modules/unilbrk/u32-possible-linebreaks: New file.
25034         * modules/unilbrk/ulc-common: New file.
25035         * modules/unilbrk/ulc-possible-linebreaks: New file.
25036         * modules/unilbrk/u8-width-linebreaks: New file.
25037         * modules/unilbrk/u16-width-linebreaks: New file.
25038         * modules/unilbrk/u32-width-linebreaks: New file.
25039         * modules/unilbrk/ulc-width-linebreaks: New file.
25040         * lib/linebreak.h: Remove file.
25041         * lib/linebreak.c: Remove file.
25042         * m4/linebreak.m4: Remove file.
25043         * modules/linebreak: Remove file.
25044         * NEWS: Mention the changes.
25045
25046 2008-05-09  Eric Blake  <ebb9@byu.net>
25047
25048         Add xmemdup0.
25049         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25050         implementation.
25051         * lib/xmalloc.c (xmemdup0): New C implementation.
25052
25053 2008-05-08  Bruno Haible  <bruno@clisp.org>
25054
25055         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25056
25057 2008-05-07  Eric Blake  <ebb9@byu.net>
25058
25059         Support cross-compilation of <wctype.h>.
25060         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25061         AC_CACHE_CHECK.
25062
25063 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25064
25065         * build-aux/vc-list-files: Add support for bzr.
25066
25067 2008-05-03  Jim Meyering  <meyering@redhat.com>
25068
25069         avoid failed assertion with tight malloc
25070         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25071
25072 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25073
25074         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25075         are needed from arpa/inet.h.
25076         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25077         Reported by Bruno Haible.
25078
25079 2008-05-02  Jim Meyering  <meyering@redhat.com>
25080
25081         avoid compilation error on FreeBSD 6
25082         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25083
25084 2008-05-01  Jim Meyering  <meyering@redhat.com>
25085
25086         useless-if-before-free: correct --help's exit status description
25087         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25088         for one or more matches, etc.  Reported by Bruno Haible.
25089
25090         vc-list-files: make the stand-alone gnulib test work
25091         * modules/vc-list-files-tests (configure.ac):
25092         Define and AC_SUBST abs_aux_dir.
25093         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25094         $(abs_top_srcdir) to each script and having each of them
25095         duplicate the work of setting PATH, set PATH here, using
25096         the new variable, abs_aux_dir instead.
25097         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25098         * tests/test-vc-list-files-git.sh: Likewise.
25099         Reported by Bruno Haible.
25100
25101 2008-05-01  Bruno Haible  <bruno@clisp.org>
25102
25103         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25104         reallocation. Rename 'done' to 'found_delimiter'.
25105
25106 2008-05-01  Jim Meyering  <meyering@redhat.com>
25107
25108         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25109         * build-aux/vc-list-files: Use `...`, not $(...).
25110
25111 2008-04-30  Jim Meyering  <meyering@redhat.com>
25112
25113         add tests for vc-list-files
25114         * modules/vc-list-files-tests: New module.
25115         * tests/test-vc-list-files-cvs.sh: New file.
25116         * tests/test-vc-list-files-git.sh: New file.
25117
25118         avoid a warning from gcc
25119         * lib/getndelim2.c (IF_LINT): Define.
25120         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25121
25122         vc-list-files: work properly with build-aux/cvsu, too
25123         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25124         to all cvs-based clauses.
25125
25126         vc-list-files: work properly in the CVS+awk case, too
25127         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25128
25129         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25130         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25131         take more than one file argument, so .  Add quotes, just in case $dir
25132         ever contains a shell meta-character.  Prompted by Soren Hansen in
25133         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25134
25135 2008-04-29  Eric Blake  <ebb9@byu.net>
25136
25137         Optimize getndelim2 to use block operations when possible.
25138         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25139         freadseek, and memchr2.
25140         * lib/getndelim2.c (getndelim2): Use them for block reads.
25141
25142 2008-04-29  Bruno Haible  <bruno@clisp.org>
25143
25144         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25145         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25146         * modules/inet_ntop (Depends-on): Add extensions.
25147         * modules/inet_pton (Depends-on): Likewise.
25148         Reported by Simon Josefsson.
25149
25150 2008-04-29  Jim Meyering  <meyering@redhat.com>
25151
25152         When the is more than one match in a block, match all of them.
25153         * build-aux/useless-if-before-free: Iterate through each block
25154         until there are no more matches.
25155
25156         Fix broken useless-if-before-free script.
25157         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25158         the expression to match cast of argument to free-like function.
25159
25160 2008-04-29  Eric Blake  <ebb9@byu.net>
25161
25162         Use new header.
25163         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25164
25165 2008-04-29  Jim Meyering  <meyering@redhat.com>
25166
25167         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25168         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25169         by gnulib to exist and to declare e.g., inet_ntop.
25170         Don't include "inet_ntop.h", now removed.
25171
25172         * m4/arpa_inet_h.m4: Remove trailing blanks.
25173
25174 2008-04-29  Eric Blake  <ebb9@byu.net>
25175
25176         Silence valgrind on safe reads beyond potential array bounds.
25177         * lib/rawmemchr.valgrind: New file.
25178         * lib/strchrnul.valgrind: Likewise.
25179         * modules/rawmemchr (Files): Distribute new file.
25180         * modules/strchrnul (Files): Likewise.
25181         Suggested by Bruno Haible.
25182
25183 2008-04-29  Bruno Haible  <bruno@clisp.org>
25184
25185         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25186         (inet_ntop, inet_pton): Change portability warning's wording.
25187         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25188         Invoke gl_CHECK_NEXT_HEADERS.
25189         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25190         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25191         set ARPA_INET_H.
25192         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25193         * modules/arpa_inet (Description): No longer only for systems that
25194         lack it.
25195         (Depends-on): Add include_next.
25196         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25197         HAVE_ARPA_INET_H.
25198
25199 2008-04-29  Jim Meyering  <meyering@redhat.com>
25200
25201         * modules/mkdir (License): Re-license as LGPLv2+.
25202
25203 2008-04-29  Bruno Haible  <bruno@clisp.org>
25204
25205         * modules/rawmemchr (Maintainer): Set to Eric.
25206         * modules/strchrnul (Maintainer): Likewise.
25207
25208 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25209
25210         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25211         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25212
25213         * modules/arpa_inet (arpa/inet.h): Use them.
25214
25215 2008-04-28  Eric Blake  <ebb9@byu.net>
25216
25217         Test getndelim2.
25218         * modules/getndelim2-tests: New file.
25219         * tests/test-getndelim2.c: Likewise.
25220         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25221         stream.
25222         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25223
25224         * MODULES.html.sh: Document new module.
25225
25226 2008-04-20  Bruno Haible  <bruno@clisp.org>
25227
25228         * lib/c-stack.c (die): Use raise.
25229         * modules/c-stack (Depends-on): Add raise.
25230
25231 2008-04-28  Bruno Haible  <bruno@clisp.org>
25232
25233         Expect rpmatch to be declared.
25234         * lib/yesno.c (rpmatch): Remove declaration.
25235
25236         Declare rpmatch.
25237         * lib/stdlib.in.h (rpmatch): New declaration.
25238         * lib/rpmatch.c: Include <stdlib.h> first.
25239         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25240         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25242         HAVE_RPMATCH.
25243         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25245         (Include): Set to <stdlib.h>.
25246         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25247         HAVE_RPMATCH.
25248         * NEWS: Document the change.
25249
25250 2008-04-28  Bruno Haible  <bruno@clisp.org>
25251
25252         Change rpmatch to use nl_langinfo when appropriate.
25253         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25254         (N_): New macro.
25255         (localized_pattern): New function/macro.
25256         (try): Remove match, nomatch arguments. Copy the pattern into safe
25257         memory before caching it.
25258         (rpmatch): Use localized_pattern. Add translator comments.
25259         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25260         Suggested by Eric Blake.
25261         * modules/rpmatch (Depends-on): Add stdbool.
25262
25263 2008-04-28  Eric Blake  <ebb9@byu.net>
25264
25265         Add rawmemchr module, matching glibc.
25266         * modules/string (Makefile.am): New indicator.
25267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25268         * lib/string.in.h (rawmemchr): Declare when appropriate.
25269         * modules/rawmemchr: New file.
25270         * m4/rawmemchr.m4: Likewise.
25271         * lib/rawmemchr.c: Likewise.
25272         * modules/rawmemchr-tests: Likewise.
25273         * tests/test-rawmemchr.c: Likewise.
25274         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25275         module.
25276         * modules/strchrnul (Depends-on): Add rawmemchr.
25277         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25278
25279         Whitespace cleanup.
25280         * tests/test-strchrnul.c: Reindent.
25281         * lib/strchrnul.c: Likewise.
25282
25283         Optimize and test strchrnul.
25284         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25285         * modules/strchrnul-tests: New file.
25286         * tests/test-strchrnul.c: Likewise.
25287
25288         Remove intprops dependency.
25289         * modules/memchr (Depends-on): Remove intprops.
25290         * modules/memrchr (Depends-on): Likewise.
25291         * modules/memchr2 (Depends-on): Likewise.
25292         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25293         * lib/memrchr.c (__memrchr): Likewise.
25294         * lib/memrchr2.c (memchr2): Likewise.
25295         Reported by Simon Josefsson.
25296
25297 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25298
25299         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25300         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25301
25302 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25303
25304         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25305
25306         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25307
25308         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25309
25310         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25311         declarations.
25312         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25313
25314         * m4/inet_pton.m4: Don't check for header files.
25315
25316         * m4/inet_ntop.m4: Don't check for header files.
25317
25318 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25319
25320         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25321         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25322         trigger for cygwin).
25323         Reported by Bruno Haible  <bruno@clisp.org>.
25324
25325 2008-04-28  Bruno Haible  <bruno@clisp.org>
25326
25327         * doc/posix-functions/strdup.texi: Mention mingw problem.
25328
25329 2008-04-27  Bruno Haible  <bruno@clisp.org>
25330
25331         * modules/stat-time-tests (Depends-on): Add sleep.
25332         * tests/test-stat-time.c (force_unlink): New function.
25333         (cleanup): Use it.
25334         (test_mtime): Remove the ctime related tests.
25335         (test_ctime): New function, containing the ctime related tests.
25336         (main): Call test_ctime, except on native Windows platforms.
25337
25338 2008-04-27  Bruno Haible  <bruno@clisp.org>
25339
25340         * lib/rpmatch.c (rpmatch): Add some comments.
25341         Reported by James Youngman <jay@gnu.org>.
25342
25343 2008-04-27  Bruno Haible  <bruno@clisp.org>
25344
25345         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25346         quiet NaNs.
25347
25348 2008-04-27  Bruno Haible  <bruno@clisp.org>
25349
25350         Make test-yesno.sh work on mingw.
25351         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25352         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25353         (main): Set stdin to binary mode.
25354         * modules/yesno-tests (Depends-on): Add binary-io.
25355
25356 2008-04-27  Bruno Haible  <bruno@clisp.org>
25357
25358         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25359         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25360         argument that lie outside the IEEE 854 domain.
25361         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25362         (gl_ISFINITE): Use it.
25363         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25364
25365 2008-04-27  Bruno Haible  <bruno@clisp.org>
25366
25367         Allow local renaming in config.h.
25368         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25369
25370 2008-04-27  Bruno Haible  <bruno@clisp.org>
25371
25372         * lib/memchr.c (__memchr): Change type of 'i'.
25373         * lib/memchr2.c (memchr2): Likewise.
25374
25375 2008-04-26  Eric Blake  <ebb9@byu.net>
25376         and Bruno Haible  <bruno@clisp.org>
25377
25378         Optimize and test memrchr.
25379         * modules/memrchr (Depends-on): Add intprops.
25380         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25381         * modules/memrchr-tests: New file.
25382         * tests/test-memrchr.c: New file.
25383
25384 2008-04-26  Bruno Haible  <bruno@clisp.org>
25385
25386         Add tentative support for DragonFly BSD.
25387         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25388         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25389         fp.
25390         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25391         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25392         * lib/fpurge.c (fpurge): Likewise.
25393         * lib/freadable.c (freaadable): Likewise.
25394         * lib/freadahead.c (freadahead): Likewise.
25395         * lib/freading.c (freading): Likewise.
25396         * lib/freadptr.c (freadptr): Likewise.
25397         * lib/freadseek.c (freadptrinc): Likewise.
25398         * lib/fseeko.c (fseeko): Likewise.
25399         * lib/fseterr.c (fseterr): Likewise.
25400         * lib/fwritable.c (fwritable): Likewise.
25401         * lib/fwriting.c (fwriting): Likewise.
25402
25403 2008-04-26  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/stdio-impl.h: New file.
25406         * lib/fbufmode.c: Include stdio-impl.h.
25407         (fbufmode): Use fp_, remove redundant #defines.
25408         * lib/fflush.c: Include stdio-impl.h.
25409         (clear_ungetc_buffer): Remove redundant #defines.
25410         * lib/fpurge.c: Include stdio-impl.h.
25411         (fpurge): Remove redundant #defines.
25412         * lib/freadable.c: Include stdio-impl.h.
25413         (freadable): Remove redundant #defines.
25414         * lib/freadahead.c: Include stdio-impl.h.
25415         (freadahead): Remove redundant #defines.
25416         * lib/freading.c: Include stdio-impl.h.
25417         (freading): Remove redundant #defines.
25418         * lib/freadptr.c: Include stdio-impl.h.
25419         (freadptr): Remove redundant #defines.
25420         * lib/freadseek.c: Include stdio-impl.h.
25421         (freadptrinc): Remove redundant #defines.
25422         * lib/fseeko.c: Include stdio-impl.h.
25423         (rpl_fseeko): Remove redundant #defines.
25424         * lib/fseterr.c: Include stdio-impl.h.
25425         (fseterr): Remove redundant #defines.
25426         * lib/fwritable.c: Include stdio-impl.h.
25427         (fwritable: Remove redundant #defines.
25428         * lib/fwriting.c: Include stdio-impl.h.
25429         (fwriting): Remove redundant #defines.
25430         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25431         * modules/fflush (Files): Likewise.
25432         * modules/fpurge (Files): Likewise.
25433         * modules/freadable (Files): Likewise.
25434         * modules/freadahead (Files): Likewise.
25435         * modules/freading (Files): Likewise.
25436         * modules/freadptr (Files): Likewise.
25437         * modules/freadseek (Files): Likewise.
25438         * modules/fseeko (Files): Likewise.
25439         * modules/fseterr (Files): Likewise.
25440         * modules/fwritable (Files): Likewise.
25441         * modules/fwriting (Files): Likewise.
25442
25443 2008-04-26  Bruno Haible  <bruno@clisp.org>
25444
25445         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25446         restore_seek_optimization, update_fpos_cache): New functions, extracted
25447         from rpl_fflush.
25448         (rpl_fflush): Use them.
25449         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25450         (gl_REPLACE_FFLUSH): Use it.
25451
25452 2008-04-26  Bruno Haible  <bruno@clisp.org>
25453
25454         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25455         on Solaris.
25456         * tests/test-xstrtoimax.sh: Likewise.
25457         * tests/test-xstrtoumax.sh: Likewise.
25458         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25459
25460 2008-04-26  Bruno Haible  <bruno@clisp.org>
25461
25462         * modules/memchr-tests: New file.
25463         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25464
25465 2008-04-26  Eric Blake  <ebb9@byu.net>
25466             Bruno Haible  <bruno@clisp.org>
25467
25468         * lib/memchr.c: Include intprops.h.
25469         (__memchr): Optimize parallel detection of matching bytes. Rename local
25470         variables. Add explanatory comments.
25471
25472 2008-04-26  Bruno Haible  <bruno@clisp.org>
25473
25474         Fix module 'memchr', broken since 2000-10-28.
25475         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25476
25477 2008-04-26  Bruno Haible  <bruno@clisp.org>
25478
25479         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25480         comments.
25481
25482 2008-04-25  Eric Blake  <ebb9@byu.net>
25483
25484         Use native fstatat on cygwin 1.7.0.
25485         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25486         first.
25487
25488 2008-04-23  Eric Blake  <ebb9@byu.net>
25489
25490         Improve memchr2 performance.
25491         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25492         NUL bytes.
25493         * modules/memchr2 (Depends-on): Use intprops.h.
25494
25495 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25496
25497         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25498         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25499         <blp@cs.stanford.edu>.
25500
25501 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25502
25503         * lib/arpa_inet.in.h: New file.
25504
25505         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25506         (Makefile.am): Sed in substitute header file.
25507
25508         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25509         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25510
25511         * modules/inet_ntop (configure.ac): Use
25512         gl_ARPA_INET_MODULE_INDICATOR.
25513
25514         * modules/inet_pton (configure.ac): Use
25515         gl_ARPA_INET_MODULE_INDICATOR.
25516
25517 2008-04-22  Jim Meyering  <meyering@redhat.com>
25518
25519         * modules/verify (License): Re-license as LGPLv2+.
25520
25521 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25522
25523         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25524         parameter to void* as per POSIX standard (MinGW uses char*).
25525
25526 2008-04-21  Bruno Haible  <bruno@clisp.org>
25527
25528         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25529         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25530         Define to replacements if REPLACE_ISWCNTRL is 1.
25531         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25532         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25533         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25534         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25535         what it fixes.
25536         * doc/posix-functions/iswalpha.texi: Likewise.
25537         * doc/posix-functions/iswblank.texi: Likewise.
25538         * doc/posix-functions/iswcntrl.texi: Likewise.
25539         * doc/posix-functions/iswdigit.texi: Likewise.
25540         * doc/posix-functions/iswgraph.texi: Likewise.
25541         * doc/posix-functions/iswlower.texi: Likewise.
25542         * doc/posix-functions/iswprint.texi: Likewise.
25543         * doc/posix-functions/iswpunct.texi: Likewise.
25544         * doc/posix-functions/iswspace.texi: Likewise.
25545         * doc/posix-functions/iswupper.texi: Likewise.
25546         * doc/posix-functions/iswxdigit.texi: Likewise.
25547         Reported by Alain Guibert.
25548
25549 2008-04-21  Bruno Haible  <bruno@clisp.org>
25550
25551         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25552         Patch by Alain Guibert.
25553
25554 2008-04-21  Bruno Haible  <bruno@clisp.org>
25555
25556         Fix test failures on mingw.
25557         * tests/test-xstrtol.c (print_no_progname): New function.
25558         (main): Install it in error_print_progname hook.
25559         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25560         * tests/test-xstrtoimax.sh: Likewise.
25561         * tests/test-xstrtoumax.sh: Likewise.
25562
25563 2008-04-21  Bruno Haible  <bruno@clisp.org>
25564
25565         Fix test failure on mingw.
25566         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25567
25568 2008-04-21  Bruno Haible  <bruno@clisp.org>
25569
25570         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25571         Actually assign a value.
25572
25573 2008-04-20  Bruno Haible  <bruno@clisp.org>
25574
25575         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25576         take 2.
25577         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25578         'canonicalize-lgpl' module is also used.
25579         * lib/canonicalize-lgpl.c: Undo last change.
25580         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25581
25582 2008-04-20  Bruno Haible  <bruno@clisp.org>
25583
25584         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25585         config.h. Provide _mkdir based fallback for mingw.
25586         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25587         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25588         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25589         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25590         rather than defining mkdir in config.h.
25591         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25592         (gl_SYS_STAT_H_DEFAULTS): New macro.
25593         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25594         HAVE_IO_H any more.
25595         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25596         HAVE_DECL_MKDIR and HAVE_IO_H.
25597
25598 2008-04-20  Bruno Haible  <bruno@clisp.org>
25599
25600         * lib/isapipe.c: Port to native Windows platforms.
25601
25602 2008-04-20  Bruno Haible  <bruno@clisp.org>
25603
25604         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25605
25606 2008-04-21  Eric Blake  <ebb9@byu.net>
25607
25608         Work around preprocessors that don't handle UINTMAX_MAX.
25609         * lib/memchr2.c (memchr2): Avoid embedded #if.
25610         Reported by Alain Guibert, fix suggested by Bruno Haible.
25611
25612 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25613
25614         * doc/posix-functions/strftime.texi (strftime): Explain better
25615         Windows incompatibility.  Suggested by Micah Cowan
25616         <micah@cowan.name>.
25617
25618 2008-04-20  Bruno Haible  <bruno@clisp.org>
25619
25620         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25621         unistr/u8-mblen.
25622
25623 2008-04-20  Bruno Haible  <bruno@clisp.org>
25624
25625         Fix test failure on platforms with non-GNU iconv.
25626         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25627         (U_TO_U8): Use it, rather than u16_to_u8.
25628         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25629         units at the end of the input string.
25630         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25631
25632 2008-04-20  Bruno Haible  <bruno@clisp.org>
25633
25634         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25635         when the resulting length is 0.
25636         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25637
25638 2008-04-20  Bruno Haible  <bruno@clisp.org>
25639
25640         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25641         works.
25642         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25643
25644 2008-04-20  Bruno Haible  <bruno@clisp.org>
25645
25646         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25647         * modules/tsearch-tests (configure.ac): Test for initstate function.
25648
25649 2008-04-20  Bruno Haible  <bruno@clisp.org>
25650
25651         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25652         for nlink_t if missing.
25653         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25654
25655 2008-04-19  Bruno Haible  <bruno@clisp.org>
25656
25657         Work around snprintf bug on Linux libc5.
25658         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25660         gl_SNPRINTF_SIZE1.
25661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25662         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25663         that test failed.
25664         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25665         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25666         * modules/snprintf (Files): Add m4/printf.m4.
25667         * modules/vsnprintf (Files): Likewise.
25668         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25669         * doc/posix-functions/vsnprintf.texi: Likewise.
25670
25671 2008-04-19  Bruno Haible  <bruno@clisp.org>
25672
25673         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25674         from 0.0058 to less than 10^-7.
25675
25676 2008-04-19  Bruno Haible  <bruno@clisp.org>
25677
25678         Fix rounding when a precision is given.
25679         * lib/vasnprintf.c (is_borderline): New function.
25680         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25681         9...9x.
25682         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25683         %e, %g.
25684         * tests/test-vasprintf-posix.c (test_function): Likewise.
25685         * tests/test-snprintf-posix.h (test_function): Likewise.
25686         * tests/test-sprintf-posix.h (test_function): Likewise.
25687         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25688         * tests/test-printf-posix.h (test_function): Likewise.
25689         * tests/test-printf-posix.output: Update.
25690         Reported by John Darrington <john@darrington.wattle.id.au> via
25691         Ben Pfaff <blp@cs.stanford.edu>.
25692
25693 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25694
25695         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25696         Suggested by Bruno Haible <bruno@clisp.org>.
25697
25698 2008-04-17  Bruno Haible  <bruno@clisp.org>
25699
25700         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25701         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25702         implementation.
25703         Patch by Bruce Merry <bmerry@gmail.com>.
25704
25705 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25706
25707         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25708         doesn't work under Windows.
25709
25710 2008-04-16  Bruno Haible  <bruno@clisp.org>
25711
25712         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25713         New macros.
25714         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25715         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25716         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25717         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25718         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25719         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25720         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25721         macros.
25722         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25723         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25724         Northern Sotho, Uighur.
25725
25726 2008-04-16  Bruno Haible  <bruno@clisp.org>
25727
25728         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25729         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25730         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25731         Reported by Daniel Bergström <daniel@octocode.com>.
25732
25733 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25734             Bruno Haible  <bruno@clisp.org>
25735
25736         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25737         function.
25738         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25739         New functions, mostly extracted from gl_locale_name_default.
25740         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25741
25742 2008-04-16  Eric Blake  <ebb9@byu.net>
25743
25744         Adjust strtod detection to catch glibc 2.7 bug.
25745         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25746         Reported by John Gatewood Ham.
25747
25748 2008-04-16  Bruno Haible  <bruno@clisp.org>
25749
25750         Add tentative support for Linux libc5.
25751         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25752         * lib/fpurge.c (fpurge): Likewise.
25753         * lib/freadable.c (freadable): Likewise.
25754         * lib/freadahead.c (freadahead): Likewise.
25755         * lib/freading.c (freading): Likewise.
25756         * lib/freadptr.c (freadptr): Likewise.
25757         * lib/freadseek.c (freadptrinc): Likewise.
25758         * lib/fseeko.c (rpl_fseeko): Likewise.
25759         * lib/fseterr.c (fseterr): Likewise.
25760         * lib/fwritable.c (fwritable): Likewise.
25761         * lib/fwriting.c (fwriting): Likewise.
25762         Reported by Alain Guibert <alguibert+bts@free.fr>.
25763
25764 2008-04-15  Bruno Haible  <bruno@clisp.org>
25765
25766         * modules/mathl (configure.ac): Define module indicator.
25767
25768 2008-04-15  Bruno Haible  <bruno@clisp.org>
25769
25770         * lib/logl.c (logl): Remove unused variables.
25771
25772 2008-04-15  Bruno Haible  <bruno@clisp.org>
25773
25774         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25775         fails.
25776
25777 2008-04-15  Bruno Haible  <bruno@clisp.org>
25778
25779         * lib/trim.c (trim2): Fix argument of isspace() macro.
25780
25781 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25782
25783         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25784         to 0.
25785         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25786
25787 2008-04-14  Bruno Haible  <bruno@clisp.org>
25788
25789         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25790         AC_LANG_PROGRAM argument.
25791         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25792         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25794         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25795         * m4/math_h.m4 (gl_MATH_H): Likewise.
25796         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25798         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25799         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25800         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25801         * m4/regex.m4 (gl_REGEX): Likewise.
25802         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25803         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25805         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25806         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25807         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25810
25811 2008-04-14  Jim Meyering  <meyering@redhat.com>
25812
25813         test-strtod: fix typos: s/abs/fabs/
25814         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25815
25816 2008-04-13  Bruno Haible  <bruno@clisp.org>
25817
25818         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25819         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25820         module is also used and while not building the reloc-wrapper.
25821
25822 2008-04-13  Bruno Haible  <bruno@clisp.org>
25823
25824         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25825
25826 2008-04-13  Bruno Haible  <bruno@clisp.org>
25827
25828         Fix AIX compilation failure introduced on 2008-04-02.
25829         * tests/test-frexp.c (exp): Undefine before redefining.
25830         * tests/test-frexpl.c (exp): Likewise.
25831
25832 2008-04-13  Bruno Haible  <bruno@clisp.org>
25833
25834         Work around a HP-UX stdio bug.
25835         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25836         * tests/test-ftello.c (main): Likewise.
25837         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25838         * doc/posix-functions/ftello.texi: Likewise.
25839
25840 2008-04-13  Bruno Haible  <bruno@clisp.org>
25841
25842         Make test-signbit pass on HP-UX/hppa.
25843         * tests/test-signbit.c (minus_zerol): New variable.
25844         (test_signbitl): Use it.
25845
25846 2008-04-13  Bruno Haible  <bruno@clisp.org>
25847
25848         Make truncl work on OSF/1 4.0.
25849         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25850         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25851         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25853         HAVE_DECL_TRUNCL.
25854         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25855         HAVE_DECL_TRUNCL.
25856         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25857
25858 2008-04-13  Bruno Haible  <bruno@clisp.org>
25859
25860         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25861
25862 2008-04-13  Bruno Haible  <bruno@clisp.org>
25863
25864         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25865         expression, so as to avoid HP-UX 11 cc compiler bug.
25866
25867 2008-04-13  Bruno Haible  <bruno@clisp.org>
25868
25869         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25870
25871 2008-04-13  Bruno Haible  <bruno@clisp.org>
25872
25873         * lib/git-merge-changelog.c: Remove empty declaration outside of
25874         functions.
25875
25876 2008-04-13  Bruno Haible  <bruno@clisp.org>
25877
25878         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25879
25880 2008-04-13  Bruno Haible  <bruno@clisp.org>
25881
25882         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25883         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25885         also if it exists but lacks definitions of the SHUT_* macros.
25886         * modules/sys_socket (Description): Update.
25887         Reported by Elbert Pol <e.pol@chello.nl>.
25888
25889 2008-04-13  Bruno Haible  <bruno@clisp.org>
25890
25891         * lib/localcharset.c (OS2): Don't redefine if already defined.
25892         Reported by Elbert Pol <e.pol@chello.nl>.
25893
25894 2008-04-13  Bruno Haible  <bruno@clisp.org>
25895
25896         * lib/binary-io.h [__EMX__]: Include <io.h>.
25897         Reported by Elbert Pol <e.pol@chello.nl>.
25898
25899 2008-04-12  Bruno Haible  <bruno@clisp.org>
25900
25901         * lib/fpucw.h: Enable the definitions also for x86_64.
25902         Needed for NetBSD/x86_64.
25903         Reported by Thomas Klausner <tk@giga.or.at>.
25904
25905 2008-04-12  Bruno Haible  <bruno@clisp.org>
25906
25907         * tests/test-strtod.c: Include isnand.h.
25908         (main): Use isnand instead of isnan.
25909         Reported by Jim Meyering.
25910
25911 2008-04-12  Bruno Haible  <bruno@clisp.org>
25912
25913         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25914         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25915
25916 2008-04-12  Jim Meyering  <meyering@redhat.com>
25917
25918         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25919
25920 2008-04-12  Bruno Haible  <bruno@clisp.org>
25921
25922         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25923         Reported by Elbert Pol <e.pol@chello.nl>.
25924
25925 2008-04-12  Eric Blake  <ebb9@byu.net>
25926
25927         Work around Solaris 10 math.h bug.
25928         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25929         (gl_MATH_H_DEFAULTS): Set up default.
25930         * modules/math (Makefile.am): Replace new indicators.
25931         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25932         * tests/test-math.c (main): Test this.
25933         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25934         * doc/posix-headers/math.texi (math.h): Mention bug.
25935         Reported by Nelson H. F. Beebe and Jim Meyering.
25936
25937 2008-04-11  Bruno Haible  <bruno@clisp.org>
25938
25939         Adapt to future versions of Apple GCC.
25940         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25941         Reported by Peter O'Gorman <peter@pogma.com>.
25942
25943 2008-04-11  Bruno Haible  <bruno@clisp.org>
25944
25945         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25946
25947 2008-04-11  Bruno Haible  <bruno@clisp.org>
25948
25949         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25950
25951         * modules/getaddrinfo-tests (Makefile.am): Define
25952         test_getaddrinfo_LDADD.
25953
25954 2008-04-11  Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25957         (init): Fix syntax error.
25958         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25959         is declared.
25960
25961 2008-04-11  Bruno Haible  <bruno@clisp.org>
25962
25963         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25964         * modules/glob (Depends-on): Add stdbool.
25965
25966 2008-04-11  Bruno Haible  <bruno@clisp.org>
25967
25968         * lib/trim.c: Include <string.h>.
25969
25970 2008-04-11  Eric Blake  <ebb9@byu.net>
25971
25972         Avoid compile failure on OS/2.
25973         * lib/regex_internal.h (internal_function): Disable optimization
25974         on OS/2 (__EMX__), where it caused compiler error.
25975         Reported by Elbert Pol.
25976
25977 2008-04-11  Bruno Haible  <bruno@clisp.org>
25978
25979         Flush the standard error stream before aborting. Needed on mingw.
25980         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25981         * tests/test-array_list.c (ASSERT): Likewise.
25982         * tests/test-array_oset.c (ASSERT): Likewise.
25983         * tests/test-avltree_list.c (ASSERT): Likewise.
25984         * tests/test-avltree_oset.c (ASSERT): Likewise.
25985         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25986         * tests/test-binary-io.c (ASSERT): Likewise.
25987         * tests/test-byteswap.c (ASSERT): Likewise.
25988         * tests/test-c-ctype.c (ASSERT): Likewise.
25989         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25990         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25991         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25992         * tests/test-c-strstr.c (ASSERT): Likewise.
25993         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25994         * tests/test-canonicalize.c (ASSERT): Likewise.
25995         * tests/test-carray_list.c (ASSERT): Likewise.
25996         * tests/test-ceilf1.c (ASSERT): Likewise.
25997         * tests/test-ceilf2.c (ASSERT): Likewise.
25998         * tests/test-ceill.c (ASSERT): Likewise.
25999         * tests/test-count-one-bits.c (ASSERT): Likewise.
26000         * tests/test-fbufmode.c (ASSERT): Likewise.
26001         * tests/test-fflush2.c (ASSERT): Likewise.
26002         * tests/test-floorf1.c (ASSERT): Likewise.
26003         * tests/test-floorf2.c (ASSERT): Likewise.
26004         * tests/test-floorl.c (ASSERT): Likewise.
26005         * tests/test-fopen.c (ASSERT): Likewise.
26006         * tests/test-fpending.c (ASSERT): Likewise.
26007         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26008         * tests/test-fpurge.c (ASSERT): Likewise.
26009         * tests/test-freadable.c (ASSERT): Likewise.
26010         * tests/test-freadahead.c (ASSERT): Likewise.
26011         * tests/test-freading.c (ASSERT): Likewise.
26012         * tests/test-freadptr.c (ASSERT): Likewise.
26013         * tests/test-freadptr2.c (ASSERT): Likewise.
26014         * tests/test-freadseek.c (ASSERT): Likewise.
26015         * tests/test-freopen.c (ASSERT): Likewise.
26016         * tests/test-frexp.c (ASSERT): Likewise.
26017         * tests/test-frexpl.c (ASSERT): Likewise.
26018         * tests/test-fseek.c (ASSERT): Likewise.
26019         * tests/test-fseeko.c (ASSERT): Likewise.
26020         * tests/test-fstrcmp.c (ASSERT): Likewise.
26021         * tests/test-ftell.c (ASSERT): Likewise.
26022         * tests/test-ftello.c (ASSERT): Likewise.
26023         * tests/test-func.c (ASSERT): Likewise.
26024         * tests/test-fwritable.c (ASSERT): Likewise.
26025         * tests/test-fwriting.c (ASSERT): Likewise.
26026         * tests/test-getdelim.c (ASSERT): Likewise.
26027         * tests/test-getline.c (ASSERT): Likewise.
26028         * tests/test-i-ring.c (ASSERT): Likewise.
26029         * tests/test-iconv-utf.c (ASSERT): Likewise.
26030         * tests/test-iconv.c (ASSERT): Likewise.
26031         * tests/test-isfinite.c (ASSERT): Likewise.
26032         * tests/test-isnand.c (ASSERT): Likewise.
26033         * tests/test-isnanf.c (ASSERT): Likewise.
26034         * tests/test-isnanl.h (ASSERT): Likewise.
26035         * tests/test-ldexpl.c (ASSERT): Likewise.
26036         * tests/test-linked_list.c (ASSERT): Likewise.
26037         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26038         * tests/test-localename.c (ASSERT): Likewise.
26039         * tests/test-lseek.c (ASSERT): Likewise.
26040         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26041         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26042         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26043         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26044         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26045         * tests/test-mbschr.c (ASSERT): Likewise.
26046         * tests/test-mbscspn.c (ASSERT): Likewise.
26047         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26048         * tests/test-mbspbrk.c (ASSERT): Likewise.
26049         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26050         * tests/test-mbsrchr.c (ASSERT): Likewise.
26051         * tests/test-mbsspn.c (ASSERT): Likewise.
26052         * tests/test-mbsstr1.c (ASSERT): Likewise.
26053         * tests/test-mbsstr2.c (ASSERT): Likewise.
26054         * tests/test-mbsstr3.c (ASSERT): Likewise.
26055         * tests/test-memchr2.c (ASSERT): Likewise.
26056         * tests/test-memmem.c (ASSERT): Likewise.
26057         * tests/test-open.c (ASSERT): Likewise.
26058         * tests/test-printf-frexp.c (ASSERT): Likewise.
26059         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26060         * tests/test-printf-posix.c (ASSERT): Likewise.
26061         * tests/test-quotearg.c (ASSERT): Likewise.
26062         * tests/test-rbtree_list.c (ASSERT): Likewise.
26063         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26064         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26065         * tests/test-round1.c (ASSERT): Likewise.
26066         * tests/test-roundf1.c (ASSERT): Likewise.
26067         * tests/test-roundl.c (ASSERT): Likewise.
26068         * tests/test-signbit.c (ASSERT): Likewise.
26069         * tests/test-sleep.c (ASSERT): Likewise.
26070         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26071         * tests/test-snprintf.c (ASSERT): Likewise.
26072         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26073         * tests/test-stat-time.c (ASSERT): Likewise.
26074         * tests/test-strcasestr.c (ASSERT): Likewise.
26075         * tests/test-strerror.c (ASSERT): Likewise.
26076         * tests/test-striconv.c (ASSERT): Likewise.
26077         * tests/test-striconveh.c (ASSERT): Likewise.
26078         * tests/test-striconveha.c (ASSERT): Likewise.
26079         * tests/test-strsignal.c (ASSERT): Likewise.
26080         * tests/test-strstr.c (ASSERT): Likewise.
26081         * tests/test-strtod.c (ASSERT): Likewise.
26082         * tests/test-trunc1.c (ASSERT): Likewise.
26083         * tests/test-trunc2.c (ASSERT): Likewise.
26084         * tests/test-truncf1.c (ASSERT): Likewise.
26085         * tests/test-truncf2.c (ASSERT): Likewise.
26086         * tests/test-truncl.c (ASSERT): Likewise.
26087         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26088         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26089         * tests/test-vasnprintf.c (ASSERT): Likewise.
26090         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26091         * tests/test-vasprintf.c (ASSERT): Likewise.
26092         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26093         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26094         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26095         * tests/test-vsnprintf.c (ASSERT): Likewise.
26096         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26097         * tests/test-wcwidth.c (ASSERT): Likewise.
26098         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26099         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26100         * tests/test-xvasprintf.c (ASSERT): Likewise.
26101         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26102         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26103         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26104         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26105         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26106         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26107         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26108         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26109         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26110         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26111         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26112         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26113         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26114         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26115         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26116         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26117         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26118         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26119         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26120         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26121         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26122         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26123         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26124         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26125         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26126         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26127         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26128         * tests/unictype/test-combining.c (ASSERT): Likewise.
26129         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26130         * tests/unictype/test-digit.c (ASSERT): Likewise.
26131         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26132         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26133         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26134         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26135         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26136         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26137         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26138         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26139         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26140         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26141         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26142         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26143         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26144         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26145         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26146         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26147         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26148         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26149         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26150         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26151         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26152         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26153         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26154         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26155         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26156         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26157         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26158         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26159         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26160         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26161         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26162         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26163         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26164         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26165         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26166         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26167         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26168         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26169         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26170         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26171         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26172         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26173         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26174         Reported by Eric Blake.
26175
26176 2008-04-11  Bruno Haible  <bruno@clisp.org>
26177
26178         * lib/wchar.in.h: Tweak comment.
26179
26180 2008-04-11  Bruno Haible  <bruno@clisp.org>
26181
26182         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26183         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26184         gl_COMMON.
26185         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26186
26187 2008-04-11  Bruno Haible  <bruno@clisp.org>
26188
26189         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26190
26191 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26192
26193         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26194         of attempting to use non-existing /dev/*random.  Based on patch
26195         from Adam Strzelecki <ono@java.pl> in
26196         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26197
26198 2008-04-08  Bruno Haible  <bruno@clisp.org>
26199
26200         Add tentative support for emx+gcc.
26201         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26202         * lib/fpurge.c (fpurge): Likewise.
26203         * lib/freadable.c (freadable): Likewise.
26204         * lib/freadahead.c (freadahead): Likewise.
26205         * lib/freading.c (freading): Likewise.
26206         * lib/freadptr.c (freadptr): Likewise.
26207         * lib/freadseek.c (freadptrinc): Likewise.
26208         * lib/fseeko.c (rpl_fseeko): Likewise.
26209         * lib/fseterr.c (fseterr): Likewise.
26210         * lib/fwritable.c (fwritable): Likewise.
26211         * lib/fwriting.c (fwriting): Likewise.
26212         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26213
26214 2008-04-09  Eric Blake  <ebb9@byu.net>
26215
26216         Avoid some autoconf warnings.
26217         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26218         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26219         * m4/afs.m4 (gl_AFS): Likewise.
26220         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26221         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26223         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26224         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26225         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26226         (AC_CHECK_DECLS_ONCE): Likewise.
26227         Rename file...
26228         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26229         gnulib-tool requires autoconf 2.59 or better.
26230         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26231
26232 2008-04-08  Eric Blake  <ebb9@byu.net>
26233
26234         Use 'git describe --match' if present (added in git 1.5.5).
26235         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26236         if possible.
26237
26238 2008-04-08  Bruno Haible  <bruno@clisp.org>
26239
26240         Add tentative support for OpenServer.
26241         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26242         _ptr, _cnt.
26243         * lib/fpurge.c (fpurge): Likewise.
26244         * lib/freadable.c (freadable): Likewise.
26245         * lib/freadahead.c (freadahead): Likewise.
26246         * lib/freading.c (freading): Likewise.
26247         * lib/freadptr.c (freadptr): Likewise.
26248         * lib/freadseek.c (freadptrinc): Likewise.
26249         * lib/fseeko.c (rpl_fseeko): Likewise.
26250         * lib/fseterr.c (fseterr): Likewise.
26251         * lib/fwritable.c (fwritable): Likewise.
26252         * lib/fwriting.c (fwriting): Likewise.
26253         Reported by Roger Cornelius <rac@tenzing.org> and
26254         Brian K. White <brian@aljex.com>.
26255
26256 2008-04-06  Jim Meyering  <meyering@redhat.com>
26257
26258         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26259
26260 2008-04-06  Bruno Haible  <bruno@clisp.org>
26261
26262         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26263         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26264         * tests/test-printf-posix.sh: Likewise.
26265         * tests/test-vfprintf-posix.sh: Likewise.
26266         * tests/test-vprintf-posix.sh: Likewise.
26267         * tests/test-xprintf-posix.sh: Likewise.
26268
26269 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26270
26271         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26272         hide error from 'ls', needed on OS/2.
26273         Report by Elbert Pol <elbert.pol@gmail.com>.
26274
26275 2008-04-04  Eric Blake  <ebb9@byu.net>
26276
26277         Make test-fseeko.c failures meaningful.
26278         * tests/test-fseeko.c: Print line number on failure.
26279         * tests/test-fseek.c: Likewise.
26280         Reported by Nelson H. F. Beebe.
26281
26282         Improve strtod bug detection check.
26283         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26284         required for Solaris 10.
26285         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26286
26287 2008-04-04  Bruno Haible  <bruno@clisp.org>
26288
26289         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26290         by m4/setenv.m4.
26291
26292 2008-04-03  Eric Blake  <ebb9@byu.net>
26293
26294         Ensure sane .version contents.
26295         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26296         version string.
26297         * build-aux/git-version-gen: Improve documentation.
26298
26299         Make GNU make output nicer.
26300         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26301         MAKECMDGOALS to enforce message for all command line targets.  Set
26302         srcdir for use in maint.mk.
26303
26304         Another maintainer tweak.
26305         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26306         a target that regenerates version.
26307
26308 2008-04-03  Jim Meyering  <meyering@redhat.com>
26309
26310         vc-list-files: don't cause coreutils "make po-check" failure
26311         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26312
26313 2008-04-03  Eric Blake  <ebb9@byu.net>
26314
26315         Allow VPATH usage of vc-list-files.
26316         * build-aux/vc-list-files (scriptversion): Add timestamp.
26317         (options): Add --help, --version, -C.
26318         (CVS): Support installed cvsu.
26319
26320 2008-04-02  Bruno Haible  <bruno@clisp.org>
26321
26322         Avoid some "statement with no effect" warnings from gcc.
26323         * tests/test-wctype.c (main): Explicitly ignore unused values.
26324         Reported by Jim Meyering.
26325
26326 2008-04-02  Jim Meyering  <meyering@redhat.com>
26327
26328         Avoid some warnings from "gcc -Wshadow".
26329         * tests/test-frexp.c (exp): Define to a different identifier.
26330         * tests/test-frexpl.c (exp): Likewise.
26331
26332 2008-04-03  Jim Meyering  <meyering@redhat.com>
26333
26334         bootstrap: remove dangling *.[ch] symlinks from lib
26335         * build-aux/bootstrap [dangling symlink removal]: Move find's
26336         -depth option to precede all others, to avoid a warning.
26337         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26338
26339 2008-04-02  Bruno Haible  <bruno@clisp.org>
26340
26341         Avoid some warnings from "gcc -Wshadow".
26342         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26343         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26344         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26345         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26346         Reported by Jim Meyering.
26347
26348 2008-04-01  Bruno Haible  <bruno@clisp.org>
26349
26350         Fix test to work on IRIX 6.5 with cc.
26351         * tests/test-math.c (numeric_equal): New function.
26352         (main): Use it.
26353
26354 2008-04-01  Bruno Haible  <bruno@clisp.org>
26355
26356         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26357
26358 2008-04-01  Bruno Haible  <bruno@clisp.org>
26359
26360         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26361         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26362         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26363         (Depends-on): Remove math.
26364
26365         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26366         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26367         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26368         (Depends-on): Remove math.
26369
26370         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26371         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26372         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26373         (Depends-on): Remove math.
26374         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26375         (Depends-on): Remove math.
26376
26377         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26378         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26379         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26380         (Depends-on): Remove math.
26381         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26382         (Depends-on): Remove math.
26383
26384         * tests/test-round1.c: Include nan.h.
26385         (main): Use NaNd instead of NAN.
26386         * modules/round-tests (Files): Add tests/nan.h.
26387
26388         * tests/test-trunc1.c: Include nan.h.
26389         (main): Use NaNd instead of NAN.
26390         * modules/trunc-tests (Files): Add tests/nan.h.
26391
26392         * tests/test-roundf1.c: Include nan.h.
26393         (main): Use NaNf instead of NAN.
26394         * modules/roundf-tests (Files): Add tests/nan.h.
26395
26396         * tests/test-truncf1.c: Include nan.h.
26397         (main): Use NaNf instead of NAN.
26398         * modules/truncf-tests (Files): Add tests/nan.h.
26399
26400         * tests/test-ceilf1.c: Include nan.h.
26401         (main): Use NaNf instead of NAN.
26402         * modules/ceilf-tests (Files): Add tests/nan.h.
26403
26404         * tests/test-floorf1.c: Include nan.h.
26405         (main): Use NaNf instead of NAN.
26406         * modules/floorf-tests (Files): Add tests/nan.h.
26407
26408         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26409         (main): Use NaNf instead of NAN.
26410         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26411
26412         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26413         (main): Use NaNd instead of NAN.
26414         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26415
26416         * tests/test-frexp.c: Include nan.h.
26417         (main): Use NaNd instead of NAN.
26418         * modules/frexp-tests (Files): Add tests/nan.h.
26419
26420         * lib/isnan.c: Don't include <math.h>.
26421         (FUNC): Don't use NAN macro.
26422         * modules/isnand-nolibm (Depends-on): Remove math.
26423         * modules/isnanf-nolibm (Depends-on): Remove math.
26424         * modules/isnanl (Depends-on): Remove math.
26425         * modules/isnanl-nolibm (Depends-on): Remove math.
26426
26427         * tests/nan.h: New file.
26428
26429 2008-04-01  Eric Blake  <ebb9@byu.net>
26430
26431         Fix typos.
26432         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26433         values to be the right type.
26434
26435         For now, cater to gnulib strtod inaccuracies.
26436         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26437         fractional results.  While not as nice from a QoI perspective, it
26438         is a quicker patch than correctly implementing decimal to binary
26439         rounding.
26440
26441 2008-03-31  Eric Blake  <ebb9@byu.net>
26442
26443         Guarantee a definition of NAN.
26444         * lib/math.in.h (NAN): Define if missing.
26445         * tests/test-math.c (main): Test it.
26446         * doc/posix-headers/math.texi (math.h): Document this.
26447         * lib/isnan.c (rpl_isnand): Use it.
26448         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26449         * tests/test-floorf1.c (NaN): Likewise.
26450         * tests/test-frexp.c (NaN): Likewise.
26451         * tests/test-isnand.c (NaN): Likewise.
26452         * tests/test-isnanf.c (NaN): Likewise.
26453         * tests/test-round1.c (NaN): Likewise.
26454         * tests/test-roundf1.c (NaN): Likewise.
26455         * tests/test-snprintf-posix.h (NaN): Likewise.
26456         * tests/test-sprintf-posix.h (NaN): Likewise.
26457         * tests/test-trunc1.c (NaN): Likewise.
26458         * tests/test-truncf1.c (NaN): Likewise.
26459         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26460         * tests/test-vasprintf-posix.c (NaN): Likewise.
26461         * modules/isnand-nolibm (Depends-on): Add math.
26462         * modules/isnanf-nolibm (Depends-on): Likewise.
26463         * modules/isnanl (Depends-on): Likewise.
26464         * modules/isnanl-nolibm (Depends-on): Likewise.
26465         * modules/snprintf-posix-tests (Depends-on): Likewise.
26466         * modules/sprintf-posix-tests (Depends-on): Likewise.
26467         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26468         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26469         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26470         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26471
26472 2008-03-31  Bruno Haible  <bruno@clisp.org>
26473
26474         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26475         * doc/posix-functions/strtod.texi: Likewise.
26476
26477 2008-03-31  Bruno Haible  <bruno@clisp.org>
26478
26479         * tests/test-strtod.c (main): Don't use C99 syntax.
26480
26481 2008-03-31  Bruno Haible  <bruno@clisp.org>
26482
26483         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26484         Reported by Eric Blake.
26485
26486 2008-03-31  Jim Meyering  <meyering@redhat.com>
26487
26488         Don't compare actual signbit return values.
26489         * tests/test-strtod.c (main): Rather, compare only their
26490         zero/non-zero nature.
26491
26492 2008-03-31  Eric Blake  <ebb9@byu.net>
26493
26494         More strtod documentation.
26495         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26496         failures as distinct bugs.
26497
26498 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26501         Problem reported by Erik Benada in
26502         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26503
26504 2008-03-30  Bruno Haible  <bruno@clisp.org>
26505
26506         * tests/test-strtod.c: Add comments about which assertion fails on which
26507         platform.
26508         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26509
26510 2008-03-30  Eric Blake  <ebb9@byu.net>
26511
26512         Test signbit behavior on zeros.
26513         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26514         (test_signbitd, test_signbitl): Likewise.
26515
26516         More strtod touchups.
26517         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26518         sign of negative underflow, for now.  Use .5, not .1.
26519         * doc/posix-functions/strtod.texi (strtod): Mention these
26520         limitations.
26521         Reported by Jim Meyering.
26522
26523 2008-03-30  Bruno Haible  <bruno@clisp.org>
26524
26525         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26526         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26527
26528 2008-03-30  Bruno Haible  <bruno@clisp.org>
26529
26530         Avoid failure when attempting to return empty iconv results on some
26531         platforms.
26532         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26533         allocation, don't report ENOMEM when the resulting string is empty.
26534
26535 2008-03-30  Bruno Haible  <bruno@clisp.org>
26536
26537         Fix buffer overrun.
26538         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26539         Don't consider the width for tmp_length. Check count against tmp_length
26540         before doing the padding. Ensure enough allocation during padding.
26541
26542 2008-03-30  Eric Blake  <ebb9@byu.net>
26543
26544         strtod touchups.
26545         * lib/strtod.c (strtod): Avoid compiler warnings.
26546         Reported by Jim Meyering.
26547
26548 2008-03-30  Bruno Haible  <bruno@clisp.org>
26549
26550         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26551         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26552         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26553         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26554         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26555         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26556         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26557         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26558
26559         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26560         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26561         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26562         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26563         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26564         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26565         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26566         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26567
26568         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26569         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26570         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26571         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26572         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26573         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26574         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26575         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26576
26577         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26578         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26579
26580         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26581         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26582
26583         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26584         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26585
26586         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26588         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26589
26590         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26592         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26593
26594         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26596         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26597
26598         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26599         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26600         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26601
26602         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26603         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26604         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26605         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26606         (Depends-on): Add EOVERFLOW.
26607         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26608         (Depends-on): Add EOVERFLOW.
26609         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26610         (Depends-on): Add EOVERFLOW.
26611         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26612         (Depends-on): Add EOVERFLOW.
26613         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26614         (Depends-on): Add EOVERFLOW.
26615         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26616         (Depends-on): Add EOVERFLOW.
26617         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26618         (Depends-on): Add EOVERFLOW.
26619         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26620         (Depends-on): Add EOVERFLOW.
26621
26622         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26623         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26624         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26625
26626         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26628         * modules/snprintf (Depends-on): Add EOVERFLOW.
26629
26630         * lib/poll.c (EOVERFLOW): Remove fallback.
26631         * modules/poll (Depends-on): Add EOVERFLOW.
26632
26633         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26634         * modules/getugroups (Depends-on): Add EOVERFLOW.
26635
26636         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26637         * modules/getdelim (Depends-on): Add EOVERFLOW.
26638
26639         * lib/ftell.c (EOVERFLOW): Remove fallback.
26640         * modules/ftell (Depends-on): Add EOVERFLOW.
26641
26642         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26644         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26645
26646         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26647
26648         * modules/EOVERFLOW-tests: New file.
26649         * tests/test-EOVERFLOW.c: New file.
26650
26651         * modules/EOVERFLOW: New file.
26652         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26653
26654 2008-03-30  Bruno Haible  <bruno@clisp.org>
26655
26656         Fix bug introduced on 2007-06-10.
26657         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26658         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26659
26660 2008-03-30  Bruno Haible  <bruno@clisp.org>
26661
26662         Improve freadseek's efficiency after ungetc.
26663         * lib/freadseek.c: Include freadahead.h.
26664         (freadptrinc): New function, extracted from freadseek.
26665         (freadseek): Use it in a loop. Use freadahead to determine the number
26666         of loop iterations.
26667         * modules/freadseek (Depends-on): Add freadahead.
26668         (configure.ac): Require AC_C_INLINE.
26669
26670 2008-03-30  Bruno Haible  <bruno@clisp.org>
26671
26672         * lib/freadseek.c (freadseek): Don't ignore the return value of
26673         freadptr.
26674
26675 2008-03-29  Eric Blake  <ebb9@byu.net>
26676
26677         Add hex float support.
26678         * modules/strtod (Depends-on): Add c-ctype.
26679         (Link): Mention POW_LIB.
26680         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26681         whitespace between 'e' and exponent.
26682         * tests/test-strtod.c (main): Enable hex float tests.
26683         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26684         now provides.
26685
26686         Document various strtod bugs, with some fixes.
26687         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26688         "-0x", "inf", "nan", and hex constants.
26689         * doc/posix-functions/atof.texi (atof): Likewise.
26690         * modules/stdlib (Makefile.am): Support strtod.
26691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26692         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26693         detect additional strtod bugs.
26694         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26695         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26696         bool where appropriate.  Parse 'inf' and 'nan'.
26697         * tests/test-strtod.c: New file.
26698         * modules/strtod (Depends-on): Add stdbool, stdlib.
26699         (configure.ac): Turn on module indicator.
26700         * modules/strtod-tests: New module.
26701
26702 2008-03-29  Eric Blake  <ebb9@byu.net>
26703
26704         Fix ftell on mingw.
26705         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26706         * modules/ftell-tests (Depends-on): Add binary-io.
26707         * modules/ftello-tests (Depends-on): Likewise.
26708         * tests/test-ftell.c (main): Enhance test to cover behavior after
26709         ungetc.  Enforce binary mode.
26710         * tests/test-ftello.c (main): Likewise.
26711
26712         Pass test-freadseek on cygwin.
26713         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26714         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26715         ungetc buffer.
26716
26717         * tests/test-fflush2.c (main): Fix typo.
26718
26719 2008-03-29  Bruno Haible  <bruno@clisp.org>
26720
26721         * tests/test-fflush2.c (main): Temporarily disable the contents of
26722         this test.
26723         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26724         Reported by Eric Blake.
26725
26726 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26727
26728         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26729         (GC_SHA224_DIGEST_SIZE): Add.
26730
26731         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26732         (gc_hash_digest_length): Likewise.
26733         (gc_hash_buffer): Likewise.
26734
26735 2008-03-25  Bruno Haible  <bruno@clisp.org>
26736
26737         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26738         detail which gettext release to use.
26739         Reported by Simon Josefsson.
26740
26741 2008-03-26  Jim Meyering  <meyering@redhat.com>
26742
26743         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26744         * modules/gnumakefile (clean-GNUmakefile): Also, use
26745         test ... && ... || : syntax rather than if-then ... fi.
26746
26747         gnumakefile: Don't double-quote-expand $(VPATH) value.
26748         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26749
26750 2008-03-24  Eric Blake  <ebb9@byu.net>
26751
26752         Alter GNUmakefile to install into top directory.
26753         * modules/maintainer-makefile: Split, and add dependency...
26754         * modules/gnumakefile: to this new module.
26755         * build-aux/GNUmakefile: Move...
26756         * top/GNUmakefile: ...here.
26757         * build-aux/maint.mk: Move...
26758         * top/maint.mk: ...here.
26759         * MODULES.html.sh (Support for maintaining...): Document new
26760         module.
26761
26762 2008-03-23  Bruno Haible  <bruno@clisp.org>
26763
26764         * gnulib-tool: New options --vc-files, --no-vc-files.
26765         (func_usage): Document them.
26766         (vc_files): New variable.
26767         (func_import): Consider vc_files.
26768         (func_create_testdir): Set vc_files to empty.
26769         Suggested by Jim Meyering and Karl Berry.
26770
26771 2008-03-23  Bruno Haible  <bruno@clisp.org>
26772
26773         Fix regex compilation error on HP-UX 11.
26774         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26775         * modules/regex (Files): Add m4/mbstate_t.m4.
26776         Reported by Ton Voon <ton.voon@altinity.com>.
26777
26778 2008-03-23  Bruno Haible  <bruno@clisp.org>
26779
26780         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26781
26782 2008-03-23  Eric Blake  <ebb9@byu.net>
26783             Bruno Haible  <bruno@clisp.org>
26784
26785         Install files from top/ in the destination directory.
26786         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26787         augmentation also for the files from top/.
26788         (func_import, func_create_testdir): Rewrite file names:
26789         top/filename -> filename.
26790
26791 2008-03-23  Bruno Haible  <bruno@clisp.org>
26792
26793         Tweak "gnulib --version" output.
26794         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26795
26796 2008-03-23  Bruno Haible  <bruno@clisp.org>
26797
26798         Tweak "gnulib --version" output.
26799         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26800         rather than contents of ChangeLog, when possible.
26801
26802 2008-03-21  Eric Blake  <ebb9@byu.net>
26803
26804         More --version tweaks.
26805         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26806         date of last ChangeLog entry.
26807
26808 2008-03-21  Jim Meyering  <meyering@redhat.com>
26809
26810         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26811
26812 2008-03-20  Eric Blake  <ebb9@byu.net>
26813
26814         VPATH fix.
26815         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26816
26817 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26818
26819         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26820         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26821
26822 2008-03-20  Eric Blake  <ebb9@byu.net>
26823
26824         Sync GNUmakefile with coreutils.
26825         * build-aux/GNUmakefile (have-Makefile): Rename...
26826         (_have-Makefile): ...to this, for namespace consideration.
26827         (GNUmakefile.cfg): Include, if present.
26828         (_autoreconf): Define a default.
26829         (_is-dist-target): New rule for rebuilds to pick up intra-release
26830         version.
26831         (maint-cfg.mk): Rename...
26832         (cfg.mk): ...to this.
26833
26834 2008-03-18  Jim Meyering  <meyering@redhat.com>
26835
26836         New script and module: mktempd
26837         * MODULES.html.sh (maint+release support): Add mktempd.
26838         * build-aux/mktempd: New file.
26839         * modules/mktempd: New file.
26840
26841 2008-03-15  Jim Meyering  <meyering@redhat.com>
26842
26843         Undo last change.
26844         * lib/sha1.c, lib/md5.c: 63 != ~63.
26845         Reported by Andreas Schwab.
26846
26847         sha1.c, md5.c: Hoist a redundant expression.
26848         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26849         "ctx->buflen" only once, before calling *_process_block.
26850         * lib/md5.c (md5_process_bytes): Likewise.
26851
26852 2008-03-14  Eric Blake  <ebb9@byu.net>
26853
26854         Bump copyright year in files generated by gnulib-tool.
26855         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26856         gnulib-tool, rather than hard-coding it.
26857
26858         Fix 'gnulib-tool --version' output to work with git.
26859         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26860         (startup): ...here.
26861         (func_version): Use it to invoke git-version-gen, rather than
26862         relying on CVS keyword expansion.  Modernize wording.
26863         (cvsdatestamp, last_checkin_date, version): Kill unused
26864         variables.
26865
26866 2008-03-12  Jim Meyering  <meyering@redhat.com>
26867
26868         Recognize optional cast of the argument to free.
26869         * build-aux/useless-if-before-free: Update regexps.
26870
26871         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26872
26873 2008-03-11  Bruno Haible  <bruno@clisp.org>
26874
26875         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26876         by a single package.
26877         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26878         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26879         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26880         Reported by Sam Steingold <sds@gnu.org>.
26881
26882 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26883
26884         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26885         repositories.
26886
26887 2008-03-11  Bruno Haible  <bruno@clisp.org>
26888
26889         Avoid conflicts between local macro definitions.
26890         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26891         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26892
26893 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26894             Bruno Haible  <bruno@clisp.org>
26895
26896         Make va_copy work with some version of xlc on AIX 5.1.
26897         * lib/stdarg.in.h: New file.
26898         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26899         On AIX, use a <stdarg.h> file substitute.
26900         * modules/stdarg (Files): Add lib/stdarg.in.h.
26901         (Depends-on): Add include_next.
26902         (Makefile.am): Build a stdarg.h substitute if requested.
26903         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26904
26905 2008-03-10  Bruno Haible  <bruno@clisp.org>
26906
26907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26908         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26909         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26910
26911 2008-03-10  Bruno Haible  <bruno@clisp.org>
26912
26913         * modules/stdlib (Depends-on): Add include_next, remove
26914         absolute-header.
26915
26916 2008-03-09  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/freadahead.h (freadahead): Document more precisely.
26919         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26920         the sum of both buffer sizes.
26921         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26922         * NEWS: Document the change.
26923
26924 2008-03-09  Bruno Haible  <bruno@clisp.org>
26925
26926         Extend freadptr to return also the buffer size.
26927         * lib/freadptr.h (freadptr): Add sizep argument.
26928         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26929         (freadptr): Add sizep argument. Determine buffer size like freadahead
26930         does.
26931         * tests/test-freadptr.c: Don't include freadahead.h.
26932         (main): Adapt for new calling convention of freadptr.
26933         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26934         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26935         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26936         tests/test-freadptr2.sh.
26937         (Depends): Remove freadahead.
26938         (TESTS): Add test-freadptr2.sh.
26939         (check_PROGRAMS): Add test-freadptr2.
26940
26941 2008-03-09  Bruno Haible  <bruno@clisp.org>
26942
26943         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26944         Report and solution by Simon Josefsson.
26945
26946 2008-03-06  Bruno Haible  <bruno@clisp.org>
26947
26948         Make fflush after ungetc work on BSD platforms.
26949         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26950         * tests/test-fflush2.c: New file.
26951         * tests/test-fflush2.sh: New file.
26952         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26953         tests/test-fflush2.c.
26954         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26955         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26956
26957 2008-03-06  Eric Blake  <ebb9@byu.net>
26958
26959         Likewise for ftello.
26960         * modules/ftello (Dependencies): Add extensions.
26961         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26962
26963 2008-03-06  Bruno Haible  <bruno@clisp.org>
26964
26965         * modules/fseeko (Dependencies): Add extensions.
26966         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26967         Needed on glibc systems.
26968
26969 2008-03-06  Bruno Haible  <bruno@clisp.org>
26970
26971         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26972         email address.
26973         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26974
26975 2008-03-06  Bruno Haible  <bruno@clisp.org>
26976
26977         * users.txt: Add libgnupdf.
26978
26979 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26980
26981         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26982         (Header File Substitutes, Function Substitutes,
26983         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26984         (Build robot for gnulib): Fix typo.
26985
26986 2008-03-06  Bruno Haible  <bruno@clisp.org>
26987
26988         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26989         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26990
26991 2008-03-06  Bruno Haible  <bruno@clisp.org>
26992
26993         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26994         * doc/gnulib.texi: Include it.
26995
26996 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26997
26998         * modules/func (License): Change license to unlimited; there was
26999         no LGPL parts in the module anyway.
27000
27001 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27002
27003         * modules/__func__: Renamed to modules/func.
27004         * modules/__func__-tests: Renamed to modules/func-tests.
27005         * tests/test-__func__.c: Renamed to tests/test-func.c.
27006         * m4/__func__.m4: Renamed to m4/func.m4.
27007         * doc/gnulib.texi (__func__): Section renamed to func.
27008         Suggested by Eric Blake <ebb9@byu.net>.
27009
27010 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27011
27012         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27013         about __func__.  Make example self-contained.  Suggested by Eric
27014         Blake <ebb9@byu.net>.
27015
27016         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27017         Suggested by Eric Blake <ebb9@byu.net>.
27018
27019 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27020
27021         * modules/__func__: New file.
27022         * modules/__func__-tests: New file.
27023         * tests/test-__func__.c: New file.
27024         * m4/__func__.m4: New file.
27025         * doc/gnulib.texi (__func__): Document __func__ module.
27026
27027 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27028
27029         * modules/byteswap (License): Re-license as LGPLv2+.
27030
27031 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27032
27033         * doc/Makefile: Add pdf target.
27034
27035 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27036
27037         * modules/inline (License): Use 'unlimited', since there are only
27038         *.m4 files in this module.
27039
27040 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27041             Bruno Haible  <bruno@clisp.org>
27042
27043         Add support for HP C 7.1 on OpenVMS 8.3.
27044         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27045
27046 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27047
27048         Update VMS specifics.
27049         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27050
27051 2008-03-02  Jim Meyering  <meyering@redhat.com>
27052
27053         Remove the last dependency on the "free" module.
27054         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27055         Reported by Bob Proulx.
27056
27057         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27058
27059         Remove useless "if" tests before free.  Deprecate "free" module.
27060         * doc/posix-functions/free.texi: Mention that this
27061         module is no longer useful.
27062         * modules/free (Notice): Say this module is obsolete.
27063         * modules/readutmp (Depends-on): Remove free.
27064         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27065         * lib/putenv.c (putenv): Likewise.
27066         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27067         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27068         * tests/test-c-strcasestr.c (main): Likewise.
27069         * tests/test-c-strstr.c (main): Likewise.
27070         * tests/test-mbscasestr1.c (main): Likewise.
27071         * tests/test-mbscasestr2.c (main): Likewise.
27072         * tests/test-mbsstr1.c (main): Likewise.
27073         * tests/test-mbsstr2.c (main): Likewise.
27074         * tests/test-memmem.c (main): Likewise.
27075         * tests/test-strcasestr.c (main): Likewise.
27076         * tests/test-striconv.c (main): Likewise.
27077         * tests/test-striconveh.c (main): Likewise.
27078         * tests/test-striconveha.c (main): Likewise.
27079         * tests/test-strstr.c (main): Likewise.
27080
27081         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27082
27083         bootstrap: sync from coreutils again
27084         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27085
27086 2008-03-01  Jim Meyering  <meyering@redhat.com>
27087
27088         bootstrap: sync from coreutils
27089         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27090         also when the target doesn't exist.
27091
27092 2008-03-01  Eric Blake  <ebb9@byu.net>
27093
27094         Fix bugs in last patch.
27095         * lib/memchr2.c (memchr2): Fix typo.
27096         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27097         extension.
27098         Reported by Bruce Korb.
27099
27100         New module 'memchr2'.
27101         * modules/memchr2: New file.
27102         * modules/memchr2-tests: Likewise.
27103         * lib/memchr2.h: Likewise.
27104         * lib/memchr2.c: Likewise, based on memchr.c.
27105         * tests/test-memchr2.c: New test.
27106         * MODULES.html.sh (String handling): Add memchr2.
27107
27108 2008-02-29  Bruno Haible  <bruno@clisp.org>
27109
27110         * modules/freadseek-tests: New file.
27111         * tests/test-freadseek.sh: New file.
27112         * tests/test-freadseek.c: New file.
27113
27114         New module 'freadseek'.
27115         * modules/freadseek: New file.
27116         * lib/freadseek.h: New file.
27117         * lib/freadseek.c: New file.
27118         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27119
27120 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27121
27122         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27123         wydawca.
27124
27125         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27126         program_invocation_name and program_invocation_short_name are
27127         present.
27128
27129 2008-02-28  Bruno Haible  <bruno@clisp.org>
27130
27131         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27132         * tests/test-freadptr.sh: Also test non-seekable stdin.
27133
27134 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27135
27136         * build-aux/bootstrap (source_base, m4_base)
27137         (doc_base, tests_base): New variables.
27138         (gnulib_tool_options): Do not hardcode base directories, use
27139         the above variables instead.
27140
27141 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27142
27143         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27144
27145 2008-02-28  Bruno Haible  <bruno@clisp.org>
27146
27147         * modules/freadptr-tests: New file.
27148         * tests/test-freadptr.sh: New file.
27149         * tests/test-freadptr.c: New file.
27150
27151         New module 'freadptr'.
27152         * modules/freadptr: New file.
27153         * lib/freadptr.h: New file.
27154         * lib/freadptr.c: New file.
27155         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27156
27157 2008-02-26  Karl Berry  <karl@freefriends.org>
27158
27159         Sync from Libtool:
27160         * libltdl/argz.c (argz_add, argz_count): New functions.
27161         * libltdl/argz.in.h: Declare them.
27162         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27163
27164 2008-02-22  Bruno Haible  <bruno@clisp.org>
27165
27166         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27167         is a pointer type.  Needed for HP-UX 10.
27168         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27169         * doc/posix-functions/gmtime_r.texi: Likewise.
27170         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27171
27172 2008-02-24  Bruno Haible  <bruno@clisp.org>
27173
27174         * modules/environ-tests: New file.
27175         * tests/test-environ.c: New file.
27176
27177         New module 'environ'.
27178         * modules/environ: New file.
27179         * lib/unistd.in.h (environ): New declaration.
27180         * m4/environ.m4: New file.
27181         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27182         after use.
27183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27184         HAVE_DECL_ENVIRON.
27185         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27186         HAVE_DECL_ENVIRON.
27187         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27188         wrong claim that 'environ' is missing on some systems.
27189         * modules/execute (Depends-on): Add environ.
27190         * lib/execute.c (environ): Remove fallback declaration.
27191         * modules/pipe (Depends-on): Add environ.
27192         * lib/pipe.c (environ): Remove fallback declaration.
27193         * modules/setenv (Depends-on): Add environ.
27194         * lib/setenv.c (environ): Remove fallback declaration.
27195         * modules/unsetenv (Depends-on): Add environ.
27196         * lib/unsetenv.c (environ): Remove fallback declaration.
27197         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27198         m4/environ.m4.
27199         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27200         (gl_PREREQ_UNSETENV): Likewise.
27201
27202 2008-02-24  Bruno Haible  <bruno@clisp.org>
27203
27204         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27205
27206 2008-02-20  Bob Proulx  <bob@proulx.com>
27207
27208         Enable use of older two part flavor 'git describe'.
27209         * build-aux/git-version-gen: If using the older two part flavor of
27210         git version then recreate the third part now present in the
27211         newer three part flavor of git describe.
27212
27213 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27214
27215         * lib/fts.c (fts_build): Typo correction to comment.
27216
27217 2008-02-17  Bruno Haible  <bruno@clisp.org>
27218
27219         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27220         generating no-op conflicts.
27221
27222 2008-02-17  Bruno Haible  <bruno@clisp.org>
27223
27224         Speed up by 10%.
27225         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27226         result_entries, rather than an index-based loop.
27227
27228 2008-02-17  Bruno Haible  <bruno@clisp.org>
27229
27230         Speed up by 25%.
27231         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27232         'hashcode_cached'.
27233         (entry_create): New function.
27234         (entry_hashcode): Use the cached hashcode if possible.
27235         (read_changelog_file, try_split_merged_entry): Use entry_create.
27236
27237 2008-02-17  Bruno Haible  <bruno@clisp.org>
27238
27239         Speed up from O(n^2) to O(n) for long ChangeLog files.
27240         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27241         (read_changelog_file): Change implementation of entries_reversed list
27242         to rbtreehash.
27243         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27244
27245 2008-02-17  Bruno Haible  <bruno@clisp.org>
27246
27247         New option --split-merged-entry.
27248         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27249         (find_paragraph_end, try_split_merged_entry): New functions.
27250         (long_options): Add option --split-merged-entry.
27251         (usage): Document option --split-merged-entry.
27252         (main): Implement option --split-merged-entry.
27253         Reported by Eric Blake.
27254
27255 2008-02-17  Bruno Haible  <bruno@clisp.org>
27256
27257         * lib/git-merge-changelog.c: Include c-strstr.h.
27258         (main): Support the "git pull --rebase" situation.
27259         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27260         Reported by Eric Blake.
27261
27262 2008-02-16  Eric Blake  <ebb9@byu.net>
27263
27264         Avoid doubling \ in common case of "c-maybe" quoting style.
27265         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27266         eliding outer quotes.
27267         * lib/quotearg.h: Document this.
27268         * tests/test-quotearg.c (result_strings, inputs, results_g)
27269         (flag_results, locale_results): Test it by adding a new string to
27270         each test group.
27271         (compare_strings): Test new string.
27272
27273 2008-02-13  Eric Blake  <ebb9@byu.net>
27274
27275         Avoid trigraph quoting in default output.
27276         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27277         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27278         unless explicitly requested.
27279         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27280
27281 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27282
27283         Don't rely on signed integer overflowing to negative value.
27284         * lib/getugroups.c (getugroups): Include <limits.h>.
27285         Instead, compare against INT_MAX, and increment only if the test passes.
27286
27287 2008-02-13  Jim Meyering  <meyering@redhat.com>
27288         and Eric Blake  <ebb9@byu.net>
27289
27290         Avoid shadowing warning and compile errors on Linux.
27291         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27292         forwarding macros on Linux.
27293         (dcgettext): Define a stub, for Linux.
27294         (results_g, main): Avoid warnings.
27295
27296 2008-02-12  Eric Blake  <ebb9@byu.net>
27297
27298         Silence warning in last patch.
27299         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27300
27301         Quotearg part 4: add tests, fix c-maybe colon quoting.
27302         * lib/quotearg.h: Improve documentation.
27303         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27304         escapes when adding outer quotes.  When quoting trigraphs, use
27305         valid C notation.  When quoting NUL, omit extra characters if next
27306         character is not digit.  Alter prototype.
27307         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27308         callers.
27309         * modules/quotearg-tests: New module.
27310         * tests/test-quotearg.c: New test.
27311
27312 2008-02-07  Eric Blake  <ebb9@byu.net>
27313
27314         Quotearg part 3: add flag to control outer quote elision.
27315         * lib/quotearg.h (c_maybe_quoting_style): New style.
27316         (enum quoting_flags): Better documentation of flags.
27317         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27318         c-maybe style.
27319         (quotearg_buffer_restyled): Handle new flag to elide outer
27320         quotes.
27321
27322         Quotearg part 2: add flag that can control NUL elision.
27323         * lib/quotearg.h (set_quoting_flags): New prototype.
27324         * lib/quotearg.c (struct quoting_options): Add flag field.
27325         (set_quoting_flags): New function.
27326         (quotearg_buffer_restyled): Add flags parameter.
27327         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27328         (quotearg_n_options): Set the flag, since length cannot be
27329         returned.
27330         (quoting_options_from_style): Default flags correctly.
27331
27332         Quotearg part 1: more wrappers, restore quotearg_char state.
27333         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27334         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27335         (quotearg_colon_mem): New wrappers.
27336         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27337         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27338         functions.
27339         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27340         (quotearg_colon_mem): New functions.
27341
27342 2008-02-11  Bruno Haible  <bruno@clisp.org>
27343
27344         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27345         library in the current directory: it does not work with parallel make.
27346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27347
27348 2008-02-11  Bruno Haible  <bruno@clisp.org>
27349
27350         * .gitattributes: New file.
27351
27352 2008-02-11  Jim Meyering  <meyering@redhat.com>
27353
27354         useless-if-before-free: Fix reversed exit values.
27355         * build-aux/useless-if-before-free: Use correct values
27356         for EXIT_MATCH and EXIT_NO_MATCH.
27357
27358         * build-aux/useless-if-before-free: Close stdout carefully.
27359
27360 2008-02-10  Bruno Haible  <bruno@clisp.org>
27361
27362         New module 'git-merge-changelog'.
27363         * modules/git-merge-changelog: New file.
27364         * lib/git-merge-changelog.c: New file.
27365
27366 2008-02-10  Jim Meyering  <meyering@redhat.com>
27367
27368         useless-if-before-free: New option: --list (-l).
27369
27370         useless-if-before-free: Don't exit immediately upon open failure.
27371         * build-aux/useless-if-before-free: Exit 2 for errors.
27372         Upon failure to open a file, don't exit immediately.
27373         Rather, just warn and continue with any remaining files.
27374
27375 2008-02-10  Bruno Haible  <bruno@clisp.org>
27376
27377         New abstract list operation 'node_set_value'.
27378         * lib/gl_list.h (gl_list_node_set_value): New function.
27379         (struct gl_list_implementation): New field node_set_value.
27380         * lib/gl_list.c (gl_list_node_set_value): New function.
27381         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27382         (gl_array_list_implementation): Update.
27383         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27384         (gl_carray_list_implementation): Update.
27385         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27386         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27387         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27388         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27389         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27390         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27391         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27392         Update.
27393         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27394         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27395         (gl_sublist_list_implementation): Update.
27396
27397 2008-02-10  Bruno Haible  <bruno@clisp.org>
27398
27399         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27400         Needed when ELEMENT is #defined to 'some_type *'.
27401
27402 2008-02-10  Jim Meyering  <meyering@redhat.com>
27403
27404         New script and module: useless-if-before-free
27405         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27406         * build-aux/useless-if-before-free: New file.
27407         * modules/useless-if-before-free: New file.
27408
27409         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27410
27411         xstrtol_error: Fix typo.
27412         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27413         s/exit_failure/exit_status/.
27414
27415 2008-02-09  Jim Meyering  <meyering@redhat.com>
27416
27417         New script and module: gitlog-to-changelog
27418         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27419         * modules/gitlog-to-changelog: New file.
27420         * build-aux/gitlog-to-changelog: New file.
27421
27422 2008-02-08  Jim Meyering  <meyering@redhat.com>
27423
27424         Avoid two "parameter unused" warnings.
27425         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27426         Mark "st" as used.
27427
27428         Use "git COMMAND", not "git-COMMAND".
27429         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27430         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27431         * build-aux/git-version-gen: Use "git status", not "git-status".
27432
27433 2008-02-07  Bruno Haible  <bruno@clisp.org>
27434
27435         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27436         Avoids a crash on Windows Vista.
27437         Reported by Adam Strzelecki <ono@java.pl> via
27438         Simon Josefsson <simon@josefsson.org>.
27439
27440 2008-02-06  Bruno Haible  <bruno@clisp.org>
27441
27442         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27443         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27444         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27446         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27448         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27449         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27451         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27457         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27458         left-adjust flag.
27459         * tests/test-snprintf-posix.h (test_function): Likewise.
27460         * tests/test-sprintf-posix.h (test_function): Likewise.
27461         * tests/test-vasprintf-posix.c (test_function): Likewise.
27462         * doc/posix-functions/fprintf.texi: Update.
27463         * doc/posix-functions/printf.texi: Update.
27464         * doc/posix-functions/snprintf.texi: Update.
27465         * doc/posix-functions/sprintf.texi: Update.
27466         * doc/posix-functions/vfprintf.texi: Update.
27467         * doc/posix-functions/vprintf.texi: Update.
27468         * doc/posix-functions/vsnprintf.texi: Update.
27469         * doc/posix-functions/vsprintf.texi: Update.
27470         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27471
27472 2008-02-06  Bruno Haible  <bruno@clisp.org>
27473
27474         Fix bug introduced on 2008-01-26.
27475         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27476
27477 2008-02-06  Bruno Haible  <bruno@clisp.org>
27478
27479         Fix bug introduced on 2007-06-10.
27480         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27481         !NEED_PRINTF_FLAG_ZERO.
27482
27483 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27484
27485         getloadavg: use libperfstat on AIX5
27486         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27487
27488 2008-02-03  Bruno Haible  <bruno@clisp.org>
27489
27490         * lib/diffseq.h: Add comments about required #includes.
27491         Reported by Michael Biggs <gnulib@doubleplum.net>.
27492
27493 2008-02-01  Bruno Haible  <bruno@clisp.org>
27494
27495         * users.txt: Add gnuit.
27496
27497 2008-01-31  Bruno Haible  <bruno@clisp.org>
27498
27499         * lib/md4.c (set_uint32): Mark as inline.
27500         * lib/md5.c (set_uint32): Likewise.
27501         * lib/sha1.c (set_uint32): Likewise.
27502         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27503         * m4/md5.m4 (gl_MD5): Likewise.
27504         * m4/sha1.m4 (gl_SHA1): Likewise.
27505
27506 2008-01-31  Jim Meyering  <meyering@redhat.com>
27507
27508         Use "sizeof VAR", rather than a literal "4".
27509         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27510         * lib/md4.c (md4_read_ctx): Likewise.
27511         * lib/sha1.c (sha1_read_ctx): Likewise.
27512
27513 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27514
27515         * tests/test-sha1.c: New file, based on test-md5.c.
27516
27517         * modules/crypto/sha1-tests: New file.
27518
27519 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27520
27521         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27522
27523 2008-01-31  Jim Meyering  <meyering@redhat.com>
27524
27525         Prefer "sizeof v" over the equivalent "4".
27526         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27527         * lib/md5.c (set_uint32): Likewise.
27528         * lib/sha1.c (set_uint32): Likewise.
27529
27530 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27531
27532         * lib/sha1.c (set_uint32): Mark function as static.
27533
27534 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27535
27536         md2: clarify comments to say that alignment is not required.
27537         * lib/md2.h: Remove warning about alignment in comment.
27538         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27539         never been required.
27540
27541 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27542
27543         md4: adapt alignment constraint fix from sha1.
27544         * lib/md4.c (set_uint32): New function, from sha1.c
27545         (md4_read_ctx): Use it.
27546         (md4_finish_ctx): Doc fix.
27547         * lib/md4.h: Doc fix.
27548
27549 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27550
27551         md5: adapt alignment constraint fix from sha1.
27552         * lib/md5.c (set_uint32): New function, from sha1.c
27553         (md5_read_ctx): Use it.
27554         (md5_finish_ctx): Doc fix.
27555         * lib/md5.h: Doc fix.
27556
27557 2008-01-30  Peter Palfrader  <weasel@debian.org>
27558
27559         sha1: remove the result buffer alignment constraint
27560         * lib/sha1.c (set_uint32): New function.
27561         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27562         constraint.
27563         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27564         * lib/sha1.h: Likewise.
27565
27566 2008-01-30  Andreas Schwab  <schwab@suse.de>
27567             Bruno Haible  <bruno@clisp.org>
27568
27569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27570         correct definition of LDBL_MIN_EXP.
27571
27572 2008-01-30  Karl Berry  <karl@gnu.org>
27573
27574         * config/srclist-update: try to preserve x bit on updates.
27575         * config/srclistvars.sh: update for karl.
27576
27577 2008-01-29  Jim Meyering  <meyering@redhat.com>
27578
27579         vasnprintf.c: Avoid warning about unused label
27580         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27581         "overflow" label definition and associated code with the
27582         same cpp condition that guards the sole use of that label.
27583
27584 2008-01-26  Bruno Haible  <bruno@clisp.org>
27585
27586         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27587         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27588         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27589         * lib/isnanl-nolibm.h (isnanl): Likewise.
27590         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27591
27592 2008-01-26  Bruno Haible  <bruno@clisp.org>
27593
27594         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27595         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27596
27597 2008-01-26  Bruno Haible  <bruno@clisp.org>
27598
27599         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27600         GCC >= 4.0 built-in.
27601         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27602
27603 2008-01-26  Bruno Haible  <bruno@clisp.org>
27604
27605         Rename isnan, applicable to 'double' only, to isnand.
27606         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27607         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27608         (configure.ac): Update.
27609         (Include): Replace "isnan.h" with "isnand.h".
27610         * m4/isnand.m4: Renamed from m4/isnan.m4.
27611         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27612         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27613         instead of isnan.c.
27614         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27615         instead of HAVE_ISNAN_IN_LIBC.
27616         (isnand): Renamed from isnan.
27617         * lib/isnand.c: New file.
27618         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27619         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27620         (Makefile.am): Update.
27621         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27622         Include isnand.h instead of isnan.h.
27623         (main): Test isnand instead of isnan.
27624         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27625         isnan-nolibm.
27626         * modules/frexp (Depends-on): Likewise.
27627         * modules/frexp-tests (Depends-on): Likewise.
27628         * modules/frexp-nolibm (Depends-on): Likewise.
27629         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27630         * modules/isfinite (Depends-on): Likewise.
27631         * modules/round-tests (Depends-on): Likewise.
27632         * modules/signbit (Depends-on): Likewise.
27633         * modules/signbit-tests (Depends-on): Likewise.
27634         * modules/snprintf-posix (Depends-on): Likewise.
27635         * modules/sprintf-posix (Depends-on): Likewise.
27636         * modules/trunc-tests (Depends-on): Likewise.
27637         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27638         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27639         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27640         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27641         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27642         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27643         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27644         * modules/vasnprintf-posix (Depends-on): Likewise.
27645         * modules/vasprintf-posix (Depends-on): Likewise.
27646         * modules/vfprintf-posix (Depends-on): Likewise.
27647         * modules/vsnprintf-posix (Depends-on): Likewise.
27648         * modules/vsprintf-posix (Depends-on): Likewise.
27649         * lib/frexp.c: Include isnand.h instead of isnan.h.
27650         (ISNAN): Set to isnand instead of isnan.
27651         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27652         (gl_isfinited): Use isnand instead of isnan.
27653         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27654         (gl_signbitd): Use isnand instead of isnan.
27655         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27656         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27657         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27658         (main): Use isnand instead of isnan.
27659         * tests/test-round1.c: Include isnand.h.
27660         (main): Use isnand instead of isnan.
27661         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27662         (ISNAN): Set to isnand instead of isnan.
27663         * tests/test-trunc1.c: Include isnand.h.
27664         (main): Use isnand instead of isnan.
27665         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27666         (equal): Use isnand instead of isnan.
27667         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27668         isnand-nolibm.
27669         * NEWS: Mention the change.
27670
27671 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27672             Bruno Haible  <bruno@clisp.org>
27673
27674         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27675         the GCC builtins for signbits are present and set
27676         REPLACE_SIGNBIT_USING_GCC if so.
27677         * lib/math.in.h (signbit): Define using GCC builtins if
27678         REPLACE_SIGNBIT_USING_GCC is set.
27679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27680         REPLACE_SIGNBIT_USING_GCC.
27681         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27682
27683 2008-01-25  Jim Meyering  <meyering@redhat.com>
27684
27685         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27686         * lib/poll.c: Include <config.h>, not "config.h".
27687         * tests/test-getaddrinfo.c: Likewise.
27688
27689 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27690
27691         * modules/sockets-tests: New file.
27692
27693 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27694
27695         * modules/sockets: New module, can be used to call WSA_Startup and
27696         WSA_Cleanup when needed.
27697
27698         * lib/sockets.h, lib/sockets.c: New files.
27699
27700         * m4/sockets.m4: New file.
27701
27702         * tests/test-sockets.c: New file.
27703
27704 2008-01-19  Bruno Haible  <bruno@clisp.org>
27705
27706         * doc/posix-headers: Renamed from doc/headers.
27707         * doc/posix-functions: Renamed from doc/functions.
27708         * doc/gnulib.texi: Update.
27709
27710 2008-01-19  Bruno Haible  <bruno@clisp.org>
27711
27712         * doc/glibc-functions/strcasestr.texi: Include contents of
27713         doc/functions/strcasestr.texi, fixing the list of platforms.
27714         * doc/functions/strcasestr.texi: Remove file.
27715
27716 2008-01-19  Bruno Haible  <bruno@clisp.org>
27717
27718         * doc/glibc-functions/memmem.texi: Include contents of
27719         doc/functions/memmem.texi.
27720         * doc/functions/memmem.texi: Remove file.
27721
27722 2008-01-18  Bruno Haible  <bruno@clisp.org>
27723
27724         * doc/glibc-functions/*.texi: New files.
27725         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27726         to use the new files.
27727
27728 2008-01-17  Bruno Haible  <bruno@clisp.org>
27729
27730         * tests/test-gethostname.c (main): Fix printf statement.
27731
27732 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27733
27734         * modules/gethostname-tests: New file.
27735
27736         * tests/test-gethostname.c: New file.
27737
27738 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27739
27740         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27741         used by the UNAME case.  Reported by Bruno Haible
27742         <bruno@clisp.org>.
27743
27744 2008-01-17  Eric Blake  <ebb9@byu.net>
27745
27746         Convert c-strcasestr to be more efficient.
27747         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27748         (Depends-on): Add c-strcase, remove malloca, strnlen.
27749         * tests/test-c-strcasestr.c (main): Enhance test.
27750         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27751
27752 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27753
27754         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27755         Use it in creating po/Makevars.
27756
27757 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27758
27759         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27760         Applications that requires it should initialize libgcrypt
27761         manually.
27762
27763 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27764
27765         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27766
27767 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27768
27769         Fix problem with getdate on mingw32 reported by Simon Josefsson
27770         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27771         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27772         tzname", when deciding whether to declare tzname.
27773         * lib/strftime.c (tzname): Likewise.
27774
27775 2008-01-15  Bruno Haible  <bruno@clisp.org>
27776
27777         Work around a MacOS X 10.5 bug in frexpl().
27778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27779         * doc/functions/frexpl.texi: Document the bug.
27780         Reported by Elias Pipping <pipping@gentoo.org>.
27781
27782 2008-01-14  Eric Blake  <ebb9@byu.net>
27783
27784         Touch up previous patch.
27785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27786         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27787
27788         Convert strcasestr module to use Two-Way algorithm.
27789         * modules/strcasestr-simple: New module, based on the old
27790         strcasestr, but with Two-Way rather than KMP.
27791         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27792         * lib/string.in.h (rpl_strcasestr): Declare.
27793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27794         performance.
27795         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27796         * modules/string (Makefile.am): Support strcasestr.
27797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27798         * modules/strcasestr-tests (Depends-on): Check for alarm.
27799         * tests/test-strcasestr.c: Augment test.
27800         * lib/str-two-way.h: Clean up stray macro.
27801         * NEWS: Document new module.
27802         * MODULES.html.sh (string handling): Likewise.
27803         * doc/functions/strcasestr.texi: New file.
27804         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27805         here, since it is not a POSIX function.
27806
27807 2008-01-14  Colin Watson  <cjwatson@debian.org>
27808             Bruno Haible  <bruno@clisp.org>
27809
27810         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27811         works fine; if not, set REPLACE_STRSIGNAL.
27812         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27814         REPLACE_STRSIGNAL.
27815         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27816         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27817         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27818
27819 2008-01-14  Bruno Haible  <bruno@clisp.org>
27820
27821         * modules/strsignal (Include): Change to <string.h>.
27822
27823 2008-01-14  Colin Watson  <cjwatson@debian.org>
27824
27825         * modules/argp (Notice): Add a notice recommending to change
27826         XGETTEXT_OPTIONS.
27827         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27828
27829 2008-01-13  Colin Watson  <cjwatson@debian.org>
27830
27831         * modules/strsignal-tests: New file.
27832         * tests/test-strsignal.c: New file.
27833
27834         * lib/strsignal.c: New file, from glibc with modifications.
27835         * lib/siglist.h: New file, from glibc with modifications.
27836         * lib/string.in.h (strsignal): New declaration.
27837         * m4/strsignal.m4: New file.
27838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27839         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27840         * modules/strsignal: New file.
27841         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27842         HAVE_DECL_STRSIGNAL.
27843
27844 2008-01-13  Bruno Haible  <bruno@clisp.org>
27845
27846         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27847         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27848         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27849         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27850
27851 2008-01-13  Bruno Haible  <bruno@clisp.org>
27852
27853         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27854         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27855         * lib/argp.h (__attribute__): Likewise.
27856         * lib/c-stack.c (__attribute__): Likewise.
27857         * lib/error.h (__attribute__): Likewise.
27858         * lib/fts.c (__attribute__): Likewise.
27859         * lib/openat.h (__attribute__): Likewise.
27860         * lib/stdio.in.h (__attribute__): Likewise.
27861         * lib/string.in.h (__attribute__): Likewise.
27862         * lib/utimens.c (__attribute__): Likewise.
27863         * lib/vasnprintf.h (__attribute__): Likewise.
27864         * lib/xalloc.h (__attribute__): Likewise.
27865         * lib/xprintf.h (__attribute__): Likewise.
27866         * lib/xstrtol.h (__attribute__): Likewise.
27867         * lib/xvasprintf.h (__attribute__): Likewise.
27868
27869 2008-01-12  Bruno Haible  <bruno@clisp.org>
27870
27871         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27872         * doc/glibc-headers/a.out.texi: New file.
27873         * doc/glibc-headers/aliases.texi: New file.
27874         * doc/glibc-headers/alloca.texi: New file.
27875         * doc/glibc-headers/ar.texi: New file.
27876         * doc/glibc-headers/argp.texi: New file.
27877         * doc/glibc-headers/argz.texi: New file.
27878         * doc/glibc-headers/byteswap.texi: New file.
27879         * doc/glibc-headers/crypt.texi: New file.
27880         * doc/glibc-headers/endian.texi: New file.
27881         * doc/glibc-headers/envz.texi: New file.
27882         * doc/glibc-headers/err.texi: New file.
27883         * doc/glibc-headers/error.texi: New file.
27884         * doc/glibc-headers/execinfo.texi: New file.
27885         * doc/glibc-headers/fpu_control.texi: New file.
27886         * doc/glibc-headers/fstab.texi: New file.
27887         * doc/glibc-headers/fts.texi: New file.
27888         * doc/glibc-headers/getopt.texi: New file.
27889         * doc/glibc-headers/ieee754.texi: New file.
27890         * doc/glibc-headers/ifaddrs.texi: New file.
27891         * doc/glibc-headers/libintl.texi: New file.
27892         * doc/glibc-headers/mcheck.texi: New file.
27893         * doc/glibc-headers/mntent.texi: New file.
27894         * doc/glibc-headers/obstack.texi: New file.
27895         * doc/glibc-headers/paths.texi: New file.
27896         * doc/glibc-headers/printf.texi: New file.
27897         * doc/glibc-headers/pty.texi: New file.
27898         * doc/glibc-headers/resolv.texi: New file.
27899         * doc/glibc-headers/shadow.texi: New file.
27900         * doc/glibc-headers/sysexits.texi: New file.
27901         * doc/glibc-headers/ttyent.texi: New file.
27902
27903 2008-01-12  Jim Meyering  <meyering@redhat.com>
27904
27905         announce-gen: emit Gnulib's git-based version string.
27906         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27907         New option --gnulib-version=V, where V is expected to be
27908         the output of running git describe in the gnulib directory.
27909         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27910         not useful, and plan to stop publishing an xdelta file with each
27911         coreutils release.
27912
27913         * build-aux/announce-gen: Also check for lzma-compressed files.
27914
27915 2008-01-11  Bruno Haible  <bruno@clisp.org>
27916
27917         * tests/test-memmem.c (main): Increase maximum allowed time.
27918         * tests/test-strstr.c (main): Likewise.
27919
27920 2008-01-11  Bruno Haible  <bruno@clisp.org>
27921
27922         * doc/functions/memmem.texi: Add more precisions about platforms.
27923         * doc/functions/strstr.texi: Likewise.
27924
27925 2008-01-10  Eric Blake  <ebb9@byu.net>
27926
27927         * m4/strstr.m4: Delete cruft from copy-n-paste.
27928         Reported by Bruno Haible.
27929
27930 2008-01-10  Bruno Haible  <bruno@clisp.org>
27931
27932         Make c-strstr rely on strstr.
27933         * lib/c-strstr.c: Don't include str-kmp.h.
27934         (c_strstr): Define in terms of strstr.
27935         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27936         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27937
27938 2008-01-10  Bruno Haible  <bruno@clisp.org>
27939
27940         * doc/gnulib.texi (String Functions in C Locale): New section.
27941         * doc/c-ctype.texi: New file.
27942         * doc/c-strcase.texi: New file.
27943         * doc/c-strcaseeq.texi: New file.
27944         * doc/c-strcasestr.texi: New file.
27945         * doc/c-strstr.texi: New file.
27946         * doc/c-strtod.texi: New file.
27947         * doc/c-strtold.texi: New file.
27948
27949 2008-01-10  Eric Blake  <ebb9@byu.net>
27950
27951         * lib/relocatable.h: Fix a comment.
27952
27953 2008-01-10  Eric Blake  <ebb9@byu.net>
27954
27955         Share two-way algorithm.
27956         * lib/str-two-way.h: New file, merged from...
27957         * lib/memmem.c: ...here...
27958         * lib/strstr.c: ...and here.
27959         * modules/memmem (Files): Use it.
27960         * modules/strstr (Files): Likewise.
27961
27962         Avoid quadratic strstr implementations.
27963         * lib/strstr.c: New file.
27964         * m4/strstr.m4: Likewise.
27965         * modules/strstr: Likewise.
27966         * modules/strstr-tests: Likewise.
27967         * tests/test-strstr.c: Likewise.
27968         * lib/string.in.h (rpl_strstr): Declare.
27969         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27971         * modules/string (Makefile.am): Likewise.
27972         * MODULES.html.sh (string handling): Mention new module.
27973         * doc/functions/strstr.texi (strstr): Document the bug.
27974
27975 2008-01-10  Bruno Haible  <bruno@clisp.org>
27976
27977         * lib/relocatable.h (relocate): State whether result is freshly
27978         allocated or not.
27979         * lib/relocatable.c (relocate): Return a freshly allocated string
27980         instead of a pointer to a privately held string.
27981         Reported by Sylvain Beucler <beuc@gnu.org>.
27982
27983 2008-01-10  Colin Watson  <cjwatson@debian.org>
27984
27985         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27986         s/S_ISNLK/S_ISLNK/.
27987
27988 2008-01-09  Bruno Haible  <bruno@clisp.org>
27989
27990         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27991         and other files.
27992         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27993         if it's only a guess.
27994         * modules/memmem: Simplify by depending on memmem-simple.
27995
27996 2008-01-09  Bruno Haible  <bruno@clisp.org>
27997
27998         Work around OpenBSD 4.0 tdelete() bug.
27999         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28000         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28001         macros and don't redefine the enum values.
28002         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28003         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28004         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28005
28006 2008-01-09  Bruno Haible  <bruno@clisp.org>
28007
28008         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28009         (main): Don't perform the tests if setlocale did not install a UTF-8
28010         locale. Needed on OpenBSD 4.0.
28011         * modules/wcwidth-tests (Depends-on): Add localcharset.
28012
28013 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28014
28015         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28016         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28017         * NEWS: announce this.
28018         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28019
28020 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28021         and Eric Blake  <ebb9@byu.net>
28022
28023         Add memmem-simple module.
28024         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28025         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28026         * modules/memmem-simple: New file.
28027         * modules/memmem (Description): Tweak.
28028         * MODULES.html.sh (string handling): Mention new module.
28029         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28030         addressed by memmem-simple.
28031         * NEWS: Document the difference.
28032
28033 2008-01-09  Eric Blake  <ebb9@byu.net>
28034
28035         Give gcc some memmem optimization hints.
28036         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28037         (strcasestr): Declare as pure.
28038         * modules/memmem (Maintainer): Claim my implementation.
28039
28040 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28041
28042         Support AIX 6.1 and higher.
28043         * build-aux/config.libpath: Likewise.
28044         * build-aux/config.rpath: Likewise.
28045
28046 2008-01-08  Jim Meyering  <meyering@redhat.com>
28047             Bruno Haible  <bruno@clisp.org>
28048
28049         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28050         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28051         Reported by Peter Fales in
28052         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28053
28054 2008-01-08  Bruno Haible  <bruno@clisp.org>
28055
28056         * modules/unictype/category-of (Depends-on): Add
28057         unictype/category-none.
28058         * modules/unictype/category-and-tests (Depends-on): Add
28059         unictype/category-{L,N,Lu,Nd}.
28060         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28061         * modules/unictype/category-or-tests (Depends-on): Add
28062         unictype/category-{L,N}.
28063         * modules/unictype/category-name-tests (Depends-on): Add
28064         unictype/category-{Z,Nl}.
28065         Reported by Simon Josefsson.
28066
28067 2008-01-08  Bruno Haible  <bruno@clisp.org>
28068
28069         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28070         convention better.
28071         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28072         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28073         Reported by Peter Miller <millerp@canb.auug.org.au>.
28074
28075 2008-01-08  Eric Blake  <ebb9@byu.net>
28076
28077         Rewrite memmem to guarantee linear complexity without malloc.
28078         * lib/memmem.c (memmem): Use Two-Way rather than
28079         Knuth-Morris-Pratt, to allow O(1) space usage.
28080         (critical_factorization, two_way_short_needle)
28081         (two_way_long_needle): New functions.
28082         (knuth_morris_pratt): Delete.
28083         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28084         Add stdint.
28085         * tests/test-memmem.c (main): Add tests for periodic needle and
28086         sublinear performance.
28087         * doc/functions/memmem.texi (memmem): Document other deficiencies
28088         in cygwin and older glibc.
28089
28090 2008-01-08  Bruno Haible  <bruno@clisp.org>
28091
28092         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28093         augmentation.
28094
28095 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28096
28097         Add a configure time option: --disable-acl.
28098         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28099         AC_ARG_ENABLE(acl).
28100
28101 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28102
28103         * tests/test-localename.c: Don't include obsolete "setenv.h".
28104
28105         * modules/localename-tests (Depends-on): Need unsetenv.
28106
28107 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28108
28109         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28110
28111 2008-01-06  Colin Watson  <cjwatson@debian.org>
28112
28113         * users.txt: Add man-db.
28114
28115 2008-01-07  Bruno Haible  <bruno@clisp.org>
28116
28117         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28118         previous section name.
28119
28120 2008-01-07  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/progname.c (set_program_name): Don't strip off a leading
28123         "lt-" prefix outside a .libs directory.
28124         Suggested by Paul Eggert.
28125
28126 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28127             Bruno Haible  <bruno@clisp.org>
28128
28129         Improve memory cleanup in 'relocatable' module.
28130         * lib/relocatable.h (compute_curr_prefix): Change return type to
28131         'char *'.
28132         * lib/relocatable.c (compute_curr_prefix): Change return type to
28133         'char *'. Free curr_installdir after use.
28134         (relocate): Free curr_prefix_better after use.
28135         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28136
28137 2008-01-01  Bruno Haible  <bruno@clisp.org>
28138
28139         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28140         failure on older glibc systems.
28141         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28142
28143 2008-01-05  Eric Blake  <ebb9@byu.net>
28144
28145         Avoid quadratic system memmem.
28146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28147         Reported by Ralf Wildenhues.
28148
28149         Fix memmem test for mingw.
28150         * modules/memmem-tests (configure.ac): Check for alarm.
28151         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28152         it.
28153         * doc/functions/memmem.texi: New file.
28154         * doc/gnulib.texi (Function Substitutes): Add memmem.
28155         Reported by Bruno Haible.
28156
28157 2008-01-04  Bruno Haible  <bruno@clisp.org>
28158
28159         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28160         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28161         gl_HEADER_STRING_H_DEFAULTS.
28162
28163 2008-01-04  Eric Blake  <ebb9@byu.net>
28164
28165         Shorten duration of memmem test.
28166         * tests/test-memmem.c (main): Use alarm to declare failure if test
28167         is taking too long.
28168         Reported by Ralf Wildenhues.
28169
28170 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28171
28172         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28173         string, needed by strerror.
28174
28175 2008-01-03  Colin Watson  <cjwatson@debian.org>
28176             Bruno Haible  <bruno@clisp.org>
28177
28178         * doc/gnulib-tool.texi (Localization): New section.
28179
28180 2008-01-02  Bruno Haible  <bruno@clisp.org>
28181
28182         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28183         variables to 'unsigned char *' type.
28184         Reported by Paul Eggert.
28185
28186 2008-01-02  Jim Meyering  <jim@meyering.net>
28187
28188         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28189
28190 2007-12-31  Jim Meyering  <jim@meyering.net>
28191
28192         Avoid use of private FTS type name.
28193         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28194
28195 2007-12-30  Karl Berry  <karl@gnu.org>
28196
28197         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28198         work around defect in Texinfo and/or the standalone Info browser.
28199
28200 2007-12-30  Bruno Haible  <bruno@clisp.org>
28201
28202         Unify 5 copies of the KMP code.
28203         * lib/str-kmp.h: New file.
28204         * lib/c-strcasestr.c: Include str-kmp.h.
28205         (knuth_morris_pratt): Remove function.
28206         (c_strcasestr): Update.
28207         * lib/c-strstr.c: Include str-kmp.h.
28208         (knuth_morris_pratt): Remove function.
28209         (c_strcasestr): Update.
28210         * lib/mbscasestr.c: Include str-kmp.h.
28211         (knuth_morris_pratt_unibyte): Remove function.
28212         * lib/mbsstr.c: Include str-kmp.h.
28213         (knuth_morris_pratt_unibyte): Remove function.
28214         * lib/strcasestr.c: Include str-kmp.h.
28215         (knuth_morris_pratt): Remove function.
28216         (strcasestr): Update.
28217         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28218         * modules/c-strstr (Files): Likewise.
28219         * modules/mbscasestr (Files): Likewise.
28220         * modules/mbsstr (Files): Likewise.
28221         * modules/strcasestr (Files): Likewise.
28222         Suggested by Paul Eggert.
28223
28224 2007-12-30  Bruno Haible  <bruno@clisp.org>
28225
28226         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28227         defined.
28228
28229 2007-12-30  Bruno Haible  <bruno@clisp.org>
28230
28231         * lib/xmalloca.h: Include xalloc.h.
28232         (xnmalloca): New macro.
28233
28234 2007-12-30  Bruno Haible  <bruno@clisp.org>
28235
28236         * lib/malloca.h (nmalloca): New macro.
28237         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28238         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28239         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28240         knuth_morris_pratt_multibyte): Likewise.
28241         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28242         knuth_morris_pratt_multibyte): Likewise.
28243         * lib/memmem.c (knuth_morris_pratt): Likewise.
28244         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28245
28246 2007-12-25  Bruno Haible  <bruno@clisp.org>
28247
28248         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28249         * lib/glob.c: Don't include openat.h.
28250         (link_exists2_p): Add back the code that deals with the
28251         !GLOB_ALTDIRFUNC case.
28252         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28253         let it do the filename concatenation.
28254         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28255         * modules/glob (Depends-on): Remove openat.
28256
28257 2007-12-31  Bruno Haible  <bruno@clisp.org>
28258
28259         * modules/dirfd (License): Change to LGPLv2+.
28260         Approved by Jim Meyering.
28261
28262 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28263
28264         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28265         when multiplying M by sizeof (size_t).
28266
28267 2007-12-10  Martin Lambers  <marlam@marlam.de>
28268
28269         Override getpagesize on mingw.
28270         * lib/getpagesize.c: New file.
28271         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28272         * modules/getpagesize (Files): Add lib/getpagesize.c.
28273         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28275         REPLACE_GETPAGESIZE.
28276         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28277
28278 2007-12-25  Bruno Haible  <bruno@clisp.org>
28279
28280         * modules/localcharset (Notice): New field.
28281         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28282         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28283
28284 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28285             Bruno Haible  <bruno@clisp.org>
28286
28287         Avoid using the syntax symbol() in formatted documentation.
28288         * MODULES.html.sh (func_module): When replacing symbol() with a
28289         hyperlink, remove the parentheses. Show an error if some remain.
28290         Recognize and render the '...' syntax.
28291         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28292         Rework. Add paragraph about GCC's inlining.
28293         * doc/alloca.texi: Likewise.
28294         * doc/error.texi: Remove parentheses from symbol reference.
28295         * doc/gnulib-intro.texi: Likewise.
28296         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28297         * modules/fnmatch (Description): Reword to say "the ... function".
28298         * modules/full-read (Description): Likewise.
28299         * modules/full-write (Description): Likewise.
28300         * modules/safe-read (Description): Likewise.
28301         * modules/safe-write (Description): Likewise.
28302         * modules/strchrnul (Description): Likewise.
28303         * modules/trim (Description): Likewise.
28304         * modules/error (Description): Remove parentheses from symbol
28305         references.
28306         * modules/verror (Description): Likewise.
28307         Reported by Karl Berry.
28308
28309 2007-12-25  Bruno Haible  <bruno@clisp.org>
28310
28311         Fixup after 2007-10-16 commit.
28312         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28313
28314 2007-12-24  Bruno Haible  <bruno@clisp.org>
28315
28316         Make --enable-relocatable work with DESTDIR.
28317         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28318         to compute installdir from destprog.
28319         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28320         also set the RELOC_DESTDIR variable.
28321         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28322
28323 2007-12-24  Bruno Haible  <bruno@clisp.org>
28324
28325         Fix link error due to xalloc_die().
28326         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28327         of xreadlink.
28328         * lib/relocwrapper.c: Update comments.
28329         * build-aux/install-reloc: Remove xreadlink.c from file list.
28330         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28331         xreadlink.c.
28332         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28333
28334 2007-12-24  Bruno Haible  <bruno@clisp.org>
28335
28336         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28337         * lib/setenv.h: Remove file.
28338         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28339         lib/setenv.h.
28340         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28341         (Depends-on): Add stdlib.
28342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28343         gl_FUNC_UNSETENV.
28344         (Include): Replace setenv.h with <stdlib.h>.
28345         * modules/unsetenv: New file.
28346         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28347         * lib/unsetenv.c: Include <stdlib.h> first.
28348         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28349         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28350         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28351         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28352         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28353         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28355         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28356         * doc/functions/unsetenv.texi: Update.
28357         * modules/xsetenv (Depends-on): Add unsetenv.
28358         * modules/getdate (Depends-on): Likewise.
28359         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28360         * lib/xsetenv.c: Don't include setenv.h.
28361         * lib/getdate.y: Likewise.
28362         * lib/relocwrapper.c: Likewise.
28363         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28364         (Depends-on): Add stdlib.
28365         * NEWS: Mention the changes.
28366         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28367
28368 2007-12-23  Bruno Haible  <bruno@clisp.org>
28369
28370         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28371         indentation.
28372
28373 2007-12-23  Bruno Haible  <bruno@clisp.org>
28374
28375         * lib/c-strcasestr.c: Add more comments.
28376         * lib/c-strstr.c: Likewise.
28377         * lib/mbscasestr.c: Likewise.
28378         * lib/mbsstr.c: Likewise.
28379         * lib/strcasestr.c: Likewise.
28380         * lib/memmem.c: Likewise.
28381
28382 2007-12-23  Bruno Haible  <bruno@clisp.org>
28383
28384         * tests/test-memmem.c: Include <string.h> first.
28385
28386 2007-12-22  Bruno Haible  <bruno@clisp.org>
28387
28388         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28389         the contents of $testsbase.
28390         Reported by Ralf Wildenhues.
28391
28392 2007-12-22  Bruno Haible  <bruno@clisp.org>
28393
28394         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28395         two variables local_ldadd_before, local_ldadd_last.
28396
28397 2007-12-20  Eric Blake  <ebb9@byu.net>
28398
28399         Work around circular library issue when cross-compiling.
28400         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28401         that progname.o does not need to pull in rpl_memcmp.
28402
28403 2007-12-19  Eric Blake  <ebb9@byu.net>
28404
28405         Fix memmem to avoid O(n^2) worst-case complexity.
28406         * lib/memmem.c (knuth_morris_pratt): New function.
28407         (memmem): Use it if first few naive iterations fail.
28408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28409         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28410         * modules/memchr (License): Likewise.
28411         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28412         malloca.
28413         * tests/test-memmem.c: Rewrite, borrowing ideas from
28414         test-mbsstr1.c; the old version wouldn't even compile!
28415         * modules/memmem-tests: New file.
28416         * lib/string.in.h (rpl_memmem): Add declaration.
28417         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28419         REPLACE_MEMMEM.
28420
28421 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28422
28423         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28424         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28425         before any system include files, and undef after them all.  This
28426         should fix a problem on VMS reported by John E. Malmberg in
28427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28428
28429 2007-12-17  Eric Blake  <ebb9@byu.net>
28430
28431         Revert addition of verify, for BSD/OS.
28432         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28433         can't handle large files, for the sake of obsolete platforms.
28434         * modules/fseeko (Depends-on): Remove verify.
28435         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28436         * doc/functions/ftello.texi (ftello): Likewise.
28437         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28438         Reported by Larry Jones.
28439
28440 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28441
28442         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28443         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28444
28445 2007-12-17  Jim Meyering  <meyering@redhat.com>
28446
28447         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28448         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28449         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28450         * modules/getcwd (Depends-on): Add openat.
28451         Reported by Petr Salinger.
28452
28453 2007-12-17  Bruno Haible  <bruno@clisp.org>
28454
28455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28456         avoid a segmentation fault of the configure test on x86_64 systems.
28457
28458 2007-12-15  Jim Meyering  <meyering@redhat.com>
28459
28460         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28461
28462 2007-12-13  Eric Blake  <ebb9@byu.net>
28463
28464         Another fseek test.
28465         * tests/test-fseek.c (main): Also test ungetc handling.
28466         * tests/test-fseeko.c (main): Likewise.
28467         * modules/fseeko (Depends-on): Add verify.
28468         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28469         large.
28470         Reported by Larry Jones.
28471
28472         Fix fseeko on mingw.
28473         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28474         seek.
28475
28476         Beef up fseek tests.
28477         * tests/test-fseek.c (main): Also test eof handling.
28478         * tests/test-fseeko.c (main): Likewise.
28479         Reported by Larry Jones.
28480
28481 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28482
28483         Fix fseeko on BSD-based platforms.
28484         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28485         successful seek.
28486
28487 2007-12-12  Eric Blake  <ebb9@byu.net>
28488
28489         Allow circular dependency of separate libtests.a
28490         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28491         when use_libtests.
28492
28493 2007-12-11  Eric Blake  <ebb9@byu.net>
28494
28495         Fix bug with -0.0L in previous patch.
28496         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28497         * tests/test-isnan.c (main): Also test on zeroes.
28498         * tests/test-isnanf.c (main): Likewise.
28499         * tests/test-isnanl.h (main): Likewise.
28500
28501         Detect pseudo-denormals on x86 even when cross-compiling.
28502         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28503         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28504         invalid bit patterns that happen to satisfy ==.
28505
28506         Avoid link failures with separate libtests.a.
28507         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28508         last, to satisfy circular dependencies.
28509
28510 2007-12-11  Eric Blake  <ebb9@byu.net>
28511         and Bruno Haible  <bruno@clisp.org>
28512
28513         Fix OpenBSD 4.0 <float.h> handling of long double.
28514         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28515         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28516         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28517
28518 2007-12-11  Jim Meyering  <meyering@redhat.com>
28519
28520         * users.txt: Add libvirt.
28521
28522         Support versions of autoconf prior to 2.59c.
28523         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28524         if it is not already defined.
28525
28526 2007-12-09  Bruno Haible  <bruno@clisp.org>
28527
28528         Let 'gnulib-tool --import' collect sources needed for the tests in
28529         tests/ rather than in lib/.
28530         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28531         argument. If true, add rules to generate libtests.a, and put libtests.a
28532         into $(LDADD). Consider source files in subdirectories and set
28533         uses_subdirs.
28534         (func_emit_initmacro_start, func_emit_initmacro_end,
28535         func_emit_initmacro_done): Pass all arguments explicitly.
28536         (func_import): Determine two module lists main_modules,
28537         testsrelated_modules. Determine use_libtests. Determine two variables
28538         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28539         instead of just sed_transform_lib_file. Determine two variables
28540         main_files and testsrelated_files. Compute 'files' as the union of
28541         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28542         func_add_or_update. In the generated gnulib-comp.m4, collect the
28543         object files for tests/ in different variables than those for lib/.
28544         Substitute LIBTESTS_LIBDEPS.
28545         (func_create_testdir): Combine the uses_subdirs results from
28546         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28547
28548 2007-12-09  Bruno Haible  <bruno@clisp.org>
28549
28550         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28551         the build-aux directory.
28552
28553 2007-12-09  Bruno Haible  <bruno@clisp.org>
28554
28555         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28556         introduced on 2006-09-09.
28557
28558 2007-12-07  Jim Meyering  <meyering@redhat.com>
28559
28560         Let these macros work also with autoconf-2.59.
28561         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28562         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28563         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28564
28565 2007-12-06  Jim Meyering  <meyering@redhat.com>
28566
28567         Avoid a configure-time syntax error in gl_FUNC_ACL.
28568         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28569         function in each branch, before testing the cache variable.
28570
28571 2007-12-04  Eric Blake  <ebb9@byu.net>
28572
28573         Make scripts executable.
28574         * build-aux/config.guess: Add execute permissions.
28575         * build-aux/config.sub: Likewise.
28576         * build-aux/gendocs.sh: Likewise.
28577
28578         Fix frexp on mingw.
28579         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28580         cross-compiling.
28581         * doc/functions/frexp.texi (frexp): Document the bug.
28582
28583         Make cygwin fseeko check more reliable.
28584         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28585         version numbers, rather than unrelated feature check.
28586         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28587         * doc/functions/ftello.texi (ftello): Likewise.
28588         Reported by Bruno Haible.
28589
28590         * m4/strerror.m4: Bump version number.
28591
28592 2007-12-03  Bruno Haible  <bruno@clisp.org>
28593
28594         * doc/functions/mprotect.texi: Mention the mingw problem.
28595
28596 2007-12-03  Eric Blake  <ebb9@byu.net>
28597
28598         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28599         REPLACE_STRERROR is initialized before this macro.
28600
28601 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28602
28603         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28604         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28605         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28606         put -lsec in even for programs other than 'ls'.  This fixes a problem
28607         for gettext reported by Bruno Haible in
28608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28609         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28610         Add support for Solaris 10.  This isn't efficient, but should get the
28611         job done for now.
28612
28613 2007-12-03  James Youngman  <jay@gnu.org>
28614
28615         * doc/regexprops-generic.texi: change "an close-group" to "a
28616         close-group" and "illegal" to "not allowed".
28617
28618 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28619
28620         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28621         pr_byname.h. Needed for the rare case when the maintainer has done
28622         "make maintainer-clean" in the source directory and then attempts a
28623         build outside the source directory.
28624         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28625         scripts_byname.h.
28626
28627 2007-12-02  Martin Lambers <marlam@marlam.de>
28628             Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/getpagesize.h: Remove file.
28631         * lib/unistd.in.h: Include declaration of getpagesize here.
28632         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28633         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28634         HAVE_SYS_PARAM_H.
28635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28636         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28637         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28638         (Depends-on): Add unistd.
28639         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28640         (Include): Use <unistd.h> instead of getpagesize.h.
28641         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28642         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28643         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28644         gl_GETPAGESIZE invocation, already handled by module dependency.
28645         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28646
28647 2007-12-02  Bruno Haible  <bruno@clisp.org>
28648
28649         * modules/strings-tests: New file.
28650         * tests/test-strings.c: New file.
28651
28652         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28653         * lib/strings.in.h: New file.
28654         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28655         * m4/strings_h.m4: New file.
28656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28657         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28658         * modules/strings: New file.
28659         * modules/string (Makefile.am): Update.
28660         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28661         Reported by Karl Berry.
28662
28663 2007-12-01  Eric Blake  <ebb9@byu.net>
28664
28665         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28666         accomodate fix in cygwin 1.5.25.
28667
28668 2007-12-01  Jim Meyering  <meyering@redhat.com>
28669
28670         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28671         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28672         that would inhibit utf8-optimization of a regexp containing line-
28673         or buffer-anchors, e.g., `^', `$'.
28674
28675 2007-11-30  Bruno Haible  <bruno@clisp.org>
28676
28677         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28678         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28679         glthread_recursive_lock_init.
28680         * lib/lock.c (glthread_recursive_lock_init)
28681         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28682         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28683
28684 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28685
28686         New function qset_acl, like set_acl but with syscall semantics.
28687         * lib/acl.h (qset_acl): New decl.
28688         * lib/acl.c (qset_acl): New function.
28689         (set_acl): Use new function.  Use more-consistent diagnostics.
28690
28691 2007-11-28  Jim Meyering  <meyering@redhat.com>
28692
28693         * modules/physmem (License): Change from GPL to LGPLv2+.
28694
28695 2007-11-26  Bruno Haible  <bruno@clisp.org>
28696
28697         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28698         'long double' type has excess precision.
28699         Reported by Jim Meyering in
28700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28701
28702 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28703
28704         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28705         Sync from <http://gnu.org/licenses>.
28706         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28707         with license text from same location.
28708         * doc/maintain.texi, doc/standards.texi:  Sync from
28709         <http://savannah.gnu.org/projects/gnustandards>.
28710
28711 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28712         and Jim Meyering  <meyering@redhat.com>
28713
28714         Adjust getdate' grammar to accept a slightly more regular language.
28715         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28716         Before, the former was rejected.
28717         * lib/getdate.y (digits_to_date_time): New function, factored
28718         out of ...
28719         (number): ...here.  Just call digits_to_date_time.
28720         (hybrid): New non-terminal to handle an <unsigned number,
28721         signed relative offset> sequence consistently.
28722
28723 2007-11-18  Jim Meyering  <meyering@redhat.com>
28724
28725         Pull my changes from coreutils:
28726         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28727         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28728         use of $gnulib_tool_option_extras, so that it's separated from the
28729         preceding argument.
28730
28731         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28732         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28733         parent destination directories before copying a file into place.
28734
28735 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28736
28737         bootstrap: work also with 4-argument variant of AC_INIT
28738         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28739
28740 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28741
28742         Port test-getaddrinfo to Solaris.
28743         Problem reported by Bruno Haible in
28744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28745         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28746         explanation of setting 'hints'.
28747         Don't reject an implementation merely because it returns EAI_SERVICE.
28748         (EAI_SERVICE): Define to 0 if not defined.
28749
28750 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28751
28752         The license of gnu-make and posix-shell is now "GPLed build tool".
28753         * modules/gnu-make (License): Likewise.
28754         * modules/posix-shell (License): Likewise.
28755
28756         New module posix-shell, for determining a POSIX shell
28757         or perhaps something that is close enough to a POSIX shell.
28758         * m4/posix-shell.m4: New file.
28759         * modules/posix-shell: New file.
28760
28761         * MODULES.html.sh: Mention new module.
28762
28763         New module gnu-make, for determining whether we're using GNU Make.
28764         * m4/gnu-make.m4: New file.
28765         * modules/gnu-make: New file.
28766         * MODULES.html.sh: Mention new module.
28767
28768 2007-11-14  Jim Meyering  <meyering@redhat.com>
28769
28770         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28771         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28772         use this macro to create a function _definition_.
28773         Remove useless "#undef ARGMATCH_DIE".
28774
28775 2007-11-14  Bruno Haible  <bruno@clisp.org>
28776
28777         * lib/config.charset: Update for OpenBSD 4.1.
28778         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28779
28780 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28781
28782         Document 64-bit #if problems in stdint.texi.
28783         * doc/headers/stdint.texi (stdint.h): Mention problems with
28784         64-bit-#if, and how to work around them.
28785
28786         Don't insist on 'long long int' support in the preprocessor.  It
28787         breaks too many things.  For example, PRIdMAX still uses a 'long
28788         long int' format with the latest Sun compiler, even though
28789         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28790         preprocessor problem.  This causes the latest coreutils to dump
28791         core on Solaris 10 sparc with the Sun C compiler.
28792         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28793         the troublesome expressions at configure-time, not at #if-time.
28794         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28795         preprocessor.
28796         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28797         compile-time C checks, done at 'configure'-time.
28798         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28799         * modules/inttypes (Makefile): Substitute the new symbols that
28800         gl_INTTYPES_H now generates.
28801         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28802
28803 2007-11-12  Bruno Haible  <bruno@clisp.org>
28804
28805         Tests for Unicode character classification functions.
28806
28807         * modules/unictype/bidicategory-byname-tests: New file.
28808         * modules/unictype/bidicategory-name-tests: New file.
28809         * modules/unictype/bidicategory-of-tests: New file.
28810         * modules/unictype/bidicategory-test-tests: New file.
28811         * modules/unictype/block-list-tests: New file.
28812         * modules/unictype/block-of-tests: New file.
28813         * modules/unictype/block-test-tests: New file.
28814         * modules/unictype/category-C-tests: New file.
28815         * modules/unictype/category-Cc-tests: New file.
28816         * modules/unictype/category-Cf-tests: New file.
28817         * modules/unictype/category-Cn-tests: New file.
28818         * modules/unictype/category-Co-tests: New file.
28819         * modules/unictype/category-Cs-tests: New file.
28820         * modules/unictype/category-L-tests: New file.
28821         * modules/unictype/category-Ll-tests: New file.
28822         * modules/unictype/category-Lm-tests: New file.
28823         * modules/unictype/category-Lo-tests: New file.
28824         * modules/unictype/category-Lt-tests: New file.
28825         * modules/unictype/category-Lu-tests: New file.
28826         * modules/unictype/category-M-tests: New file.
28827         * modules/unictype/category-Mc-tests: New file.
28828         * modules/unictype/category-Me-tests: New file.
28829         * modules/unictype/category-Mn-tests: New file.
28830         * modules/unictype/category-N-tests: New file.
28831         * modules/unictype/category-Nd-tests: New file.
28832         * modules/unictype/category-Nl-tests: New file.
28833         * modules/unictype/category-No-tests: New file.
28834         * modules/unictype/category-P-tests: New file.
28835         * modules/unictype/category-Pc-tests: New file.
28836         * modules/unictype/category-Pd-tests: New file.
28837         * modules/unictype/category-Pe-tests: New file.
28838         * modules/unictype/category-Pf-tests: New file.
28839         * modules/unictype/category-Pi-tests: New file.
28840         * modules/unictype/category-Po-tests: New file.
28841         * modules/unictype/category-Ps-tests: New file.
28842         * modules/unictype/category-S-tests: New file.
28843         * modules/unictype/category-Sc-tests: New file.
28844         * modules/unictype/category-Sk-tests: New file.
28845         * modules/unictype/category-Sm-tests: New file.
28846         * modules/unictype/category-So-tests: New file.
28847         * modules/unictype/category-Z-tests: New file.
28848         * modules/unictype/category-Zl-tests: New file.
28849         * modules/unictype/category-Zp-tests: New file.
28850         * modules/unictype/category-Zs-tests: New file.
28851         * modules/unictype/category-and-not-tests: New file.
28852         * modules/unictype/category-and-tests: New file.
28853         * modules/unictype/category-byname-tests: New file.
28854         * modules/unictype/category-name-tests: New file.
28855         * modules/unictype/category-none-tests: New file.
28856         * modules/unictype/category-of-tests: New file.
28857         * modules/unictype/category-or-tests: New file.
28858         * modules/unictype/category-test-withtable-tests: New file.
28859         * modules/unictype/combining-class-tests: New file.
28860         * modules/unictype/ctype-alnum-tests: New file.
28861         * modules/unictype/ctype-alpha-tests: New file.
28862         * modules/unictype/ctype-blank-tests: New file.
28863         * modules/unictype/ctype-cntrl-tests: New file.
28864         * modules/unictype/ctype-digit-tests: New file.
28865         * modules/unictype/ctype-graph-tests: New file.
28866         * modules/unictype/ctype-lower-tests: New file.
28867         * modules/unictype/ctype-print-tests: New file.
28868         * modules/unictype/ctype-punct-tests: New file.
28869         * modules/unictype/ctype-space-tests: New file.
28870         * modules/unictype/ctype-upper-tests: New file.
28871         * modules/unictype/ctype-xdigit-tests: New file.
28872         * modules/unictype/decimal-digit-tests: New file.
28873         * modules/unictype/digit-tests: New file.
28874         * modules/unictype/mirror-tests: New file.
28875         * modules/unictype/numeric-tests: New file.
28876         * modules/unictype/property-alphabetic-tests: New file.
28877         * modules/unictype/property-ascii-hex-digit-tests: New file.
28878         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28879         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28880         * modules/unictype/property-bidi-block-separator-tests: New file.
28881         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28882         * modules/unictype/property-bidi-common-separator-tests: New file.
28883         * modules/unictype/property-bidi-control-tests: New file.
28884         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28885         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28886         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28887         * modules/unictype/property-bidi-european-digit-tests: New file.
28888         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28889         * modules/unictype/property-bidi-left-to-right-tests: New file.
28890         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28891         * modules/unictype/property-bidi-other-neutral-tests: New file.
28892         * modules/unictype/property-bidi-pdf-tests: New file.
28893         * modules/unictype/property-bidi-segment-separator-tests: New file.
28894         * modules/unictype/property-bidi-whitespace-tests: New file.
28895         * modules/unictype/property-byname-tests: New file.
28896         * modules/unictype/property-combining-tests: New file.
28897         * modules/unictype/property-composite-tests: New file.
28898         * modules/unictype/property-currency-symbol-tests: New file.
28899         * modules/unictype/property-dash-tests: New file.
28900         * modules/unictype/property-decimal-digit-tests: New file.
28901         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28902         * modules/unictype/property-deprecated-tests: New file.
28903         * modules/unictype/property-diacritic-tests: New file.
28904         * modules/unictype/property-extender-tests: New file.
28905         * modules/unictype/property-format-control-tests: New file.
28906         * modules/unictype/property-grapheme-base-tests: New file.
28907         * modules/unictype/property-grapheme-extend-tests: New file.
28908         * modules/unictype/property-grapheme-link-tests: New file.
28909         * modules/unictype/property-hex-digit-tests: New file.
28910         * modules/unictype/property-hyphen-tests: New file.
28911         * modules/unictype/property-id-continue-tests: New file.
28912         * modules/unictype/property-id-start-tests: New file.
28913         * modules/unictype/property-ideographic-tests: New file.
28914         * modules/unictype/property-ids-binary-operator-tests: New file.
28915         * modules/unictype/property-ids-trinary-operator-tests: New file.
28916         * modules/unictype/property-ignorable-control-tests: New file.
28917         * modules/unictype/property-iso-control-tests: New file.
28918         * modules/unictype/property-join-control-tests: New file.
28919         * modules/unictype/property-left-of-pair-tests: New file.
28920         * modules/unictype/property-line-separator-tests: New file.
28921         * modules/unictype/property-logical-order-exception-tests: New file.
28922         * modules/unictype/property-lowercase-tests: New file.
28923         * modules/unictype/property-math-tests: New file.
28924         * modules/unictype/property-non-break-tests: New file.
28925         * modules/unictype/property-not-a-character-tests: New file.
28926         * modules/unictype/property-numeric-tests: New file.
28927         * modules/unictype/property-other-alphabetic-tests: New file.
28928         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28929         * modules/unictype/property-other-grapheme-extend-tests: New file.
28930         * modules/unictype/property-other-id-continue-tests: New file.
28931         * modules/unictype/property-other-id-start-tests: New file.
28932         * modules/unictype/property-other-lowercase-tests: New file.
28933         * modules/unictype/property-other-math-tests: New file.
28934         * modules/unictype/property-other-uppercase-tests: New file.
28935         * modules/unictype/property-paired-punctuation-tests: New file.
28936         * modules/unictype/property-paragraph-separator-tests: New file.
28937         * modules/unictype/property-pattern-syntax-tests: New file.
28938         * modules/unictype/property-pattern-white-space-tests: New file.
28939         * modules/unictype/property-private-use-tests: New file.
28940         * modules/unictype/property-punctuation-tests: New file.
28941         * modules/unictype/property-quotation-mark-tests: New file.
28942         * modules/unictype/property-radical-tests: New file.
28943         * modules/unictype/property-sentence-terminal-tests: New file.
28944         * modules/unictype/property-soft-dotted-tests: New file.
28945         * modules/unictype/property-space-tests: New file.
28946         * modules/unictype/property-terminal-punctuation-tests: New file.
28947         * modules/unictype/property-test-tests: New file.
28948         * modules/unictype/property-titlecase-tests: New file.
28949         * modules/unictype/property-unassigned-code-value-tests: New file.
28950         * modules/unictype/property-unified-ideograph-tests: New file.
28951         * modules/unictype/property-uppercase-tests: New file.
28952         * modules/unictype/property-variation-selector-tests: New file.
28953         * modules/unictype/property-white-space-tests: New file.
28954         * modules/unictype/property-xid-continue-tests: New file.
28955         * modules/unictype/property-xid-start-tests: New file.
28956         * modules/unictype/property-zero-width-tests: New file.
28957         * modules/unictype/scripts-tests: New file.
28958         * modules/unictype/syntax-c-ident-tests: New file.
28959         * modules/unictype/syntax-c-whitespace-tests: New file.
28960         * modules/unictype/syntax-java-ident-tests: New file.
28961         * modules/unictype/syntax-java-whitespace-tests: New file.
28962         * tests/unictype/test-bidi_byname.c: New file.
28963         * tests/unictype/test-bidi_name.c: New file.
28964         * tests/unictype/test-bidi_of.c: New file.
28965         * tests/unictype/test-bidi_test.c: New file.
28966         * tests/unictype/test-block_list.c: New file.
28967         * tests/unictype/test-block_of.c: New file.
28968         * tests/unictype/test-block_test.c: New file.
28969         * tests/unictype/test-categ_and.c: New file.
28970         * tests/unictype/test-categ_and_not.c: New file.
28971         * tests/unictype/test-categ_byname.c: New file.
28972         * tests/unictype/test-categ_name.c: New file.
28973         * tests/unictype/test-categ_none.c: New file.
28974         * tests/unictype/test-categ_of.c: New file.
28975         * tests/unictype/test-categ_or.c: New file.
28976         * tests/unictype/test-categ_test_withtable.c: New file.
28977         * tests/unictype/test-combining.c: New file.
28978         * tests/unictype/test-decdigit.c: New file.
28979         * tests/unictype/test-digit.c: New file.
28980         * tests/unictype/test-mirror.c: New file.
28981         * tests/unictype/test-numeric.c: New file.
28982         * tests/unictype/test-pr_byname.c: New file.
28983         * tests/unictype/test-pr_test.c: New file.
28984         * tests/unictype/test-predicate-part1.h: New file.
28985         * tests/unictype/test-predicate-part2.h: New file.
28986         * tests/unictype/test-scripts.c: New file.
28987         * tests/unictype/test-sy_c_ident.c: New file.
28988         * tests/unictype/test-sy_java_ident.c: New file.
28989
28990         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28991         for Unicode 5.0.0.
28992         * tests/unictype/test-categ_Cc.c: Likewise.
28993         * tests/unictype/test-categ_Cf.c: Likewise.
28994         * tests/unictype/test-categ_Cn.c: Likewise.
28995         * tests/unictype/test-categ_Co.c: Likewise.
28996         * tests/unictype/test-categ_Cs.c: Likewise.
28997         * tests/unictype/test-categ_L.c: Likewise.
28998         * tests/unictype/test-categ_Ll.c: Likewise.
28999         * tests/unictype/test-categ_Lm.c: Likewise.
29000         * tests/unictype/test-categ_Lo.c: Likewise.
29001         * tests/unictype/test-categ_Lt.c: Likewise.
29002         * tests/unictype/test-categ_Lu.c: Likewise.
29003         * tests/unictype/test-categ_M.c: Likewise.
29004         * tests/unictype/test-categ_Mc.c: Likewise.
29005         * tests/unictype/test-categ_Me.c: Likewise.
29006         * tests/unictype/test-categ_Mn.c: Likewise.
29007         * tests/unictype/test-categ_N.c: Likewise.
29008         * tests/unictype/test-categ_Nd.c: Likewise.
29009         * tests/unictype/test-categ_Nl.c: Likewise.
29010         * tests/unictype/test-categ_No.c: Likewise.
29011         * tests/unictype/test-categ_P.c: Likewise.
29012         * tests/unictype/test-categ_Pc.c: Likewise.
29013         * tests/unictype/test-categ_Pd.c: Likewise.
29014         * tests/unictype/test-categ_Pe.c: Likewise.
29015         * tests/unictype/test-categ_Pf.c: Likewise.
29016         * tests/unictype/test-categ_Pi.c: Likewise.
29017         * tests/unictype/test-categ_Po.c: Likewise.
29018         * tests/unictype/test-categ_Ps.c: Likewise.
29019         * tests/unictype/test-categ_S.c: Likewise.
29020         * tests/unictype/test-categ_Sc.c: Likewise.
29021         * tests/unictype/test-categ_Sk.c: Likewise.
29022         * tests/unictype/test-categ_Sm.c: Likewise.
29023         * tests/unictype/test-categ_So.c: Likewise.
29024         * tests/unictype/test-categ_Z.c: Likewise.
29025         * tests/unictype/test-categ_Zl.c: Likewise.
29026         * tests/unictype/test-categ_Zp.c: Likewise.
29027         * tests/unictype/test-categ_Zs.c: Likewise.
29028         * tests/unictype/test-ctype_alnum.c: Likewise.
29029         * tests/unictype/test-ctype_alpha.c: Likewise.
29030         * tests/unictype/test-ctype_blank.c: Likewise.
29031         * tests/unictype/test-ctype_cntrl.c: Likewise.
29032         * tests/unictype/test-ctype_digit.c: Likewise.
29033         * tests/unictype/test-ctype_graph.c: Likewise.
29034         * tests/unictype/test-ctype_lower.c: Likewise.
29035         * tests/unictype/test-ctype_print.c: Likewise.
29036         * tests/unictype/test-ctype_punct.c: Likewise.
29037         * tests/unictype/test-ctype_space.c: Likewise.
29038         * tests/unictype/test-ctype_upper.c: Likewise.
29039         * tests/unictype/test-ctype_xdigit.c: Likewise.
29040         * tests/unictype/test-decdigit.h: Likewise.
29041         * tests/unictype/test-digit.h: Likewise.
29042         * tests/unictype/test-numeric.h: Likewise.
29043         * tests/unictype/test-pr_alphabetic.c: Likewise.
29044         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29045         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29046         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29047         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29048         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29049         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29050         * tests/unictype/test-pr_bidi_control.c: Likewise.
29051         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29052         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29053         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29054         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29055         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29056         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29057         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29058         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29059         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29060         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29061         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29062         * tests/unictype/test-pr_combining.c: Likewise.
29063         * tests/unictype/test-pr_composite.c: Likewise.
29064         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29065         * tests/unictype/test-pr_dash.c: Likewise.
29066         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29067         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29068         * tests/unictype/test-pr_deprecated.c: Likewise.
29069         * tests/unictype/test-pr_diacritic.c: Likewise.
29070         * tests/unictype/test-pr_extender.c: Likewise.
29071         * tests/unictype/test-pr_format_control.c: Likewise.
29072         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29073         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29074         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29075         * tests/unictype/test-pr_hex_digit.c: Likewise.
29076         * tests/unictype/test-pr_hyphen.c: Likewise.
29077         * tests/unictype/test-pr_id_continue.c: Likewise.
29078         * tests/unictype/test-pr_id_start.c: Likewise.
29079         * tests/unictype/test-pr_ideographic.c: Likewise.
29080         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29081         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29082         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29083         * tests/unictype/test-pr_iso_control.c: Likewise.
29084         * tests/unictype/test-pr_join_control.c: Likewise.
29085         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29086         * tests/unictype/test-pr_line_separator.c: Likewise.
29087         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29088         * tests/unictype/test-pr_lowercase.c: Likewise.
29089         * tests/unictype/test-pr_math.c: Likewise.
29090         * tests/unictype/test-pr_non_break.c: Likewise.
29091         * tests/unictype/test-pr_not_a_character.c: Likewise.
29092         * tests/unictype/test-pr_numeric.c: Likewise.
29093         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29094         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29095         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29096         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29097         * tests/unictype/test-pr_other_id_start.c: Likewise.
29098         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29099         * tests/unictype/test-pr_other_math.c: Likewise.
29100         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29101         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29102         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29103         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29104         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29105         * tests/unictype/test-pr_private_use.c: Likewise.
29106         * tests/unictype/test-pr_punctuation.c: Likewise.
29107         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29108         * tests/unictype/test-pr_radical.c: Likewise.
29109         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29110         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29111         * tests/unictype/test-pr_space.c: Likewise.
29112         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29113         * tests/unictype/test-pr_titlecase.c: Likewise.
29114         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29115         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29116         * tests/unictype/test-pr_uppercase.c: Likewise.
29117         * tests/unictype/test-pr_variation_selector.c: Likewise.
29118         * tests/unictype/test-pr_white_space.c: Likewise.
29119         * tests/unictype/test-pr_xid_continue.c: Likewise.
29120         * tests/unictype/test-pr_xid_start.c: Likewise.
29121         * tests/unictype/test-pr_zero_width.c: Likewise.
29122         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29123         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29124
29125 2007-11-12  Bruno Haible  <bruno@clisp.org>
29126
29127         Unicode character classification functions.
29128         * lib/unictype.h: New file.
29129         * modules/unictype/base: New file.
29130         * modules/unictype/category-L: New file.
29131         * modules/unictype/category-Lu: New file.
29132         * modules/unictype/category-Ll: New file.
29133         * modules/unictype/category-Lt: New file.
29134         * modules/unictype/category-Lm: New file.
29135         * modules/unictype/category-Lo: New file.
29136         * modules/unictype/category-M: New file.
29137         * modules/unictype/category-Mn: New file.
29138         * modules/unictype/category-Mc: New file.
29139         * modules/unictype/category-Me: New file.
29140         * modules/unictype/category-N: New file.
29141         * modules/unictype/category-Nd: New file.
29142         * modules/unictype/category-Nl: New file.
29143         * modules/unictype/category-No: New file.
29144         * modules/unictype/category-P: New file.
29145         * modules/unictype/category-Pc: New file.
29146         * modules/unictype/category-Pd: New file.
29147         * modules/unictype/category-Ps: New file.
29148         * modules/unictype/category-Pe: New file.
29149         * modules/unictype/category-Pi: New file.
29150         * modules/unictype/category-Pf: New file.
29151         * modules/unictype/category-Po: New file.
29152         * modules/unictype/category-S: New file.
29153         * modules/unictype/category-Sm: New file.
29154         * modules/unictype/category-Sc: New file.
29155         * modules/unictype/category-Sk: New file.
29156         * modules/unictype/category-So: New file.
29157         * modules/unictype/category-Z: New file.
29158         * modules/unictype/category-Zs: New file.
29159         * modules/unictype/category-Zl: New file.
29160         * modules/unictype/category-Zp: New file.
29161         * modules/unictype/category-C: New file.
29162         * modules/unictype/category-Cc: New file.
29163         * modules/unictype/category-Cf: New file.
29164         * modules/unictype/category-Cs: New file.
29165         * modules/unictype/category-Co: New file.
29166         * modules/unictype/category-Cn: New file.
29167         * modules/unictype/category-or: New file.
29168         * modules/unictype/category-of: New file.
29169         * modules/unictype/category-test: New file.
29170         * modules/unictype/category-test-withtable: New file.
29171         * modules/unictype/category-byname: New file.
29172         * modules/unictype/category-none: New file.
29173         * modules/unictype/category-and: New file.
29174         * modules/unictype/category-and-not: New file.
29175         * modules/unictype/category-name: New file.
29176         * modules/unictype/combining-class: New file.
29177         * modules/unictype/category-all: New file.
29178         * modules/unictype/bidicategory-all: New file.
29179         * modules/unictype/bidicategory-byname: New file.
29180         * modules/unictype/bidicategory-name: New file.
29181         * modules/unictype/bidicategory-of: New file.
29182         * modules/unictype/bidicategory-test: New file.
29183         * modules/unictype/decimal-digit: New file.
29184         * modules/unictype/digit: New file.
29185         * modules/unictype/numeric: New file.
29186         * modules/unictype/mirror: New file.
29187         * modules/unictype/property-white-space: New file.
29188         * modules/unictype/property-alphabetic: New file.
29189         * modules/unictype/property-other-alphabetic: New file.
29190         * modules/unictype/property-not-a-character: New file.
29191         * modules/unictype/property-default-ignorable-code-point: New file.
29192         * modules/unictype/property-other-default-ignorable-code-point: New
29193         file.
29194         * modules/unictype/property-deprecated: New file.
29195         * modules/unictype/property-logical-order-exception: New file.
29196         * modules/unictype/property-variation-selector: New file.
29197         * modules/unictype/property-private-use: New file.
29198         * modules/unictype/property-unassigned-code-value: New file.
29199         * modules/unictype/property-uppercase: New file.
29200         * modules/unictype/property-other-uppercase: New file.
29201         * modules/unictype/property-lowercase: New file.
29202         * modules/unictype/property-other-lowercase: New file.
29203         * modules/unictype/property-titlecase: New file.
29204         * modules/unictype/property-soft-dotted: New file.
29205         * modules/unictype/property-id-start: New file.
29206         * modules/unictype/property-other-id-start: New file.
29207         * modules/unictype/property-id-continue: New file.
29208         * modules/unictype/property-other-id-continue: New file.
29209         * modules/unictype/property-xid-start: New file.
29210         * modules/unictype/property-xid-continue: New file.
29211         * modules/unictype/property-pattern-white-space: New file.
29212         * modules/unictype/property-pattern-syntax: New file.
29213         * modules/unictype/property-join-control: New file.
29214         * modules/unictype/property-grapheme-base: New file.
29215         * modules/unictype/property-grapheme-extend: New file.
29216         * modules/unictype/property-other-grapheme-extend: New file.
29217         * modules/unictype/property-grapheme-link: New file.
29218         * modules/unictype/property-bidi-control: New file.
29219         * modules/unictype/property-bidi-left-to-right: New file.
29220         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29221         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29222         * modules/unictype/property-bidi-european-digit: New file.
29223         * modules/unictype/property-bidi-eur-num-separator: New file.
29224         * modules/unictype/property-bidi-eur-num-terminator: New file.
29225         * modules/unictype/property-bidi-arabic-digit: New file.
29226         * modules/unictype/property-bidi-common-separator: New file.
29227         * modules/unictype/property-bidi-block-separator: New file.
29228         * modules/unictype/property-bidi-segment-separator: New file.
29229         * modules/unictype/property-bidi-whitespace: New file.
29230         * modules/unictype/property-bidi-non-spacing-mark: New file.
29231         * modules/unictype/property-bidi-boundary-neutral: New file.
29232         * modules/unictype/property-bidi-pdf: New file.
29233         * modules/unictype/property-bidi-embedding-or-override: New file.
29234         * modules/unictype/property-bidi-other-neutral: New file.
29235         * modules/unictype/property-hex-digit: New file.
29236         * modules/unictype/property-ascii-hex-digit: New file.
29237         * modules/unictype/property-ideographic: New file.
29238         * modules/unictype/property-unified-ideograph: New file.
29239         * modules/unictype/property-radical: New file.
29240         * modules/unictype/property-ids-binary-operator: New file.
29241         * modules/unictype/property-ids-trinary-operator: New file.
29242         * modules/unictype/property-zero-width: New file.
29243         * modules/unictype/property-space: New file.
29244         * modules/unictype/property-non-break: New file.
29245         * modules/unictype/property-iso-control: New file.
29246         * modules/unictype/property-format-control: New file.
29247         * modules/unictype/property-dash: New file.
29248         * modules/unictype/property-hyphen: New file.
29249         * modules/unictype/property-punctuation: New file.
29250         * modules/unictype/property-line-separator: New file.
29251         * modules/unictype/property-paragraph-separator: New file.
29252         * modules/unictype/property-quotation-mark: New file.
29253         * modules/unictype/property-sentence-terminal: New file.
29254         * modules/unictype/property-terminal-punctuation: New file.
29255         * modules/unictype/property-currency-symbol: New file.
29256         * modules/unictype/property-math: New file.
29257         * modules/unictype/property-other-math: New file.
29258         * modules/unictype/property-paired-punctuation: New file.
29259         * modules/unictype/property-left-of-pair: New file.
29260         * modules/unictype/property-combining: New file.
29261         * modules/unictype/property-composite: New file.
29262         * modules/unictype/property-decimal-digit: New file.
29263         * modules/unictype/property-numeric: New file.
29264         * modules/unictype/property-diacritic: New file.
29265         * modules/unictype/property-extender: New file.
29266         * modules/unictype/property-ignorable-control: New file.
29267         * modules/unictype/property-test: New file.
29268         * modules/unictype/property-byname: New file.
29269         * modules/unictype/property-all: New file.
29270         * modules/unictype/scripts: New file.
29271         * modules/unictype/scripts-all: New file.
29272         * modules/unictype/block-of: New file.
29273         * modules/unictype/block-test: New file.
29274         * modules/unictype/block-list: New file.
29275         * modules/unictype/block-all: New file.
29276         * modules/unictype/syntax-c-whitespace: New file.
29277         * modules/unictype/syntax-java-whitespace: New file.
29278         * modules/unictype/syntax-c-ident: New file.
29279         * modules/unictype/syntax-java-ident: New file.
29280         * modules/unictype/ctype-alnum: New file.
29281         * modules/unictype/ctype-alpha: New file.
29282         * modules/unictype/ctype-cntrl: New file.
29283         * modules/unictype/ctype-digit: New file.
29284         * modules/unictype/ctype-graph: New file.
29285         * modules/unictype/ctype-lower: New file.
29286         * modules/unictype/ctype-print: New file.
29287         * modules/unictype/ctype-punct: New file.
29288         * modules/unictype/ctype-space: New file.
29289         * modules/unictype/ctype-upper: New file.
29290         * modules/unictype/ctype-xdigit: New file.
29291         * modules/unictype/ctype-blank: New file.
29292         * lib/unictype/bidi_byname.c: New file.
29293         * lib/unictype/bidi_name.c: New file.
29294         * lib/unictype/bidi_of.c: New file.
29295         * lib/unictype/bidi_test.c: New file.
29296         * lib/unictype/bitmap.h: New file.
29297         * lib/unictype/block_test.c: New file.
29298         * lib/unictype/blocks.c: New file.
29299         * lib/unictype/categ_C.c: New file.
29300         * lib/unictype/categ_Cc.c: New file.
29301         * lib/unictype/categ_Cf.c: New file.
29302         * lib/unictype/categ_Cn.c: New file.
29303         * lib/unictype/categ_Co.c: New file.
29304         * lib/unictype/categ_Cs.c: New file.
29305         * lib/unictype/categ_L.c: New file.
29306         * lib/unictype/categ_Ll.c: New file.
29307         * lib/unictype/categ_Lm.c: New file.
29308         * lib/unictype/categ_Lo.c: New file.
29309         * lib/unictype/categ_Lt.c: New file.
29310         * lib/unictype/categ_Lu.c: New file.
29311         * lib/unictype/categ_M.c: New file.
29312         * lib/unictype/categ_Mc.c: New file.
29313         * lib/unictype/categ_Me.c: New file.
29314         * lib/unictype/categ_Mn.c: New file.
29315         * lib/unictype/categ_N.c: New file.
29316         * lib/unictype/categ_Nd.c: New file.
29317         * lib/unictype/categ_Nl.c: New file.
29318         * lib/unictype/categ_No.c: New file.
29319         * lib/unictype/categ_P.c: New file.
29320         * lib/unictype/categ_Pc.c: New file.
29321         * lib/unictype/categ_Pd.c: New file.
29322         * lib/unictype/categ_Pe.c: New file.
29323         * lib/unictype/categ_Pf.c: New file.
29324         * lib/unictype/categ_Pi.c: New file.
29325         * lib/unictype/categ_Po.c: New file.
29326         * lib/unictype/categ_Ps.c: New file.
29327         * lib/unictype/categ_S.c: New file.
29328         * lib/unictype/categ_Sc.c: New file.
29329         * lib/unictype/categ_Sk.c: New file.
29330         * lib/unictype/categ_Sm.c: New file.
29331         * lib/unictype/categ_So.c: New file.
29332         * lib/unictype/categ_Z.c: New file.
29333         * lib/unictype/categ_Zl.c: New file.
29334         * lib/unictype/categ_Zp.c: New file.
29335         * lib/unictype/categ_Zs.c: New file.
29336         * lib/unictype/categ_and.c: New file.
29337         * lib/unictype/categ_and_not.c: New file.
29338         * lib/unictype/categ_byname.c: New file.
29339         * lib/unictype/categ_name.c: New file.
29340         * lib/unictype/categ_none.c: New file.
29341         * lib/unictype/categ_of.c: New file.
29342         * lib/unictype/categ_or.c: New file.
29343         * lib/unictype/categ_test.c: New file.
29344         * lib/unictype/combining.c: New file.
29345         * lib/unictype/ctype_alnum.c: New file.
29346         * lib/unictype/ctype_alpha.c: New file.
29347         * lib/unictype/ctype_blank.c: New file.
29348         * lib/unictype/ctype_cntrl.c: New file.
29349         * lib/unictype/ctype_digit.c: New file.
29350         * lib/unictype/ctype_graph.c: New file.
29351         * lib/unictype/ctype_lower.c: New file.
29352         * lib/unictype/ctype_print.c: New file.
29353         * lib/unictype/ctype_punct.c: New file.
29354         * lib/unictype/ctype_space.c: New file.
29355         * lib/unictype/ctype_upper.c: New file.
29356         * lib/unictype/ctype_xdigit.c: New file.
29357         * lib/unictype/decdigit.c: New file.
29358         * lib/unictype/digit.c: New file.
29359         * lib/unictype/identsyntaxmap.h: New file.
29360         * lib/unictype/mirror.c: New file.
29361         * lib/unictype/numeric.c: New file.
29362         * lib/unictype/pr_alphabetic.c: New file.
29363         * lib/unictype/pr_ascii_hex_digit.c: New file.
29364         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29365         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29366         * lib/unictype/pr_bidi_block_separator.c: New file.
29367         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29368         * lib/unictype/pr_bidi_common_separator.c: New file.
29369         * lib/unictype/pr_bidi_control.c: New file.
29370         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29371         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29372         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29373         * lib/unictype/pr_bidi_european_digit.c: New file.
29374         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29375         * lib/unictype/pr_bidi_left_to_right.c: New file.
29376         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29377         * lib/unictype/pr_bidi_other_neutral.c: New file.
29378         * lib/unictype/pr_bidi_pdf.c: New file.
29379         * lib/unictype/pr_bidi_segment_separator.c: New file.
29380         * lib/unictype/pr_bidi_whitespace.c: New file.
29381         * lib/unictype/pr_byname.c: New file.
29382         * lib/unictype/pr_byname.gperf: New file.
29383         * lib/unictype/pr_combining.c: New file.
29384         * lib/unictype/pr_composite.c: New file.
29385         * lib/unictype/pr_currency_symbol.c: New file.
29386         * lib/unictype/pr_dash.c: New file.
29387         * lib/unictype/pr_decimal_digit.c: New file.
29388         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29389         * lib/unictype/pr_deprecated.c: New file.
29390         * lib/unictype/pr_diacritic.c: New file.
29391         * lib/unictype/pr_extender.c: New file.
29392         * lib/unictype/pr_format_control.c: New file.
29393         * lib/unictype/pr_grapheme_base.c: New file.
29394         * lib/unictype/pr_grapheme_extend.c: New file.
29395         * lib/unictype/pr_grapheme_link.c: New file.
29396         * lib/unictype/pr_hex_digit.c: New file.
29397         * lib/unictype/pr_hyphen.c: New file.
29398         * lib/unictype/pr_id_continue.c: New file.
29399         * lib/unictype/pr_id_start.c: New file.
29400         * lib/unictype/pr_ideographic.c: New file.
29401         * lib/unictype/pr_ids_binary_operator.c: New file.
29402         * lib/unictype/pr_ids_trinary_operator.c: New file.
29403         * lib/unictype/pr_ignorable_control.c: New file.
29404         * lib/unictype/pr_iso_control.c: New file.
29405         * lib/unictype/pr_join_control.c: New file.
29406         * lib/unictype/pr_left_of_pair.c: New file.
29407         * lib/unictype/pr_line_separator.c: New file.
29408         * lib/unictype/pr_logical_order_exception.c: New file.
29409         * lib/unictype/pr_lowercase.c: New file.
29410         * lib/unictype/pr_math.c: New file.
29411         * lib/unictype/pr_non_break.c: New file.
29412         * lib/unictype/pr_not_a_character.c: New file.
29413         * lib/unictype/pr_numeric.c: New file.
29414         * lib/unictype/pr_other_alphabetic.c: New file.
29415         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29416         * lib/unictype/pr_other_grapheme_extend.c: New file.
29417         * lib/unictype/pr_other_id_continue.c: New file.
29418         * lib/unictype/pr_other_id_start.c: New file.
29419         * lib/unictype/pr_other_lowercase.c: New file.
29420         * lib/unictype/pr_other_math.c: New file.
29421         * lib/unictype/pr_other_uppercase.c: New file.
29422         * lib/unictype/pr_paired_punctuation.c: New file.
29423         * lib/unictype/pr_paragraph_separator.c: New file.
29424         * lib/unictype/pr_pattern_syntax.c: New file.
29425         * lib/unictype/pr_pattern_white_space.c: New file.
29426         * lib/unictype/pr_private_use.c: New file.
29427         * lib/unictype/pr_punctuation.c: New file.
29428         * lib/unictype/pr_quotation_mark.c: New file.
29429         * lib/unictype/pr_radical.c: New file.
29430         * lib/unictype/pr_sentence_terminal.c: New file.
29431         * lib/unictype/pr_soft_dotted.c: New file.
29432         * lib/unictype/pr_space.c: New file.
29433         * lib/unictype/pr_terminal_punctuation.c: New file.
29434         * lib/unictype/pr_test.c: New file.
29435         * lib/unictype/pr_titlecase.c: New file.
29436         * lib/unictype/pr_unassigned_code_value.c: New file.
29437         * lib/unictype/pr_unified_ideograph.c: New file.
29438         * lib/unictype/pr_uppercase.c: New file.
29439         * lib/unictype/pr_variation_selector.c: New file.
29440         * lib/unictype/pr_white_space.c: New file.
29441         * lib/unictype/pr_xid_continue.c: New file.
29442         * lib/unictype/pr_xid_start.c: New file.
29443         * lib/unictype/pr_zero_width.c: New file.
29444         * lib/unictype/scripts.c: New file.
29445         * lib/unictype/sy_c_ident.c: New file.
29446         * lib/unictype/sy_c_whitespace.c: New file.
29447         * lib/unictype/sy_java_ident.c: New file.
29448         * lib/unictype/sy_java_whitespace.c: New file.
29449
29450         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29451         Unicode 5.0.0.
29452         * lib/unictype/blocks.h: Likewise.
29453         * lib/unictype/categ_C.h: Likewise.
29454         * lib/unictype/categ_Cc.h: Likewise.
29455         * lib/unictype/categ_Cf.h: Likewise.
29456         * lib/unictype/categ_Cn.h: Likewise.
29457         * lib/unictype/categ_Co.h: Likewise.
29458         * lib/unictype/categ_Cs.h: Likewise.
29459         * lib/unictype/categ_L.h: Likewise.
29460         * lib/unictype/categ_Ll.h: Likewise.
29461         * lib/unictype/categ_Lm.h: Likewise.
29462         * lib/unictype/categ_Lo.h: Likewise.
29463         * lib/unictype/categ_Lt.h: Likewise.
29464         * lib/unictype/categ_Lu.h: Likewise.
29465         * lib/unictype/categ_M.h: Likewise.
29466         * lib/unictype/categ_Mc.h: Likewise.
29467         * lib/unictype/categ_Me.h: Likewise.
29468         * lib/unictype/categ_Mn.h: Likewise.
29469         * lib/unictype/categ_N.h: Likewise.
29470         * lib/unictype/categ_Nd.h: Likewise.
29471         * lib/unictype/categ_Nl.h: Likewise.
29472         * lib/unictype/categ_No.h: Likewise.
29473         * lib/unictype/categ_P.h: Likewise.
29474         * lib/unictype/categ_Pc.h: Likewise.
29475         * lib/unictype/categ_Pd.h: Likewise.
29476         * lib/unictype/categ_Pe.h: Likewise.
29477         * lib/unictype/categ_Pf.h: Likewise.
29478         * lib/unictype/categ_Pi.h: Likewise.
29479         * lib/unictype/categ_Po.h: Likewise.
29480         * lib/unictype/categ_Ps.h: Likewise.
29481         * lib/unictype/categ_S.h: Likewise.
29482         * lib/unictype/categ_Sc.h: Likewise.
29483         * lib/unictype/categ_Sk.h: Likewise.
29484         * lib/unictype/categ_Sm.h: Likewise.
29485         * lib/unictype/categ_So.h: Likewise.
29486         * lib/unictype/categ_Z.h: Likewise.
29487         * lib/unictype/categ_Zl.h: Likewise.
29488         * lib/unictype/categ_Zp.h: Likewise.
29489         * lib/unictype/categ_Zs.h: Likewise.
29490         * lib/unictype/categ_of.h: Likewise.
29491         * lib/unictype/combining.h: Likewise.
29492         * lib/unictype/ctype_alnum.h: Likewise.
29493         * lib/unictype/ctype_alpha.h: Likewise.
29494         * lib/unictype/ctype_blank.h: Likewise.
29495         * lib/unictype/ctype_cntrl.h: Likewise.
29496         * lib/unictype/ctype_digit.h: Likewise.
29497         * lib/unictype/ctype_graph.h: Likewise.
29498         * lib/unictype/ctype_lower.h: Likewise.
29499         * lib/unictype/ctype_print.h: Likewise.
29500         * lib/unictype/ctype_punct.h: Likewise.
29501         * lib/unictype/ctype_space.h: Likewise.
29502         * lib/unictype/ctype_upper.h: Likewise.
29503         * lib/unictype/ctype_xdigit.h: Likewise.
29504         * lib/unictype/decdigit.h: Likewise.
29505         * lib/unictype/digit.h: Likewise.
29506         * lib/unictype/mirror.h: Likewise.
29507         * lib/unictype/numeric.h: Likewise.
29508         * lib/unictype/pr_alphabetic.h: Likewise.
29509         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29510         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29511         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29512         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29513         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29514         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29515         * lib/unictype/pr_bidi_control.h: Likewise.
29516         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29517         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29518         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29519         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29520         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29521         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29522         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29523         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29524         * lib/unictype/pr_bidi_pdf.h: Likewise.
29525         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29526         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29527         * lib/unictype/pr_combining.h: Likewise.
29528         * lib/unictype/pr_composite.h: Likewise.
29529         * lib/unictype/pr_currency_symbol.h: Likewise.
29530         * lib/unictype/pr_dash.h: Likewise.
29531         * lib/unictype/pr_decimal_digit.h: Likewise.
29532         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29533         * lib/unictype/pr_deprecated.h: Likewise.
29534         * lib/unictype/pr_diacritic.h: Likewise.
29535         * lib/unictype/pr_extender.h: Likewise.
29536         * lib/unictype/pr_format_control.h: Likewise.
29537         * lib/unictype/pr_grapheme_base.h: Likewise.
29538         * lib/unictype/pr_grapheme_extend.h: Likewise.
29539         * lib/unictype/pr_grapheme_link.h: Likewise.
29540         * lib/unictype/pr_hex_digit.h: Likewise.
29541         * lib/unictype/pr_hyphen.h: Likewise.
29542         * lib/unictype/pr_id_continue.h: Likewise.
29543         * lib/unictype/pr_id_start.h: Likewise.
29544         * lib/unictype/pr_ideographic.h: Likewise.
29545         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29546         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29547         * lib/unictype/pr_ignorable_control.h: Likewise.
29548         * lib/unictype/pr_iso_control.h: Likewise.
29549         * lib/unictype/pr_join_control.h: Likewise.
29550         * lib/unictype/pr_left_of_pair.h: Likewise.
29551         * lib/unictype/pr_line_separator.h: Likewise.
29552         * lib/unictype/pr_logical_order_exception.h: Likewise.
29553         * lib/unictype/pr_lowercase.h: Likewise.
29554         * lib/unictype/pr_math.h: Likewise.
29555         * lib/unictype/pr_non_break.h: Likewise.
29556         * lib/unictype/pr_not_a_character.h: Likewise.
29557         * lib/unictype/pr_numeric.h: Likewise.
29558         * lib/unictype/pr_other_alphabetic.h: Likewise.
29559         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29560         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29561         * lib/unictype/pr_other_id_continue.h: Likewise.
29562         * lib/unictype/pr_other_id_start.h: Likewise.
29563         * lib/unictype/pr_other_lowercase.h: Likewise.
29564         * lib/unictype/pr_other_math.h: Likewise.
29565         * lib/unictype/pr_other_uppercase.h: Likewise.
29566         * lib/unictype/pr_paired_punctuation.h: Likewise.
29567         * lib/unictype/pr_paragraph_separator.h: Likewise.
29568         * lib/unictype/pr_pattern_syntax.h: Likewise.
29569         * lib/unictype/pr_pattern_white_space.h: Likewise.
29570         * lib/unictype/pr_private_use.h: Likewise.
29571         * lib/unictype/pr_punctuation.h: Likewise.
29572         * lib/unictype/pr_quotation_mark.h: Likewise.
29573         * lib/unictype/pr_radical.h: Likewise.
29574         * lib/unictype/pr_sentence_terminal.h: Likewise.
29575         * lib/unictype/pr_soft_dotted.h: Likewise.
29576         * lib/unictype/pr_space.h: Likewise.
29577         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29578         * lib/unictype/pr_titlecase.h: Likewise.
29579         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29580         * lib/unictype/pr_unified_ideograph.h: Likewise.
29581         * lib/unictype/pr_uppercase.h: Likewise.
29582         * lib/unictype/pr_variation_selector.h: Likewise.
29583         * lib/unictype/pr_white_space.h: Likewise.
29584         * lib/unictype/pr_xid_continue.h: Likewise.
29585         * lib/unictype/pr_xid_start.h: Likewise.
29586         * lib/unictype/pr_zero_width.h: Likewise.
29587         * lib/unictype/scripts.h: Likewise.
29588         * lib/unictype/scripts_byname.gperf: Likewise.
29589         * lib/unictype/sy_c_ident.h: Likewise.
29590         * lib/unictype/sy_c_whitespace.h: Likewise.
29591         * lib/unictype/sy_java_ident.h: Likewise.
29592         * lib/unictype/sy_java_whitespace.h: Likewise.
29593
29594         * lib/unictype/Makefile: New file.
29595         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29596         glibc.
29597         * lib/unictype/3level.h: New file, copied from glibc.
29598         * lib/unictype/3levelbit.h: New file.
29599
29600 2007-11-11  Bruno Haible  <bruno@clisp.org>
29601
29602         * modules/gperf: New file.
29603         * modules/iconv_open (Depends-on): Add it.
29604         (Makefile.am): Remove the GPERF definition.
29605
29606 2007-11-11  Bruno Haible  <bruno@clisp.org>
29607
29608         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29609         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29610
29611 2007-11-11  Bruno Haible  <bruno@clisp.org>
29612
29613         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29614         (usage): Remove function.
29615
29616 2007-11-11  Bruno Haible  <bruno@clisp.org>
29617
29618         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29619         gl_FUNC_CEILF_LIBS.
29620         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29621         gl_FUNC_CEIL_LIBS.
29622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29623         gl_FUNC_CEILL_LIBS.
29624         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29625         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29626         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29627
29628 2007-11-11  Bruno Haible  <bruno@clisp.org>
29629
29630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29631         roundf were declared but do not exist on functions.
29632         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29633         roundl were declared but do not exist on functions.
29634         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29635         HAVE_FLOORL_AND_CEILL, respectively.
29636         Needed for Sun C on Solaris 10.
29637
29638 2007-11-11  Bruno Haible  <bruno@clisp.org>
29639
29640         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29641         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29642         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29643         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29644         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29645         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29646         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29647         HAVE_DECL_ROUNDF.
29648         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29649         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29651         of HAVE_DECL_ROUND*.
29652         * modules/math (Makefile.am): Update.
29653
29654 2007-11-10  Bruno Haible  <bruno@clisp.org>
29655
29656         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29657         ptrdiff_t as m4/intl.m4.
29658
29659 2007-11-10  Jim Meyering  <meyering@redhat.com>
29660
29661         Avoid link failure for the argmatch test.
29662         * tests/test-argmatch.c (usage): Define function to avoid a link
29663         failure: argmatch_die requires a usage function.
29664
29665 2007-11-09  Bruno Haible  <bruno@clisp.org>
29666
29667         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29668         * doc/functions/vsnprintf.texi: Likewise.
29669         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29670         with a size argument < 2.
29671
29672 2007-11-09  Bruno Haible  <bruno@clisp.org>
29673
29674         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29675         buffer. Fixes an inefficiency introduced on 2007-11-03.
29676
29677 2007-11-09  Bruno Haible  <bruno@clisp.org>
29678
29679         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29680         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29681
29682 2007-11-08  Jim Meyering  <meyering@redhat.com>
29683
29684         Change cache variable name prefix "jm_" to "gl_" everywhere.
29685         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29686         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29687         * m4/uptime.m4: s/gl_/jm_/
29688
29689 2007-11-07  Bruno Haible  <bruno@clisp.org>
29690
29691         Update to GNU gettext 0.17.
29692         * m4/intl.m4: Update to GNU gettext 0.17.
29693         * m4/po.m4: Likewise.
29694         * modules/gettext (Files): Remove m4/ulonglong.m4.
29695         (configure.ac): Require gettext infrastructure from version 0.17.
29696
29697 2007-11-06  Bruno Haible  <bruno@clisp.org>
29698
29699         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29700         symbolic values are not defined in a public header.
29701         * lib/freadable.c (freadable) [QNX]: Likewise.
29702         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29703         * lib/freading.c (freading) [QNX]: Likewise.
29704         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29705         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29706         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29707         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29708         Reported by Alain Magloire.
29709
29710         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29711
29712 2007-11-05  Bruno Haible  <bruno@clisp.org>
29713
29714         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29715         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29716         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29717         Reported by Eric Blake.
29718
29719 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29720             Bruno Haible  <bruno@clisp.org>
29721
29722         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29723         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29724         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29725         (malloc): Undefine also before including <stdlib.h>.
29726         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29727         Needed on OSF/1 4.0.
29728
29729 2007-11-05  Jim Meyering  <meyering@redhat.com>
29730
29731         git-version-gen: sync from coreutils.
29732         * build-aux/git-version-gen: Add comments.
29733         Change the first '-' to '.' in the snapshot version string,
29734         e.g., 6.9-377-08144 -> 6.9.377-08144
29735         Remove first parameter.
29736         Don't declare a version "-dirty" merely because a time
29737         stamp has changed.
29738
29739 2007-11-04  Bruno Haible  <bruno@clisp.org>
29740
29741         * lib/lock.h: Protect all macro definitions containing an 'if'
29742         statement through a "do { ... } while (0)".
29743         * lib/tls.h: Likewise.
29744
29745 2007-11-04  Bruno Haible  <bruno@clisp.org>
29746
29747         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29748
29749 2007-11-04  Bruno Haible  <bruno@clisp.org>
29750
29751         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29752         * modules/fprintf-posix (Depends-on): Add nocrash.
29753         * modules/snprintf-posix (Depends-on): Likewise.
29754         * modules/sprintf-posix (Depends-on): Likewise.
29755         * modules/vasnprintf-posix (Depends-on): Likewise.
29756         * modules/vasprintf-posix (Depends-on): Likewise.
29757         * modules/vfprintf-posix (Depends-on): Likewise.
29758         * modules/vsnprintf-posix (Depends-on): Likewise.
29759         * modules/vsprintf-posix (Depends-on): Likewise.
29760         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29767
29768 2007-11-04  Bruno Haible  <bruno@clisp.org>
29769
29770         * modules/nocrash: New file.
29771         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29772         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29773
29774 2007-11-04  Bruno Haible  <bruno@clisp.org>
29775
29776         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29777         precision handling.
29778         * tests/test-vasprintf-posix.c (test_function): Likewise.
29779         * tests/test-snprintf-posix.h (test_function): Likewise.
29780         * tests/test-sprintf-posix.h (test_function): Likewise.
29781
29782         Fix *printf behaviour for large precisions on mingw and BeOS.
29783         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29784         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29786         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29787         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29788         gl_PRINTF_PRECISION and test its result. Invoke
29789         gl_PREREQ_VASNPRINTF_PRECISION.
29790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29794         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29795         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29796         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29797         * doc/functions/fprintf.texi: Update.
29798         * doc/functions/printf.texi: Update.
29799         * doc/functions/snprintf.texi: Update.
29800         * doc/functions/sprintf.texi: Update.
29801         * doc/functions/vfprintf.texi: Update.
29802         * doc/functions/vprintf.texi: Update.
29803         * doc/functions/vsnprintf.texi: Update.
29804         * doc/functions/vsprintf.texi: Update.
29805
29806 2007-11-04  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29809
29810 2007-11-04  Bruno Haible  <bruno@clisp.org>
29811
29812         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29813         Reported by Sylvain Beucler <beuc@gnu.org>.
29814
29815 2007-11-03  Bruno Haible  <bruno@clisp.org>
29816
29817         * tests/test-fprintf-posix2.sh: New file.
29818         * tests/test-fprintf-posix2.c: New file.
29819         * modules/fprintf-posix-tests (Files): Add them.
29820         (TESTS): Add test-fprintf-posix2.sh.
29821         (configure.ac): Check for getrlimit and setrlimit.
29822         (check_PROGRAMS): Add test-fprintf-posix2.
29823
29824         * tests/test-printf-posix2.sh: New file.
29825         * tests/test-printf-posix2.c: New file.
29826         * modules/printf-posix-tests (Files): Add them.
29827         (TESTS): Add test-printf-posix2.sh.
29828         (configure.ac): Check for getrlimit and setrlimit.
29829         (check_PROGRAMS): Add test-printf-posix2.
29830
29831         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29832         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29833         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29834         (decode_double): New function, copied from decode_long_double.
29835         (scale10_round_decimal_decoded): New function, extracted from
29836         scale10_round_decimal_long_double.
29837         (scale10_round_decimal_long_double): Use it.
29838         (scale10_round_decimal_double): New function.
29839         (floorlog10): New function.
29840         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29842         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29844         gl_PRINTF_ENOMEM and test its result. Invoke
29845         gl_PREREQ_VASNPRINTF_ENOMEM.
29846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29853         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29854         * modules/snprintf-posix (Depends-on): Likewise.
29855         * modules/sprintf-posix (Depends-on): Likewise.
29856         * modules/vasnprintf-posix (Depends-on): Likewise.
29857         * modules/vasprintf-posix (Depends-on): Likewise.
29858         * modules/vfprintf-posix (Depends-on): Likewise.
29859         * modules/vsnprintf-posix (Depends-on): Likewise.
29860         * modules/vsprintf-posix (Depends-on): Likewise.
29861         * doc/functions/fprintf.texi: Update.
29862         * doc/functions/printf.texi: Update.
29863         * doc/functions/snprintf.texi: Update.
29864         * doc/functions/sprintf.texi: Update.
29865         * doc/functions/vfprintf.texi: Update.
29866         * doc/functions/vprintf.texi: Update.
29867         * doc/functions/vsnprintf.texi: Update.
29868         * doc/functions/vsprintf.texi: Update.
29869
29870 2007-11-03  Bruno Haible  <bruno@clisp.org>
29871
29872         * modules/frexp-nolibm-tests: New file.
29873
29874         * modules/frexp-nolibm: New file.
29875         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29876
29877 2007-11-03  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29880         value is C99 compliant.
29881         Needed for OSF/1 5.1.
29882
29883 2007-11-03  Bruno Haible  <bruno@clisp.org>
29884
29885         Fix out-of-memory handling of vasnprintf.
29886         * lib/printf-parse.c: Include <errno.h>.
29887         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29888         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29889         is already set.
29890
29891 2007-11-02  Eric Blake  <ebb9@byu.net>
29892
29893         Fix tests on cygwin.
29894         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29895
29896 2007-11-01  Bruno Haible  <bruno@clisp.org>
29897
29898         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29899         warning.
29900         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29901         needed for POSIX compatibility.
29902
29903 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29904
29905         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29906         for compatibility with GNU.
29907
29908 2007-11-01  Bruno Haible  <bruno@clisp.org>
29909
29910         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29911         (putenv): Renamed from rpl_putenv. Change argument type from
29912         'const char *' to 'char *'.
29913         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29914         of defining putenv in config.h, just set REPLACE_PUTENV.
29915         * modules/putenv (Depends-on): Add stdlib.
29916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29917         (Include): Use <stdlib.h>.
29918         * lib/stdlib.in.h (putenv): New declaration.
29919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29920         REPLACE_PUTENV.
29921         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29922         REPLACE_PUTENV.
29923         Needed for MacOS X 10.5.0.
29924         Reported by Peter O'Gorman <peter@pogma.com>.
29925
29926 2007-11-01  Jim Meyering  <meyering@redhat.com>
29927
29928         Treat an empty date string exactly like "0".
29929         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29930         if the remaining date string (to be parsed) is empty, use "0".
29931         Reported by Mischa Molhoek and discussed in this thread:
29932         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29933
29934 2007-10-31  Bruno Haible  <bruno@clisp.org>
29935
29936         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29937         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29938         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29939         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29940         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29941         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29942
29943 2007-10-31  Bruno Haible  <bruno@clisp.org>
29944
29945         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29946         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29947         (AC_TYPE_LONG_LONG_INT): Use it.
29948         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29949         it as well.
29950         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29951         to m4/longlong.m4.
29952         * modules/stdint (Files): Remove m4/ulonglong.m4.
29953         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29954         m4/ulonglong.m4.
29955         * modules/strtoumax (Files): Likewise.
29956
29957 2007-10-30  Bruno Haible  <bruno@clisp.org>
29958
29959         * modules/xvasprintf-posix: New file.
29960         Suggested by Eric Blake.
29961
29962 2007-10-30  Bruno Haible  <bruno@clisp.org>
29963
29964         * modules/xprintf-posix-tests: New file.
29965         * tests/test-xprintf-posix.sh: New file.
29966         * tests/test-xprintf-posix.c: New file.
29967         * tests/test-xfprintf-posix.c: New file.
29968
29969         * modules/xprintf-posix: New file.
29970
29971 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29972
29973         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29974         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29975         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29976
29977 2007-10-29  Bruno Haible  <bruno@clisp.org>
29978
29979         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29980         contain the special marker '_cv_'.
29981         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29984         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29985         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29986         Reported by Ralf Wildenhues.
29987
29988 2007-10-29  Bruno Haible  <bruno@clisp.org>
29989
29990         * gnulib-tool (func_import): When --lgpl is not specified, set
29991         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29992         GPLv3.
29993         Reported by Simon Josefsson.
29994
29995 2007-10-28  Bruno Haible  <bruno@clisp.org>
29996
29997         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29998         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29999         HAVE_DECL_ISFINITE.
30000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30001         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30002         HAVE_DECL_ISFINITE.
30003
30004 2007-10-28  Bruno Haible  <bruno@clisp.org>
30005
30006         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30007         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30008
30009 2007-10-28  Bruno Haible  <bruno@clisp.org>
30010
30011         Fix link errors with Sun C 5.0 on Solaris 10.
30012         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30013         function is declared but not present in the compiler's libm.
30014         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30015         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30016         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30017         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30018         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30019         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30020         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30022         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30023         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30024         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30025         HAVE_DECL_FLOORL.
30026
30027 2007-10-28  Bruno Haible  <bruno@clisp.org>
30028
30029         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30030         gl_FUNC_FLOORL. Cache the result.
30031         (gl_FUNC_FLOORL): Use it.
30032         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30033         gl_FUNC_CEILL. Cache the result.
30034         (gl_FUNC_CEILL): Use it.
30035
30036         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30037         gl_FUNC_FLOOR. Cache the result.
30038         (gl_FUNC_FLOOR): Use it.
30039         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30040         gl_FUNC_CEIL. Cache the result.
30041         (gl_FUNC_CEIL): Use it.
30042
30043         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30044         gl_FUNC_FLOORF. Cache the result.
30045         (gl_FUNC_FLOORF): Use it.
30046         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30047         gl_FUNC_CEILF. Cache the result.
30048         (gl_FUNC_CEILF): Use it.
30049
30050 2007-10-28  Bruno Haible  <bruno@clisp.org>
30051
30052         * gnulib-tool: Allow specifying the LGPL version number through
30053         --lgpl=2 or --lgpl=3.
30054         (func_usage): Document --lgpl with argument.
30055         Handle --lgpl=... arguments.
30056         (func_import): Recognize also gl_LGPL calls with an argument. When
30057         --lgpl=2 is used and the module's license is just LGPL, report an
30058         error. Set sed_transform_lib_file according to the lgpl variable. In
30059         the generated files, use --lgpl or gl_LGPL invocations with argument,
30060         if necessary.
30061         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30062         an LGPv2+ license.
30063         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30064         gl_LGPL macro.
30065
30066 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30067             Bruno Haible  <bruno@clisp.org>
30068
30069         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30070         (u16_uctomb_aux): Likewise.
30071         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30072         !HAVE_INLINE.
30073         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30074
30075 2007-10-28  Bruno Haible  <bruno@clisp.org>
30076
30077         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30078         Invoke AM_GETTEXT_OPTION if it exists.
30079         * modules/vasprintf: Likewise.
30080         * modules/verror: Likewise.
30081         * modules/xprintf: Likewise.
30082         * modules/xvasprintf: Likewise.
30083
30084 2007-10-27  Ben Pfaff  <blp@gnu.org>
30085
30086         * lib/math.in.h: Define isfinite macro and prototypes for
30087         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30088         implementations.
30089         * m4/math_h.m4: New substitutions for isfinite module.
30090         * lib/isfinite.c: New file.
30091         * m4/isfinite.m4: New file.
30092         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30093         * modules/isfinite: New file.
30094         * modules/isfinite-tests: New file.
30095         * tests/tests-isfinite.c: New file.
30096         * doc/functions/isfinite.texi: Mention isfinite module.
30097         * MODULES.html.sh: Mention new module.
30098
30099 2007-10-27  Ben Pfaff  <blp@gnu.org>
30100
30101         Ralf Wildenhues reported that Tru64 4.0D declares the round
30102         functions but does not have definitions.
30103         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30104         cannot be found in any library, set the output variable to
30105         "missing" instead of "".
30106         * m4/round.m4: Also use our substitute if we cannot find round in
30107         any library, even if it is declared.
30108         * m4/roundf.m4: Likewise for roundf.
30109         * m4/roundl.m4: Likewise for roundl.
30110         * lib/math.in.h: Undefine roundf, round, roundl before defining
30111         their replacements, to allow for hypothetical systems where these
30112         may be defined as macros but not available in libraries.
30113
30114 2007-10-27  Bruno Haible  <bruno@clisp.org>
30115
30116         * doc/gnulib.texi: Invoke @firstparagraphindent.
30117         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30118         changes in gnulib.
30119         (Source changes): New section.
30120
30121 2007-10-26  Bruno Haible  <bruno@clisp.org>
30122
30123         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30124         borrowed from autoconf.
30125
30126 2007-10-26  Bruno Haible  <bruno@clisp.org>
30127
30128         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30129         strerror returned the empty string. Needed on HP-UX 11.00.
30130
30131 2007-10-24  Micah Cowan  <micah@cowan.name>
30132
30133         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30134         * build-aux/bootstrap: Remove support for now-unnecessary option,
30135         --cvs-user, and envvars CVS_USER, CVS_RSH.
30136
30137 2007-10-24  Jim Meyering  <meyering@redhat.com>
30138
30139         Avoid diagnostics from sha1sum when there is no cached checksum.
30140         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30141         if the po.s1 file hasn't been created yet.
30142
30143         * build-aux/bootstrap: Sync from coreutils:
30144         2007-10-24  Jim Meyering  <meyering@redhat.com>
30145         Get gnulib from the git repository, not from an obsolete cvs one.
30146         * build-aux/bootstrap: Suggestion from Micah Cowan.
30147         2007-10-04  Jim Meyering  <jim@meyering.net>
30148         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30149         (update_po_files): Work also when there are no .po files in po/.
30150
30151 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30152
30153         * README: Append ".git" to git and cg examples.
30154         Problem reported by Benoit Sigoure.
30155
30156 2007-10-23  Micah Cowan  <micah@cowan.name>
30157
30158         * users.txt: Add wget.
30159
30160 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30161
30162         Fix linking of some unistdio tests on FreeBSD.
30163         * modules/unistdio/u16-vsnprintf-tests
30164         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30165         * modules/unistdio/u16-vsprintf-tests
30166         (test_u16_vsnprintf1_LDADD): Likewise.
30167         * modules/unistdio/u32-vsnprintf-tests
30168         (test_u32_vsnprintf1_LDADD): Likewise.
30169         * modules/unistdio/u32-vsprintf-tests
30170         (test_u32_vsprintf1_LDADD): Likewise.
30171         * modules/unistdio/u8-vsnprintf-tests
30172         (test_u8_vsnprintf1_LDADD): Likewise.
30173         * modules/unistdio/u8-vsprintf-tests
30174         (test_u8_vsprintf1_LDADD): Likewise.
30175         * modules/unistdio/ulc-vsnprintf-tests
30176         (test_ulc_vsnprintf1_LDADD): Likewise.
30177         * modules/unistdio/ulc-vsprintf-tests
30178         (test_ulc_vsprintf1_LDADD): Likewise.
30179
30180         Fix linking of some uniconv tests on FreeBSD.
30181         * modules/uniconv/u16-conv-from-enc-tests
30182         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30183         * modules/uniconv/u16-conv-to-enc-tests
30184         (test_u16_conv_to_enc_LDADD): Likewise.
30185         * modules/uniconv/u16-strconv-from-enc-tests
30186         (test_u16_strconv_from_enc_LDADD): Likewise.
30187         * modules/uniconv/u16-strconv-to-enc-tests
30188         (test_u16_strconv_to_enc_LDADD): Likewise.
30189         * modules/uniconv/u32-conv-from-enc-tests
30190         (test_u32_conv_from_enc_LDADD): Likewise.
30191         * modules/uniconv/u32-conv-to-enc-tests
30192         (test_u32_conv_to_enc_LDADD): Likewise.
30193         * modules/uniconv/u32-strconv-from-enc-tests
30194         (test_u32_strconv_from_enc_LDADD): Likewise.
30195         * modules/uniconv/u32-strconv-to-enc-tests
30196         (test_u32_strconv_to_enc_LDADD): Likewise.
30197         * modules/uniconv/u8-conv-from-enc-tests
30198         (test_u8_conv_from_enc_LDADD): Likewise.
30199         * modules/uniconv/u8-conv-to-enc-tests
30200         (test_u8_conv_to_enc_LDADD): Likewise.
30201         * modules/uniconv/u8-strconv-from-enc-tests
30202         (test_u8_strconv_from_enc_LDADD): Likewise.
30203         * modules/uniconv/u8-strconv-to-enc-tests
30204         (test_u8_strconv_to_enc_LDADD): Likewise.
30205
30206 2007-10-22  Bruno Haible  <bruno@clisp.org>
30207
30208         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30209         size.
30210
30211 2007-10-22  Eric Blake  <ebb9@byu.net>
30212
30213         Tweak x*printf documentation.
30214         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30215         variable name and comments.
30216         Suggested by Bruno Haible.
30217
30218 2007-10-22  Bruno Haible  <bruno@clisp.org>
30219
30220         * lib/acl.c (copy_acl): Fix file name in comment.
30221
30222 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30223
30224         Fix Tru64 problem with stdbool.h.
30225         * lib/stdbool.in.h (false, true):
30226         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30227         Don't declare as an enum in this situation; it runs afoul of Tru64.
30228         Problem reported by Steven M. Schweda in
30229         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30230
30231 2007-10-22  Eric Blake  <ebb9@byu.net>
30232
30233         Also wrap vf?printf.
30234         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30235         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30236         (xvprintf, xvfprintf): New functions.
30237
30238 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30239
30240         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30241         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30242
30243         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30244         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30245
30246 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30247
30248         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30249         by Bruno Haible.
30250
30251 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30252
30253         * lib/getloadavg.c
30254         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30255         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30256
30257         * tests/test-i-ring.c: Work for C89.
30258
30259 2007-10-22  Bruno Haible  <bruno@clisp.org>
30260
30261         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30262         -1u, in preprocessor expression, so that we don't test for the bug
30263         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30265
30266 2007-10-22  Eric Blake  <ebb9@byu.net>
30267
30268         * tests/test-yesno.sh: Silence stderr during test.
30269
30270 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30271
30272         * modules/crypto/gc-camellia: New file.
30273
30274         * m4/gc-camellia.m4: New file.
30275
30276         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30277
30278         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30279
30280 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30281
30282         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30283         --help to stdout.  Reported by sms@antinode.org (Steven
30284         M. Schweda).
30285
30286 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30287
30288         * users.txt: Fix link to libksba.
30289
30290 2007-10-21  Ben Pfaff  <blp@gnu.org>
30291
30292         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30293         round.c roundf implementation that depends on floorf and ceilf to
30294         be tested unconditionally.
30295
30296 2007-10-21  Ben Pfaff  <blp@gnu.org>
30297
30298         * m4/check-libm-func.m4: Removed.
30299         * m4/check-math-lib.m4: New file.
30300         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30301         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30302         definition and lack of AC_LIBOBJ([roundf]).
30303         * m4/roundl.m4: Ditto, and similarly for roundl.
30304         * modules/round: Reference new m4 file.
30305         * modules/roundf: Ditto.
30306         * modules/roundl: Ditto.
30307         * tests/test-round2.c (main): Use ROUND instead of round.
30308         Bug report from Bruno Haible.
30309
30310 2007-10-21  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30313         context.
30314
30315 2007-10-21  Bruno Haible  <bruno@clisp.org>
30316
30317         * tests/test-wcwidth.c (main): Allow negative result for some control
30318         characters.
30319
30320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30321         Needed on OSF/1 5.1.
30322
30323 2007-10-21  Bruno Haible  <bruno@clisp.org>
30324
30325         * tests/test-floorf1.c: Include isnanf.h.
30326         (main): Use isnanf() instead of isnan().
30327         * tests/test-ceilf1.c: Include isnanf.h.
30328         (main): Use isnanf() instead of isnan().
30329         * tests/test-truncf1.c: Include isnanf.h.
30330         (main): Use isnanf() instead of isnan().
30331         * tests/test-roundf1.c: Include isnanf.h.
30332         (main): Use isnanf() instead of isnan().
30333
30334 2007-10-21  Eric Blake  <ebb9@byu.net>
30335
30336         * users.txt: Update URL for m4.
30337
30338 2007-10-21  Bruno Haible  <bruno@clisp.org>
30339
30340         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30341
30342 2007-10-21  Bruno Haible  <bruno@clisp.org>
30343
30344         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30345         Git's management files if the CVS files are not present.
30346
30347 2007-10-20  Bruno Haible  <bruno@clisp.org>
30348
30349         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30350         gcc-3.4.x.
30351
30352 2007-10-20  Ben Pfaff  <blp@gnu.org>
30353
30354         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30355         implementations.
30356         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30357         * lib/round.c: New file.
30358         * lib/roundf.c: New file.
30359         * lib/roundl.c: New file.
30360         * m4/round.m4: New file.
30361         * m4/roundf.m4: New file.
30362         * m4/roundl.m4: New file.
30363         * m4/check-libm-func-m4: New file.
30364         * modules/math: Replace round, roundf, roundl related @VARS@ in
30365         math.in.h.
30366         * modules/round: New file.
30367         * modules/round-tests: New file.
30368         * modules/roundf: New file.
30369         * modules/roundf-tests: New file.
30370         * modules/roundl: New file.
30371         * modules/roundl-tests: New file.
30372         * tests/test-round1.c: New file.
30373         * tests/test-round2.c: New file.
30374         * tests/test-roundf1.c: New file.
30375         * tests/test-roundf2.c: New file.
30376         * tests/test-roundl.c: New file.
30377         * doc/functions/round.texi: Mention round module.
30378         * doc/functions/roundf.texi: Mention roundf module.
30379         * doc/functions/roundl.texi: Mention roundl module.
30380         * MODULES.html.sh: Mention new modules.
30381         Thanks to Bruno Haible for suggestions.
30382
30383 2007-10-20  Jim Meyering  <meyering@redhat.com>
30384
30385         * lib/xprintf.c: Include <config.h> unconditionally.
30386
30387         Change xprintf's license to GPL.
30388         * modules/xprintf (License): s/LGPL/GPL/, since this module
30389         depends on modules (exit and exitfail) which are GPL.
30390         Suggestion from Bruno Haible.
30391
30392         xprintf fixes.
30393         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30394         Use a clearer diagnostic.
30395         Patch from Bruno Haible.
30396
30397 2007-10-20  Bruno Haible  <bruno@clisp.org>
30398
30399         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30400         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30402
30403 2007-10-20  Bruno Haible  <bruno@clisp.org>
30404
30405         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30406         precision in the comparison result > x - 1 or similar.
30407         * tests/test-ceilf2.c (correct_result_p): Likewise.
30408         * tests/test-truncf2.c (correct_result_p): Likewise.
30409         * tests/test-trunc2.c (correct_result_p): Likewise.
30410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30411
30412 2007-10-20  Bruno Haible  <bruno@clisp.org>
30413
30414         * modules/ceil: New file.
30415         * m4/ceil.m4: New file.
30416         * doc/functions/ceil.texi: Mention the 'ceil' module.
30417
30418 2007-10-20  Bruno Haible  <bruno@clisp.org>
30419
30420         * modules/floor: New file.
30421         * m4/floor.m4: New file.
30422         * doc/functions/floor.texi: Mention the 'floor' module.
30423
30424 2007-10-20  Bruno Haible  <bruno@clisp.org>
30425
30426         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30427         of %a.
30428         * modules/floorf-tests (Depends-on): Likewise.
30429         * modules/truncf-tests (Depends-on): Likewise.
30430         * modules/trunc-tests (Depends-on): Likewise.
30431         Reported by Ben Pfaff.
30432
30433 2007-10-19  Jim Meyering  <meyering@redhat.com>
30434
30435         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30436         Don't bother testing specific errno values.  Just test ferror.
30437
30438         New module: xprintf
30439         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30440
30441 2007-10-19  Bruno Haible  <bruno@clisp.org>
30442
30443         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30444         syntax.
30445         * modules/javaexec (Makefile.am): Likewise.
30446         * modules/relocatable-prog (Makefile.am): Likewise.
30447         Suggested by Jim Meyering.
30448
30449 2007-10-18  Bruno Haible  <bruno@clisp.org>
30450
30451         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30452         Reported by Jim Meyering.
30453
30454 2007-10-18  Eric Blake  <ebb9@byu.net>
30455
30456         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30457
30458 2007-10-18  Bruno Haible  <bruno@clisp.org>
30459
30460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30461         the format string into writable memory. Needed in Fortify conditions.
30462
30463 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30464             Bruno Haible  <bruno@clisp.org>
30465
30466         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30467         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30468         * modules/trim (Depends-on): Add mbchar.
30469         (configure.ac): Add gl_FUNC_MBRTOWC.
30470         (Makefile.am): Augment lib_SOURCES.
30471
30472 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30473
30474         Modify glob.c to use fstatat and dirfd, to simplify it.
30475         Suggested by Eric Blake.
30476         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30477         Don't include <stdbool.h>; not used.
30478         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30479         (link_exists_p): Simplify implementation, since we can now assume
30480         dirfd and fstatat.
30481         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30482
30483 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30484
30485         * gnulib-tool (func_get_dependencies): Fix sed script to
30486         match only tests.
30487
30488 2007-10-17  Bruno Haible  <bruno@clisp.org>
30489
30490         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30491         allow locale names without encoding suffix.
30492         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30493         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30494
30495 2007-10-16  Bruno Haible  <bruno@clisp.org>
30496
30497         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30498         * lib/getgroups.c (getgroups): Likewise.
30499         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30500
30501 2007-10-16  Bruno Haible  <bruno@clisp.org>
30502
30503         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30504         * modules/malloc-posix (License): Likewise.
30505         * modules/realloc-posix (License): Likewise.
30506         * modules/calloc-posix (License): Likewise.
30507         * modules/intprops (License): Change from GPL to LGPL, with
30508         Paul Eggert's approval.
30509
30510 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30511
30512         Merge glibc changes into lib/glob.c.
30513
30514         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30515         2007-10-15 04:59:03 UTC.  Here are the changes:
30516
30517         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30518
30519         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30520
30521         * lib/glob.c: Add some branch prediction throughout.
30522
30523         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30524
30525         [BZ #5103]
30526         * lib/glob.c (glob): Recognize patterns starting \/.
30527
30528         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30529
30530         [BZ #3996]
30531         * lib/glob.c (attribute_hidden): Define if not defined.
30532         (glob): Unescape dirname, filename or username when needed and not
30533         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30534         is NULL.  Handle unescaped [ in pattern without closing ].
30535         Don't pass GLOB_CHECK down to recursive glob for directories.
30536         (__glob_pattern_type): New function.
30537         (__glob_pattern_p): Implement using __glob_pattern_type.
30538         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30539         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30540         Remove unreachable code.
30541
30542         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30543
30544         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30545         explain why there are no leaks.
30546
30547         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30548
30549         [BZ #3253]
30550         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30551         time, rather allocate increasingly bigger arrays of pointers, if
30552         possible with alloca, if too large with malloc.
30553
30554 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30555
30556         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30557         Problem reported by H.Merijn Brand in
30558         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30559         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30560         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30561
30562 2007-10-15  Bruno Haible  <bruno@clisp.org>
30563
30564         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30565         with explicit rpl_ prefix.
30566         * lib/fopen.c (fopen): Likewise.
30567         * lib/freopen.c (freopen): Likewise.
30568         * lib/iconv.c (iconv): Likewise.
30569         * lib/iconv_close.c (iconv_close): Likewise.
30570
30571 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30572
30573         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30574
30575 2007-10-15  Bruno Haible  <bruno@clisp.org>
30576
30577         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30578         <stddef.h> instead of <stdlib.h> since we only need NULL.
30579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30580
30581 2007-10-15  Bruno Haible  <bruno@clisp.org>
30582
30583         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30584         Replace paragraph talking about LIBOBJS.
30585         Reported by Colin Watson <cjwatson@debian.org>.
30586
30587 2007-10-15  Bruno Haible  <bruno@clisp.org>
30588
30589         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30590         <stdlib.h> before using NULL.
30591
30592 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30593
30594         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30595         Reported by Albert Chin <china@thewrittenword.com>.
30596
30597 2007-10-14  Bruno Haible  <bruno@clisp.org>
30598
30599         * modules/iconv_open-utf-tests: New file.
30600         * tests/test-iconv-utf.c: New file.
30601
30602         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30603         * modules/iconv_open-utf: New file.
30604         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30605         (iconv, iconv_close): New declarations.
30606         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30607         be defined.
30608         (iconv_open): Add special handling of conversion between UTF-8 and
30609         UTF-{16,32}{BE,LE}.
30610         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30611         * lib/iconv_close.c: New file.
30612         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30613         gl_FUNC_ICONV_OPEN.
30614         (gl_FUNC_ICONV_OPEN): Use it.
30615         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30616         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30617         and REPLACE_ICONV_UTF.
30618         * modules/iconv_open (Depends-on): Add c-strcase.
30619         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30620         ICONV_CONST.
30621         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30622
30623 2007-10-13  Albert Chin  <china@thewrittenword.com>
30624             Bruno Haible  <bruno@clisp.org>
30625
30626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30627         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30628
30629 2007-10-13  Bruno Haible  <bruno@clisp.org>
30630
30631         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30632         defined, use the ISO C99 inline semantics.
30633         * lib/argp.h (ARGP_EI): Likewise.
30634
30635 2007-10-13  Bruno Haible  <bruno@clisp.org>
30636
30637         Handle 'inline' change in gcc 4.3.0.
30638         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30639         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30640         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30641         argp_fmtstream_point): Disable 'extern' declaration if the function
30642         definition is going to be provided inline.
30643         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30644         semantics, not the ISO C99 inline semantics.
30645         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30646         'extern' declaration if the function definition is going to be provided
30647         inline.
30648         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30649         the GNU C inline semantics, not the ISO C99 inline semantics. With
30650         GCC 4.2, avoid a warning.
30651
30652 2007-10-13  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/freading.h (freading): Enable the use of __freading for
30655         glibc >= 2.7.
30656         * lib/freading.c (freading): Likewise.
30657
30658 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30659
30660         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30661         "warning: C99 inline functions are not supported; using GNU89".
30662
30663 2007-10-12  Bruno Haible  <bruno@clisp.org>
30664
30665         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30666         of 2.
30667         * tests/test-ceilf2.c: New file.
30668         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30669
30670         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30671         * modules/ceilf-tests: Update.
30672
30673 2007-10-12  Bruno Haible  <bruno@clisp.org>
30674
30675         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30676         of 2.
30677         * tests/test-floorf2.c: New file.
30678         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30679
30680         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30681         * modules/floorf-tests: Update.
30682
30683 2007-10-12  Bruno Haible  <bruno@clisp.org>
30684
30685         * tests/test-trunc2.c: New file.
30686         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30687
30688         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30689         * modules/trunc-tests: Update.
30690
30691 2007-10-12  Bruno Haible  <bruno@clisp.org>
30692
30693         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30694         of 2.
30695         * tests/test-truncf2.c: New file.
30696         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30697
30698         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30699         * modules/truncf-tests: Update.
30700
30701 2007-10-11  Eric Blake  <ebb9@byu.net>
30702
30703         Don't claim strerror is broken on Interix.
30704         * doc/functions/strerror.texi (strerror): Known broken systems are
30705         now Solaris 8, and not Interix.
30706         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30707         Interix on cross-compile.
30708         Reported by Martin Koeppe in
30709         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30710
30711 2007-10-11  Bruno Haible  <bruno@clisp.org>
30712
30713         * modules/i-ring-tests: New file.
30714         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30715         instead of assert.
30716
30717 2007-10-11  Bruno Haible  <bruno@clisp.org>
30718
30719         * modules/filenamecat-tests: New file.
30720         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30721         * lib/filenamecat.c: Remove test code.
30722
30723 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30724
30725         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30726
30727         * lib/strerror.c: Include <string.h> always, to test interface,
30728         and to remove the need for the dummy.
30729         Include intprops.h to compute width instead of doing it ourselves
30730         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30731         (strerror): Define it to return NULL if there's no system strerror.
30732         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30733         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30734         ancient pre-strerror Unix systems well any more.  Saying "unknown
30735         system error" is enough.
30736         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30737         simpler strerror.c implementation.
30738         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30739         Simplify the tests to reflect the simpler strerror implementation.
30740         * modules/strerror (Depends-on): Add intprops.
30741
30742 2007-10-09  Eric Blake  <ebb9@byu.net>
30743
30744         Silence test-fpending.
30745         * modules/fpending-tests (Files): Add wrapper script.
30746         * tests/test-fpending.sh: New file.
30747
30748 2007-10-09  Bruno Haible  <bruno@clisp.org>
30749
30750         * MODULES.html.sh (func_module): Don't create a hyperlink for
30751         function names like 'printf_frexp'.
30752         (Misc): Add crc, memxor.
30753         (Characteristics of floating types): New section.
30754         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30755         isnanf-nolibm, signbit, trunc, truncf, truncl.
30756         (Enhancements for ISO C 99 functions): New subsection Input/output.
30757         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30758         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30759         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30760         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30761         (Enhancements for POSIX:2001 functions): Add chdir-long.
30762         (File system functions): Add areadlink, chdir-safer, read-file.
30763         Remove cycle-check.
30764         (File system as inode set): New section.
30765         (Date and time): Add gethrxtime.
30766         (Multithreading): Add openmp.
30767         (Internationalization functions): Add localename.
30768         (Unicode string functions): Add unistr/u*-mbsnlen.
30769         (Support for maintaining and releasing projects): Add git-version-gen.
30770         (Lone files): Remove directories.
30771
30772 2007-10-08  Ben Pfaff  <blp@gnu.org>
30773
30774         * lib/xmalloca.h: Fix typo in comment.
30775
30776 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30777
30778         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30779         when avoiding problems with integer overflow.  Use a portable test
30780         instead.
30781
30782 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30783
30784         * modules/dummy (License): Change to LGPLv2+.
30785         * modules/float (License): Likewise
30786         * modules/realloc (License): Likewise
30787         * modules/stdlib (License): Likewise
30788
30789 2007-10-07  Bruno Haible  <bruno@clisp.org>
30790
30791         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30792         * floor.c (TWO_MANT_DIG): Likewise.
30793         * ceil.c (TWO_MANT_DIG): Likewise.
30794         Reported by Ben Pfaff.
30795
30796 2007-10-07  Bruno Haible  <bruno@clisp.org>
30797
30798         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30799         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30800         * lib/frexp.c (FUNC): Likewise.
30801         * lib/printf-frexp.h (printf_frexp): Likewise.
30802         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30803         * lib/printf-frexp.c (FUNC): Likewise.
30804         Suggested by Jim Meyering.
30805
30806 2007-10-07  Jim Meyering  <meyering@redhat.com>
30807
30808         Make xnanosleep's integer overflow test more robust.
30809         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30810         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30811
30812 2007-10-07  Bruno Haible  <bruno@clisp.org>
30813
30814         * NEWS: Mention the license change.
30815
30816         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30817         abbreviations in the modules files.
30818
30819         Change copyright notice from GPLv2+ to GPLv3+.
30820         * README: Change copyright notice.
30821         * MODULES.html.sh: Likewise.
30822         * build-aux/bootstrap.conf: Likewise.
30823         * build-aux/config.libpath: Likewise.
30824         * build-aux/csharpcomp.sh.in: Likewise.
30825         * build-aux/csharpexec.sh.in: Likewise.
30826         * build-aux/install-reloc: Likewise.
30827         * build-aux/javacomp.sh.in: Likewise.
30828         * build-aux/javaexec.sh.in: Likewise.
30829         * build-aux/ldd.sh.in: Likewise.
30830         * build-aux/reloc-ldflags: Likewise.
30831         * build-aux/relocatable.sh.in: Likewise.
30832         * build-aux/x-to-1.in: Likewise.
30833         * check-module: Likewise.
30834         * config/srclistvars.sh: Likewise.
30835         * gnulib-tool: Likewise.
30836         * lib/acl-internal.h: Likewise.
30837         * lib/acl.c: Likewise.
30838         * lib/acl.h: Likewise.
30839         * lib/acl_entries.c: Likewise.
30840         * lib/areadlink-with-size.c: Likewise.
30841         * lib/areadlink.c: Likewise.
30842         * lib/areadlink.h: Likewise.
30843         * lib/argmatch.c: Likewise.
30844         * lib/argmatch.h: Likewise.
30845         * lib/argp-ba.c: Likewise.
30846         * lib/argp-eexst.c: Likewise.
30847         * lib/argp-fmtstream.c: Likewise.
30848         * lib/argp-fmtstream.h: Likewise.
30849         * lib/argp-fs-xinl.c: Likewise.
30850         * lib/argp-help.c: Likewise.
30851         * lib/argp-namefrob.h: Likewise.
30852         * lib/argp-parse.c: Likewise.
30853         * lib/argp-pin.c: Likewise.
30854         * lib/argp-pv.c: Likewise.
30855         * lib/argp-pvh.c: Likewise.
30856         * lib/argp-xinl.c: Likewise.
30857         * lib/argp.h: Likewise.
30858         * lib/at-func.c: Likewise.
30859         * lib/atanl.c: Likewise.
30860         * lib/backupfile.c: Likewise.
30861         * lib/backupfile.h: Likewise.
30862         * lib/basename.c: Likewise.
30863         * lib/binary-io.h: Likewise.
30864         * lib/byteswap.in.h: Likewise.
30865         * lib/c-stack.c: Likewise.
30866         * lib/c-stack.h: Likewise.
30867         * lib/c-strcasestr.c: Likewise.
30868         * lib/c-strcasestr.h: Likewise.
30869         * lib/c-strstr.c: Likewise.
30870         * lib/c-strstr.h: Likewise.
30871         * lib/c-strtod.c: Likewise.
30872         * lib/calloc.c: Likewise.
30873         * lib/canon-host.c: Likewise.
30874         * lib/canon-host.h: Likewise.
30875         * lib/canonicalize-lgpl.c: Likewise.
30876         * lib/canonicalize.c: Likewise.
30877         * lib/canonicalize.h: Likewise.
30878         * lib/ceil.c: Likewise.
30879         * lib/ceilf.c: Likewise.
30880         * lib/ceill.c: Likewise.
30881         * lib/chdir-long.c: Likewise.
30882         * lib/chdir-long.h: Likewise.
30883         * lib/chdir-safer.c: Likewise.
30884         * lib/chdir-safer.h: Likewise.
30885         * lib/chown.c: Likewise.
30886         * lib/classpath.c: Likewise.
30887         * lib/classpath.h: Likewise.
30888         * lib/clean-temp.c: Likewise.
30889         * lib/clean-temp.h: Likewise.
30890         * lib/cloexec.c: Likewise.
30891         * lib/close-stream.c: Likewise.
30892         * lib/closein.c: Likewise.
30893         * lib/closein.h: Likewise.
30894         * lib/closeout.c: Likewise.
30895         * lib/closeout.h: Likewise.
30896         * lib/concat-filename.c: Likewise.
30897         * lib/copy-file.c: Likewise.
30898         * lib/copy-file.h: Likewise.
30899         * lib/count-one-bits.h: Likewise.
30900         * lib/crc.c: Likewise.
30901         * lib/crc.h: Likewise.
30902         * lib/creat-safer.c: Likewise.
30903         * lib/csharpcomp.c: Likewise.
30904         * lib/csharpcomp.h: Likewise.
30905         * lib/csharpexec.c: Likewise.
30906         * lib/csharpexec.h: Likewise.
30907         * lib/cycle-check.c: Likewise.
30908         * lib/cycle-check.h: Likewise.
30909         * lib/diacrit.c: Likewise.
30910         * lib/diacrit.h: Likewise.
30911         * lib/diffseq.h: Likewise.
30912         * lib/dirchownmod.c: Likewise.
30913         * lib/dirent.in.h: Likewise.
30914         * lib/dirfd.c: Likewise.
30915         * lib/dirfd.h: Likewise.
30916         * lib/dirname.c: Likewise.
30917         * lib/dirname.h: Likewise.
30918         * lib/dummy.c: Likewise.
30919         * lib/dup-safer.c: Likewise.
30920         * lib/dup2.c: Likewise.
30921         * lib/eealloc.h: Likewise.
30922         * lib/error.c: Likewise.
30923         * lib/error.h: Likewise.
30924         * lib/euidaccess.c: Likewise.
30925         * lib/exclude.c: Likewise.
30926         * lib/exclude.h: Likewise.
30927         * lib/execute.c: Likewise.
30928         * lib/execute.h: Likewise.
30929         * lib/exitfail.c: Likewise.
30930         * lib/exitfail.h: Likewise.
30931         * lib/expl.c: Likewise.
30932         * lib/fatal-signal.c: Likewise.
30933         * lib/fatal-signal.h: Likewise.
30934         * lib/fbufmode.c: Likewise.
30935         * lib/fbufmode.h: Likewise.
30936         * lib/fchdir.c: Likewise.
30937         * lib/fchmodat.c: Likewise.
30938         * lib/fchownat.c: Likewise.
30939         * lib/fcntl--.h: Likewise.
30940         * lib/fcntl-safer.h: Likewise.
30941         * lib/fcntl.in.h: Likewise.
30942         * lib/fd-safer.c: Likewise.
30943         * lib/fflush.c: Likewise.
30944         * lib/file-has-acl.c: Likewise.
30945         * lib/file-set.c: Likewise.
30946         * lib/file-type.c: Likewise.
30947         * lib/file-type.h: Likewise.
30948         * lib/fileblocks.c: Likewise.
30949         * lib/filemode.c: Likewise.
30950         * lib/filemode.h: Likewise.
30951         * lib/filename.h: Likewise.
30952         * lib/filenamecat.c: Likewise.
30953         * lib/filenamecat.h: Likewise.
30954         * lib/findprog.c: Likewise.
30955         * lib/findprog.h: Likewise.
30956         * lib/float.in.h: Likewise.
30957         * lib/floor.c: Likewise.
30958         * lib/floorf.c: Likewise.
30959         * lib/floorl.c: Likewise.
30960         * lib/fopen-safer.c: Likewise.
30961         * lib/fopen.c: Likewise.
30962         * lib/fpending.c: Likewise.
30963         * lib/fpending.h: Likewise.
30964         * lib/fprintf.c: Likewise.
30965         * lib/fprintftime.h: Likewise.
30966         * lib/fpucw.h: Likewise.
30967         * lib/fpurge.c: Likewise.
30968         * lib/fpurge.h: Likewise.
30969         * lib/freadable.c: Likewise.
30970         * lib/freadable.h: Likewise.
30971         * lib/freadahead.c: Likewise.
30972         * lib/freadahead.h: Likewise.
30973         * lib/freading.c: Likewise.
30974         * lib/freading.h: Likewise.
30975         * lib/free.c: Likewise.
30976         * lib/freopen.c: Likewise.
30977         * lib/frexp.c: Likewise.
30978         * lib/frexpl.c: Likewise.
30979         * lib/fseek.c: Likewise.
30980         * lib/fseterr.c: Likewise.
30981         * lib/fseterr.h: Likewise.
30982         * lib/fstatat.c: Likewise.
30983         * lib/fstrcmp.c: Likewise.
30984         * lib/fstrcmp.h: Likewise.
30985         * lib/fsusage.c: Likewise.
30986         * lib/fsusage.h: Likewise.
30987         * lib/ftell.c: Likewise.
30988         * lib/ftello.c: Likewise.
30989         * lib/fts-cycle.c: Likewise.
30990         * lib/fts.c: Likewise.
30991         * lib/fts_.h: Likewise.
30992         * lib/full-read.c: Likewise.
30993         * lib/full-read.h: Likewise.
30994         * lib/full-write.c: Likewise.
30995         * lib/full-write.h: Likewise.
30996         * lib/fwritable.c: Likewise.
30997         * lib/fwritable.h: Likewise.
30998         * lib/fwriteerror.c: Likewise.
30999         * lib/fwriteerror.h: Likewise.
31000         * lib/fwriting.c: Likewise.
31001         * lib/fwriting.h: Likewise.
31002         * lib/gcd.c: Likewise.
31003         * lib/gcd.h: Likewise.
31004         * lib/getcwd.c: Likewise.
31005         * lib/getdate.h: Likewise.
31006         * lib/getdate.y: Likewise.
31007         * lib/getdomainname.c: Likewise.
31008         * lib/getdomainname.h: Likewise.
31009         * lib/getgroups.c: Likewise.
31010         * lib/gethostname.c: Likewise.
31011         * lib/gethrxtime.c: Likewise.
31012         * lib/gethrxtime.h: Likewise.
31013         * lib/getloadavg.c: Likewise.
31014         * lib/getndelim2.c: Likewise.
31015         * lib/getndelim2.h: Likewise.
31016         * lib/getnline.c: Likewise.
31017         * lib/getnline.h: Likewise.
31018         * lib/getopt.c: Likewise.
31019         * lib/getopt.in.h: Likewise.
31020         * lib/getopt1.c: Likewise.
31021         * lib/getopt_int.h: Likewise.
31022         * lib/getpagesize.h: Likewise.
31023         * lib/getsubopt.c: Likewise.
31024         * lib/gettime.c: Likewise.
31025         * lib/getugroups.c: Likewise.
31026         * lib/getugroups.h: Likewise.
31027         * lib/getusershell.c: Likewise.
31028         * lib/gl_anyavltree_list1.h: Likewise.
31029         * lib/gl_anyavltree_list2.h: Likewise.
31030         * lib/gl_anyhash_list1.h: Likewise.
31031         * lib/gl_anyhash_list2.h: Likewise.
31032         * lib/gl_anylinked_list1.h: Likewise.
31033         * lib/gl_anylinked_list2.h: Likewise.
31034         * lib/gl_anyrbtree_list1.h: Likewise.
31035         * lib/gl_anyrbtree_list2.h: Likewise.
31036         * lib/gl_anytree_list1.h: Likewise.
31037         * lib/gl_anytree_list2.h: Likewise.
31038         * lib/gl_anytree_oset.h: Likewise.
31039         * lib/gl_anytreehash_list1.h: Likewise.
31040         * lib/gl_anytreehash_list2.h: Likewise.
31041         * lib/gl_array_list.c: Likewise.
31042         * lib/gl_array_list.h: Likewise.
31043         * lib/gl_array_oset.c: Likewise.
31044         * lib/gl_array_oset.h: Likewise.
31045         * lib/gl_avltree_list.c: Likewise.
31046         * lib/gl_avltree_list.h: Likewise.
31047         * lib/gl_avltree_oset.c: Likewise.
31048         * lib/gl_avltree_oset.h: Likewise.
31049         * lib/gl_avltreehash_list.c: Likewise.
31050         * lib/gl_avltreehash_list.h: Likewise.
31051         * lib/gl_carray_list.c: Likewise.
31052         * lib/gl_carray_list.h: Likewise.
31053         * lib/gl_linked_list.c: Likewise.
31054         * lib/gl_linked_list.h: Likewise.
31055         * lib/gl_linkedhash_list.c: Likewise.
31056         * lib/gl_linkedhash_list.h: Likewise.
31057         * lib/gl_list.c: Likewise.
31058         * lib/gl_list.h: Likewise.
31059         * lib/gl_oset.c: Likewise.
31060         * lib/gl_oset.h: Likewise.
31061         * lib/gl_rbtree_list.c: Likewise.
31062         * lib/gl_rbtree_list.h: Likewise.
31063         * lib/gl_rbtree_oset.c: Likewise.
31064         * lib/gl_rbtree_oset.h: Likewise.
31065         * lib/gl_rbtreehash_list.c: Likewise.
31066         * lib/gl_rbtreehash_list.h: Likewise.
31067         * lib/gl_sublist.c: Likewise.
31068         * lib/gl_sublist.h: Likewise.
31069         * lib/group-member.c: Likewise.
31070         * lib/group-member.h: Likewise.
31071         * lib/hard-locale.c: Likewise.
31072         * lib/hard-locale.h: Likewise.
31073         * lib/hash-pjw.c: Likewise.
31074         * lib/hash-pjw.h: Likewise.
31075         * lib/hash-triple.c: Likewise.
31076         * lib/hash.c: Likewise.
31077         * lib/hash.h: Likewise.
31078         * lib/human.c: Likewise.
31079         * lib/human.h: Likewise.
31080         * lib/i-ring.c: Likewise.
31081         * lib/i-ring.h: Likewise.
31082         * lib/idcache.c: Likewise.
31083         * lib/imaxabs.c: Likewise.
31084         * lib/imaxdiv.c: Likewise.
31085         * lib/inet_pton.c: Likewise.
31086         * lib/inet_pton.h: Likewise.
31087         * lib/intprops.h: Likewise.
31088         * lib/inttostr.c: Likewise.
31089         * lib/inttostr.h: Likewise.
31090         * lib/inttypes.in.h: Likewise.
31091         * lib/isapipe.c: Likewise.
31092         * lib/isdir.c: Likewise.
31093         * lib/isnan.c: Likewise.
31094         * lib/isnan.h: Likewise.
31095         * lib/isnanf.c: Likewise.
31096         * lib/isnanf.h: Likewise.
31097         * lib/isnanl-nolibm.h: Likewise.
31098         * lib/isnanl.c: Likewise.
31099         * lib/isnanl.h: Likewise.
31100         * lib/javacomp.c: Likewise.
31101         * lib/javacomp.h: Likewise.
31102         * lib/javaexec.c: Likewise.
31103         * lib/javaexec.h: Likewise.
31104         * lib/javaversion.c: Likewise.
31105         * lib/javaversion.h: Likewise.
31106         * lib/javaversion.java: Likewise.
31107         * lib/lbrkprop.h: Likewise.
31108         * lib/lchmod.h: Likewise.
31109         * lib/lchown.c: Likewise.
31110         * lib/ldexpl.c: Likewise.
31111         * lib/linebreak.c: Likewise.
31112         * lib/linebreak.h: Likewise.
31113         * lib/linebuffer.c: Likewise.
31114         * lib/linebuffer.h: Likewise.
31115         * lib/locale.in.h: Likewise.
31116         * lib/logl.c: Likewise.
31117         * lib/long-options.c: Likewise.
31118         * lib/long-options.h: Likewise.
31119         * lib/lstat.c: Likewise.
31120         * lib/lstat.h: Likewise.
31121         * lib/math.in.h: Likewise.
31122         * lib/mbchar.c: Likewise.
31123         * lib/mbchar.h: Likewise.
31124         * lib/mbfile.h: Likewise.
31125         * lib/mbiter.h: Likewise.
31126         * lib/mbscasecmp.c: Likewise.
31127         * lib/mbscasestr.c: Likewise.
31128         * lib/mbschr.c: Likewise.
31129         * lib/mbscspn.c: Likewise.
31130         * lib/mbslen.c: Likewise.
31131         * lib/mbsncasecmp.c: Likewise.
31132         * lib/mbsnlen.c: Likewise.
31133         * lib/mbspbrk.c: Likewise.
31134         * lib/mbspcasecmp.c: Likewise.
31135         * lib/mbsrchr.c: Likewise.
31136         * lib/mbssep.c: Likewise.
31137         * lib/mbsspn.c: Likewise.
31138         * lib/mbsstr.c: Likewise.
31139         * lib/mbstok_r.c: Likewise.
31140         * lib/mbswidth.c: Likewise.
31141         * lib/mbswidth.h: Likewise.
31142         * lib/mbuiter.h: Likewise.
31143         * lib/memcasecmp.c: Likewise.
31144         * lib/memcasecmp.h: Likewise.
31145         * lib/memchr.c: Likewise.
31146         * lib/memcmp.c: Likewise.
31147         * lib/memcoll.c: Likewise.
31148         * lib/memcoll.h: Likewise.
31149         * lib/memcpy.c: Likewise.
31150         * lib/memrchr.c: Likewise.
31151         * lib/mkancesdirs.c: Likewise.
31152         * lib/mkdir-p.c: Likewise.
31153         * lib/mkdir-p.h: Likewise.
31154         * lib/mkdir.c: Likewise.
31155         * lib/mkdirat.c: Likewise.
31156         * lib/mkdtemp.c: Likewise.
31157         * lib/mkstemp-safer.c: Likewise.
31158         * lib/mkstemp.c: Likewise.
31159         * lib/modechange.c: Likewise.
31160         * lib/modechange.h: Likewise.
31161         * lib/mountlist.c: Likewise.
31162         * lib/mountlist.h: Likewise.
31163         * lib/mpsort.c: Likewise.
31164         * lib/nanosleep.c: Likewise.
31165         * lib/obstack.c: Likewise.
31166         * lib/obstack.h: Likewise.
31167         * lib/open-safer.c: Likewise.
31168         * lib/open.c: Likewise.
31169         * lib/openat-die.c: Likewise.
31170         * lib/openat-priv.h: Likewise.
31171         * lib/openat-proc.c: Likewise.
31172         * lib/openat.c: Likewise.
31173         * lib/openat.h: Likewise.
31174         * lib/pagealign_alloc.c: Likewise.
31175         * lib/pagealign_alloc.h: Likewise.
31176         * lib/physmem.c: Likewise.
31177         * lib/physmem.h: Likewise.
31178         * lib/pipe-safer.c: Likewise.
31179         * lib/pipe.c: Likewise.
31180         * lib/pipe.h: Likewise.
31181         * lib/posixtm.c: Likewise.
31182         * lib/posixtm.h: Likewise.
31183         * lib/posixver.c: Likewise.
31184         * lib/printf-frexp.c: Likewise.
31185         * lib/printf-frexp.h: Likewise.
31186         * lib/printf-frexpl.c: Likewise.
31187         * lib/printf-frexpl.h: Likewise.
31188         * lib/printf.c: Likewise.
31189         * lib/progname.c: Likewise.
31190         * lib/progname.h: Likewise.
31191         * lib/progreloc.c: Likewise.
31192         * lib/putenv.c: Likewise.
31193         * lib/quote.c: Likewise.
31194         * lib/quote.h: Likewise.
31195         * lib/quotearg.c: Likewise.
31196         * lib/quotearg.h: Likewise.
31197         * lib/raise.c: Likewise.
31198         * lib/readline.c: Likewise.
31199         * lib/readline.h: Likewise.
31200         * lib/readlink.c: Likewise.
31201         * lib/readtokens.c: Likewise.
31202         * lib/readtokens.h: Likewise.
31203         * lib/readtokens0.c: Likewise.
31204         * lib/readtokens0.h: Likewise.
31205         * lib/readutmp.c: Likewise.
31206         * lib/readutmp.h: Likewise.
31207         * lib/realloc.c: Likewise.
31208         * lib/relocwrapper.c: Likewise.
31209         * lib/rename-dest-slash.c: Likewise.
31210         * lib/rename.c: Likewise.
31211         * lib/rmdir.c: Likewise.
31212         * lib/rpmatch.c: Likewise.
31213         * lib/safe-read.c: Likewise.
31214         * lib/safe-read.h: Likewise.
31215         * lib/safe-write.c: Likewise.
31216         * lib/safe-write.h: Likewise.
31217         * lib/same-inode.h: Likewise.
31218         * lib/same.c: Likewise.
31219         * lib/same.h: Likewise.
31220         * lib/save-cwd.c: Likewise.
31221         * lib/save-cwd.h: Likewise.
31222         * lib/savedir.c: Likewise.
31223         * lib/savedir.h: Likewise.
31224         * lib/savewd.c: Likewise.
31225         * lib/savewd.h: Likewise.
31226         * lib/search.in.h: Likewise.
31227         * lib/setenv.c: Likewise.
31228         * lib/setenv.h: Likewise.
31229         * lib/settime.c: Likewise.
31230         * lib/sh-quote.c: Likewise.
31231         * lib/sh-quote.h: Likewise.
31232         * lib/sig2str.c: Likewise.
31233         * lib/sig2str.h: Likewise.
31234         * lib/signal.in.h: Likewise.
31235         * lib/signbitd.c: Likewise.
31236         * lib/signbitf.c: Likewise.
31237         * lib/signbitl.c: Likewise.
31238         * lib/sigprocmask.c: Likewise.
31239         * lib/sincosl.c: Likewise.
31240         * lib/sleep.c: Likewise.
31241         * lib/sprintf.c: Likewise.
31242         * lib/sqrtl.c: Likewise.
31243         * lib/stat-time.h: Likewise.
31244         * lib/stdio--.h: Likewise.
31245         * lib/stdio-safer.h: Likewise.
31246         * lib/stdlib--.h: Likewise.
31247         * lib/stdlib-safer.h: Likewise.
31248         * lib/stdlib.in.h: Likewise.
31249         * lib/stpcpy.c: Likewise.
31250         * lib/stpncpy.c: Likewise.
31251         * lib/strchrnul.c: Likewise.
31252         * lib/strcspn.c: Likewise.
31253         * lib/strerror.c: Likewise.
31254         * lib/strftime.c: Likewise.
31255         * lib/strftime.h: Likewise.
31256         * lib/striconveh.c: Likewise.
31257         * lib/striconveh.h: Likewise.
31258         * lib/striconveha.c: Likewise.
31259         * lib/striconveha.h: Likewise.
31260         * lib/stripslash.c: Likewise.
31261         * lib/strnlen1.c: Likewise.
31262         * lib/strnlen1.h: Likewise.
31263         * lib/strtod.c: Likewise.
31264         * lib/strtoimax.c: Likewise.
31265         * lib/strtok_r.c: Likewise.
31266         * lib/strtol.c: Likewise.
31267         * lib/strtoll.c: Likewise.
31268         * lib/strtoul.c: Likewise.
31269         * lib/strtoull.c: Likewise.
31270         * lib/sysexits.in.h: Likewise.
31271         * lib/tempname.c: Likewise.
31272         * lib/tempname.h: Likewise.
31273         * lib/timespec.h: Likewise.
31274         * lib/tls.c: Likewise.
31275         * lib/tls.h: Likewise.
31276         * lib/tmpdir.c: Likewise.
31277         * lib/tmpdir.h: Likewise.
31278         * lib/tmpfile-safer.c: Likewise.
31279         * lib/tmpfile.c: Likewise.
31280         * lib/trigl.c: Likewise.
31281         * lib/trigl.h: Likewise.
31282         * lib/trim.c: Likewise.
31283         * lib/trim.h: Likewise.
31284         * lib/trunc.c: Likewise.
31285         * lib/truncf.c: Likewise.
31286         * lib/truncl.c: Likewise.
31287         * lib/tsearch.c: Likewise.
31288         * lib/unicodeio.c: Likewise.
31289         * lib/unicodeio.h: Likewise.
31290         * lib/unistd--.h: Likewise.
31291         * lib/unistd-safer.h: Likewise.
31292         * lib/unistdio/ulc-fprintf.c: Likewise.
31293         * lib/unistdio/ulc-vfprintf.c: Likewise.
31294         * lib/unlinkdir.c: Likewise.
31295         * lib/unlinkdir.h: Likewise.
31296         * lib/unlocked-io.h: Likewise.
31297         * lib/unsetenv.c: Likewise.
31298         * lib/userspec.c: Likewise.
31299         * lib/utime.c: Likewise.
31300         * lib/utimecmp.c: Likewise.
31301         * lib/utimecmp.h: Likewise.
31302         * lib/utimens.c: Likewise.
31303         * lib/verify.h: Likewise.
31304         * lib/verror.c: Likewise.
31305         * lib/verror.h: Likewise.
31306         * lib/version-etc-fsf.c: Likewise.
31307         * lib/version-etc.c: Likewise.
31308         * lib/version-etc.h: Likewise.
31309         * lib/vfprintf.c: Likewise.
31310         * lib/vprintf.c: Likewise.
31311         * lib/vsprintf.c: Likewise.
31312         * lib/w32spawn.h: Likewise.
31313         * lib/wait-process.c: Likewise.
31314         * lib/wait-process.h: Likewise.
31315         * lib/wcwidth.c: Likewise.
31316         * lib/write-any-file.c: Likewise.
31317         * lib/xalloc-die.c: Likewise.
31318         * lib/xalloc.h: Likewise.
31319         * lib/xasprintf.c: Likewise.
31320         * lib/xgetcwd.c: Likewise.
31321         * lib/xgetcwd.h: Likewise.
31322         * lib/xgetdomainname.c: Likewise.
31323         * lib/xgetdomainname.h: Likewise.
31324         * lib/xgethostname.c: Likewise.
31325         * lib/xmalloc.c: Likewise.
31326         * lib/xmalloca.c: Likewise.
31327         * lib/xmalloca.h: Likewise.
31328         * lib/xmemcoll.c: Likewise.
31329         * lib/xnanosleep.c: Likewise.
31330         * lib/xreadlink.c: Likewise.
31331         * lib/xreadlink.h: Likewise.
31332         * lib/xsetenv.c: Likewise.
31333         * lib/xsetenv.h: Likewise.
31334         * lib/xstriconv.c: Likewise.
31335         * lib/xstriconv.h: Likewise.
31336         * lib/xstrndup.c: Likewise.
31337         * lib/xstrndup.h: Likewise.
31338         * lib/xstrtod.c: Likewise.
31339         * lib/xstrtod.h: Likewise.
31340         * lib/xstrtol-error.c: Likewise.
31341         * lib/xstrtol.c: Likewise.
31342         * lib/xstrtol.h: Likewise.
31343         * lib/xtime.h: Likewise.
31344         * lib/xvasprintf.c: Likewise.
31345         * lib/xvasprintf.h: Likewise.
31346         * lib/yesno.c: Likewise.
31347         * lib/yesno.h: Likewise.
31348         * posix-modules: Likewise.
31349         * tests/test-alloca-opt.c: Likewise.
31350         * tests/test-arcfour.c: Likewise.
31351         * tests/test-arctwo.c: Likewise.
31352         * tests/test-argmatch.c: Likewise.
31353         * tests/test-argp-2.sh: Likewise.
31354         * tests/test-argp.c: Likewise.
31355         * tests/test-arpa_inet.c: Likewise.
31356         * tests/test-array_list.c: Likewise.
31357         * tests/test-array_oset.c: Likewise.
31358         * tests/test-atexit.c: Likewise.
31359         * tests/test-avltree_list.c: Likewise.
31360         * tests/test-avltree_oset.c: Likewise.
31361         * tests/test-avltreehash_list.c: Likewise.
31362         * tests/test-base64.c: Likewise.
31363         * tests/test-binary-io.c: Likewise.
31364         * tests/test-byteswap.c: Likewise.
31365         * tests/test-c-ctype.c: Likewise.
31366         * tests/test-c-strcasecmp.c: Likewise.
31367         * tests/test-c-strcasestr.c: Likewise.
31368         * tests/test-c-strncasecmp.c: Likewise.
31369         * tests/test-c-strstr.c: Likewise.
31370         * tests/test-canonicalize-lgpl.c: Likewise.
31371         * tests/test-canonicalize.c: Likewise.
31372         * tests/test-carray_list.c: Likewise.
31373         * tests/test-ceilf.c: Likewise.
31374         * tests/test-ceill.c: Likewise.
31375         * tests/test-count-one-bits.c: Likewise.
31376         * tests/test-crc.c: Likewise.
31377         * tests/test-dirname.c: Likewise.
31378         * tests/test-fbufmode.c: Likewise.
31379         * tests/test-fcntl.c: Likewise.
31380         * tests/test-fflush.c: Likewise.
31381         * tests/test-floorf.c: Likewise.
31382         * tests/test-floorl.c: Likewise.
31383         * tests/test-fopen.c: Likewise.
31384         * tests/test-fprintf-posix.c: Likewise.
31385         * tests/test-fprintf-posix.h: Likewise.
31386         * tests/test-fpurge.c: Likewise.
31387         * tests/test-freadable.c: Likewise.
31388         * tests/test-freadahead.c: Likewise.
31389         * tests/test-freading.c: Likewise.
31390         * tests/test-freopen.c: Likewise.
31391         * tests/test-frexp.c: Likewise.
31392         * tests/test-frexpl.c: Likewise.
31393         * tests/test-fseek.c: Likewise.
31394         * tests/test-fseeko.c: Likewise.
31395         * tests/test-fseterr.c: Likewise.
31396         * tests/test-fstrcmp.c: Likewise.
31397         * tests/test-ftell.c: Likewise.
31398         * tests/test-ftello.c: Likewise.
31399         * tests/test-fwritable.c: Likewise.
31400         * tests/test-fwriting.c: Likewise.
31401         * tests/test-getaddrinfo.c: Likewise.
31402         * tests/test-getpass.c: Likewise.
31403         * tests/test-gettimeofday.c: Likewise.
31404         * tests/test-hmac-md5.c: Likewise.
31405         * tests/test-hmac-sha1.c: Likewise.
31406         * tests/test-iconv.c: Likewise.
31407         * tests/test-iconvme.c: Likewise.
31408         * tests/test-inttypes.c: Likewise.
31409         * tests/test-isnan.c: Likewise.
31410         * tests/test-isnanf.c: Likewise.
31411         * tests/test-isnanl-nolibm.c: Likewise.
31412         * tests/test-isnanl.c: Likewise.
31413         * tests/test-isnanl.h: Likewise.
31414         * tests/test-ldexpl.c: Likewise.
31415         * tests/test-linked_list.c: Likewise.
31416         * tests/test-linkedhash_list.c: Likewise.
31417         * tests/test-locale.c: Likewise.
31418         * tests/test-localename.c: Likewise.
31419         * tests/test-lock.c: Likewise.
31420         * tests/test-lseek.c: Likewise.
31421         * tests/test-malloca.c: Likewise.
31422         * tests/test-math.c: Likewise.
31423         * tests/test-mbscasecmp.c: Likewise.
31424         * tests/test-mbscasestr1.c: Likewise.
31425         * tests/test-mbscasestr2.c: Likewise.
31426         * tests/test-mbscasestr3.c: Likewise.
31427         * tests/test-mbscasestr4.c: Likewise.
31428         * tests/test-mbschr.c: Likewise.
31429         * tests/test-mbscspn.c: Likewise.
31430         * tests/test-mbsncasecmp.c: Likewise.
31431         * tests/test-mbspbrk.c: Likewise.
31432         * tests/test-mbspcasecmp.c: Likewise.
31433         * tests/test-mbsrchr.c: Likewise.
31434         * tests/test-mbsspn.c: Likewise.
31435         * tests/test-mbsstr1.c: Likewise.
31436         * tests/test-mbsstr2.c: Likewise.
31437         * tests/test-mbsstr3.c: Likewise.
31438         * tests/test-md5.c: Likewise.
31439         * tests/test-memmem.c: Likewise.
31440         * tests/test-netinet_in.c: Likewise.
31441         * tests/test-open.c: Likewise.
31442         * tests/test-printf-frexp.c: Likewise.
31443         * tests/test-printf-frexpl.c: Likewise.
31444         * tests/test-printf-posix.c: Likewise.
31445         * tests/test-printf-posix.h: Likewise.
31446         * tests/test-rbtree_list.c: Likewise.
31447         * tests/test-rbtree_oset.c: Likewise.
31448         * tests/test-rbtreehash_list.c: Likewise.
31449         * tests/test-read-file.c: Likewise.
31450         * tests/test-rijndael.c: Likewise.
31451         * tests/test-search.c: Likewise.
31452         * tests/test-signbit.c: Likewise.
31453         * tests/test-sleep.c: Likewise.
31454         * tests/test-snprintf-posix.c: Likewise.
31455         * tests/test-snprintf-posix.h: Likewise.
31456         * tests/test-snprintf.c: Likewise.
31457         * tests/test-sprintf-posix.c: Likewise.
31458         * tests/test-sprintf-posix.h: Likewise.
31459         * tests/test-stat-time.c: Likewise.
31460         * tests/test-stdbool.c: Likewise.
31461         * tests/test-stdint.c: Likewise.
31462         * tests/test-stdio.c: Likewise.
31463         * tests/test-stdlib.c: Likewise.
31464         * tests/test-stpncpy.c: Likewise.
31465         * tests/test-strcasestr.c: Likewise.
31466         * tests/test-striconv.c: Likewise.
31467         * tests/test-striconveh.c: Likewise.
31468         * tests/test-striconveha.c: Likewise.
31469         * tests/test-string.c: Likewise.
31470         * tests/test-sys_select.c: Likewise.
31471         * tests/test-sys_socket.c: Likewise.
31472         * tests/test-sys_stat.c: Likewise.
31473         * tests/test-sys_time.c: Likewise.
31474         * tests/test-sysexits.c: Likewise.
31475         * tests/test-time.c: Likewise.
31476         * tests/test-tls.c: Likewise.
31477         * tests/test-trunc.c: Likewise.
31478         * tests/test-truncf.c: Likewise.
31479         * tests/test-truncl.c: Likewise.
31480         * tests/test-unistd.c: Likewise.
31481         * tests/test-vasnprintf-posix.c: Likewise.
31482         * tests/test-vasnprintf-posix2.c: Likewise.
31483         * tests/test-vasnprintf.c: Likewise.
31484         * tests/test-vasprintf-posix.c: Likewise.
31485         * tests/test-vasprintf.c: Likewise.
31486         * tests/test-verify.c: Likewise.
31487         * tests/test-vfprintf-posix.c: Likewise.
31488         * tests/test-vprintf-posix.c: Likewise.
31489         * tests/test-vsnprintf-posix.c: Likewise.
31490         * tests/test-vsnprintf.c: Likewise.
31491         * tests/test-vsprintf-posix.c: Likewise.
31492         * tests/test-wchar.c: Likewise.
31493         * tests/test-wctype.c: Likewise.
31494         * tests/test-wcwidth.c: Likewise.
31495         * tests/test-xstrtol.c: Likewise.
31496         * tests/test-xvasprintf.c: Likewise.
31497         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31498         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31499         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31500         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31501         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31502         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31503         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31504         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31505         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31506         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31507         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31508         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31509         * tests/uniname/test-uninames.c: Likewise.
31510         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31511         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31512         * tests/unistdio/test-u16-printf1.h: Likewise.
31513         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31514         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31515         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31516         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31517         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31518         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31519         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31520         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31521         * tests/unistdio/test-u32-printf1.h: Likewise.
31522         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31523         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31524         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31525         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31526         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31527         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31528         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31529         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31530         * tests/unistdio/test-u8-printf1.h: Likewise.
31531         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31532         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31533         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31534         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31535         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31536         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31537         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31538         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31539         * tests/unistdio/test-ulc-printf1.h: Likewise.
31540         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31541         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31542         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31543         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31544         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31545         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31546         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31547         * tests/uniwidth/test-u16-width.c: Likewise.
31548         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31549         * tests/uniwidth/test-u32-width.c: Likewise.
31550         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31551         * tests/uniwidth/test-u8-width.c: Likewise.
31552         * tests/uniwidth/test-uc_width.c: Likewise.
31553         * config/srclist-update: Likewise.
31554         (fixlicense): Update to GPLv3+.
31555
31556         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31557         * tests/test-tsearch.c: Change copyright notice.
31558
31559         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31560         * lib/c-strcaseeq.h: Change copyright notice.
31561         * lib/streq.h: Likewise.
31562         * lib/uniconv.h: Likewise.
31563         * lib/uniconv/u-conv-from-enc.h: Likewise.
31564         * lib/uniconv/u-conv-to-enc.h: Likewise.
31565         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31566         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31567         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31568         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31569         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31570         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31571         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31572         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31573         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31574         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31575         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31576         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31577         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31578         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31579         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31580         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31581         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31582         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31583         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31584         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31585         * lib/uniname.h: Likewise.
31586         * lib/uniname/uniname.c: Likewise.
31587         * lib/unistdio.h: Likewise.
31588         * lib/unistdio/u-asnprintf.h: Likewise.
31589         * lib/unistdio/u-asprintf.h: Likewise.
31590         * lib/unistdio/u-printf-args.c: Likewise.
31591         * lib/unistdio/u-printf-args.h: Likewise.
31592         * lib/unistdio/u-printf-parse.h: Likewise.
31593         * lib/unistdio/u-snprintf.h: Likewise.
31594         * lib/unistdio/u-sprintf.h: Likewise.
31595         * lib/unistdio/u-vasprintf.h: Likewise.
31596         * lib/unistdio/u-vsnprintf.h: Likewise.
31597         * lib/unistdio/u-vsprintf.h: Likewise.
31598         * lib/unistdio/u16-asnprintf.c: Likewise.
31599         * lib/unistdio/u16-asprintf.c: Likewise.
31600         * lib/unistdio/u16-printf-parse.c: Likewise.
31601         * lib/unistdio/u16-snprintf.c: Likewise.
31602         * lib/unistdio/u16-sprintf.c: Likewise.
31603         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31604         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31605         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31606         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31607         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31608         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31609         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31610         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31611         * lib/unistdio/u16-vasnprintf.c: Likewise.
31612         * lib/unistdio/u16-vasprintf.c: Likewise.
31613         * lib/unistdio/u16-vsnprintf.c: Likewise.
31614         * lib/unistdio/u16-vsprintf.c: Likewise.
31615         * lib/unistdio/u32-asnprintf.c: Likewise.
31616         * lib/unistdio/u32-asprintf.c: Likewise.
31617         * lib/unistdio/u32-printf-parse.c: Likewise.
31618         * lib/unistdio/u32-snprintf.c: Likewise.
31619         * lib/unistdio/u32-sprintf.c: Likewise.
31620         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31621         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31622         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31623         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31624         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31625         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31626         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31627         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31628         * lib/unistdio/u32-vasnprintf.c: Likewise.
31629         * lib/unistdio/u32-vasprintf.c: Likewise.
31630         * lib/unistdio/u32-vsnprintf.c: Likewise.
31631         * lib/unistdio/u32-vsprintf.c: Likewise.
31632         * lib/unistdio/u8-asnprintf.c: Likewise.
31633         * lib/unistdio/u8-asprintf.c: Likewise.
31634         * lib/unistdio/u8-printf-parse.c: Likewise.
31635         * lib/unistdio/u8-snprintf.c: Likewise.
31636         * lib/unistdio/u8-sprintf.c: Likewise.
31637         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31638         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31639         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31640         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31641         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31642         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31643         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31644         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31645         * lib/unistdio/u8-vasnprintf.c: Likewise.
31646         * lib/unistdio/u8-vasprintf.c: Likewise.
31647         * lib/unistdio/u8-vsnprintf.c: Likewise.
31648         * lib/unistdio/u8-vsprintf.c: Likewise.
31649         * lib/unistdio/ulc-asnprintf.c: Likewise.
31650         * lib/unistdio/ulc-asprintf.c: Likewise.
31651         * lib/unistdio/ulc-printf-parse.c: Likewise.
31652         * lib/unistdio/ulc-snprintf.c: Likewise.
31653         * lib/unistdio/ulc-sprintf.c: Likewise.
31654         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31655         * lib/unistdio/ulc-vasprintf.c: Likewise.
31656         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31657         * lib/unistdio/ulc-vsprintf.c: Likewise.
31658         * lib/unistr.h: Likewise.
31659         * lib/unistr/u-cpy-alloc.h: Likewise.
31660         * lib/unistr/u-cpy.h: Likewise.
31661         * lib/unistr/u-endswith.h: Likewise.
31662         * lib/unistr/u-move.h: Likewise.
31663         * lib/unistr/u-set.h: Likewise.
31664         * lib/unistr/u-startswith.h: Likewise.
31665         * lib/unistr/u-stpcpy.h: Likewise.
31666         * lib/unistr/u-stpncpy.h: Likewise.
31667         * lib/unistr/u-strcat.h: Likewise.
31668         * lib/unistr/u-strcpy.h: Likewise.
31669         * lib/unistr/u-strcspn.h: Likewise.
31670         * lib/unistr/u-strdup.h: Likewise.
31671         * lib/unistr/u-strlen.h: Likewise.
31672         * lib/unistr/u-strncat.h: Likewise.
31673         * lib/unistr/u-strncpy.h: Likewise.
31674         * lib/unistr/u-strnlen.h: Likewise.
31675         * lib/unistr/u-strpbrk.h: Likewise.
31676         * lib/unistr/u-strspn.h: Likewise.
31677         * lib/unistr/u-strstr.h: Likewise.
31678         * lib/unistr/u-strtok.h: Likewise.
31679         * lib/unistr/u16-check.c: Likewise.
31680         * lib/unistr/u16-chr.c: Likewise.
31681         * lib/unistr/u16-cmp.c: Likewise.
31682         * lib/unistr/u16-cpy-alloc.c: Likewise.
31683         * lib/unistr/u16-cpy.c: Likewise.
31684         * lib/unistr/u16-endswith.c: Likewise.
31685         * lib/unistr/u16-mblen.c: Likewise.
31686         * lib/unistr/u16-mbsnlen.c: Likewise.
31687         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31688         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31689         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31690         * lib/unistr/u16-mbtouc.c: Likewise.
31691         * lib/unistr/u16-mbtoucr.c: Likewise.
31692         * lib/unistr/u16-move.c: Likewise.
31693         * lib/unistr/u16-next.c: Likewise.
31694         * lib/unistr/u16-prev.c: Likewise.
31695         * lib/unistr/u16-set.c: Likewise.
31696         * lib/unistr/u16-startswith.c: Likewise.
31697         * lib/unistr/u16-stpcpy.c: Likewise.
31698         * lib/unistr/u16-stpncpy.c: Likewise.
31699         * lib/unistr/u16-strcat.c: Likewise.
31700         * lib/unistr/u16-strchr.c: Likewise.
31701         * lib/unistr/u16-strcmp.c: Likewise.
31702         * lib/unistr/u16-strcpy.c: Likewise.
31703         * lib/unistr/u16-strcspn.c: Likewise.
31704         * lib/unistr/u16-strdup.c: Likewise.
31705         * lib/unistr/u16-strlen.c: Likewise.
31706         * lib/unistr/u16-strmblen.c: Likewise.
31707         * lib/unistr/u16-strmbtouc.c: Likewise.
31708         * lib/unistr/u16-strncat.c: Likewise.
31709         * lib/unistr/u16-strncmp.c: Likewise.
31710         * lib/unistr/u16-strncpy.c: Likewise.
31711         * lib/unistr/u16-strnlen.c: Likewise.
31712         * lib/unistr/u16-strpbrk.c: Likewise.
31713         * lib/unistr/u16-strrchr.c: Likewise.
31714         * lib/unistr/u16-strspn.c: Likewise.
31715         * lib/unistr/u16-strstr.c: Likewise.
31716         * lib/unistr/u16-strtok.c: Likewise.
31717         * lib/unistr/u16-to-u32.c: Likewise.
31718         * lib/unistr/u16-to-u8.c: Likewise.
31719         * lib/unistr/u16-uctomb-aux.c: Likewise.
31720         * lib/unistr/u16-uctomb.c: Likewise.
31721         * lib/unistr/u32-check.c: Likewise.
31722         * lib/unistr/u32-chr.c: Likewise.
31723         * lib/unistr/u32-cmp.c: Likewise.
31724         * lib/unistr/u32-cpy-alloc.c: Likewise.
31725         * lib/unistr/u32-cpy.c: Likewise.
31726         * lib/unistr/u32-endswith.c: Likewise.
31727         * lib/unistr/u32-mblen.c: Likewise.
31728         * lib/unistr/u32-mbsnlen.c: Likewise.
31729         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31730         * lib/unistr/u32-mbtouc.c: Likewise.
31731         * lib/unistr/u32-mbtoucr.c: Likewise.
31732         * lib/unistr/u32-move.c: Likewise.
31733         * lib/unistr/u32-next.c: Likewise.
31734         * lib/unistr/u32-prev.c: Likewise.
31735         * lib/unistr/u32-set.c: Likewise.
31736         * lib/unistr/u32-startswith.c: Likewise.
31737         * lib/unistr/u32-stpcpy.c: Likewise.
31738         * lib/unistr/u32-stpncpy.c: Likewise.
31739         * lib/unistr/u32-strcat.c: Likewise.
31740         * lib/unistr/u32-strchr.c: Likewise.
31741         * lib/unistr/u32-strcmp.c: Likewise.
31742         * lib/unistr/u32-strcpy.c: Likewise.
31743         * lib/unistr/u32-strcspn.c: Likewise.
31744         * lib/unistr/u32-strdup.c: Likewise.
31745         * lib/unistr/u32-strlen.c: Likewise.
31746         * lib/unistr/u32-strmblen.c: Likewise.
31747         * lib/unistr/u32-strmbtouc.c: Likewise.
31748         * lib/unistr/u32-strncat.c: Likewise.
31749         * lib/unistr/u32-strncmp.c: Likewise.
31750         * lib/unistr/u32-strncpy.c: Likewise.
31751         * lib/unistr/u32-strnlen.c: Likewise.
31752         * lib/unistr/u32-strpbrk.c: Likewise.
31753         * lib/unistr/u32-strrchr.c: Likewise.
31754         * lib/unistr/u32-strspn.c: Likewise.
31755         * lib/unistr/u32-strstr.c: Likewise.
31756         * lib/unistr/u32-strtok.c: Likewise.
31757         * lib/unistr/u32-to-u16.c: Likewise.
31758         * lib/unistr/u32-to-u8.c: Likewise.
31759         * lib/unistr/u32-uctomb.c: Likewise.
31760         * lib/unistr/u8-check.c: Likewise.
31761         * lib/unistr/u8-chr.c: Likewise.
31762         * lib/unistr/u8-cmp.c: Likewise.
31763         * lib/unistr/u8-cpy-alloc.c: Likewise.
31764         * lib/unistr/u8-cpy.c: Likewise.
31765         * lib/unistr/u8-endswith.c: Likewise.
31766         * lib/unistr/u8-mblen.c: Likewise.
31767         * lib/unistr/u8-mbsnlen.c: Likewise.
31768         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31769         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31770         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31771         * lib/unistr/u8-mbtouc.c: Likewise.
31772         * lib/unistr/u8-mbtoucr.c: Likewise.
31773         * lib/unistr/u8-move.c: Likewise.
31774         * lib/unistr/u8-next.c: Likewise.
31775         * lib/unistr/u8-prev.c: Likewise.
31776         * lib/unistr/u8-set.c: Likewise.
31777         * lib/unistr/u8-startswith.c: Likewise.
31778         * lib/unistr/u8-stpcpy.c: Likewise.
31779         * lib/unistr/u8-stpncpy.c: Likewise.
31780         * lib/unistr/u8-strcat.c: Likewise.
31781         * lib/unistr/u8-strchr.c: Likewise.
31782         * lib/unistr/u8-strcmp.c: Likewise.
31783         * lib/unistr/u8-strcpy.c: Likewise.
31784         * lib/unistr/u8-strcspn.c: Likewise.
31785         * lib/unistr/u8-strdup.c: Likewise.
31786         * lib/unistr/u8-strlen.c: Likewise.
31787         * lib/unistr/u8-strmblen.c: Likewise.
31788         * lib/unistr/u8-strmbtouc.c: Likewise.
31789         * lib/unistr/u8-strncat.c: Likewise.
31790         * lib/unistr/u8-strncmp.c: Likewise.
31791         * lib/unistr/u8-strncpy.c: Likewise.
31792         * lib/unistr/u8-strnlen.c: Likewise.
31793         * lib/unistr/u8-strpbrk.c: Likewise.
31794         * lib/unistr/u8-strrchr.c: Likewise.
31795         * lib/unistr/u8-strspn.c: Likewise.
31796         * lib/unistr/u8-strstr.c: Likewise.
31797         * lib/unistr/u8-strtok.c: Likewise.
31798         * lib/unistr/u8-to-u16.c: Likewise.
31799         * lib/unistr/u8-to-u32.c: Likewise.
31800         * lib/unistr/u8-uctomb-aux.c: Likewise.
31801         * lib/unistr/u8-uctomb.c: Likewise.
31802         * lib/unitypes.h: Likewise.
31803         * lib/uniwidth.h: Likewise.
31804         * lib/uniwidth/cjk.h: Likewise.
31805         * lib/uniwidth/u16-strwidth.c: Likewise.
31806         * lib/uniwidth/u16-width.c: Likewise.
31807         * lib/uniwidth/u32-strwidth.c: Likewise.
31808         * lib/uniwidth/u32-width.c: Likewise.
31809         * lib/uniwidth/u8-strwidth.c: Likewise.
31810         * lib/uniwidth/u8-width.c: Likewise.
31811         * lib/uniwidth/width.c: Likewise.
31812
31813 2007-10-07  Bruno Haible  <bruno@clisp.org>
31814
31815         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31816         The file is still under LGPL (see modules/inttypes).
31817
31818 2007-10-06  Bruno Haible  <bruno@clisp.org>
31819
31820         * modules/trunc (Dependencies): Add 'extensions'.
31821         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31822         Reported by Ben Pfaff <blp@gnu.org>.
31823
31824 2007-10-06  Bruno Haible  <bruno@clisp.org>
31825
31826         * modules/freopen-tests: New file.
31827         * tests/test-freopen.c: New file.
31828
31829         * modules/fopen-tests: New file.
31830         * tests/test-fopen.c: New file.
31831
31832         * modules/fopen: New file.
31833         * lib/fopen.c: New file.
31834         * m4/fopen.m4: New file.
31835         * modules/freopen: New file.
31836         * lib/freopen.c: New file.
31837         * m4/freopen.m4: New file.
31838         * lib/stdio.in.h (fopen, freopen): New declarations.
31839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31840         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31841         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31842         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31843         * doc/functions/fopen.texi: Mention the 'fopen' module.
31844         * doc/functions/freopen.texi: Mention the 'freopen' module.
31845
31846 2007-10-06  Bruno Haible  <bruno@clisp.org>
31847
31848         * modules/open-tests: New file.
31849         * tests/test-open.c: New file.
31850
31851         * modules/open: New file.
31852         * lib/open.c: New file.
31853         * m4/open.m4: New file.
31854         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31855         lib/open.c does.
31856         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31857         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31858         macros.
31859         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31860         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31861         REPLACE_OPEN.
31862         * doc/functions/open.texi: Mention the 'open' module.
31863
31864 2007-10-04  Bruno Haible  <bruno@clisp.org>
31865
31866         * modules/ceill-tests: New file.
31867         * tests/test-ceill.c: New file.
31868
31869         * modules/ceill: New file.
31870         * lib/ceill.c: Replace entire file.
31871         * m4/ceill.m4: New file.
31872         * lib/math.in.h (ceill): Replace declaration.
31873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31874         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31875         * doc/functions/ceill.texi: Mention the 'ceill' module.
31876         * modules/mathl (Files): Remove lib/ceill.c.
31877         (Depends-on): Add ceill.
31878
31879 2007-10-04  Bruno Haible  <bruno@clisp.org>
31880
31881         * modules/ceilf-tests: New file.
31882         * tests/test-ceilf.c: New file.
31883
31884         * modules/ceilf: New file.
31885         * lib/ceil.c: New file.
31886         * lib/ceilf.c: New file.
31887         * m4/ceilf.m4: New file.
31888         * lib/math.in.h (ceilf): New declaration.
31889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31890         HAVE_DECL_CEILF.
31891         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31892         HAVE_DECL_CEILF.
31893         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31894
31895 2007-10-04  Bruno Haible  <bruno@clisp.org>
31896
31897         * modules/floorl-tests: New file.
31898         * tests/test-floorl.c: New file.
31899
31900         * modules/floorl: New file.
31901         * lib/floorl.c: Replace entire file.
31902         * m4/floorl.m4: New file.
31903         * lib/math.in.h (floorl): Replace declaration.
31904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31905         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31906         * doc/functions/floorl.texi: Mention the 'floorl' module.
31907         * modules/mathl (Files): Remove lib/floorl.c.
31908         (Depends-on): Add floorl.
31909
31910 2007-10-04  Bruno Haible  <bruno@clisp.org>
31911
31912         * modules/floorf-tests: New file.
31913         * tests/test-floorf.c: New file.
31914
31915         * modules/floorf: New file.
31916         * lib/floor.c: New file.
31917         * lib/floorf.c: New file.
31918         * m4/floorf.m4: New file.
31919         * lib/math.in.h (floorf): New declaration.
31920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31921         HAVE_DECL_FLOORF.
31922         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31923         HAVE_DECL_FLOORF.
31924         * doc/functions/floorf.texi: Mention the 'floorf' module.
31925
31926 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31927             Bruno Haible  <bruno@clisp.org>
31928
31929         Advertise for the Git server instead of the CVS server.
31930         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31931         repository instead of the CVS one.
31932         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31933         about all VCS systems generically.
31934         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31935
31936 2007-10-04  Bruno Haible  <bruno@clisp.org>
31937
31938         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31939         means.
31940         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31941
31942 2007-10-04  Bruno Haible  <bruno@clisp.org>
31943
31944         * modules/truncl-tests: New file.
31945         * tests/test-truncl.c: New file.
31946
31947         * modules/truncl: New file.
31948         * lib/truncl.c: New file.
31949         * m4/truncl.m4: New file.
31950         * lib/math.in.h (truncl): New declaration.
31951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31952         HAVE_DECL_TRUNCL.
31953         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31954         HAVE_DECL_TRUNCL.
31955         * doc/functions/truncl.texi: Mention the 'truncl' module.
31956
31957 2007-10-04  Bruno Haible  <bruno@clisp.org>
31958
31959         * modules/truncf-tests: New file.
31960         * tests/test-truncf.c: New file.
31961
31962         * modules/truncf: New file.
31963         * lib/trunc.c: Make paramerizable through USE_* macros.
31964         * lib/truncf.c: New file.
31965         * m4/truncf.m4: New file.
31966         * lib/math.in.h (truncf): New declaration.
31967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31968         HAVE_DECL_TRUNCF.
31969         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31970         HAVE_DECL_TRUNCF.
31971         * doc/functions/truncf.texi: Mention the 'truncf' module.
31972
31973 2007-10-03  Bruno Haible  <bruno@clisp.org>
31974
31975         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31976         augmentation also for tests modules.
31977         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31978         * modules/atexit-tests (Makefile.am): Likewise.
31979         * modules/binary-io-tests (Makefile.am): Likewise.
31980         * modules/c-strcase-tests (Makefile.am): Likewise.
31981         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31982         * modules/canonicalize-tests (Makefile.am): Likewise.
31983         * modules/closein-tests (Makefile.am): Likewise.
31984         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31985         * modules/freadahead-tests (Makefile.am): Likewise.
31986         * modules/fseek-tests (Makefile.am): Likewise.
31987         * modules/fseeko-tests (Makefile.am): Likewise.
31988         * modules/ftell-tests (Makefile.am): Likewise.
31989         * modules/ftello-tests (Makefile.am): Likewise.
31990         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31991         * modules/isnanl-tests (Makefile.am): Likewise.
31992         * modules/lseek-tests (Makefile.am): Likewise.
31993         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31994         * modules/mbscasestr-tests (Makefile.am): Likewise.
31995         * modules/mbschr-tests (Makefile.am): Likewise.
31996         * modules/mbscspn-tests (Makefile.am): Likewise.
31997         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31998         * modules/mbspbrk-tests (Makefile.am): Likewise.
31999         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32000         * modules/mbsrchr-tests (Makefile.am): Likewise.
32001         * modules/mbsspn-tests (Makefile.am): Likewise.
32002         * modules/mbsstr-tests (Makefile.am): Likewise.
32003         * modules/printf-posix-tests (Makefile.am): Likewise.
32004         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32005         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32006         * modules/tsearch-tests (Makefile.am): Likewise.
32007         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32008         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32009         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32010         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32011         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32012         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32013         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32014         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32015         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32016         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32017         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32018         * modules/xstrtol-tests (Makefile.am): Likewise.
32019         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32020         * modules/yesno-tests (Makefile.am): Likewise.
32021
32022 2007-10-03  Bruno Haible  <bruno@clisp.org>
32023
32024         * modules/trunc-tests: New file.
32025         * tests/test-trunc.c: New file.
32026
32027         * modules/trunc: New file.
32028         * lib/trunc.c: New file.
32029         * m4/trunc.m4: New file.
32030         * lib/math.in.h (trunc): New declaration.
32031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32032         HAVE_DECL_TRUNC.
32033         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32034         HAVE_DECL_TRUNC.
32035         * doc/functions/trunc.texi: Mention the 'trunc' module.
32036
32037 2007-10-03  Bruno Haible  <bruno@clisp.org>
32038
32039         * tests/test-fpending.c: New file, mostly copied
32040         from coreutils/lib/t-fpending.c.
32041         * modules/fpending-tests: New file.
32042
32043 2007-10-03  Bruno Haible  <bruno@clisp.org>
32044
32045         Port the stdio extensions to QNX (untested).
32046         * lib/fseterr.c (fseterr): Add support for QNX.
32047         * lib/fbufmode.c (fbufmode): Likewise.
32048         * lib/freadable.c (freadable): Likewise.
32049         * lib/fwritable.c (fwritable): Likewise.
32050         * lib/freading.c (freading): Likewise.
32051         * lib/fwriting.c (fwriting): Likewise.
32052         * lib/freadahead.c (freadahed): Likewise.
32053         * lib/fpurge.c (fpurge): Likewise.
32054         * lib/fseeko.c (rpl_fseeko): Likewise.
32055
32056 2007-10-03  Bruno Haible  <bruno@clisp.org>
32057             Jim Meyering  <jim@meyering.net>
32058             Eric Blake  <ebb9@byu.net>
32059
32060         * doc/relocatable.texi: Use @command instead of @program.
32061
32062 2007-10-02  Jim Meyering  <jim@meyering.net>
32063
32064         Perform one more "_.h" -> ".in.h" substitution.
32065         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32066         instead of unistd_.h here, too.
32067
32068 2007-10-01  Bruno Haible  <bruno@clisp.org>
32069
32070         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32071         Needed for the alloca-opt module.
32072
32073 2007-09-30  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32076         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32077         alloca_.h.
32078         * lib/argz.in.h: Renamed from lib/argz_.h.
32079         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32080         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32081         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32082         byteswap_.h.
32083         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32084         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32085         dirent_.h.
32086         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32087         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32088         fcntl_.h.
32089         * lib/float.in.h: Renamed from lib/float_.h.
32090         * modules/float (Files, Makefile.am): Use float.in.h instead of
32091         float_.h.
32092         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32093         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32094         fnmatch_.h.
32095         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32096         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32097         getopt_.h.
32098         * lib/glob.in.h: Renamed from lib/glob_.h.
32099         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32100         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32101         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32102         iconv_.h.
32103         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32104         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32105         inttypes_.h.
32106         * lib/locale.in.h: Renamed from lib/locale_.h.
32107         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32108         locale_.h.
32109         * lib/math.in.h: Renamed from lib/math_.h.
32110         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32111         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32112         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32113         of netinet_in_.h. Add dependency.
32114         * lib/poll.in.h: Renamed from lib/poll_.h.
32115         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32116         * lib/search.in.h: Renamed from lib/search_.h.
32117         * modules/search (Files, Makefile.am): Use search.in.h instead of
32118         search_.h.
32119         * lib/signal.in.h: Renamed from lib/signal_.h.
32120         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32121         _signal.h.
32122         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32123         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32124         stdbool_.h.
32125         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32126         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32127         stdint_.h.
32128         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32129         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32130         stdio_.h.
32131         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32132         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32133         stdlib_.h.
32134         * lib/string.in.h: Renamed from lib/string_.h.
32135         * modules/string (Files, Makefile.am): Use string.in.h instead of
32136         string_.h.
32137         * doc/gnulib-tool.texi (Initial import): Update.
32138         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32139         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32140         of sys_select_.h. Add dependency.
32141         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32142         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32143         of sys_socket_.h.
32144         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32145         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32146         sys_stat_.h.
32147         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32148         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32149         sys_time_.h.
32150         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32151         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32152         sysexits_.h.
32153         * lib/time.in.h: Renamed from lib/time_.h.
32154         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32155         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32156         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32157         unistd_.h.
32158         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32159         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32160         wchar_.h.
32161         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32162         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32163         wctype_.h.
32164         * build-aux/bootstrap (slurp): Update.
32165         * lib/.cppi-disable: Update.
32166
32167 2007-09-30  Bruno Haible  <bruno@clisp.org>
32168
32169         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32170         Needed on BeOS.
32171
32172 2007-09-30  Bruno Haible  <bruno@clisp.org>
32173
32174         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32175
32176 2007-09-29  Bruno Haible  <bruno@clisp.org>
32177
32178         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32179
32180 2007-09-29  Bruno Haible  <bruno@clisp.org>
32181
32182         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32183         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32184         * build-aux/install-reloc: Compile also areadlink.c.
32185         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32186
32187 2007-09-29  Bruno Haible  <bruno@clisp.org>
32188
32189         * gnulib-tool (func_emit_initmacro_done): Indentation.
32190
32191 2007-09-29  Bruno Haible  <bruno@clisp.org>
32192
32193         * README: Add CVS checkout update instructions.
32194         Info from Bob Proulx <bob@proulx.com>.
32195
32196 2007-09-28  Eric Blake  <ebb9@byu.net>
32197
32198         Provide move-if-change.
32199         * build-aux/move-if-change: New file, based on best practice
32200         rather than any canonical upstream location.
32201
32202 2007-09-28  Jim Meyering  <jim@meyering.net>
32203
32204         Fix canonicalize loop-detection corner case.
32205         Do not attempt to stat the symlink values stored via seen_triple.
32206         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32207         on linux-2.6.18, (but not 2.6.22).
32208         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32209         triple_compare.  The former compares dev,ino,filename, while the latter
32210         would actually stat dirname(filename) when dev and ino were equal.
32211         * lib/hash-triple.c: Install <string.h>.
32212         (STREQ): Define.
32213         (triple_compare_ino_str): New function.
32214         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32215
32216 2007-09-28  Eric Blake  <ebb9@byu.net>
32217
32218         Enforce that AC_REPLACE_FUNCS files exist.
32219         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32220         override check for typos.
32221
32222         Fix test-closein on Solaris 10.
32223         * tests/test-closein.c (main): Don't assume stdin can be inherited
32224         closed on all systems.
32225         * tests/test-closein.sh: Likewise.
32226         Reported by Piotr Tarnowski.
32227
32228 2007-09-28  Jim Meyering  <jim@meyering.net>
32229
32230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32231
32232 2007-09-27  Jim Meyering  <jim@meyering.net>
32233
32234         canonicalize: Avoid a false-positive cycle failure.
32235         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32236         Sort.  Remove cycle-check.
32237         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32238         not cycle-check.h.
32239         (seen_triple): New function.
32240         (canonicalize_filename_mode): Use it instead of cycle-check.
32241         * tests/test-canonicalize.c: Add a test for this bug.
32242         * tests/test-canonicalize.sh: Set up and run the test.
32243
32244         New module, file-set, from coreutils.
32245         * modules/file-set: Define it.
32246         * lib/file-set.c, lib/file-set.h: Implement.
32247
32248         New module, hash-triple, from coreutils.
32249         * modules/hash-triple: Define it.
32250         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32251
32252 2007-09-25  Eric Blake  <ebb9@byu.net>
32253
32254         Fix strerror on Interix.
32255         * lib/string_.h (strerror): Declare replacement.
32256         * doc/functions/strerror.texi (strerror): Document the Interix
32257         shortcoming.
32258         * modules/string (Makefile.am): Support new hooks.
32259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32260         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32261         gl_FUNC_STRERROR_SEPARATE.
32262         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32263         * lib/strerror.c (rpl_strerror): Provide replacement.
32264         * modules/strerror (Depends-on): Add string.
32265         (configure.ac): Detect use of module.
32266         * tests/test-strerror.c: New file.
32267         * modules/strerror-tests: New test module.
32268         * modules/argp (Depends-on): Add strerror.
32269         * modules/error (Depends-on): Likewise.
32270         Reported by Martin Koeppe.
32271
32272 2007-09-24  Bruno Haible  <bruno@clisp.org>
32273
32274         * README: Update git instructions.
32275
32276 2007-09-24  Eric Blake  <ebb9@byu.net>
32277
32278         Revert fpending breakage from 2007-09-08.
32279         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32280         __fpending.c.
32281
32282 2007-09-24  Jim Meyering  <jim@meyering.net>
32283
32284         filenamecat.c: Add a test.
32285         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32286         showing how the function works when DIR is the empty string.
32287
32288 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32289
32290         * tests/test-canonicalize.sh: Turn on executable bit.
32291
32292 2007-09-19  Eric Blake  <ebb9@byu.net>
32293
32294         * README: Update CVS instructions.
32295
32296 2007-09-18  Bruno Haible  <bruno@clisp.org>
32297
32298         * modules/areadlink: New file.
32299         * lib/areadlink.h (areadlink): New declaration.
32300         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32301
32302 2007-09-17  Jim Meyering  <jim@meyering.net>
32303
32304         * lib/savewd.c (ESTALE) [!defined]: Define.
32305         Reported to be required on Interix by Martin Koeppe.
32306
32307 2007-09-17  Bruno Haible  <bruno@clisp.org>
32308
32309         * gnulib-tool (func_version): Use $version.
32310
32311 2007-09-16  Bruno Haible  <bruno@clisp.org>
32312
32313         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32314         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32315         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32316         Reported by Greg Schafer <gschafer@zip.com.au>.
32317
32318 2007-09-15  Bruno Haible  <bruno@clisp.org>
32319
32320         * gnulib-tool (sed): Try a little harder to make bash understand the
32321         alias.
32322         Reported by Bruce Korb <bruce.korb@gmail.com>.
32323
32324 2007-09-13  Eric Blake  <ebb9@byu.net>
32325
32326         * ChangeLog: Remove conflict markers.
32327
32328 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32329
32330         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32331         Reported by Bruno Haible <bruno@clisp.org>.
32332
32333 2007-09-12  Bruno Haible  <bruno@clisp.org>
32334
32335         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32336         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32337         is not defined.
32338
32339 2007-09-12  Eric Blake  <ebb9@byu.net>
32340
32341         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32342         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32343         Autoconf definition.
32344         * modules/euidaccess (Depends-on): Add extensions, for
32345         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32346         * modules/fnmatch (Depends-on): Likewise.
32347         * modules/getaddrinfo (Depends-on): Likewise.
32348         * modules/getdelim (Depends-on): Likewise.
32349         * modules/getline (Depends-on): Likewise.
32350         * modules/getsubopt (Depends-on): Likewise.
32351         * modules/gettext (Depends-on): Likewise.
32352         * modules/group-member (Depends-on): Likewise.
32353         * modules/mbchar (Depends-on): Likewise.
32354         * modules/memmem (Depends-on): Likewise.
32355         * modules/mempcpy (Depends-on): Likewise.
32356         * modules/memrchr (Depends-on): Likewise.
32357         * modules/pagealign_alloc (Depends-on): Likewise.
32358         * modules/readutmp (Depends-on): Likewise.
32359         * modules/stpcpy (Depends-on): Likewise.
32360         * modules/stpncpy (Depends-on): Likewise.
32361         * modules/strchrnul (Depends-on): Likewise.
32362         * modules/strndup (Depends-on): Likewise.
32363         * modules/strsep (Depends-on): Likewise.
32364         * modules/strverscmp (Depends-on): Likewise.
32365         * modules/vasprintf (Depends-on): Likewise.
32366         * modules/wcwidth (Depends-on): Likewise.
32367         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32368         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32369         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32371         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32372         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32373         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32374         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32375         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32376         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32379         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32380         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32381         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32382         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32383         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32384         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32385         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32386         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32388         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32389         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32390         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32391         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32393         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32394         so that lock.m4 can be used in gettext without extensions module.
32395
32396 2007-09-11  Bruno Haible  <bruno@clisp.org>
32397
32398         * m4/isc-posix.m4: Remove file.
32399         Suggested by Eric Blake.
32400
32401 2007-09-11  Eric Blake  <ebb9@byu.net>
32402
32403         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32404
32405 2007-09-10  Bruno Haible  <bruno@clisp.org>
32406
32407         * posix-modules: Fix typo in error message.
32408         Reported by Matt <mkraai@beckman.com>.
32409
32410 2007-09-09  Bruno Haible  <bruno@clisp.org>
32411
32412         * doc/functions/getdelim.texi: Update list of platforms lacking the
32413         function.
32414         * doc/functions/getline.texi: Likewise.
32415
32416 2007-09-09  Jim Meyering  <jim@meyering.net>
32417
32418         * lib/hash.c (hash_initialize): Detect calloc failure.
32419         Reported by Bruno Haible.
32420
32421 2007-09-09  Bruno Haible  <bruno@clisp.org>
32422
32423         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32424         malloc or realloc fails.
32425
32426 2007-09-09  Bruno Haible  <bruno@clisp.org>
32427
32428         * modules/getcwd (Depends-on): Add malloc-posix.
32429         * modules/glob (Depends-on): Likewise.
32430         * modules/putenv (Depends-on): Likewise.
32431         * modules/strdup (Depends-on): Likewise.
32432         * modules/getdelim (Depends-on): Add realloc-posix.
32433         * modules/read-file (Depends-on): Likewise.
32434
32435 2007-09-09  Bruno Haible  <bruno@clisp.org>
32436
32437         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32438         (gl_FUNC_MALLOC_POSIX): Require it.
32439         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32440         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32441         * modules/realloc (Files): Add m4/malloc.m4.
32442         * modules/calloc (Files): Likewise.
32443
32444 2007-09-09  Bruno Haible  <bruno@clisp.org>
32445
32446         * modules/malloc-posix: New file.
32447         * modules/malloc (Depends-on): Add malloc-posix.
32448         * lib/malloc.c: Include errno.h.
32449         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32450         and a POSIX-compatible malloc into a single function. Set ENOMEM
32451         when returning NULL.
32452         * m4/malloc.m4: New file.
32453         * doc/functions/malloc.texi: Mention the malloc-posix module.
32454         * lib/stdlib_.h (malloc): New declaration.
32455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32456         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32457         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32458         and HAVE_MALLOC_POSIX.
32459
32460 2007-09-09  Bruno Haible  <bruno@clisp.org>
32461
32462         * modules/realloc-posix: New file.
32463         * modules/realloc (Depends-on): Add realloc-posix.
32464         * lib/realloc.c: Include errno.h.
32465         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32466         and a POSIX-compatible realloc into a single function. Set ENOMEM
32467         when returning NULL.
32468         * m4/realloc.m4: New file.
32469         * doc/functions/realloc.texi: Mention the realloc-posix module.
32470         * lib/stdlib_.h (realloc): New declaration.
32471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32472         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32473         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32474         and HAVE_REALLOC_POSIX.
32475
32476 2007-09-09  Bruno Haible  <bruno@clisp.org>
32477
32478         * modules/calloc-posix: New file.
32479         * modules/calloc (Depends-on): Add calloc-posix.
32480         * lib/calloc.c: Include errno.h.
32481         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32482         and a POSIX-compatible calloc into a single function. Set ENOMEM
32483         when returning NULL.
32484         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32485         * doc/functions/calloc.texi: Mention the calloc-posix module.
32486         * lib/stdlib_.h (calloc): New declaration.
32487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32488         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32489         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32490         and HAVE_CALLOC_POSIX.
32491
32492 2007-09-09  Bruno Haible  <bruno@clisp.org>
32493
32494         Allow for modules to show an arbitrary notice.
32495         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32496         * gnulib-tool: New option --extract-notice.
32497         (func_usage): Document it.
32498         (sed_extract_prog): Update.
32499         (func_get_notice): New function.
32500         (func_modules_notice): New function.
32501         (func_import, func_create_testdir): Invoke it.
32502         Suggested by Jim Meyering.
32503
32504 2007-09-09  Bruno Haible  <bruno@clisp.org>
32505
32506         * gnulib-tool: New options --verbose, --quiet.
32507         (func_usage): Document them.
32508         (verbose): New variable.
32509         (func_execute_command): New function.
32510         (func_import): Don't show the module list and the file list if
32511         $verbose < 0.
32512         (func_create_testdir): Likewise. Use func_execute_command.
32513         (func_create_megatestdir): Use func_execute_command.
32514
32515 2007-09-08  Bruno Haible  <bruno@clisp.org>
32516
32517         * gnulib-tool (func_import): Prefer rsync over wget when available,
32518         for fetching the PO files.
32519
32520 2007-09-08  Bruno Haible  <bruno@clisp.org>
32521
32522         * posix-modules: New file. Portions copied from gnulib-tool.
32523         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32524
32525 2007-09-08  Jim Meyering  <jim@meyering.net>
32526
32527         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32528         * lib/fpending.h: Rename from __fpending.h.
32529         * lib/fpending.c: Rename from __fpending.c.
32530         Include "fpending.h", not "__fpending.h".
32531         * lib/__fpending.h, lib/__fpending.c: Remove files.
32532         * modules/fpending (Files): Reflect new file names.
32533         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32534
32535 2007-09-08  Bruno Haible  <bruno@clisp.org>
32536
32537         * m4/inttypes-h.m4: Remove stub file.
32538
32539 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32540
32541         * doc/headers/stdint.texi: Discuss #include_next issue.
32542
32543 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32544
32545         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32546
32547 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32548
32549         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32550         in variable name.
32551
32552 2007-09-03  Jim Meyering  <jim@meyering.net>
32553
32554         New module: git-version-gen.
32555         * modules/git-version-gen: New file.
32556
32557         Import changes from coreutils for bootstrap script.
32558
32559         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32560
32561         bootstrap: uses rsync to download the .po files
32562         * build-aux/bootstrap (po_download_command_format): New global.
32563         (download_po_files): Use rsync.
32564         (update_po_files): Don't remove .po files after download,
32565         so future rsync runs can take advantage of the copies.
32566
32567         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32568
32569         Solve the unnecessary-.po-file-regeneration problem once and for all.
32570         * build-aux/bootstrap (download_po_files): New function, renamed from
32571         get_translations.  Now, downloads, but doesn't update LINGUAS.
32572         (update_po_files): New function.
32573
32574         bootstrap: Ignore more.
32575         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32576         uniwidth to e.g., lib/.gitignore.
32577         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32578
32579         * build-aux/bootstrap: New setting: vc_ignore.
32580         (insert_sorted_if_absent): Create $file if absent.
32581         Adapt to new, possibly empty, list: $vc_ignore.
32582
32583         bootstrap: generate more ignorable names
32584         * build-aux/bootstrap (slurp): When generating ignorable names,
32585         also map .sin to .sed, .gperf to .c, and .y to .c.
32586
32587 2007-09-03  Jim Meyering  <jim@meyering.net>
32588
32589         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32590         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32591
32592 2007-09-02  Bruno Haible  <bruno@clisp.org>
32593
32594         Fix mis-recognition of 'mcs' on QNX 6.
32595         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32596         output contains the string "Mono".
32597         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32598         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32599
32600 2007-09-01  Bruno Haible  <bruno@clisp.org>
32601
32602         Fix collision between uniwidth/* and linebreak modules.
32603         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32604         u32_width): Remove declarations.
32605         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32606         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32607         streq3, streq2, streq1, streq0): Remove functions.
32608         (STREQ): Remove macro.
32609         (is_cjk_encoding): Remove function.
32610         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32611         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32612         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32613         * NEWS: Document the change.
32614
32615 2007-09-01  Bruno Haible  <bruno@clisp.org>
32616
32617         * lib/streq.h: Add double-inclusion guard.
32618
32619 2007-09-01  Karl Berry  <karl@gnu.org>
32620
32621         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32622
32623 2007-08-28  Jim Meyering  <jim@meyering.net>
32624
32625         Rename mreadlink_with_size to areadlink_with_size.
32626         * NEWS: Document the change.
32627         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32628         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32629         * lib/mreadlink.h: Rename this to...
32630         * lib/areadlink.h: ...this.
32631         * modules/mreadlink-with-size: Rename this to...
32632         * modules/areadlink-with-size: ...this.
32633         * lib/canonicalize.c: Reflect the renaming.
32634         * modules/canonicalize: Likewise.
32635
32636 2007-08-26  Bruno Haible  <bruno@clisp.org>
32637
32638         * gnulib-tool (func_import): When deciding which files to remove,
32639         consider also dangling symbolic links.
32640         Reported by Eric Blake.
32641
32642 2007-08-26  Bruno Haible  <bruno@clisp.org>
32643
32644         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32645
32646 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32647
32648         * lib/readline.c: Don't include getline.h, the prototype is now
32649         found in stdio.h.
32650
32651 2007-08-23  Jim Meyering  <jim@meyering.net>
32652
32653         Getdelim touchup.
32654         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32655         around the funlockfile call, since funlockfile never sets errno.
32656         Don't set errno upon failed realloc.
32657
32658 2007-08-22  Eric Blake  <ebb9@byu.net>
32659
32660         Getline touchups.
32661         * lib/getdelim.c (getdelim): Revert regression that required *n to
32662         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32663         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32664         getdelim, rather than whether implementation is missing.
32665         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32666         * lib/stdio_.h (getline): Also declare if replacement is
32667         required.
32668         * doc/functions/getdelim.texi: New file.
32669         * doc/functions/getline.texi: Likewise.
32670         * doc/gnulib.texi (Function Substitutes): Add new files.
32671         Reported by Bruno Haible.
32672
32673 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32674
32675         * users.txt: Add Guile.
32676
32677 2007-08-22  Eric Blake  <ebb9@byu.net>
32678
32679         * tests/test-getdelim.c (main): Use remove, not unlink.
32680         * tests/test-getline.c (main): Likewise.
32681
32682         Move getline and getdelim into stdio.h, per POSIX 200x.
32683         * modules/getline (Files): Remove getline.h.
32684         (Depends-on): Add stdio.
32685         (configure.ac): Add module indicator.
32686         * modules/getdelim (Files): Remove getdelim.h.
32687         (Depends-on): Add stdio.
32688         (configure.ac): Add module indicator.
32689         * modules/stdio (Makefile.am): Work with new indicators.
32690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32693         * lib/getdelim.h: Delete.
32694         * lib/getline.h: Delete.
32695         * lib/stdio_.h (getdelim, getline): Declare.
32696         * modules/getdelim-tests: New module.
32697         * modules/getline-tests: Likewise.
32698         * tests/test-getdelim.c: New file.
32699         * tests/test-getline.c: Likewise.
32700         * NEWS: Document the change.
32701         * lib/getline.c: Update choice of header.
32702         * lib/csharpcomp.c: Likewise.
32703         * lib/getpass.c: Likewise.
32704         * lib/javacomp.c: Likewise.
32705         * lib/javaversion.c: Likewise.
32706         * lib/yesno.c: Likewise.
32707         * lib/getdelim.c: Likewise.
32708         (getdelim): Set errno on failure, and avoid memory leak.
32709
32710 2007-08-19  Bruno Haible  <bruno@clisp.org>
32711
32712         * modules/closein (Depends-on): Add freadahead.
32713         * lib/closein.c: Include freadahead.h.
32714         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32715         is zero.
32716
32717 2007-08-19  Bruno Haible  <bruno@clisp.org>
32718
32719         * modules/freadahead-tests: New file.
32720         * tests/test-freadahead.sh: New file.
32721         * tests/test-freadahead.c: New file.
32722
32723         * modules/freadahead: New file.
32724         * lib/freadahead.h: New file.
32725         * lib/freadahead.c: New file.
32726         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32727         fbufmode, fpurge, freadable, fwritable.
32728
32729 2007-08-19  Eric Blake  <ebb9@byu.net>
32730
32731         Test yesno in combination with closein.
32732         * lib/yesno.c (yesno): Document use of stdin.
32733         * modules/yesno-tests (Files): New module.
32734         * tests/test-yesno.c (main): New file.
32735         * tests/test-yesno.sh: Likewise.
32736
32737 2007-08-19  Bruno Haible  <bruno@clisp.org>
32738
32739         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32740         * lib/fseeko.c (rpl_fseeko): Likewise.
32741         * lib/fseterr.c (fseterr): Likewise.
32742
32743 2007-08-19  Bruno Haible  <bruno@clisp.org>
32744
32745         * tests/test-lseek.c (main): Disable a test for BeOS.
32746         * doc/functions/lseek.texi: Document the BeOS bug.
32747
32748 2007-08-19  Bruno Haible  <bruno@clisp.org>
32749             Eric Blake  <ebb9@byu.net>
32750
32751         * lib/lseek.c: Include <sys/stat.h>.
32752         (rpl_lseek): Add workaround code also for Unix platforms.
32753         Needed for BeOS.
32754         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32755         * doc/functions/lseek.texi: Document BeOS definiency.
32756
32757 2007-08-18  Bruno Haible  <bruno@clisp.org>
32758
32759         * modules/fstrcmp-tests: New file.
32760         * tests/test-fstrcmp.c: New file.
32761
32762 2007-08-18  Bruno Haible  <bruno@clisp.org>
32763
32764         * modules/fstrcmp: New file, from GNU gettext with modifications.
32765         * lib/fstrcmp.h: New file, from GNU gettext.
32766         * lib/fstrcmp.c: New file, from GNU gettext.
32767         * MODULES.html.sh (String handling): Add fstrcmp.
32768
32769 2007-08-18  Bruno Haible  <bruno@clisp.org>
32770
32771         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32772         'bool'.
32773         (diag, compareseq): Remove const from the ctxt argument.
32774         (USE_HEURISTIC): Undefine at the end.
32775
32776 2007-08-18  Jim Meyering  <jim@meyering.net>
32777
32778         New file: lib/idcache.h
32779         * NEWS: Mention the addition.
32780         * modules/idcache (Files): Add lib/idcache.h
32781         * lib/idcache.c: Include "idcache.h".
32782         Don't include <sys/types.h>.
32783         Add a FIXME comment.
32784         Move file-scoped "static" declarations to the top.
32785         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32786
32787 2007-08-17  Bruno Haible  <bruno@clisp.org>
32788         and Paul Eggert  <eggert@cs.ucla.edu>
32789
32790         * MODULES.html.sh: Add diffseq.
32791         * modules/diffseq: New file.
32792         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32793         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32794
32795 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32796
32797         Import changes from coreutils for bootstrap script.
32798
32799         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32800
32801         * build-aux/bootstrap (slurp): Work even in environments where
32802         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32803         current code does not slurp files whose names start with ".", and
32804         this looks like it might be a troublesome area.
32805
32806         2007-07-11  Jim Meyering  <jim@meyering.net>
32807
32808         If there's a GPL vN copyright comment, require that N == 3.
32809
32810         2007-07-08  Jim Meyering  <jim@meyering.net>
32811
32812         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32813         * build-aux/bootstrap (mam_template): Move definition out of loop.
32814
32815         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32816
32817         * build-aux/bootstrap (symlink_to_dir): Rename function from
32818         symlink_to_gnulib.  Add a directory parameter.  Update all
32819         callers.
32820         (cp_mark_as_generated): Also check for -- and link to -- files in
32821         gl/.
32822
32823         2007-07-08  Jim Meyering  <jim@meyering.net>
32824
32825         Adapt to deeper hierarchy in gnulib.
32826         * build-aux/bootstrap (symlink_to_dir): If the destination
32827         directory doesn't exist, create it. This is required at least for
32828         "lib/uniwidth/cjk.h".
32829
32830         2007-05-15  Jim Meyering  <jim@meyering.net>
32831
32832         * build-aux/bootstrap: Now that generated Makefile.am files
32833         are no longer under version control, they must be created at
32834         bootstrap time.
32835
32836 2007-08-14  Ben Pfaff  <blp@gnu.org>
32837
32838         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32839
32840 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32841
32842         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32843         given the changes below.
32844         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32845         even on hosts that have padding bits beyond the supported 64.
32846
32847 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32848
32849         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32850         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32851         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32852         depends on it.
32853         (xstrtol_error): Remove.
32854         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32855         but with a different signature.
32856         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32857         * lib/xstrtol-error.c: Include exitfail.h.
32858         (xstrtol_fatal): New function, with a different signature from the
32859         old xstrtol_error, so that the caller need not worry about passing
32860         in an exit status, or about storage management of the option argument.
32861         (xstrtol_error): Now a static function.  Redo signature to
32862         implement xstrtol_fatal.  Output the correct number of hyphens in
32863         front of the option so that the caller need not worry about
32864         storage management.
32865         (N_): New macro.
32866         (_): Remove; not used now.
32867         * modules/xstrtol: Depend on getopt.
32868         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32869         of old STRTOL_FATAL_ERROR macro.
32870         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32871         of test program.
32872         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32873         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32874
32875 2007-08-08  Eric Blake  <ebb9@byu.net>
32876
32877         * lib/xstrtol-error.c: Add missing include.
32878
32879         Move xstrtol messages into gnulib domain, when --pobase is used.
32880         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32881         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32882         * modules/xstrtol (Files): Distribute new file.
32883         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32884         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32885         * tests/test-xstrtol.c: ...into new file.
32886         * tests/test-xstrtoul.c: Also test xstrtoul.
32887         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32888         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32889         * tests/test-xstrtol.sh: Drive the tests.
32890         * tests/test-xstrtoimax.sh: Likewise.
32891         * tests/test-xstrtoumax.sh: Likewise.
32892         * modules/xstrtol-tests: New module.
32893         * modules/xstrtoimax-tests: Likewise.
32894         * modules/xstrtoumax-tests: Likewise.
32895
32896 2007-08-08  Jim Meyering  <jim@meyering.net>
32897
32898         New function: mfile_name_concat.
32899         * lib/filenamecat.c (mfile_name_concat): New function, just like
32900         file_name_concat, but return NULL upon failure rather than exiting
32901         with a diagnostic.
32902         * lib/filenamecat.h: Declare it.
32903
32904 2007-08-07  Bruno Haible  <bruno@clisp.org>
32905
32906         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32907         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32908         warning from gcc.
32909         Reported by Eric Blake.
32910
32911 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32912
32913         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32914         * modules/crypto/arcfour (License): Likewise.
32915         * modules/crypto/des-tests (License): Likewise.
32916         * modules/crypto/gc-arctwo-tests (License): Likewise.
32917         * modules/crypto/gc-des-tests (License): Likewise.
32918         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32919         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32920         * modules/crypto/gc-md2-tests (License): Likewise.
32921         * modules/crypto/gc-md4-tests (License): Likewise.
32922         * modules/crypto/gc-md5-tests (License): Likewise.
32923         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32924         * modules/crypto/gc-rijndael-tests (License): Likewise.
32925         * modules/crypto/gc-sha1-tests (License): Likewise.
32926         * modules/crypto/gc-tests (License): Likewise.
32927         * modules/crypto/hmac-md5 (License): Likewise.
32928         * modules/crypto/hmac-sha1 (License): Likewise.
32929         * modules/crypto/md2-tests (License): Likewise.
32930         * modules/crypto/md4-tests (License): Likewise.
32931         * modules/crypto/md5 (License): Likewise.
32932         * modules/crypto/rijndael (License): Likewise.
32933         * modules/crypto/sha1 (License): Likewise.
32934         * modules/memxor (License): Likewise.
32935
32936 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32937         and Bruno Haible  <bruno@clisp.org>
32938
32939         * NEWS: Describe interface changes to human, xstrtol.
32940         * lib/human.h: Include <xstrtol.h>.
32941         (human_options): Return enum strtol_error, not int.  Remove
32942         bool arg; take int * instead.
32943         * lib/human.c: Don't include "gettext.h".
32944         (_): Remove; no longer used.
32945         Don't include <xstrtol.h>, since human.h does it.
32946         (human_options): Adjust to abovementioned interface changes.
32947         Do not report error to stderr; that's now the caller's
32948         responsibility.
32949         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32950         interface change.
32951         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32952         Str, Argument_type_string.  All uses changed.  Put " argument"
32953         in diagnostics to make them clearer.  Change wording of suffix
32954         message for clarity.
32955         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32956         Argument_type_string.
32957         (STRTOL_FATAL_WARN): Remove; no longer used.
32958         * modules/human (Depends-on): Remove gettext-h.
32959
32960 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32961
32962         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32963
32964 2007-07-31  Bruno Haible  <bruno@clisp.org>
32965
32966         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32967         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32968         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32969
32970 2007-07-31  Bruno Haible  <bruno@clisp.org>
32971
32972         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32973         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32974
32975 2007-07-30  Bruno Haible  <bruno@clisp.org>
32976
32977         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32978         * modules/c-ctype (License): Likewise.
32979         * modules/c-strcase (License): Likewise.
32980         * modules/check-version (License): Likewise.
32981         * modules/iconv (License): Likewise.
32982         * modules/iconv_open (License): Likewise.
32983         * modules/read-file (License): Likewise.
32984         * modules/striconv (License): Likewise.
32985         * modules/strverscmp (License): Likewise.
32986         * modules/vasprintf (License): Likewise.
32987         * modules/crypto/des (License): Likewise.
32988         * modules/crypto/gc (License): Likewise.
32989         * modules/crypto/gc-arcfour (License): Likewise.
32990         * modules/crypto/gc-arctwo (License): Likewise.
32991         * modules/crypto/gc-des (License): Likewise.
32992         * modules/crypto/gc-hmac-md5 (License): Likewise.
32993         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32994         * modules/crypto/gc-md2 (License): Likewise.
32995         * modules/crypto/gc-md4 (License): Likewise.
32996         * modules/crypto/gc-md5 (License): Likewise.
32997         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32998         * modules/crypto/gc-random (License): Likewise.
32999         * modules/crypto/gc-rijndael (License): Likewise.
33000         * modules/crypto/gc-sha1 (License): Likewise.
33001         * modules/crypto/md2 (License): Likewise.
33002         * modules/crypto/md4 (License): Likewise.
33003
33004 2007-07-30  Jim Meyering  <jim@meyering.net>
33005
33006         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33007         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33008         it has valid stat data.  This bug would cause du not to count the
33009         sizes of inaccessible directories.
33010         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33011         in <http://bugzilla.redhat.com/250077>.
33012
33013 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33014             Bruno Haible  <bruno@clisp.org>
33015
33016         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33017         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33018         #include_next, gives a diagnostic about it, but reports no error in
33019         the exit code.
33020         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33021
33022 2007-07-24  Ben Pfaff  <blp@gnu.org>
33023
33024         Improve name: "count-one-bits" is better than "popcount".
33025         * MODULES.html.sh: Update name.
33026         * lib/popcount.h: Renamed lib/count-one-bits.h.
33027         (popcount): Renamed count_one_bits.
33028         (popcountl): Renamed count_one_bits_l.
33029         (popcountll): Renamed count_one_bits_ll.
33030         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33031         * modules/popcount: Renamed module/count-one-bits.
33032         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33033         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33034
33035 2007-07-23  Ben Pfaff  <blp@gnu.org>
33036
33037         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33038         better code generation, and add U to large constants to avoid
33039         warnings, in non-GCC case.
33040         Suggested by Bruno Haible.
33041
33042 2007-07-23  Ben Pfaff  <blp@gnu.org>
33043
33044         * lib/popcount.h: Use verify_true instead of if...abort.
33045         * modules/popcount: Depend on verify module.
33046         Suggested by Jim Meyering.
33047
33048 2007-07-23  Bruno Haible  <bruno@clisp.org>
33049
33050         * gnulib-tool (func_import): Create a .cvsignore file also when the
33051         directory is not yet in CVS but the toplevel directory is. When
33052         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33053         Reported by Karl Berry.
33054
33055 2007-07-22  Ben Pfaff  <blp@gnu.org>
33056
33057         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33058         case.
33059         Suggested by Eric Blake.
33060
33061 2007-07-22  Ben Pfaff  <blp@gnu.org>
33062
33063         New module: popcount.
33064         * MODULES.html.sh: Add popcount.
33065         * modules/popcount: New file.
33066         * modules/popcount-tests: New file.
33067         * tests/test-popcount.c: New file.
33068         * lib/popcount.h: New file.
33069         * m4/popcount.m4: New file.
33070
33071 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33072
33073         * build-aux/announce-gen: Update to GPLv3.
33074
33075         * build-aux/config.guess: Update from config.
33076
33077 2007-07-21  Bruno Haible  <bruno@clisp.org>
33078
33079         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33080         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33081
33082 2007-07-20  Jim Meyering  <jim@meyering.net>
33083
33084         * check-module: Diagnose a self-dependency.
33085
33086 2007-07-19  Bruno Haible  <bruno@clisp.org>
33087
33088         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33089         empty.
33090         Reported by Eric Blake.
33091
33092 2007-07-18  Bruno Haible  <bruno@clisp.org>
33093
33094         * gnulib-tool: New options --po-base, --po-domain.
33095         (func_usage): Document them.
33096         (pobase, po_domain): New variables.
33097         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33098         DEFAULT_TEXT_DOMAIN.
33099         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33100         (func_import): Consider pobase and po_domain. Create a po/ directory.
33101         (func_create_testdir): Set pobase and po_domain to empty.
33102         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33103         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33104
33105 2007-07-18  Bruno Haible  <bruno@clisp.org>
33106
33107         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33108         EXTRA_DIST augmentation for files in build-aux/.
33109
33110 2007-07-16  Bruno Haible  <bruno@clisp.org>
33111
33112         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33113         * modules/getdelim (License): Likewise.
33114
33115 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33116
33117         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33118         * modules/d-type (License): Likewise.
33119         * modules/extensions (License): Likewise.
33120         * modules/fnmatch (License): Likewise.
33121         * modules/fseeko (License): Likewise.
33122         * modules/getaddrinfo (License): Likewise.
33123         * modules/getline (License): Likewise.
33124         * modules/getlogin_r (License): Likewise.
33125         * modules/getpass (License): Likewise.
33126         * modules/gettimeofday (License): Likewise.
33127         * modules/glob (License): Likewise.
33128         * modules/inet_ntop (License): Likewise.
33129         * modules/malloc (License): Likewise.
33130         * modules/malloca (License): Likewise.
33131         * modules/memmem (License): Likewise.
33132         * modules/mempcpy (License): Likewise.
33133         * modules/memset (License): Likewise.
33134         * modules/minmax (License): Likewise.
33135         * modules/mktime (License): Likewise.
33136         * modules/netinet_in (License): Likewise.
33137         * modules/pathmax (License): Likewise.
33138         * modules/poll (License): Likewise.
33139         * modules/regex (License): Likewise.
33140         * modules/snprintf (License): Likewise.
33141         * modules/stdbool (License): Likewise.
33142         * modules/stdint (License): Likewise.
33143         * modules/stdio (License): Likewise.
33144         * modules/strcase (License): Likewise.
33145         * modules/strcasestr (License): Likewise.
33146         * modules/strdup (License): Likewise.
33147         * modules/string (License): Likewise.
33148         * modules/strndup (License): Likewise.
33149         * modules/strnlen (License): Likewise.
33150         * modules/strpbrk (License): Likewise.
33151         * modules/strptime (License): Likewise.
33152         * modules/strsep (License): Likewise.
33153         * modules/sys_select (License): Likewise.
33154         * modules/sys_socket (License): Likewise.
33155         * modules/sys_stat (License): Likewise.
33156         * modules/sys_time (License): Likewise.
33157         * modules/time (License): Likewise.
33158         * modules/time_r (License): Likewise.
33159         * modules/timegm (License): Likewise.
33160         * modules/unistd (License): Likewise.
33161         * modules/vsnprintf (License): Likewise.
33162         * modules/wctype (License): Likewise.
33163
33164 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33165
33166         * modules/argz (License): LGPLv2+.
33167
33168 2007-07-15  Karl Berry  <karl@gnu.org>
33169
33170         * doc/gnulib.texi: revise node structure per new fdl.texi.
33171
33172 2007-07-14  Bruno Haible  <bruno@clisp.org>
33173
33174         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33175         the output file.
33176         * lib/uniname/uninames.h: Regenerated.
33177
33178 2007-07-14  Karl Berry  <karl@gnu.org>
33179
33180         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33181         omitting sectioning and index commands.
33182
33183 2007-07-13  Bruno Haible  <bruno@clisp.org>
33184
33185         New gnulib-tool option --more-symlinks.
33186         * gnulib-tool (func_usage): Document --more-symlinks.
33187         (do_copyrights): New variable.
33188         Recognize option --more-symlinks.
33189         (func_import): Don't add a copyright notice transform to
33190         sed_transform_lib_file if do_copyrights is empty.
33191
33192 2007-07-13  Bruno Haible  <bruno@clisp.org>
33193
33194         * lib/vasnprintf.c (decimal_point_char): Define also if
33195         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33196         && !NEED_PRINTF_DIRECTIVE_A.
33197         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33198         Gary V. Vaughan <gary@gnu.org>.
33199
33200 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33201
33202         * lib/inttypes_.h: Undo previous change, since it was fixed
33203         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33204
33205 2007-07-13  Bruno Haible  <bruno@clisp.org>
33206
33207         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33208         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33209
33210 2007-07-13  Jim Meyering  <jim@meyering.net>
33211
33212         df: Don't fail for Tru64's "file-on-file mount".
33213         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33214         so we fall through and use statfs instead.  Details here:
33215         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33216         Reported by Albert Chin.
33217
33218 2007-07-13  Bruno Haible  <bruno@clisp.org>
33219
33220         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33221         * modules/configmake (License): Likewise.
33222         * modules/gettext (License): Likewise.
33223         * modules/gettext-h (License): Likewise.
33224         * modules/include_next (License): Likewise.
33225         * modules/link-warning (License): Likewise.
33226         * modules/localcharset (License): Likewise.
33227         * modules/localename (License): Likewise.
33228         * modules/lock (License): Likewise.
33229         * modules/relocatable-lib-lgpl (License): Likewise.
33230         * modules/size_max (License): Likewise.
33231         * modules/vasnprintf (License): Likewise.
33232         * modules/wchar (License): Likewise.
33233         * modules/xsize (License): Likewise.
33234
33235 2007-07-13  Bruno Haible  <bruno@clisp.org>
33236
33237         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33238         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33239
33240 2007-07-12  Bruno Haible  <bruno@clisp.org>
33241
33242         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33243         in the modules files.
33244
33245 2007-07-11  Karl Berry  <karl@gnu.org>
33246
33247         * MODULES.html.sh (func_module): use
33248          sed -e '\|^'"${includefile}"'$|d'
33249          instead of /.../d, to avoid errors on $includefile's containing /.
33250
33251 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33252
33253         * gnulib-tool (func_import): Avoid duplication of --avoid
33254         statements
33255         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33256         names to `_' in variable names.
33257
33258 2007-07-10  Eric Blake  <ebb9@byu.net>
33259
33260         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33261         * NEWS: Document this change.
33262
33263 2007-07-08  Bruno Haible  <bruno@clisp.org>
33264
33265         Update to Unicode 5.0.
33266         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33267         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33268         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33269         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33270         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33271         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33272         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33273         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33274         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33275         U+10A3F, U+1D242..U+1D244.
33276         (nonspacing_table_ind): Update.
33277         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33278         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33279
33280 2007-07-08  Bruno Haible  <bruno@clisp.org>
33281
33282         Update to Unicode 5.0.
33283         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33284         code transform. Extend the name index field of unicode_name_to_code and
33285         unicode_code_to_name from 16 to 24 bits.
33286         * lib/uniname/uniname.c (unicode_character_name,
33287         unicode_name_character): Add the range 0x12xxx to the code transform.
33288         * lib/uniname/uninames.h: Regenerated.
33289         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33290
33291 2007-07-07  Bruno Haible  <bruno@clisp.org>
33292
33293         * modules/wcwidth-tests: New file.
33294         * tests/test-wcwidth.c: New file.
33295
33296         Work around MacOS X wcwidth() bug.
33297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33298         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33299         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33300         original wcwidth in non-UTF-8 locales.
33301         * modules/wcwidth (Depends-on): Add localcharset, streq,
33302         uniwidth/width.
33303         * doc/functions/wcwidth.texi: Update.
33304
33305 2007-07-07  Bruno Haible  <bruno@clisp.org>
33306
33307         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33308         (wcwidth): New declaration.
33309         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33310         macros.
33311         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33312         here. Prepare for creating <wchar.h> unconditionally.
33313         * modules/wchar (Depends-on): Add link-warning.
33314         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33315         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33316         * lib/wcwidth.h: Remove file.
33317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33318         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33319         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33320         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33321         (Include): Replace wcwidth.h with <wchar.h>.
33322         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33323         * lib/mbchar.h: Don't include wcwidth.h.
33324         * lib/mbswidth.c: Likewise.
33325         * NEWS: Mention the change.
33326
33327 2007-07-07  Bruno Haible  <bruno@clisp.org>
33328
33329         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33330         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33331         definition with an external declaration.
33332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33333         defined as a function. Remove AC_C_INLINE requirement.
33334         * modules/wcwidth (Files): Add lib/wcwidth.c.
33335         (Makefile.am): Remove redundant statement.
33336
33337 2007-07-07  Bruno Haible  <bruno@clisp.org>
33338
33339         * MODULES.html.sh (Unicode string functions): Add the new modules.
33340
33341         * tests/uniwidth/test-u32-strwidth.c: New file.
33342         * modules/uniwidth/u32-strwidth-tests: New file.
33343
33344         * lib/uniwidth/u32-strwidth.c: New file.
33345         * modules/uniwidth/u32-strwidth: New file.
33346
33347         * tests/uniwidth/test-u16-strwidth.c: New file.
33348         * modules/uniwidth/u16-strwidth-tests: New file.
33349
33350         * lib/uniwidth/u16-strwidth.c: New file.
33351         * modules/uniwidth/u16-strwidth: New file.
33352
33353         * tests/uniwidth/test-u8-strwidth.c: New file.
33354         * modules/uniwidth/u8-strwidth-tests: New file.
33355
33356         * lib/uniwidth/u8-strwidth.c: New file.
33357         * modules/uniwidth/u8-strwidth: New file.
33358
33359         * tests/uniwidth/test-u32-width.c: New file.
33360         * modules/uniwidth/u32-width-tests: New file.
33361
33362         * lib/uniwidth/u32-width.c: New file.
33363         * modules/uniwidth/u32-width: New file.
33364
33365         * tests/uniwidth/test-u16-width.c: New file.
33366         * modules/uniwidth/u16-width-tests: New file.
33367
33368         * lib/uniwidth/u16-width.c: New file.
33369         * modules/uniwidth/u16-width: New file.
33370
33371         * tests/uniwidth/test-u8-width.c: New file.
33372         * modules/uniwidth/u8-width-tests: New file.
33373
33374         * lib/uniwidth/u8-width.c: New file.
33375         * modules/uniwidth/u8-width: New file.
33376
33377         * tests/uniwidth/test-uc_width.c: New file.
33378         * modules/uniwidth/width-tests: New file.
33379
33380         * lib/uniwidth/width.c: New file, from GNU libiconv.
33381         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33382         * modules/uniwidth/width: New file.
33383
33384         * lib/uniwidth.h: New file, from GNU libiconv.
33385         * modules/uniwidth/base: New file.
33386
33387 2007-07-07  Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/uniname.h: New file, from GNU gettext.
33390         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33391         * lib/uniname/uninames.h: New file, from GNU gettext.
33392         * lib/uniname/uniname.c: New file, from GNU gettext.
33393         * tests/uniname/test-uninames.sh: New file.
33394         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33395         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33396         * modules/uniname/base: New file.
33397         * modules/uniname/uniname: New file.
33398         * modules/uniname/uniname-tests: New file.
33399         * MODULES.html.sh (Unicode string functions): Add the new modules.
33400
33401 2007-07-06  Bruno Haible  <bruno@clisp.org>
33402
33403         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33404
33405 2007-07-06  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33408         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33409         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33410         include <sys/time.h>.
33411         Reported by Eric Blake.
33412
33413 2007-07-06  Eric Blake  <ebb9@byu.net>
33414
33415         Fix testing canonicalize on cygwin.
33416         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33417         Revert patch from 2007-06-19.
33418         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33419         canonicalize module is also in use.
33420         * tests/test-canonicalize.c: New file.
33421         * tests/test-canonicalize.sh: Likewise.
33422         * modules/canonicalize-tests: Likewise.
33423
33424 2007-07-06  Jim Meyering  <jim@meyering.net>
33425
33426         * lib/getugroups.c (getugroups): Detect getgrent failure.
33427         Adjust comment to reflect reality: this function may return -1.
33428
33429 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33430
33431         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33432         the new TP address.
33433         (usage): Fix typo
33434         (gnulib_mk): New variable.
33435
33436 2007-07-05  Jim Meyering  <jim@meyering.net>
33437
33438         Don't let endgrent clobber errno, no matter how improbable.
33439         * lib/getugroups.c (getugroups): Save and restore errno around
33440         endgrent call.
33441
33442         Close the group DB even when failing with 2^31 or more members.
33443         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33444
33445 2007-07-04  Jim Meyering  <jim@meyering.net>
33446
33447         * lib/getugroups.h: New file.
33448         * lib/getugroups.c: Include "getugroups.h".
33449         Remove uses of "register" keyword.
33450         Move local variable, "cp", down into scope where used.
33451         Give "username" parameter the "const" attribute.
33452         * modules/getugroups (Files): Add lib/getugroups.h
33453
33454 2007-07-04  Karl Berry  <karl@gnu.org>
33455
33456         * MODULES.html.sh (func_all_modules): Complete rename of
33457         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33458
33459 2007-07-02  Bruno Haible  <bruno@clisp.org>
33460
33461         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33462         mode, when inttypes.h comes from gnulib.
33463         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33464
33465 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33466
33467         * NEWS: Mention lgpl module name change.
33468
33469         * modules/lgpl-2.1: Renamed from lgpl.
33470
33471         * NEWS: Mention gpl module name change.
33472
33473         * modules/gpl-3.0: New file, based on gpl-2.0.
33474
33475         * modules/gpl-2.0: Renamed from gpl.
33476
33477         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33478         doc/gpl-2.0.texi.
33479
33480 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33481
33482         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33483         #define __STDC_LIMIT_MACROS temporarily while including
33484         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33485         Problem reported by Joel E. Denny in
33486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33487
33488 2007-07-01  Bruno Haible  <bruno@clisp.org>
33489
33490         * lib/unistdio.h: New file.
33491         * lib/unistdio/u-asnprintf.h: New file.
33492         * lib/unistdio/u-asprintf.h: New file.
33493         * lib/unistdio/u-printf-args.c: New file.
33494         * lib/unistdio/u-printf-args.h: New file.
33495         * lib/unistdio/u-printf-parse.h: New file.
33496         * lib/unistdio/u-snprintf.h: New file.
33497         * lib/unistdio/u-sprintf.h: New file.
33498         * lib/unistdio/u-vasprintf.h: New file.
33499         * lib/unistdio/u-vsnprintf.h: New file.
33500         * lib/unistdio/u-vsprintf.h: New file.
33501         * lib/unistdio/ulc-asnprintf.c: New file.
33502         * lib/unistdio/ulc-asprintf.c: New file.
33503         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33504         * lib/unistdio/ulc-printf-parse.c: New file.
33505         * lib/unistdio/ulc-snprintf.c: New file.
33506         * lib/unistdio/ulc-sprintf.c: New file.
33507         * lib/unistdio/ulc-vasnprintf.c: New file.
33508         * lib/unistdio/ulc-vasprintf.c: New file.
33509         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33510         * lib/unistdio/ulc-vsnprintf.c: New file.
33511         * lib/unistdio/ulc-vsprintf.c: New file.
33512         * lib/unistdio/u8-asnprintf.c: New file.
33513         * lib/unistdio/u8-asprintf.c: New file.
33514         * lib/unistdio/u8-printf-parse.c: New file.
33515         * lib/unistdio/u8-snprintf.c: New file.
33516         * lib/unistdio/u8-sprintf.c: New file.
33517         * lib/unistdio/u8-vasnprintf.c: New file.
33518         * lib/unistdio/u8-vasprintf.c: New file.
33519         * lib/unistdio/u8-vsnprintf.c: New file.
33520         * lib/unistdio/u8-vsprintf.c: New file.
33521         * lib/unistdio/u8-u8-asnprintf.c: New file.
33522         * lib/unistdio/u8-u8-asprintf.c: New file.
33523         * lib/unistdio/u8-u8-snprintf.c: New file.
33524         * lib/unistdio/u8-u8-sprintf.c: New file.
33525         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33526         * lib/unistdio/u8-u8-vasprintf.c: New file.
33527         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33528         * lib/unistdio/u8-u8-vsprintf.c: New file.
33529         * lib/unistdio/u16-asnprintf.c: New file.
33530         * lib/unistdio/u16-asprintf.c: New file.
33531         * lib/unistdio/u16-printf-parse.c: New file.
33532         * lib/unistdio/u16-snprintf.c: New file.
33533         * lib/unistdio/u16-sprintf.c: New file.
33534         * lib/unistdio/u16-vasnprintf.c: New file.
33535         * lib/unistdio/u16-vasprintf.c: New file.
33536         * lib/unistdio/u16-vsnprintf.c: New file.
33537         * lib/unistdio/u16-vsprintf.c: New file.
33538         * lib/unistdio/u16-u16-asnprintf.c: New file.
33539         * lib/unistdio/u16-u16-asprintf.c: New file.
33540         * lib/unistdio/u16-u16-snprintf.c: New file.
33541         * lib/unistdio/u16-u16-sprintf.c: New file.
33542         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33543         * lib/unistdio/u16-u16-vasprintf.c: New file.
33544         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33545         * lib/unistdio/u16-u16-vsprintf.c: New file.
33546         * lib/unistdio/u32-asnprintf.c: New file.
33547         * lib/unistdio/u32-asprintf.c: New file.
33548         * lib/unistdio/u32-printf-parse.c: New file.
33549         * lib/unistdio/u32-snprintf.c: New file.
33550         * lib/unistdio/u32-sprintf.c: New file.
33551         * lib/unistdio/u32-vasnprintf.c: New file.
33552         * lib/unistdio/u32-vasprintf.c: New file.
33553         * lib/unistdio/u32-vsnprintf.c: New file.
33554         * lib/unistdio/u32-vsprintf.c: New file.
33555         * lib/unistdio/u32-u32-asnprintf.c: New file.
33556         * lib/unistdio/u32-u32-asprintf.c: New file.
33557         * lib/unistdio/u32-u32-snprintf.c: New file.
33558         * lib/unistdio/u32-u32-sprintf.c: New file.
33559         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33560         * lib/unistdio/u32-u32-vasprintf.c: New file.
33561         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33562         * lib/unistdio/u32-u32-vsprintf.c: New file.
33563         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33564         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33565         * tests/unistdio/test-ulc-printf1.h: New file.
33566         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33567         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33568         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33569         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33570         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33571         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33572         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33573         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33574         * tests/unistdio/test-u8-asnprintf1.c: New file.
33575         * tests/unistdio/test-u8-asnprintf1.h: New file.
33576         * tests/unistdio/test-u8-printf1.h: New file.
33577         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33578         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33579         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33580         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33581         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33582         * tests/unistdio/test-u8-vasprintf1.c: New file.
33583         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33584         * tests/unistdio/test-u8-vsprintf1.c: New file.
33585         * tests/unistdio/test-u16-asnprintf1.c: New file.
33586         * tests/unistdio/test-u16-asnprintf1.h: New file.
33587         * tests/unistdio/test-u16-printf1.h: New file.
33588         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33589         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33590         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33591         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33592         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33593         * tests/unistdio/test-u16-vasprintf1.c: New file.
33594         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33595         * tests/unistdio/test-u16-vsprintf1.c: New file.
33596         * tests/unistdio/test-u32-asnprintf1.c: New file.
33597         * tests/unistdio/test-u32-asnprintf1.h: New file.
33598         * tests/unistdio/test-u32-printf1.h: New file.
33599         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33600         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33601         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33602         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33603         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33604         * tests/unistdio/test-u32-vasprintf1.c: New file.
33605         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33606         * tests/unistdio/test-u32-vsprintf1.c: New file.
33607         * modules/unistdio/base: New file.
33608         * modules/unistdio/u-printf-args: New file.
33609         * modules/unistdio/ulc-asnprintf: New file.
33610         * modules/unistdio/ulc-asprintf: New file.
33611         * modules/unistdio/ulc-fprintf: New file.
33612         * modules/unistdio/ulc-printf-parse: New file.
33613         * modules/unistdio/ulc-snprintf: New file.
33614         * modules/unistdio/ulc-sprintf: New file.
33615         * modules/unistdio/ulc-vasnprintf: New file.
33616         * modules/unistdio/ulc-vasprintf: New file.
33617         * modules/unistdio/ulc-vfprintf: New file.
33618         * modules/unistdio/ulc-vsnprintf: New file.
33619         * modules/unistdio/ulc-vsprintf: New file.
33620         * modules/unistdio/u8-asnprintf: New file.
33621         * modules/unistdio/u8-asprintf: New file.
33622         * modules/unistdio/u8-printf-parse: New file.
33623         * modules/unistdio/u8-snprintf: New file.
33624         * modules/unistdio/u8-sprintf: New file.
33625         * modules/unistdio/u8-vasnprintf: New file.
33626         * modules/unistdio/u8-vasprintf: New file.
33627         * modules/unistdio/u8-vsnprintf: New file.
33628         * modules/unistdio/u8-vsprintf: New file.
33629         * modules/unistdio/u8-u8-asnprintf: New file.
33630         * modules/unistdio/u8-u8-asprintf: New file.
33631         * modules/unistdio/u8-u8-snprintf: New file.
33632         * modules/unistdio/u8-u8-sprintf: New file.
33633         * modules/unistdio/u8-u8-vasnprintf: New file.
33634         * modules/unistdio/u8-u8-vasprintf: New file.
33635         * modules/unistdio/u8-u8-vsnprintf: New file.
33636         * modules/unistdio/u8-u8-vsprintf: New file.
33637         * modules/unistdio/u16-asnprintf: New file.
33638         * modules/unistdio/u16-asprintf: New file.
33639         * modules/unistdio/u16-printf-parse: New file.
33640         * modules/unistdio/u16-snprintf: New file.
33641         * modules/unistdio/u16-sprintf: New file.
33642         * modules/unistdio/u16-vasnprintf: New file.
33643         * modules/unistdio/u16-vasprintf: New file.
33644         * modules/unistdio/u16-vsnprintf: New file.
33645         * modules/unistdio/u16-vsprintf: New file.
33646         * modules/unistdio/u16-u16-asnprintf: New file.
33647         * modules/unistdio/u16-u16-asprintf: New file.
33648         * modules/unistdio/u16-u16-snprintf: New file.
33649         * modules/unistdio/u16-u16-sprintf: New file.
33650         * modules/unistdio/u16-u16-vasnprintf: New file.
33651         * modules/unistdio/u16-u16-vasprintf: New file.
33652         * modules/unistdio/u16-u16-vsnprintf: New file.
33653         * modules/unistdio/u16-u16-vsprintf: New file.
33654         * modules/unistdio/u32-asnprintf: New file.
33655         * modules/unistdio/u32-asprintf: New file.
33656         * modules/unistdio/u32-printf-parse: New file.
33657         * modules/unistdio/u32-snprintf: New file.
33658         * modules/unistdio/u32-sprintf: New file.
33659         * modules/unistdio/u32-vasnprintf: New file.
33660         * modules/unistdio/u32-vasprintf: New file.
33661         * modules/unistdio/u32-vsnprintf: New file.
33662         * modules/unistdio/u32-vsprintf: New file.
33663         * modules/unistdio/u32-u32-asnprintf: New file.
33664         * modules/unistdio/u32-u32-asprintf: New file.
33665         * modules/unistdio/u32-u32-snprintf: New file.
33666         * modules/unistdio/u32-u32-sprintf: New file.
33667         * modules/unistdio/u32-u32-vasnprintf: New file.
33668         * modules/unistdio/u32-u32-vasprintf: New file.
33669         * modules/unistdio/u32-u32-vsnprintf: New file.
33670         * modules/unistdio/u32-u32-vsprintf: New file.
33671         * modules/unistdio/ulc-asnprintf-tests: New file.
33672         * modules/unistdio/ulc-vasnprintf-tests: New file.
33673         * modules/unistdio/ulc-vasprintf-tests: New file.
33674         * modules/unistdio/ulc-vsnprintf-tests: New file.
33675         * modules/unistdio/ulc-vsprintf-tests: New file.
33676         * modules/unistdio/u8-asnprintf-tests: New file.
33677         * modules/unistdio/u8-vasnprintf-tests: New file.
33678         * modules/unistdio/u8-vasprintf-tests: New file.
33679         * modules/unistdio/u8-vsnprintf-tests: New file.
33680         * modules/unistdio/u8-vsprintf-tests: New file.
33681         * modules/unistdio/u16-asnprintf-tests: New file.
33682         * modules/unistdio/u16-vasnprintf-tests: New file.
33683         * modules/unistdio/u16-vasprintf-tests: New file.
33684         * modules/unistdio/u16-vsnprintf-tests: New file.
33685         * modules/unistdio/u16-vsprintf-tests: New file.
33686         * modules/unistdio/u32-asnprintf-tests: New file.
33687         * modules/unistdio/u32-vasnprintf-tests: New file.
33688         * modules/unistdio/u32-vasprintf-tests: New file.
33689         * modules/unistdio/u32-vsnprintf-tests: New file.
33690         * modules/unistdio/u32-vsprintf-tests: New file.
33691         * MODULES.html.sh (Unicode string functions): Add the new modules.
33692
33693 2007-07-01  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/sprintf.c (sprintf): Limit the available length estimation,
33696         to avoid address wraparound.
33697         * lib/vsprintf.c (vsprintf): Likewise.
33698         * modules/sprintf-posix (Dependencies): Add stdint.
33699         * modules/vsprintf-posix (Dependencies): Likewise.
33700
33701 2007-07-01  Bruno Haible  <bruno@clisp.org>
33702
33703         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33704         Windows PATH as well. Conservative double-quoting. Comments.
33705
33706 2007-07-01  Bruno Haible  <bruno@clisp.org>
33707             Eric Blake  <ebb9@byu.net>
33708             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33709
33710         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33711         empty components in $PATH, denoting '.'.
33712
33713 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33714
33715         * gnulib-tool: Fix indentation.
33716         (func_create_megatestdir): Likewise.
33717         Report by Bruno Haible.
33718
33719 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33720
33721         Sync from Automake.
33722         * build-aux/gnupload: Fix shell portability issues with for loops.
33723         Report by Karl Berry.
33724
33725 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33726
33727         * build-aux/maint.mk (POURL): Use translationproject.org.
33728
33729 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33730             Bruno Haible  <bruno@clisp.org>
33731
33732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33733         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33734         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33735         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33736         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33737
33738 2007-06-27  Bruno Haible  <bruno@clisp.org>
33739
33740         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33741         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33742
33743 2007-06-26  Karl Berry  <karl@gnu.org>
33744
33745         * MODULES.html.sh: remove xreadlink-with-size.
33746
33747 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33748
33749         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33750         method that I hope also handles the double-include problem noted
33751         by Bruno Haible in
33752         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33753
33754 2007-06-23  Bruno Haible  <bruno@clisp.org>
33755
33756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33757         Don't let the 'mostlyclean' target fail if the last subdirectory could
33758         not be removed.
33759         Reported by Karl Berry.
33760
33761 2007-06-23  Bruno Haible  <bruno@clisp.org>
33762
33763         * gnulib-tool (echo): Add a speedier workaround for ksh.
33764         * tests/test-echo.sh: Likewise.
33765
33766 2007-06-23  Bruno Haible  <bruno@clisp.org>
33767
33768         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33769         * tests/test-echo.sh: Likewise.
33770
33771 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33772
33773         * gnulib-tool (IFS): Initialize early, so we don't set it to
33774         empty later.
33775         (self_abspathname): Rewrite algorithm to set it, reindent.
33776         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33777         (func_create_megatestdir): Merge some sed scripts.
33778
33779 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33780
33781         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33782         exposed by Sun Studio 11 cc on Solaris 8.
33783
33784 2007-06-22  Bruno Haible  <bruno@clisp.org>
33785
33786         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33787         backslashes.
33788         * tests/test-echo.sh: New file.
33789
33790 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33791
33792         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33793         simplify `sed_replace_build_aux' scripts, they are portable but
33794         echoing them with `echo' is not.
33795         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33796
33797 2007-06-21  Karl Berry  <karl@gnu.org>
33798
33799         * config/srclist.txt: guess we can't handle the licenses via
33800         srclist at the moment.
33801
33802 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33803
33804         * MODULES.html.sh: Add include_next.
33805         * modules/include_next: New file.
33806
33807 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33808
33809         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33810         INCLUDE_NEXT.
33811         (gl_CHECK_NEXT_HEADERS): New macro.
33812         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33813         the obsolescent gl_ABSOLUTE_HEADER.
33814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33815         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33816         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33817         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33818         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33819         * m4/math_h.m4 (gl_MATH_H): Likewise.
33820         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33821         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33822         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33823         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33824         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33825         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33826         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33830         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33831         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33832         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33833         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33834         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33835         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33836         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33837         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33838         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33839         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33840         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33841         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33842         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33843         * lib/float_.h: Likewise.
33844         * lib/inttypes_.h: Likewise.
33845         * lib/math_.h: Likewise.
33846         * lib/search_.h: Likewise.
33847         * lib/signal_.h: Likewise.
33848         * lib/stdint_.h: Likewise.
33849         * lib/stdio_.h: Likewise.
33850         * lib/stdlib_.h: Likewise.
33851         * lib/string_.h: Likewise.
33852         * lib/sys_stat_.h: Likewise.
33853         * lib/sys_time_.h: Likewise.
33854         * lib/time_.h: Likewise.
33855         * lib/unistd_.h: Likewise.
33856         * lib/wchar_.h: Likewise.
33857         * lib/wctype_.h: Likewise.
33858         * lib/dirent_.h: Likewise.
33859         * lib/iconv_.h: Likewise.
33860         * lib/locale_.h: Likewise.
33861         * lib/netinet_in_.h: Likewise.
33862         * lib/sys_select_.h: Likewise.
33863         * lib/sys_socket_.h: Likewise.
33864         * lib/sysexits_.h: Likewise.
33865         * modules/fcntl (Depends-on): Depend on include_next, not
33866         absolute_header.
33867         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33868         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33869         * modules/fchdir: Likewise.
33870         * modules/float: Likewise.
33871         * modules/iconv_open: Likewise.
33872         * modules/inttypes: Likewise.
33873         * modules/locale: Likewise.
33874         * modules/math: Likewise.
33875         * modules/netinet_in: Likewise.
33876         * modules/search: Likewise.
33877         * modules/signal: Likewise.
33878         * modules/stdint: Likewise.
33879         * modules/stdio: Likewise.
33880         * modules/stdlib: Likewise.
33881         * modules/string: Likewise.
33882         * modules/sys_select: Likewise.
33883         * modules/sys_socket: Likewise.
33884         * modules/sys_stat: Likewise.
33885         * modules/sys_time: Likewise.
33886         * modules/sysexits: Likewise.
33887         * modules/time: Likewise.
33888         * modules/unistd: Likewise.
33889         * modules/wchar: Likewise.
33890         * modules/wctype: Likewise.
33891         * modules/sys_stat: Change maintainer to "all".
33892         * modules/unistd: Likewise.
33893
33894 2007-06-20  Karl Berry  <karl@gnu.org>
33895
33896         * config/srclist.txt: track www changes in license files.
33897
33898 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33899
33900         * build-aux/bootstrap: Remove stray dot.
33901         Make sure build_aux settings are honored when linking
33902         gnulib_extra_files.
33903
33904 2007-06-19  Eric Blake  <ebb9@byu.net>
33905
33906         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33907         Allow compilation on cygwin.
33908
33909 2007-06-19  Jim Meyering  <jim@meyering.net>
33910
33911         xreadlink-with-size: Remove module.  No longer used.
33912         Ex-callers now use xreadlink or mreadlink-with-size.
33913         * modules/xreadlink-with-size: Remove module.
33914         * lib/xreadlink-with-size.c: Remove file.
33915         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33916         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33917         just before the function definition *is* accurate.
33918
33919         Eliminate one way canonicalize_filename_mode could exit.
33920         * lib/canonicalize.c (canonicalize_filename_mode):
33921         Use mreadlink_with_size, not xreadlink_with_size.
33922
33923 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33924
33925         Detect porting problems to FreeBSD/arm, which has time_t wider than
33926         long int.  Original problem reported for GNU diff by Xin Li in
33927         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33928         * modules/getdate (Depends-on): Add intprops, verify.
33929         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33930         is an integer type no wider than long int.
33931
33932 2007-06-18  Jim Meyering  <jim@meyering.net>
33933
33934         New module: mreadlink-with-size.
33935         * MODULES.html.sh: Add mreadlink-with-size.
33936         * modules/mreadlink-with-size: New module
33937         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33938         not xreadlink-with-size.
33939         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33940
33941 2007-06-16  Bruno Haible  <bruno@clisp.org>
33942
33943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33944         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33945         Reported by Gary V. Vaughan <gary@gnu.org>.
33946
33947 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33948
33949         Revamp lchown so that it lives in unistd.h where it belongs.
33950         * lib/lchown.h: Remove.
33951         * lib/dirchownmod.c: Don't include lib/lchown.h.
33952         * lib/fchownat.c: Likewise.
33953         * lib/openat.c: Likewise.
33954         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33955         does not follow symlinks.
33956         (EOPNOTSUPP): Define if not defined.
33957         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33958         is defined to 0.
33959         (lchown): New decl.
33960         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33961         Do not check for lchown decl.
33962         Set REPLACE_LCHOWN.
33963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33964         REPLACE_LCHOWN.
33965         * modules/chown: Make it clear it follows symlinks.
33966         * modules/lchown: Make it clear it doesn't follow symlinks.
33967         (Files): Remove lib/lchown.h
33968         (Depends-on): Add unistd.
33969         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33970         (Include): Include <unistd.h>, not "lchown.h".
33971         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33972         REPLACE_LCHOWN.
33973
33974 2007-06-15  Jim Meyering  <jim@meyering.net>
33975
33976         Change license (GPL to LGPL) of fsusage and dependents.
33977         * modules/fsusage (License): Change to LGPL.
33978         * modules/full-read (License): Likewise.
33979         * modules/full-write (License): Likewise.
33980         * modules/safe-read (License): Likewise.
33981         * modules/safe-write (License): Likewise.
33982
33983 2007-06-14  Ben Pfaff  <blp@gnu.org>
33984
33985         Missing part of allocsa -> malloca transition.
33986         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33987         gl_MALLOCA.
33988
33989 2007-06-12  Bruno Haible  <bruno@clisp.org>
33990
33991         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33992         to ia64, x86_64, i386.
33993         Reported by Eric Blake.
33994
33995 2007-06-12  Bruno Haible  <bruno@clisp.org>
33996
33997         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33998         cross-compiling to x86_64.
33999
34000 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34001
34002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34003         glitch reported by Ralf Wildenhues in
34004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34005
34006         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34007         Vin Shelton.
34008
34009 2007-06-11  Bruno Haible  <bruno@clisp.org>
34010
34011         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34012         replacement string.
34013         Reported by Eric Blake.
34014
34015 2007-06-10  Bruno Haible  <bruno@clisp.org>
34016
34017         Prepare vasnprintf code for use with Unicode strings.
34018         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34019         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34020         TYPE_U32_STRING.
34021         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34022         a_u32_string variants.
34023         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34024         * lib/printf-args.c: Don't include config.h and the specification
34025         header if PRINTF_FETCHARGS is already defined.
34026         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34027         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34028         TYPE_U16_STRING, TYPE_U32_STRING.
34029         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34030         u16_directive, u16_directives, u32_directive, u32_directives): New
34031         types.
34032         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34033         New declarations.
34034         * lib/printf-parse.c: Don't include config.h and the specification
34035         header if PRINTF_PARSE is already defined. Eliminate the set of
34036         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34037         them now. Include c-ctype.h.
34038         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34039         directive and CHAR_T_ONLY_ASCII.
34040         * lib/vasnprintf.c: Don't include config.h and the specification header
34041         if VASNPRINTF is already defined.
34042         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34043         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34044         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34045         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34046         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34047         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34048         code accordingly.
34049         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34050         pad_ourselves also in this case, with the 'c' and 's' directives, and
34051         with a different notion of "width".
34052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34053
34054 2007-06-10  Bruno Haible  <bruno@clisp.org>
34055
34056         * modules/unistr/u32-mbsnlen: New file.
34057         * lib/unistr/u32-mbsnlen.c: New file.
34058
34059         * modules/unistr/u16-mbsnlen: New file.
34060         * lib/unistr/u16-mbsnlen.c: New file.
34061
34062         * modules/unistr/u8-mbsnlen: New file.
34063         * lib/unistr/u8-mbsnlen.c: New file.
34064
34065         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34066         declarations.
34067
34068 2007-06-10  Bruno Haible  <bruno@clisp.org>
34069
34070         * lib/string_.h (mbsnlen): New declaration.
34071         * lib/mbsnlen.c: New file.
34072         * m4/mbsnlen.m4: New file.
34073         * modules/mbsnlen: New file.
34074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34075         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34076         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34077
34078 2007-06-10  Bruno Haible  <bruno@clisp.org>
34079
34080         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34081
34082 2007-06-10  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34085         * lib/mbuiter.h: Likewise.
34086
34087 2007-06-10  Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34090         declaration.
34091
34092 2007-06-10  Karl Berry  <karl@gnu.org>
34093
34094         * config/srclist.txt: remove gettext entries, Bruno prefers
34095         to update individually.
34096
34097 2007-06-10  Bruno Haible  <bruno@clisp.org>
34098
34099         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34100         'maxlen'. Ensure only length + width bytes are allocated, not
34101         length + 1 + width.
34102
34103 2007-06-09  Bruno Haible  <bruno@clisp.org>
34104
34105         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34106         (CHAR_T): Remove macro.
34107         (VASNPRINTF): Update.
34108
34109 2007-06-09  Bruno Haible  <bruno@clisp.org>
34110
34111         * MODULES.html.sh (Unicode string functions): Add the new modules.
34112
34113         * modules/uniconv/u32-conv-to-enc: New file.
34114         * lib/uniconv/u32-conv-to-enc.c: New file.
34115         * modules/uniconv/u32-conv-to-enc-tests: New file.
34116         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34117
34118         * modules/uniconv/u16-conv-to-enc: New file.
34119         * lib/uniconv/u16-conv-to-enc.c: New file.
34120         * lib/uniconv/u-conv-to-enc.h: New file.
34121         * modules/uniconv/u16-conv-to-enc-tests: New file.
34122         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34123
34124         * modules/uniconv/u8-conv-to-enc: New file.
34125         * lib/uniconv/u8-conv-to-enc.c: New file.
34126         * modules/uniconv/u8-conv-to-enc-tests: New file.
34127         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34128
34129         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34130         u32_conv_to_encoding): New declarations.
34131
34132 2007-06-09  Bruno Haible  <bruno@clisp.org>
34133
34134         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34135
34136 2007-06-09  Bruno Haible  <bruno@clisp.org>
34137
34138         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34139         * modules/malloca: Renamed from modules/allocsa, updated.
34140         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34141         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34142         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34143         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34144         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34145         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34146         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34147         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34148         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34149         * modules/c-strcasestr (Depends-on): Update.
34150         * lib/c-strcasestr.c: Update.
34151         * modules/c-strstr (Depends-on): Update.
34152         * lib/c-strstr.c: Update.
34153         * modules/canonicalize-lgpl (Depends-on): Update.
34154         * lib/canonicalize-lgpl.c: Update.
34155         * modules/clean-temp (Depends-on): Update.
34156         * lib/clean-temp.c: Update.
34157         * modules/csharpcomp (Depends-on): Update.
34158         * lib/csharpcomp.c: Update.
34159         * modules/csharpexec (Depends-on): Update.
34160         * lib/csharpexec.c: Update.
34161         * modules/javacomp (Depends-on): Update.
34162         * lib/javacomp.c: Update.
34163         * modules/javaexec (Depends-on): Update.
34164         * lib/javaexec.c: Update.
34165         * modules/mbscasestr (Depends-on): Update.
34166         * lib/mbscasestr.c: Update.
34167         * modules/mbsstr (Depends-on): Update.
34168         * lib/mbsstr.c: Update.
34169         * modules/setenv (Depends-on): Update.
34170         * lib/setenv.c: Update.
34171         * modules/strcasestr (Depends-on): Update.
34172         * lib/strcasestr.c: Update.
34173         * modules/striconveha (Depends-on): Update.
34174         * lib/striconveha.c: Update.
34175         * modules/relocatable-prog-wrapper (Files): Update.
34176         * lib/relocwrapper.c: Update.
34177         * build-aux/install-reloc: Update.
34178         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34179
34180 2007-06-08  Bruno Haible  <bruno@clisp.org>
34181
34182         Port to uClibc.
34183         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34184         * lib/fpurge.c (fpurge): Likewise.
34185         * lib/freading.c (freading): Likewise.
34186         * lib/fseeko.c (rpl_fseeko): Likewise.
34187         * lib/fseterr.c (fseterr): Likewise.
34188         * lib/fwriting.c (fwriting): Likewise.
34189         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34190
34191 2007-06-08  Bruno Haible  <bruno@clisp.org>
34192
34193         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34194         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34195         * modules/gettext (Files): Add m4/intlmacosx.m4.
34196
34197 2007-06-07  Bruno Haible  <bruno@clisp.org>
34198
34199         * modules/localename-tests: New file.
34200         * tests/test-localename.c: New file.
34201
34202         New module 'localename'.
34203         * lib/localename.h: New file.
34204         * lib/localename.c: New file, from GNU gettext.
34205         * m4/localename.m4: New file.
34206         * modules/localename: New file.
34207
34208 2007-06-07  Bruno Haible  <bruno@clisp.org>
34209
34210         Work around the lack of <wchar.h> on some builds of uClibc.
34211         * doc/headers/wchar.texi: Update.
34212         * lib/wchar_.h: Include <wchar.h> only if it exists.
34213         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34214         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34215         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34216         doesn't exist.
34217         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34218         * modules/mbfile (Depends-on): Add wchar.
34219         * modules/mbiter (Depends-on): Likewise.
34220         * modules/mbuiter (Depends-on): Likewise.
34221         Reported by Simon Josefsson.
34222
34223 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34224
34225         Work around problem reported by Steven M. Schweda in
34226         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34227         Tru64 5.1B with the Compaq compiler environment installed declares
34228         an 'isblank' function but does not define it in the C library.
34229         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34230         * lib/regex_internal.h (isblank): Likewise.
34231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34232         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34233
34234 2007-06-05  Bruno Haible  <bruno@clisp.org>
34235
34236         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34237         ia64.
34238         * modules/printf-safe: New file.
34239         * modules/fprintf-posix (Depends-on): Add printf-safe.
34240         * modules/printf-posix (Depends-on): Likewise.
34241         * modules/snprintf-posix (Depends-on): Likewise.
34242         * modules/sprintf-posix (Depends-on): Likewise.
34243         * modules/vasnprintf-posix (Depends-on): Likewise.
34244         * modules/vasprintf-posix (Depends-on): Likewise.
34245         * modules/vfprintf-posix (Depends-on): Likewise.
34246         * modules/vprintf-posix (Depends-on): Likewise.
34247         * modules/vsnprintf-posix (Depends-on): Likewise.
34248         * modules/vsprintf-posix (Depends-on): Likewise.
34249         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34250         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34251         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34252         "no" on i386, x86_64, ia64.
34253         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34254         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34255         on i386, x86_64, ia64.
34256         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34257         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34258         on i386, x86_64, ia64.
34259         * tests/test-vasnprintf-posix.c: Include float.h.
34260         (LDBL80_WORDS): New macro.
34261         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34262         on i386, x86_64, ia64.
34263         * tests/test-vasprintf-posix.c: Include float.h.
34264         (LDBL80_WORDS): New macro.
34265         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34266         on i386, x86_64, ia64.
34267         * tests/test-snprintf-posix.c: Include float.h.
34268         * tests/test-sprintf-posix.c: Likewise.
34269         * tests/test-vsnprintf-posix.c: Likewise.
34270         * tests/test-vsprintf-posix.c: Likewise.
34271
34272 2007-06-05  Bruno Haible  <bruno@clisp.org>
34273
34274         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34275         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34276         non-IEEE numbers on i386, x86_64, ia64.
34277         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34278         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34279         * tests/test-isnanl.h: Include float.h.
34280         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34281
34282 2007-06-05  Bruno Haible  <bruno@clisp.org>
34283
34284         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34285         also the %a / %A. Handle the %a / %A code before this extra handling.
34286
34287 2007-06-05  Bruno Haible  <bruno@clisp.org>
34288
34289         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34290         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34291
34292 2007-06-05  Bruno Haible  <bruno@clisp.org>
34293
34294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34295         typo in variable name.
34296
34297 2007-06-05  Eric Blake  <ebb9@byu.net>
34298
34299         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34300         Reported by Simon Josefsson.
34301
34302 2007-06-04  Bruno Haible  <bruno@clisp.org>
34303
34304         Avoid test failures on some PowerPC platforms.
34305         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34306         Define differently for PowerPC.
34307         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34308         Reported by Gary V. Vaughan <gary@gnu.org>.
34309
34310 2007-06-02  Bruno Haible  <bruno@clisp.org>
34311
34312         Fix test-stdint failure on FreeBSD/ia64.
34313         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34314         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34315         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34316         * doc/headers/stdint.texi: Update.
34317
34318 2007-06-01  Bruno Haible  <bruno@clisp.org>
34319
34320         * tests/test-binary-io.c (main): Pass a third argument to open().
34321         Reported by Gary V. Vaughan <gary@gnu.org>.
34322
34323 2007-06-01  Bruno Haible  <bruno@clisp.org>
34324
34325         * doc/functions/frexpl.texi: Update for mingw.
34326
34327 2007-06-01  Bruno Haible  <bruno@clisp.org>
34328
34329         * tests/test-lseek.c (main): Disable test of errno for invalid third
34330         argument.
34331         * doc/functions/lseek.texi: Update.
34332         Reported by Gary V. Vaughan <gary@gnu.org>.
34333
34334 2007-05-28  Bruno Haible  <bruno@clisp.org>
34335
34336         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34337
34338 2007-05-31  Eric Blake  <ebb9@byu.net>
34339
34340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34341         cross compiling.
34342
34343 2007-05-30  Eric Blake  <ebb9@byu.net>
34344         and Bruno Haible  <bruno@clisp.org>
34345
34346         Work around mingw test failures exposed by m4-1.4.9b.
34347         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34348         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34349         moment.
34350
34351 2007-05-30  Bruno Haible  <bruno@clisp.org>
34352
34353         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34354         assuming that they are closed. Needed on HP-UX 11.
34355
34356 2007-05-29  Bruno Haible  <bruno@clisp.org>
34357
34358         Fix a problem with #include_next.
34359         * lib/dirent_.h: Split the double-inclusion guard.
34360         * lib/fcntl_.h: Likewise.
34361         * lib/float_.h: Likewise.
34362         * lib/iconv_.h: Likewise.
34363         * lib/inttypes_.h: Likewise.
34364         * lib/locale_.h: Likewise.
34365         * lib/math_.h: Likewise.
34366         * lib/netinet_in_.h: Likewise.
34367         * lib/search_.h: Likewise.
34368         * lib/signal_.h: Likewise.
34369         * lib/stdint_.h: Likewise.
34370         * lib/stdio_.h: Likewise.
34371         * lib/stdlib_.h: Likewise.
34372         * lib/string_.h: Likewise.
34373         * lib/sys_select_.h: Likewise.
34374         * lib/sys_socket_.h: Likewise.
34375         * lib/sys_stat_.h: Likewise.
34376         * lib/sys_time_.h: Likewise.
34377         * lib/sysexits_.h: Likewise.
34378         * lib/time_.h: Likewise.
34379         * lib/unistd_.h: Likewise.
34380         * lib/wchar_.h: Likewise.
34381         * lib/wctype_.h: Likewise.
34382
34383 2007-05-29  Bruno Haible  <bruno@clisp.org>
34384
34385         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34386         for the moment.
34387
34388 2007-05-29  Bruno Haible  <bruno@clisp.org>
34389
34390         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34391         invocation.
34392         Reported by Eric Blake.
34393
34394 2007-05-29  Bruno Haible  <bruno@clisp.org>
34395
34396         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34397         compiling case.
34398
34399 2007-05-29  Eric Blake  <ebb9@byu.net>
34400             Bruno Haible  <bruno@clisp.org>
34401
34402         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34403         cross compiles.
34404
34405 2007-05-28  Eric Blake  <ebb9@byu.net>
34406
34407         * modules/closein-tests (test_closein_LDADD): Support test on
34408         cygwin with libtool.
34409
34410 2007-05-28  Bruno Haible  <bruno@clisp.org>
34411
34412         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34413         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34414         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34415         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34416         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34417         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34418         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34419         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34420         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34421
34422 2007-05-28  Eric Blake  <ebb9@byu.net>
34423
34424         Unconditionally include <config.h> in unit tests.
34425         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34426         * tests/test-allocsa.c, tests/test-arcfour.c,
34427         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34428         tests/test-array_list.c, tests/test-array_oset.c,
34429         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34430         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34431         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34432         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34433         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34434         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34435         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34436         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34437         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34438         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34439         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34440         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34441         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34442         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34443         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34444         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34445         test-md5.c, test-memmem.c, test-printf-posix.c,
34446         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34447         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34448         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34449         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34450         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34451         test-vasnprintf-posix2.c, test-vasnprintf.c,
34452         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34453         test-vfprintf-posix.c, test-vprintf-posix.c,
34454         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34455         test-xvasprintf.c: Likewise.
34456
34457 2007-05-28  Bruno Haible  <bruno@clisp.org>
34458
34459         * gnulib-tool (func_import): Remember the --with-tests command-line
34460         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34461         Reported by Eric Blake.
34462
34463 2007-05-28  Bruno Haible  <bruno@clisp.org>
34464
34465         * modules/ftell-tests: New file.
34466         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34467         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34468
34469         * lib/ftell.c: New file.
34470         * modules/ftell: New file.
34471         * m4/ftell.m4: New file.
34472         * doc/functions/ftell.texi: Update.
34473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34474         REPLACE_FTELL.
34475         * lib/stdio_.h (rpl_ftell): New declaration.
34476         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34477         REPLACE_FTELL.
34478
34479 2007-05-28  Eric Blake  <ebb9@byu.net>
34480
34481         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34482
34483 2007-05-28  Bruno Haible  <bruno@clisp.org>
34484
34485         * modules/fseek-tests: New file.
34486         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34487         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34488
34489         * lib/fseek.c: New file.
34490         * modules/fseek: New file.
34491         * m4/fseek.m4: New file.
34492         * doc/functions/fseek.texi: Update.
34493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34494         REPLACE_FSEEK.
34495         * lib/stdio_.h (rpl_fseek): New declaration.
34496         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34497         REPLACE_FSEEK.
34498
34499 2007-05-28  Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/stdio_.h (fflush): More comments.
34502
34503 2007-05-28  Bruno Haible  <bruno@clisp.org>
34504
34505         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34506         runtime test.
34507
34508 2007-05-28  Eric Blake  <ebb9@byu.net>
34509
34510         Improve lseek module.
34511         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34512         * lib/unistd_.h (lseek): Scale back link warning message.
34513         * tests/test-lseek.c: Beef up test.
34514         * tests/test-lseek.sh: Exercise more facets of lseek.
34515         Reported by Bruno Haible.
34516
34517 2007-05-28  Bruno Haible  <bruno@clisp.org>
34518
34519         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34520         to define.
34521
34522 2007-05-27  Bruno Haible  <bruno@clisp.org>
34523
34524         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34525
34526 2007-05-27  Bruno Haible  <bruno@clisp.org>
34527
34528         * modules/openmp: New file.
34529         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34530         Noah Misch.
34531
34532 2007-05-26  Bruno Haible  <bruno@clisp.org>
34533
34534         * modules/chdir-long (Depends-on): Add fchdir.
34535         * modules/chdir-safer (Depends-on): Likewise.
34536         * modules/fts (Depends-on): Likewise.
34537         * modules/fts-lgpl (Depends-on): Likewise.
34538         * modules/openat (Depends-on): Likewise.
34539         * modules/savewd (Depends-on): Likewise.
34540
34541 2007-05-24  Eric Blake  <ebb9@byu.net>
34542
34543         Fix lseek on mingw.
34544         * modules/lseek: New module.
34545         * m4/lseek.m4: New file.
34546         * lib/lseek.c: New file.
34547         * modules/lseek-tests: New file.
34548         * tests/test-lseek.c: New file.
34549         * tests/test-lseek.sh: New file.
34550         * MODULES.html.sh: Document lseek module.
34551         * modules/fflush (Depends-on): Add lseek, fseeko.
34552         * modules/fseeko (Depends-on): Likewise.
34553         * modules/ftello (Depends-on): Likewise.
34554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34555         broken.
34556         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34557         broken.
34558         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34559         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34560         * lib/ftello.c (rpl_ftello): Likewise.
34561         * tests/test-fseeko.c (main): Test this.
34562         * tests/test-fseeko.sh: Likewise.
34563         * tests/test-ftello.c (main): Likewise.
34564         * tests/test-ftello.sh: Likewise.
34565         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34566         implies replacing fseek.
34567         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34568         HAVE_FTELLO.
34569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34570         * modules/unistd (Makefile.am): Likewise.
34571         * lib/unistd_.h (lseek): Declare a replacement.
34572         * doc/functions/lseek.texi (lseek): Document this fix.
34573         * doc/functions/fseek.texi (fseek): Likewise.
34574         * doc/functions/ftell.texi (ftell): Likewise.
34575
34576 2007-05-24  Bruno Haible  <bruno@clisp.org>
34577
34578         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34579         in the printed representation of a NaN.
34580         * tests/test-vasprintf-posix.c (test_function): Likewise.
34581         * tests/test-snprintf-posix.h (test_function): Likewise.
34582         * tests/test-sprintf-posix.h (test_function): Likewise.
34583         Reported by Eric Blake.
34584
34585 2007-05-23  Eric Blake  <ebb9@byu.net>
34586
34587         Fix fseeko/ftello on cygwin 1.5.24.
34588         * doc/functions/fseeko.texi (fseeko): Document the fix.
34589         * doc/functions/ftello.texi (ftello): Document the fix.
34590         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34591         * doc/functions/stdout.text (stdout): New file.
34592         * doc/functions/stderr.text (stderr): New file.
34593         * doc/gnulib.texi (Function Substitutes): Use new files.
34594         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34595         prior to 1.7.0.
34596         * tests/test-ftello.c (main): Likewise for ftello.
34597         * tests/test-fseeko.sh: New file.
34598         * tests/test-ftello.sh: New file.
34599         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34600         with seekable stdin.
34601         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34602         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34603         (gl_REPLACE_FSEEKO): New macro.
34604         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34605         * modules/fseeko (Files): Distribute fseeko.c.
34606         * modules/ftello (Files): Distribute ftello.c.
34607         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34608         mode.
34609         * lib/ftello.c (rpl_ftello): New file.
34610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34611         fseeko, ftello.
34612         (gl_STDIN_LARGE_OFFSET): New macro.
34613         * modules/stdio (Makefile.am): Perform the replacement.
34614         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34615
34616 2007-05-23  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34619         GNULIB_POSIXCHECK is defined.
34620
34621 2007-05-21  Bruno Haible  <bruno@clisp.org>
34622
34623         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34624         Check also the output for NaN arguments. When cross-compiling, guess
34625         no on IRIX.
34626         * lib/vasnprintf.c: Update comments.
34627         * tests/test-vasnprintf-posix.c (strisnan): New function.
34628         (test_function): Use it.
34629         * tests/test-vasprintf-posix.c (strisnan): New function.
34630         (test_function): Use it.
34631         * tests/test-snprintf-posix.h (strisnan): New function.
34632         (test_function): Use it.
34633         * tests/test-sprintf-posix.h (strisnan): New function.
34634         (test_function): Use it.
34635         Reported by Eric Blake.
34636
34637 2007-05-20  Bruno Haible  <bruno@clisp.org>
34638
34639         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34640         numbers that fails on BeOS.
34641         * doc/functions/frexpl.texi: Update.
34642
34643 2007-05-20  Jim Meyering  <jim@meyering.net>
34644
34645         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34646         forced upon us by glibc-2.6.
34647
34648 2007-05-20  Bruno Haible  <bruno@clisp.org>
34649
34650         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34651         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34652         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34653         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34654         NEED_PRINTF_INFINITE.
34655         (is_infinitel): New function.
34656         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34658         gl_PREREQ_VASNPRINTF_INFINITE.
34659         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34660         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34661         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34662         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34663         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34664         gl_PREREQ_VASNPRINTF_INFINITE.
34665         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34667         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34668         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34669         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34672         * doc/functions/fprintf.texi: Update.
34673         * doc/functions/printf.texi: Update.
34674         * doc/functions/snprintf.texi: Update.
34675         * doc/functions/sprintf.texi: Update.
34676         * doc/functions/vfprintf.texi: Update.
34677         * doc/functions/vprintf.texi: Update.
34678         * doc/functions/vsnprintf.texi: Update.
34679         * doc/functions/vsprintf.texi: Update.
34680
34681 2007-05-20  Bruno Haible  <bruno@clisp.org>
34682
34683         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34684         was not found in libc.
34685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34686
34687 2007-05-20  Bruno Haible  <bruno@clisp.org>
34688
34689         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34690         printed as "-nan" instead of "nan".
34691         * tests/test-vasprintf-posix.c (test_function): Likewise.
34692         * tests/test-snprintf-posix.h (test_function): Likewise.
34693         * tests/test-sprintf-posix.h (test_function): Likewise.
34694         Needed for HP-UX 11.
34695
34696 2007-05-20  Jim Meyering  <jim@meyering.net>
34697
34698         Fix buggy test for the fchownat-deref bug.
34699         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34700         symlink required for the run-test.  Without it, this test would
34701         always declare that fchownat doesn't work, and client code would
34702         unnecessarily use the replacement function with fixed libc.
34703         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34704         Reported by Greg Schafer.
34705
34706 2007-05-19  Bruno Haible  <bruno@clisp.org>
34707
34708         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34709         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34710         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34711         Needed for IRIX 6.5 and Solaris 2.5.1.
34712
34713 2007-05-19  Bruno Haible  <bruno@clisp.org>
34714
34715         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34716         (test_function): Skip tests involving -0.0 on platforms where
34717         -0.0 = 0.0.
34718         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34719         (test_function): Skip tests involving -0.0 on platforms where
34720         -0.0 = 0.0.
34721         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34722         (test_function): Skip tests involving -0.0 on platforms where
34723         -0.0 = 0.0.
34724         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34725         (test_function): Skip tests involving -0.0 on platforms where
34726         -0.0 = 0.0.
34727         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34728         tests.
34729         * tests/test-printf-posix.h (test_function): Likewise.
34730         * tests/test-printf-posix.output: Remove all -0.0 related results.
34731         Needed for IRIX 6.5.
34732
34733 2007-05-19  Bruno Haible  <bruno@clisp.org>
34734
34735         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34736         printed as "nan0x7fffffff" instead of "nan".
34737         * tests/test-vasprintf-posix.c (test_function): Likewise.
34738         * tests/test-snprintf-posix.h (test_function): Likewise.
34739         * tests/test-sprintf-posix.h (test_function): Likewise.
34740         * tests/test-fprintf-posix.h (NaN): Remove macro.
34741         (test_function): Remove all NaN related tests.
34742         * tests/test-printf-posix.h (NaN): Remove macro.
34743         (test_function): Remove all NaN related tests.
34744         * tests/test-printf-posix.output: Remove all NaN related results.
34745         Needed for IRIX 6.5.
34746
34747 2007-05-19  Bruno Haible  <bruno@clisp.org>
34748
34749         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34751
34752 2007-05-19  Bruno Haible  <bruno@clisp.org>
34753
34754         * lib/float_.h: New file.
34755         * m4/float_h.m4: New file.
34756         * modules/float: New file.
34757         * modules/isnanl (Dependencies): Add float.
34758         * modules/isnanl-nolibm (Dependencies): Likewise.
34759         * modules/mathl (Dependencies): Likewise.
34760         * modules/printf-frexpl (Dependencies): Likewise.
34761         * modules/signbit (Dependencies): Likewise.
34762         * modules/vasnprintf (Dependencies): Likewise.
34763         * doc/headers/float.texi: Update.
34764
34765 2007-05-19  Jim Meyering  <jim@meyering.net>
34766
34767         * lib/utimens.c (gl_futimens): Rename from futimens,
34768         now that glibc-2.6 declares futimens.
34769         * lib/utimens.h: Likewise.
34770
34771 2007-05-19  Bruno Haible  <bruno@clisp.org>
34772
34773         Avoid test failures on mingw.
34774         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34775         * tests/test-printf-posix.sh: Likewise.
34776         * tests/test-vfprintf-posix.sh: Likewise.
34777         * tests/test-vprintf-posix.sh: Likewise.
34778
34779 2007-05-19  Bruno Haible  <bruno@clisp.org>
34780
34781         Fix *printf result for NaN, Inf, -0.0 on mingw.
34782         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34783         * lib/vasnprintf.c: Include math.h and isnan.h.
34784         (is_infinite_or_zero): New function.
34785         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34786         values in the %f, %F, %e, %E, %g, %G directives.
34787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34789         gl_PRINTF_INFINITE and test its result. Invoke
34790         gl_PREREQ_VASNPRINTF_INFINITE.
34791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34798         * doc/functions/fprintf.texi: Update.
34799         * doc/functions/printf.texi: Update.
34800         * doc/functions/snprintf.texi: Update.
34801         * doc/functions/sprintf.texi: Update.
34802         * doc/functions/vfprintf.texi: Update.
34803         * doc/functions/vprintf.texi: Update.
34804         * doc/functions/vsnprintf.texi: Update.
34805         * doc/functions/vsprintf.texi: Update.
34806
34807 2007-05-19  Bruno Haible  <bruno@clisp.org>
34808
34809         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34810         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34811         Instead of multiplying with 10^k, set extra_zeroes to k.
34812         (scale10_round_long_double): Remove function.
34813
34814 2007-05-18  Bruno Haible  <bruno@clisp.org>
34815
34816         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34817         introduced on 2007-05-06.
34818
34819 2007-05-18  Bruno Haible  <bruno@clisp.org>
34820
34821         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34822         %g directives.
34823         * tests/test-vasprintf-posix.c (test_function): Likewise.
34824         * tests/test-snprintf-posix.h (test_function): Likewise.
34825         * tests/test-sprintf-posix.h (test_function): Likewise.
34826
34827 2007-05-18  Bruno Haible  <bruno@clisp.org>
34828
34829         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34830         (strmatch): New function.
34831         (test_function): Test the %f directive on numbers of various exponents.
34832         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34833         (strmatch): New function.
34834         (test_function): Test the %f directive on numbers of various exponents.
34835         * tests/test-snprintf-posix.h (strmatch): New function.
34836         (test_function): Test the %f directive on numbers of various exponents.
34837         * tests/test-sprintf-posix.h (strmatch): New function.
34838         (test_function): Test the %f directive on numbers of various exponents.
34839         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34840         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34841         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34842         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34843
34844 2007-05-18  Bruno Haible  <bruno@clisp.org>
34845
34846         Add support for 'long double' number output.
34847         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34848         * lib/vasnprintf.c: Include math.h and float+.h.
34849         (mp_limb_t): New type.
34850         (GMP_LIMB_BITS): New macro.
34851         (mp_twolimb_t): New type.
34852         (GMP_TWOLIMB_BITS): New macro.
34853         (mpn_t): New type.
34854         (multiply, divide, convert_to_decimal, decode_long_double,
34855         scale10_round_long_double, scale10_round_decimal_long_double,
34856         floorlog10l): New functions.
34857         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34858         for the %f, %F, %e, %E, %g, %G directives.
34859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34861         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34862         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34863         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34864         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34865         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34866         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34867         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34868         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34869         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34870         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34871         * modules/snprintf-posix (Depends-on): Likewise.
34872         * modules/sprintf-posix (Depends-on): Likewise.
34873         * modules/vasnprintf-posix (Depends-on): Likewise.
34874         * modules/vasprintf-posix (Depends-on): Likewise.
34875         * modules/vfprintf-posix (Depends-on): Likewise.
34876         * modules/vsnprintf-posix (Depends-on): Likewise.
34877         * modules/vsprintf-posix (Depends-on): Likewise.
34878         * modules/vasnprintf (Files): Add lib/float+.h.
34879         * doc/functions/fprintf.texi: Update.
34880         * doc/functions/printf.texi: Update.
34881         * doc/functions/snprintf.texi: Update.
34882         * doc/functions/sprintf.texi: Update.
34883         * doc/functions/vfprintf.texi: Update.
34884         * doc/functions/vprintf.texi: Update.
34885         * doc/functions/vsnprintf.texi: Update.
34886         * doc/functions/vsprintf.texi: Update.
34887
34888 2007-05-18  Bruno Haible  <bruno@clisp.org>
34889
34890         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34891
34892 2007-05-18  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34895         for printing 64-bit integers. Needed for mingw.
34896
34897 2007-05-18  Bruno Haible  <bruno@clisp.org>
34898
34899         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34900         gl_FUNC_FREXPL_WORKS.
34901         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34902
34903 2007-05-18  Bruno Haible  <bruno@clisp.org>
34904
34905         * modules/frexpl-nolibm-tests: New file.
34906
34907         * modules/frexpl-nolibm: New file.
34908         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34909
34910 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34911
34912         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34913         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34914         GCC 4.2, which otherwise issues a lot of warnings.
34915         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34916         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34917         Likewise.
34918         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34919         * modules/iconv_open (iconv.h): Likewise.
34920         * modules/locale (locale.h): Likewise.
34921         * modules/netinet_in (netinet/in.h): Likewise.
34922         * modules/sys_select (sys_select.h): Likewise.
34923         * modules/sys_socket (sys/socket.h): Likewise.
34924         * modules/sys_stat (sys/stat.h): Likewise.
34925         * modules/sysexits (sysexits.h): Likewise.
34926         * modules/unistd (unistd.h): Likewise.
34927
34928 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34929
34930         * modules/closein-tests (Makefile.am): Distribute
34931         `test-closein.sh'.
34932
34933 2007-05-17  Bruno Haible  <bruno@clisp.org>
34934
34935         * tests/test-printf-posix.output: Renamed from
34936         tests/test-fprintf-posix.out.
34937         * modules/fprintf-posix-tests: Update.
34938         * modules/printf-posix-tests: Update.
34939         * modules/vfprintf-posix-tests: Update.
34940         * modules/vprintf-posix-tests: Update.
34941         * tests/test-fprintf-posix.sh: Update.
34942         * tests/test-printf-posix.sh: Update.
34943         * tests/test-vfprintf-posix.sh: Update.
34944         * tests/test-vprintf-posix.sh: Update.
34945         Reported by Ralf Wildenhues.
34946
34947 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34948
34949         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34950         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34951         GCC 4.2, which otherwise issues a lot of warnings.
34952         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34953         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34954         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34955         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34956         it should no longer be needed.
34957         * lib/string_.h: Likewise.
34958         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34959         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34960         * modules/inttypes (inttypes.h): Likewise.
34961         * modules/math (math.h): Likewise.
34962         * modules/search (search.h): Likewise.
34963         * modules/signal (signal.h): Likewise.
34964         * modules/stdint (stdint.h): Likewise.
34965         * modules/stdio (stdio.h): Likewise.
34966         * modules/stdlib (stdlib.h): Likewise.
34967         * modules/string (string.h): Likewise.
34968         * modules/sys_time (sys/time.h): Likewise.
34969         * modules/time (time.h): Likewise.
34970         * modules/wchar (wchar.h): Likewise.
34971         * modules/wctype (wtype.h): Likewise.
34972
34973 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34974
34975         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34976
34977 2007-05-13  Bruno Haible  <bruno@clisp.org>
34978
34979         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34980         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34981         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34982         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34983         (gl_PREREQ_STRTOK_R): Don't require it here.
34984
34985 2007-05-13  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34988         when used in C++ mode.
34989
34990 2007-05-12  Bruno Haible  <bruno@clisp.org>
34991
34992         * lib/linebuffer.h: Tweak doc.
34993         * lib/linebuffer.c: Likewise.
34994
34995 2007-05-12  James Youngman  <jay@gnu.org>
34996
34997         * lib/linebuffer.c (readlinebuffer_delim): New function,
34998         like readlinebuffer, but use a caller-specified delimiter.
34999         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35000         as the delimiter.
35001         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35002
35003 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35004
35005         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35006         * modules/openat (Files): Remove openat-die.c.
35007         (Depends-on): Add openat-die.
35008         * modules/openat-die: New module.
35009
35010 2007-05-06  Bruno Haible  <bruno@clisp.org>
35011
35012         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35013         Update with info about Cygwin.
35014         * doc/functions/fprintf.texi: Update.
35015         * doc/functions/printf.texi: Update.
35016         * doc/functions/snprintf.texi: Update.
35017         * doc/functions/sprintf.texi: Update.
35018         * doc/functions/vfprintf.texi: Update.
35019         * doc/functions/vprintf.texi: Update.
35020         * doc/functions/vsnprintf.texi: Update.
35021         * doc/functions/vsprintf.texi: Update.
35022         Reported by Eric Blake.
35023
35024 2007-05-06  Bruno Haible  <bruno@clisp.org>
35025
35026         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35027         padding ourselves for the floating-point directives.
35028         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35031         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35032         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35040         * tests/test-snprintf-posix.h (test_function): Also check the width
35041         and some flags in the %f directive.
35042         * tests/test-sprintf-posix.h (test_function): Likewise.
35043         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35044         * tests/test-vasprintf-posix.c (test_function): Likewise.
35045         * doc/functions/fprintf.texi: Update.
35046         * doc/functions/printf.texi: Update.
35047         * doc/functions/snprintf.texi: Update.
35048         * doc/functions/sprintf.texi: Update.
35049         * doc/functions/vfprintf.texi: Update.
35050         * doc/functions/vprintf.texi: Update.
35051         * doc/functions/vsnprintf.texi: Update.
35052         * doc/functions/vsprintf.texi: Update.
35053
35054 2007-05-06  Bruno Haible  <bruno@clisp.org>
35055
35056         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35057         pass the ' flag character to sprintf or snprintf.
35058         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35060         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35061         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35062         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35064         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35065         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35070         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35071         flag.
35072         * tests/test-sprintf-posix.h (test_function): Likewise.
35073         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35074         * tests/test-vasprintf-posix.c (test_function): Likewise.
35075         * doc/functions/fprintf.texi: Update.
35076         * doc/functions/printf.texi: Update.
35077         * doc/functions/snprintf.texi: Update.
35078         * doc/functions/sprintf.texi: Update.
35079         * doc/functions/vfprintf.texi: Update.
35080         * doc/functions/vprintf.texi: Update.
35081         * doc/functions/vsnprintf.texi: Update.
35082         * doc/functions/vsprintf.texi: Update.
35083
35084 2007-05-01  Bruno Haible  <bruno@clisp.org>
35085
35086         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35087
35088 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35089
35090         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35091         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35092
35093 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35094
35095         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35096         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35098
35099 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35100
35101         * lib/argp-help.c (struct hol_entry): New member `ord'.
35102         (HOL_ENTRY_PTRCMP): Use ord for comparison
35103         (hol_sort): Initialize ord.
35104
35105 2007-05-01  Bruno Haible  <bruno@clisp.org>
35106
35107         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35108         Reported by Eric Blake.
35109         * doc/gnulib.texi (Function Substitutes): Update.
35110
35111 2007-05-01  Bruno Haible  <bruno@clisp.org>
35112
35113         * doc/functions.texi: Remove file, now redundant through
35114         doc/functions/*.texi.
35115
35116 2007-05-01  Bruno Haible  <bruno@clisp.org>
35117
35118         * modules/argp (Depends-on): Add sleep.
35119
35120 2007-05-01  Bruno Haible  <bruno@clisp.org>
35121
35122         * modules/sleep-tests: New file.
35123         * tests/test-sleep.c: New file.
35124
35125         * modules/sleep: New file.
35126         * lib/sleep.c: New file.
35127         * m4/sleep.m4: New file.
35128         * lib/unistd_.h (sleep): New declaration.
35129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35130         HAVE_SLEEP.
35131         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35132         * doc/functions/sleep.texi: Document the sleep module.
35133
35134 2007-05-01  Bruno Haible  <bruno@clisp.org>
35135
35136         * lib/sigprocmask.h: Remove file.
35137         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35138         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35139         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35140         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35141         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35142         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35143         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35144         HAVE_SIGSET_T as a shell variable.
35145         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35146         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35147         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35148         (Depends-on): Add signal. Remove verify.
35149         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35150         (Include): Mention <signal.h> instead of sigprocmask.h.
35151         * NEWS: Mention the change.
35152         * lib/fatal-signal.c: Don't include sigprocmask.h.
35153
35154 2007-05-01  Bruno Haible  <bruno@clisp.org>
35155
35156         * modules/signal: New file.
35157         * lib/signal_.h: New file.
35158         * m4/signal_h.m4: New file.
35159
35160 2007-05-01  Bruno Haible  <bruno@clisp.org>
35161
35162         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35163         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35164         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35165         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35166
35167 2007-05-01  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35170         configure time.
35171         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35172         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35173         * modules/sys_stat (Makefile.am): Substitute their values into
35174         sys/stat.h.
35175
35176 2007-05-01  Bruno Haible  <bruno@clisp.org>
35177
35178         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35179         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35180         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35181
35182 2007-05-01  Bruno Haible  <bruno@clisp.org>
35183
35184         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35185         'assert' module here.
35186
35187 2007-05-01  Bruno Haible  <bruno@clisp.org>
35188
35189         * doc/functions/*.texi: New files.
35190         * doc/functions/google-ranking.txt: New file.
35191         * doc/gnulib.texi (Function Substitutes): New chapter.
35192         (ctime, inet_ntoa): Remove sections.
35193         * doc/ctime.texi: Remove file.
35194         * doc/inet_ntoa.texi: Remove file.
35195         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35196         dependencies.
35197         (%.info): New rule, specifying a --reference-limit.
35198
35199 2007-05-01  Bruno Haible  <bruno@clisp.org>
35200
35201         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35202
35203 2007-05-01  Bruno Haible  <bruno@clisp.org>
35204
35205         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35206         the portability of 'mkdir' to mingw systems.
35207
35208 2007-05-01  Bruno Haible  <bruno@clisp.org>
35209
35210         * doc/headers/google-ranking.txt: New file.
35211
35212 2007-04-30  Eric Blake  <ebb9@byu.net>
35213
35214         Prefer fseeko to fseek.
35215         * modules/getpass (Depends-on): Add fseeko.
35216         * lib/getpass.c (getpass): Use fseeko, not fseek.
35217
35218 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35219
35220         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35221         assumes the sorting is stable, while most qsort implementations
35222         are not.  Use argument addresses to ensure they never compare as
35223         equal.
35224
35225         * tests/test-argp-2.sh (usage-indent test): Fix output
35226         (func_compare): Restore diff options
35227         * tests/test-argp.c: Restore #include "progname.h"
35228
35229 2007-04-29  Bruno Haible  <bruno@clisp.org>
35230
35231         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35233         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35234         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35235         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35236         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35237         (TESTS, check_PROGRAMS): Add test-snprintf.
35238         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35239         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35240         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35241         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35242         assertions that fail on HP-UX, OSF/1, or IRIX.
35243         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35244
35245 2007-04-29  Bruno Haible  <bruno@clisp.org>
35246
35247         * MODULES.html.sh (posix_functions): Remove 'contents'.
35248
35249 2007-04-29  Karl Berry  <karl@gnu.org>
35250
35251         * config/srclist.txt (gendocs_template_min): new entry.
35252
35253 2007-04-29  Bruno Haible  <bruno@clisp.org>
35254
35255         Work around fpurge bug on BSD systems.
35256         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35257         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35258         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35259         fpurge to rpl_fpurge if the system already has this function.
35260         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35261         the case where the system already has this function. Correct invariants
35262         on BSD systems.
35263         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35264         BSD systems.
35265
35266 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35267
35268         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35269         proposed by Sven Verdoolaege.
35270
35271         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35272         options.
35273         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35274         (usage and help tests): Update
35275
35276 2007-04-29  Bruno Haible  <bruno@clisp.org>
35277
35278         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35279         Print more information in case of failure. Disable a test on BeOS.
35280
35281 2007-04-29  Bruno Haible  <bruno@clisp.org>
35282
35283         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35284         This helps debugging on systems on which no gdb is available.
35285
35286 2007-04-29  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/freading.h: Improve comments.
35289         * lib/fwriting.h: Likewise.
35290         * tests/test-freading.c (main): Don't check freading immediately after
35291         repositioning. Needed for glibc.
35292
35293 2007-04-29  Bruno Haible  <bruno@clisp.org>
35294
35295         * lib/freading.c (freading): Trivial simplification.
35296
35297 2007-04-28  Bruno Haible  <bruno@clisp.org>
35298
35299         * tests/test-fwriting.c (main): Also test the interaction between
35300         fflush and fwriting.
35301         * modules/fwriting-tests (Depends-on): Add fflush.
35302
35303         * tests/test-freading.c (main): Also test the interaction between
35304         fflush and freading.
35305         * modules/freading-tests (Depends-on): Add fflush.
35306
35307 2007-04-28  Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35310         fseeko and ftello.
35311         Suggested by Eric Blake.
35312
35313 2007-04-28  Jim Meyering  <jim@meyering.net>
35314
35315         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35316         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35317         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35318
35319 2007-04-27  Eric Blake  <ebb9@byu.net>
35320
35321         * doc/headers/assert.texi (assert.h): Document assert module use.
35322
35323 2007-04-27  Bruno Haible  <bruno@clisp.org>
35324
35325         * doc/headers/*.texi: New files.
35326         * doc/gnulib.texi (Header File Substitutes): New chapter.
35327         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35328         dependencies.
35329         (standards.info ,standards.html, standards.dvi): Update dependencies.
35330         (mostlyclean, clean): New targets.
35331
35332 2007-04-27  Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35335         * modules/sysexits (Files, Makefile.am): Update.
35336
35337         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35338         * modules/sys_socket (Files, Makefile.am): Update.
35339
35340         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35341         * modules/sys_stat (Files, Makefile.am): Update.
35342
35343 2007-04-27  Eric Blake  <ebb9@byu.net>
35344
35345         * lib/freading.h: Improve comments.
35346         * lib/fwriting.h: Likewise.
35347         * lib/fflush.c: Likewise.
35348
35349         Fix closein for mingw.
35350         * modules/closein-tests: Add tests for closein.
35351         * tests/test-closein.c: New file.
35352         * tests/test-closein.sh: Likewise.
35353         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35354         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35355
35356 2007-04-27  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35359         version is < 6.
35360         * lib/math_.h [__DECC]: Likewise.
35361         * lib/stdio_.h [__DECC]: Likewise.
35362         * lib/stdlib_.h [__DECC]: Likewise.
35363         * lib/string_.h [__DECC]: Likewise.
35364         * lib/time_.h [__DECC]: Likewise.
35365         * lib/wchar_.h [__DECC]: Likewise.
35366         * lib/wctype_.h [__DECC]: Likewise.
35367
35368 2007-04-27  Bruno Haible  <bruno@clisp.org>
35369
35370         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35371
35372 2007-04-27  Bruno Haible  <bruno@clisp.org>
35373
35374         * lib/fflush.c: Add comments.
35375         * modules/fpurge-tests (Depends-on): Add fflush.
35376         * modules/freadable-tests (Depends-on): Likewise.
35377         * modules/fwritable-tests (Depends-on): Likewise.
35378
35379 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35380
35381         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35382         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35383         Report by Bruno Haible <bruno@clisp.org>.
35384
35385 2007-04-26  Eric Blake  <ebb9@byu.net>
35386
35387         Fix fflush on mingw.
35388         * modules/fflush (Depends-on): Add freading.
35389         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35390         but unread data.
35391
35392 2007-04-26  Eric Blake  <ebb9@byu.net>
35393         and Bruno Haible  <bruno@clisp.org>
35394
35395         Implement freading and fwriting.
35396         * lib/freading.c: New file.
35397         * lib/freading.h: Likewise.
35398         * m4/freading.m4: Likewise.
35399         * modules/freading: Likewise.
35400         * modules/freading-tests: Likewise.
35401         * tests/test-freading.c: Likewise.
35402         * lib/fwriting.c: New file.
35403         * lib/fwriting.h: Likewise.
35404         * m4/fwriting.m4: Likewise.
35405         * modules/fwriting: Likewise.
35406         * modules/fwriting-tests: Likewise.
35407         * tests/test-fwriting.c: Likewise.
35408         * MODULES.html.sh (File stream based Input/Output): Mention them.
35409
35410 2007-04-26  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35413         'long' when we assume it.
35414         Suggested by Eric Blake.
35415
35416 2007-04-26  Bruno Haible  <bruno@clisp.org>
35417
35418         Ensure fseeko, ftello are declared on glibc systems.
35419         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35420         * modules/fseeko (configure.ac-early): Likewise.
35421         * modules/ftello (configure.ac-early): Likewise.
35422         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35423         AC_FUNC_FSEEKO for this.
35424         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35425         (gl_CHECK_FSEEKO): Remove macro.
35426
35427 2007-04-26  Bruno Haible  <bruno@clisp.org>
35428
35429         * tests/test-fflush.c (main): Also check the ftell result after
35430         fflush and fseek/fseeko.
35431         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35432         file descriptor position cache in the stream.
35433         * lib/fseeko.c (rpl_fseeko): Likewise.
35434
35435 2007-04-26  Bruno Haible  <bruno@clisp.org>
35436
35437         * modules/fflush-tests (Depends-on): Add fseeko.
35438
35439 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35440             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35441
35442         * lib/argz_.h: ensure error_t definition is obtained in same
35443         mechanism system argz.h would have.
35444         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35445         argz facilities are known bad.  Err on the side of caution if
35446         cross-compiling.
35447
35448 2007-04-25  Eric Blake  <ebb9@byu.net>
35449
35450         * lib/fpurge.c (includes): Use stdlib.h for free.
35451         * tests/test-fflush.c (main): Also test fflush-fseeko.
35452
35453 2007-04-25  Bruno Haible  <bruno@clisp.org>
35454
35455         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35456         * lib/fseeko.c: New file.
35457         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35458         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35459         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35460         gl_FUNC_FSEEKO.
35461         (gl_FUNC_FSEEKO): Invoke it.
35462         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35463         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35464         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35465
35466 2007-04-25  Bruno Haible  <bruno@clisp.org>
35467
35468         * modules/fflush (Depends-on): Add ftello.
35469
35470 2007-04-25  Bruno Haible  <bruno@clisp.org>
35471
35472         * modules/ftello-tests: New file.
35473         * tests/test-ftello.c: New file.
35474
35475         * modules/ftello: New file.
35476         * m4/ftello.m4: New file.
35477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35478         HAVE_FTELLO.
35479         * lib/stdio_.h (ftello): New declaration.
35480         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35481         HAVE_FTELLO.
35482
35483 2007-04-25  Bruno Haible  <bruno@clisp.org>
35484
35485         * modules/fseeko-tests: New file.
35486         * tests/test-fseeko.c: New file.
35487
35488         * modules/fseeko: New file.
35489         * m4/fseeko.m4: New file.
35490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35491         HAVE_FSEEKO.
35492         * lib/stdio_.h (fseeko): New declaration.
35493         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35494         HAVE_FSEEKO.
35495
35496 2007-04-25  Bruno Haible  <bruno@clisp.org>
35497
35498         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35499
35500 2007-04-25  Bruno Haible  <bruno@clisp.org>
35501
35502         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35503         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35504         * tests/test-unistd.c: Likewise.
35505         * tests/test-fcntl.c: Likewise.
35506
35507 2007-04-23  Eric Blake  <ebb9@byu.net>
35508
35509         * lib/fflush.c: Fix missing include.
35510         Reported by Bruno Haible.
35511
35512 2007-04-23  Bruno Haible  <bruno@clisp.org>
35513
35514         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35515         Reported by Eric Blake.
35516
35517 2007-04-23  Bruno Haible  <bruno@clisp.org>
35518
35519         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35520
35521 2007-04-23  Bruno Haible  <bruno@clisp.org>
35522
35523         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35524
35525 2007-04-23  Bruno Haible  <bruno@clisp.org>
35526
35527         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35528         Needed on HP-UX 11.
35529
35530 2007-04-16  Eric Blake  <ebb9@byu.net>
35531
35532         Make fflush rely on fpurge.
35533         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35534         open coding all variants.
35535         * modules/fflush (Depends-on): Add fpurge and unistd.
35536         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35537         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35538
35539         Fix --with-tests compilation on cygwin.
35540         * modules/argmatch-tests (Makefile.am): List gnulib library first
35541         in LDADD.
35542         * modules/argp-tests (Makefile.am): Likewise.
35543         * modules/array-list-tests (Makefile.am): Likewise.
35544         * modules/array-oset-tests (Makefile.am): Likewise.
35545         * modules/avltree-list-tests (Makefile.am): Likewise.
35546         * modules/avltree-oset-tests (Makefile.am): Likewise.
35547         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35548         * modules/carray-list-tests (Makefile.am): Likewise.
35549         * modules/dirname-tests (Makefile.am): Likewise.
35550         * modules/frexp-tests (Makefile.am): Likewise.
35551         * modules/isnanl-tests (Makefile.am): Likewise.
35552         * modules/linked-list-tests (Makefile.am): Likewise.
35553         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35554         * modules/lock-tests (Makefile.am): Likewise.
35555         * modules/rbtree-list-tests (Makefile.am): Likewise.
35556         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35557         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35558         * modules/tls-tests (Makefile.am): Likewise.
35559         * modules/tsearch-tests (Makefile.am): Likewise.
35560         * modules/xvasprintf-tests (Makefile.am): Likewise.
35561
35562         Fix fpurge for cygwin.
35563         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35564         value.
35565         * modules/fpurge-tests (Depends-on): Clean up trash.
35566
35567 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35568
35569         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35570
35571         * m4/autobuild.m4: Re-indent.
35572
35573 2007-04-13  Bruno Haible  <bruno@clisp.org>
35574
35575         * modules/fpurge-tests: New file.
35576         * tests/test-fpurge.c: New file.
35577
35578         * modules/fpurge: New file.
35579         * lib/fpurge.h: New file.
35580         * lib/fpurge.c: New file.
35581         * m4/fpurge.m4: New file.
35582
35583 2007-04-13  Bruno Haible  <bruno@clisp.org>
35584
35585         * modules/fbufmode-tests: New file.
35586         * tests/test-fbufmode.c: New file.
35587
35588         * modules/fbufmode: New file.
35589         * lib/fbufmode.h: New file.
35590         * lib/fbufmode.c: New file.
35591         * m4/fbufmode.m4: New file.
35592
35593 2007-04-13  Bruno Haible  <bruno@clisp.org>
35594
35595         * modules/fwritable-tests: New file.
35596         * tests/test-fwritable.c: New file.
35597
35598         * modules/fwritable: New file.
35599         * lib/fwritable.h: New file.
35600         * lib/fwritable.c: New file.
35601         * m4/fwritable.m4: New file.
35602
35603 2007-04-13  Bruno Haible  <bruno@clisp.org>
35604
35605         * modules/freadable-tests: New file.
35606         * tests/test-freadable.c: New file.
35607
35608         * modules/freadable: New file.
35609         * lib/freadable.h: New file.
35610         * lib/freadable.c: New file.
35611         * m4/freadable.m4: New file.
35612
35613 2007-04-13  Bruno Haible  <bruno@clisp.org>
35614
35615         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35616         MOSTLYCLEANFILES.
35617
35618 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35619
35620         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35621         gzip bootstrap.conf to avoid dragging in i18n machinery.
35622         (gnulib_tool_option): Use it.
35623
35624 2007-04-13  Bruno Haible  <bruno@clisp.org>
35625
35626         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35627         %F directives.
35628         * tests/test-vasprintf-posix.c (test_function): Likewise.
35629         * tests/test-snprintf-posix.h (test_function): Likewise.
35630         * tests/test-sprintf-posix.h (test_function): Likewise.
35631         * tests/test-fprintf-posix.h (test_function): Likewise.
35632         * tests/test-printf-posix.h (test_function): Likewise.
35633         * tests/test-fprintf-posix.out: Likewise.
35634
35635 2007-04-13  Bruno Haible  <bruno@clisp.org>
35636
35637         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35638         * modules/tls-tests (configure.ac): Likewise.
35639         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35640
35641 2007-04-13  Bruno Haible  <bruno@clisp.org>
35642
35643         * lib/tls.c (glthread_tls_get): Fix return type.
35644         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35645
35646 2007-04-12  Eric Blake  <ebb9@byu.net>
35647
35648         * modules/gettime (Depends-on): Remove gettime.
35649         Reported by Dmitry V. Levin.
35650
35651 2007-04-12  Bruno Haible  <bruno@clisp.org>
35652
35653         * modules/fflush (Include): Mention <stdio.h>.
35654         * modules/strtoimax (Include): Mention <inttypes.h>.
35655         * modules/strtoumax (Include): Likewise.
35656
35657 2007-04-12  Eric Blake  <ebb9@byu.net>
35658
35659         * .cvsignore: New file.
35660         * .gitignore: Likewise.
35661
35662 2007-04-12  Bruno Haible  <bruno@clisp.org>
35663
35664         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35665         not before, since $(LDADD) often contains libgnu.a.
35666         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35667         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35668         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35669         Needed on Cygwin.
35670
35671 2007-04-12  Eric Blake  <ebb9@byu.net>
35672
35673         Work around glibc's failure to flush stdin on fclose.
35674         * lib/closein.c (close_stdin): Flush stdin before closing.
35675
35676         Work around glibc's failure to reset seekable stdin on exit.
35677         * modules/closein: New module.
35678         * lib/closein.c: New file.
35679         * lib/closein.h: Likewise.
35680         * m4/closein.m4: Likewise.
35681         * MODULES.html.sh (File stream based Input/Output): Document it.
35682
35683 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35684
35685         * gnulib-tool: Rename generated 'autobuild' script to
35686         'do-autobuild' in --create-megatestdir output.
35687
35688         * doc/gnulib.texi (Build robot for gnulib): Fix.
35689
35690 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35691
35692         * modules/sysexits (Depends-on): Add absolute-header.
35693
35694 2007-04-12  Eric Blake  <ebb9@byu.net>
35695
35696         No need to preserve errno on success.
35697         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35698         Reported by Bruno Haible.
35699
35700 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35701
35702         * MODULES.html.sh (Support for maintaining and releasing
35703         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35704
35705 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35706
35707         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35708
35709 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35710
35711         * modules/autobuild: New module.
35712
35713         * m4/autobuild.m4: New file.
35714
35715 2007-04-11  Bruno Haible  <bruno@clisp.org>
35716
35717         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35718         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35743         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35744         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35745         Reported by Eric Blake.
35746
35747 2007-04-11  Bruno Haible  <bruno@clisp.org>
35748
35749         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35750
35751 2007-04-10  Bruno Haible  <bruno@clisp.org>
35752
35753         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35754         for NaN and Infinity. Needed on FreeBSD 6.1.
35755         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35756         regarding results for "%010a" of Infinity and NaN.
35757         * tests/test-vasprintf-posix.c (test_function): Likewise.
35758         * tests/test-snprintf-posix.h (test_function): Likewise.
35759         * tests/test-sprintf-posix.h (test_function): Likewise.
35760         * tests/test-fprintf-posix.h (test_function): Likewise.
35761         * tests/test-printf-posix.h (test_function): Likewise.
35762         * tests/test-fprintf-posix.out: Likewise.
35763
35764 2007-04-10  Bruno Haible  <bruno@clisp.org>
35765
35766         * modules/locale-tests: New file.
35767         * tests/test-locale.c: New file.
35768
35769         * modules/locale: New file.
35770         * lib/locale_.h: New file.
35771         * m4/locale_h.m4: New file.
35772
35773 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35774             Bruno Haible  <bruno@clisp.org>
35775
35776         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35777         be determined, test for availability of the copysignf, copysign,
35778         copysignl functions.
35779         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35780         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35781         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35782
35783 2007-04-09  Eric Blake  <ebb9@byu.net>
35784
35785         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35786         * modules/stdio (Makefile.am): Support fflush.
35787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35788         * modules/fflush: New file.
35789         * lib/fflush.c: Likewise.
35790         * m4/fflush.m4: Likewise.
35791         * modules/fflush-tests: New test.
35792         * tests/test-fflush.c: Likewise.
35793         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35794
35795 2007-04-06  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35798         (VASNPRINTF): Use signbit for faster determination whether to print a
35799         minus sign.
35800         * modules/vasnprintf (Files): Remove lib/float+.h.
35801         * modules/fprintf-posix (Depends-on): Add signbit.
35802         * modules/snprintf-posix (Depends-on): Likewise.
35803         * modules/sprintf-posix (Depends-on): Likewise.
35804         * modules/vasnprintf-posix (Depends-on): Likewise.
35805         * modules/vasprintf-posix (Depends-on): Likewise.
35806         * modules/vfprintf-posix (Depends-on): Likewise.
35807         * modules/vsnprintf-posix (Depends-on): Likewise.
35808         * modules/vsprintf-posix (Depends-on): Likewise.
35809
35810 2007-04-06  Bruno Haible  <bruno@clisp.org>
35811
35812         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35813         * tests/test-frexpl.c (main): Likewise.
35814         * tests/test-ldexpl.c (main): Likewise.
35815         * modules/frexp-tests (Depends-on): Add signbit.
35816         * modules/frexpl-tests (Depdends-on): Likewise.
35817         * modules/ldexpl-tests (Depdends-on): Likewise.
35818
35819 2007-04-06  Bruno Haible  <bruno@clisp.org>
35820
35821         * modules/signbit-tests: New file.
35822         * tests/test-signbit.c: New file.
35823
35824         * modules/signbit: New file.
35825         * lib/signbitf.c: New file.
35826         * lib/signbitd.c: New file.
35827         * lib/signbitl.c: New file.
35828         * m4/signbit.m4: New file.
35829         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35830         (signbit): New macro.
35831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35832         REPLACE_SIGNBIT.
35833         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35834         REPLACE_FREXPL into math.h.
35835
35836 2007-04-06  Bruno Haible  <bruno@clisp.org>
35837
35838         * modules/isnanf-nolibm-tests: New file.
35839         * tests/test-isnanf.c: New file.
35840
35841         * modules/isnanf-nolibm: New file.
35842         * lib/isnanf.h: New file.
35843         * lib/isnanf.c: New file.
35844         * lib/isnan.c: Consider the USE_FLOAT macro.
35845         * m4/isnanf.m4: New file.
35846
35847 2007-04-06  Bruno Haible  <bruno@clisp.org>
35848
35849         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35850         (Link): New section.
35851
35852         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35853
35854 2007-04-06  Bruno Haible  <bruno@clisp.org>
35855
35856         Assume the 'long double' type.
35857         * m4/longdouble.m4: Remove file.
35858         * config/srclist.txt: Don't mention longdouble.m4.
35859         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35860         * lib/float+.h: Likewise.
35861         * lib/frexp.c: Likewise.
35862         * lib/printf-args.h: Likewise.
35863         * lib/printf-args.c: Likewise.
35864         * lib/printf-frexp.c: Likewise.
35865         * lib/printf-parse.c: Likewise.
35866         * lib/vasnprintf.c: Likewise.
35867         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35868         * m4/intl.m4: Likewise.
35869         * m4/isnanl.m4: Likewise.
35870         * m4/printf.m4: Likewise.
35871         * m4/printf-frexpl.m4: Likewise.
35872         * m4/vasnprintf.m4: Likewise.
35873         * modules/allocsa (Files): Remove m4/longdouble.m4.
35874         * modules/gettext (Files): Likewise.
35875         * modules/relocatable-prog-wrapper (Files): Likewise.
35876         * modules/vasnprintf (Files): Likewise.
35877         * modules/isnanl (Files): Likewise.
35878         (Include): Simplify.
35879         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35880         (Include): Simplify.
35881         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35882         (Include): Simplify.
35883         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35884         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35885         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35886         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35887         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35888         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35889         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35890         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35891         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35892         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35893         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35894         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35895         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35896         * tests/test-isnanl.c: Likewise.
35897         * tests/test-snprintf-posix.h: Likewise.
35898         * tests/test-sprintf-posix.h: Likewise.
35899         * tests/test-vasnprintf-posix.c: Likewise.
35900         * tests/test-vasnprintf-posix2.c: Likewise.
35901         * tests/test-vasprintf-posix.c: Likewise.
35902
35903 2007-04-06  Bruno Haible  <bruno@clisp.org>
35904
35905         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35906         * lib/math_.h [__DECC]: Include the overridden include file through
35907         #include_next, outside the double-inclusion guard.
35908         * lib/stdio_.h [__DECC]: Likewise.
35909         * lib/stdlib_.h [__DECC]: Likewise.
35910         * lib/string_.h [__DECC]: Likewise.
35911         * lib/time_.h [__DECC]: Likewise.
35912         * lib/wchar_.h [__DECC]: Likewise.
35913         * lib/wctype_.h [__DECC]: Likewise.
35914         * lib/inttypes_.h [__DECC]: Likewise.
35915         Reported by Albert Chin <china@thewrittenword.com> in
35916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35917
35918 2007-04-04  Eric Blake  <ebb9@byu.net>
35919
35920         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35921         1.5.x.
35922
35923 2007-04-04  Bruno Haible  <bruno@clisp.org>
35924
35925         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35926         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35927
35928 2007-04-04  Bruno Haible  <bruno@clisp.org>
35929
35930         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35931         results for "%010a" of Infinity and NaN.
35932         * tests/test-vasprintf-posix.c (test_function): Likewise.
35933         * tests/test-snprintf-posix.h (test_function): Likewise.
35934         * tests/test-sprintf-posix.h (test_function): Likewise.
35935         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35936         * tests/test-printf-posix.h (test_function): Likewise.
35937         * tests/test-fprintf-posix.out: Update.
35938         Needed for FreeBSD 6.1.
35939
35940 2007-04-04  Bruno Haible  <bruno@clisp.org>
35941
35942         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35943         directly used by the gnulib modules nor by gnulib-tool.
35944
35945 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35946
35947         * DEPENDENCIES: Give overall description of version dependency
35948         desirability.  Use more-typical names for apps.
35949         Add shell, coreutils, diffutils, grep, tar, gzip.
35950
35951 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35952
35953         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35954
35955 2007-04-04  Karl Berry  <karl@gnu.org>
35956
35957         * MODULES.html.sh (func_module): missing '.
35958
35959 2007-04-03  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/argmatch-tests (Makefile.am): New variable
35962         test_argmatch_LDADD.
35963         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35964         * modules/array-list-tests (Makefile.am): New variable
35965         test_array_list_LDADD.
35966         * modules/array-oset-tests (Makefile.am): New variable
35967         test_array_oset_LDADD.
35968         * modules/avltree-list-tests (Makefile.am): New variable
35969         test_avltree_list_LDADD.
35970         * modules/avltree-oset-tests (Makefile.am): New variable
35971         test_avltree_oset_LDADD.
35972         * modules/avltreehash-list-tests (Makefile.am): New variable
35973         test_avltreehash_list_LDADD.
35974         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35975         test_canonicalize_lgpl_LDADD.
35976         * modules/carray-list-tests (Makefile.am): New variable
35977         test_carray_list_LDADD.
35978         * modules/dirname-tests (Makefile.am): New variable
35979         test_dirname_LDADD.
35980         * modules/linked-list-tests (Makefile.am): New variable
35981         test_linked_list_LDADD.
35982         * modules/linkedhash-list-tests (Makefile.am): New variable
35983         test_linkedhash_list_LDADD.
35984         * modules/rbtree-list-tests (Makefile.am): New variable
35985         test_rbtree_list_LDADD.
35986         * modules/rbtree-oset-tests (Makefile.am): New variable
35987         test_rbtree_oset_LDADD.
35988         * modules/rbtreehash-list-tests (Makefile.am): New variable
35989         test_rbtreehash_list_LDADD.
35990         * modules/xvasprintf-tests (Makefile.am): New variable
35991         test_xvasprintf_LDADD.
35992         Reported by Eric Blake.
35993
35994 2007-04-03  Eric Blake  <ebb9@byu.net>
35995
35996         * DEPENDENCIES: Weaken m4 requirements.
35997
35998 2007-04-03  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36001         * modules/isnanl-tests (configure.ac): Likewise.
36002
36003 2007-04-03  Ben Pfaff  <blp@gnu.org>
36004
36005         * modules/iconv_open: Add $(srcdir)/ to source directory
36006         references in Makefile fragments that call gperf, to fix VPATH
36007         builds.
36008
36009 2007-04-03  Bruno Haible  <bruno@clisp.org>
36010
36011         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36012         * lib/ldexpl.c: Undo last change.
36013
36014 2007-04-03  Bruno Haible  <bruno@clisp.org>
36015
36016         * modules/printf-frexpl (Depends-on): Undo last change.
36017         (Files): Add m4/ldexpl.m4.
36018
36019 2007-04-03  Bruno Haible  <bruno@clisp.org>
36020
36021         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36022         * modules/isnanl (Link): New section.
36023
36024         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36025         * modules/frexp (Link): New section.
36026
36027         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36028         * modules/frexpl (Link): New section.
36029
36030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36031         * modules/ldexpl (Link): New section.
36032
36033 2007-04-03  Bruno Haible  <bruno@clisp.org>
36034
36035         * modules/TEMPLATE-EXTENDED: New file.
36036         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36037
36038 2007-04-03  Bruno Haible  <bruno@clisp.org>
36039
36040         * DEPENDENCIES: New file.
36041         Suggested by Simon Josefsson.
36042
36043 2007-04-03  Bruno Haible  <bruno@clisp.org>
36044
36045         * doc/gnulib.texi: Escape @.
36046
36047 2007-04-03  James Youngman  <jay@gnu.org>
36048         and Paul Eggert  <eggert@cs.ucla.edu>
36049
36050         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36051         birthtime on all systems that have birthtime, not just those which
36052         use st_birthtimensec rather than st_birthtim.  Putting zero in
36053         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36054         that the birth time is not available for files on an NFS mount.
36055
36056 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36057
36058         * modules/memxor: Move back from crypto/, suggested by Bruno.
36059         * modules/crypto/hmac-sha1: Fix memxor dependency.
36060
36061         * modules/crypto/gc: Moved from ../.
36062
36063 2007-04-02  Eric Blake  <ebb9@byu.net>
36064
36065         * lib/ldexpl.c (includes): Avoid libm.
36066
36067         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36068
36069 2007-04-02  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36072         on IRIX.
36073
36074 2007-04-02  Bruno Haible  <bruno@clisp.org>
36075
36076         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36077         x86 or x86_64 platforms running MacOS X.
36078         Reported by Ryan Schmidt <@ryandesign.com>.
36079
36080 2007-04-02  Bruno Haible  <bruno@clisp.org>
36081
36082         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36083         i386.
36084
36085 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36086
36087         * modules/crypto/arcfour: Moved from ../.
36088         * modules/crypto/arcfour-tests: Moved from ../.
36089         * modules/crypto/arctwo: Moved from ../.
36090         * modules/crypto/arctwo-tests: Moved from ../.
36091         * modules/crypto/des: Moved from ../.
36092         * modules/crypto/des-tests: Moved from ../.
36093         * modules/crypto/gc-arcfour: Moved from ../.
36094         * modules/crypto/gc-arcfour-tests: Moved from ../.
36095         * modules/crypto/gc-arctwo: Moved from ../.
36096         * modules/crypto/gc-arctwo-tests: Moved from ../.
36097         * modules/crypto/gc-des: Moved from ../.
36098         * modules/crypto/gc-des-tests: Moved from ../.
36099         * modules/crypto/gc-hmac-md5: Moved from ../.
36100         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36101         * modules/crypto/gc-hmac-sha1: Moved from ../.
36102         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36103         * modules/crypto/gc-md2: Moved from ../.
36104         * modules/crypto/gc-md2-tests: Moved from ../.
36105         * modules/crypto/gc-md4: Moved from ../.
36106         * modules/crypto/gc-md4-tests: Moved from ../.
36107         * modules/crypto/gc-md5: Moved from ../.
36108         * modules/crypto/gc-md5-tests: Moved from ../.
36109         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36110         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36111         * modules/crypto/gc-random: Moved from ../.
36112         * modules/crypto/gc-rijndael: Moved from ../.
36113         * modules/crypto/gc-rijndael-tests: Moved from ../.
36114         * modules/crypto/gc-sha1: Moved from ../.
36115         * modules/crypto/gc-sha1-tests: Moved from ../.
36116         * modules/crypto/gc-tests: Moved from ../.
36117         * modules/crypto/hmac-md5: Moved from ../.
36118         * modules/crypto/hmac-md5-tests: Moved from ../.
36119         * modules/crypto/hmac-sha1: Moved from ../.
36120         * modules/crypto/hmac-sha1-tests: Moved from ../.
36121         * modules/crypto/md2: Moved from ../.
36122         * modules/crypto/md2-tests: Moved from ../.
36123         * modules/crypto/md4: Moved from ../.
36124         * modules/crypto/md4-tests: Moved from ../.
36125         * modules/crypto/md5: Moved from ../.
36126         * modules/crypto/md5-tests: Moved from ../.
36127         * modules/crypto/memxor: Moved from ../.
36128         * modules/crypto/rijndael: Moved from ../.
36129         * modules/crypto/rijndael-tests: Moved from ../.
36130         * modules/crypto/sha1: Moved from ../.
36131
36132 2007-03-30  James Youngman  <jay@gnu.org>
36133
36134         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36135         rename() to change the ctime of a file (because ctime is unaffected
36136         by rename on jfs2 on AIX 5.1).
36137         (main): Start by doing cleanup, in case a previous run failed leaving
36138         test files behind.
36139
36140 2007-03-31  Bruno Haible  <bruno@clisp.org>
36141
36142         Support old proprietary implementations of iconv.
36143         * modules/iconv_open: New file.
36144         * lib/iconv_.h: New file.
36145         * m4/iconv_h.m4: New file.
36146         * lib/iconv_open.c: New file.
36147         * lib/iconv_open-aix.gperf: New file.
36148         * lib/iconv_open-hpux.gperf: New file.
36149         * lib/iconv_open-irix.gperf: New file.
36150         * lib/iconv_open-osf.gperf: New file.
36151         * m4/iconv_open.m4: New file.
36152         * modules/linebreak (Depends-on): Add iconv_open.
36153         * modules/striconv (Depends-on): Likewise.
36154         * modules/striconveh (Depends-on): Likewise.
36155         * modules/unicodeio (Depends-on): Likewise.
36156         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36157         (iconv_t)(-1).
36158         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36159         conversion if cd is (iconv_t)(-1).
36160         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36161         is not possible.
36162
36163 2007-03-31  Bruno Haible  <bruno@clisp.org>
36164
36165         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36166         work on Solaris either. Protect also second use of "autodetect_jp".
36167
36168 2007-03-31  Bruno Haible  <bruno@clisp.org>
36169
36170         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36171         the function is not present.
36172
36173 2007-03-31  Bruno Haible  <bruno@clisp.org>
36174
36175         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36176         the function is not present.
36177
36178 2007-03-31  Bruno Haible  <bruno@clisp.org>
36179
36180         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36181         a bug in HP-UX iconv_open().
36182
36183 2007-03-31  Bruno Haible  <bruno@clisp.org>
36184
36185         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36186         (Mathematics <math.h>): New section, add fpieee.
36187         (Input/output <stdio.h>): Add fseterr.
36188         (Mathematics <math.h>): New section, add printf-frexp.
36189         (Container data structures): Add sublist.
36190         (Core language properties): Add fpucw, inline.
36191         (Functions for greatest-width integer types <inttypes.h>): Add
36192         imaxabs, imaxdiv, inttypes.
36193         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36194         isnanl-nolibm, ldexp.
36195         (Mathematics <math.h>): New section, add printf-frexpl.
36196         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36197         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36198         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36199         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36200         (Unicode string functions): Add unistr/u*-mbtoucr.
36201         (Java): Add javacomp-script, javaexec-script.
36202         (C#): Add csharpcomp-script, csharpexec-script.
36203         (Support for building libraries and executables): Add havelib,
36204         relocatable-*.
36205         (Support for maintaining and releasing projects): Renamed from
36206         'Support for maintaining and release projects'. Add announce-gen.
36207
36208 2007-03-31  Bruno Haible  <bruno@clisp.org>
36209
36210         * README: Talk primarily about git.
36211         (git and CVS): Renamed from CVS.
36212         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36213         gnulib is available through git.
36214         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36215
36216 2007-03-30  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36219         * lib/poll_.h: Likewise.
36220         * lib/stat_.h: Likewise.
36221         * lib/sys_time_.h: Likewise.
36222         * lib/sysexit_.h: Likewise.
36223         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36224         * lib/stdbool_.h: Likewise.
36225         * lib/byteswap_.h: Add double-inclusion guard.
36226
36227 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36228
36229         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36230
36231 2007-03-30  Karl Berry  <karl@gnu.org>
36232
36233         * config/srclist-update: double space after USA in the license
36234         substitution, since that's how it's usually (?) written.
36235
36236 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36237
36238         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36239         reported by Bruno Haible.
36240
36241 2007-03-29  Bruno Haible  <bruno@clisp.org>
36242
36243         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36244         a bug in AIX iconv().
36245
36246 2007-03-29  Bruno Haible  <bruno@clisp.org>
36247
36248         * modules/ldexpl-tests: New file.
36249         * tests/test-ldexpl.c: New file.
36250
36251 2007-03-29  Bruno Haible  <bruno@clisp.org>
36252
36253         * lib/ldexpl.c: Include fpucw.h.
36254         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36255         multiplication.
36256         * modules/ldexpl (Depends-on): Add fpucw.
36257
36258 2007-03-29  Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/ldexpl: New file.
36261         * m4/ldexpl.m4: New file.
36262         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36263         set.
36264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36265         REPLACE_LDEXPL.
36266         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36267         REPLACE_LDEXPL.
36268         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36269         gl_FUNC_LDEXPL_WORKS.
36270         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36271         * modules/mathl (Files): Remove lib/ldexpl.c.
36272         (Depends-on): Add ldexpl.
36273
36274 2007-03-29  Bruno Haible  <bruno@clisp.org>
36275
36276         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36277
36278 2007-03-29  Bruno Haible  <bruno@clisp.org>
36279
36280         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36281         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36282         and possibly also HP-UX.
36283         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36284         work on AIX, IRIX, HP-UX, OSF/1.
36285         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36286         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36287         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36288         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36289         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36290         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36291
36292 2007-03-29  Bruno Haible  <bruno@clisp.org>
36293
36294         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36295
36296 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36297
36298         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36299         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36300
36301 2007-03-29  Eric Blake  <ebb9@byu.net>
36302
36303         * lib/acl-internal.h: Remove redundant include.
36304         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36305         Cygwin when a file is locked.
36306
36307 2007-03-29  Bruno Haible  <bruno@clisp.org>
36308
36309         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36310         file.
36311         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36312
36313 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36314
36315         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36316         try to remove a parent directory if the child couldn't be removed
36317         (except for the first rmdir, which could fail because the child
36318         doesn't exist).  Problem reported by Jeff Blaine in
36319         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36320
36321 2007-03-28  Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/striconveh.c (utf8conv_carefully): New function.
36324         (mem_cd_iconveh_internal): Invoke it.
36325
36326 2007-03-28  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36329         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36330         input.
36331         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36332         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36333         unistr/u8-uctomb.
36334
36335 2007-03-28  Bruno Haible  <bruno@clisp.org>
36336
36337         * modules/unistr/u8-mbtoucr: New file.
36338         * lib/unistr/u8-mbtoucr.c: New file.
36339         * modules/unistr/u16-mbtoucr: New file.
36340         * lib/unistr/u16-mbtoucr.c: New file.
36341         * modules/unistr/u16-mbtoucr: New file.
36342         * lib/unistr/u16-mbtoucr.c: New file.
36343         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36344
36345 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36346             Bruno Haible  <bruno@clisp.org>
36347
36348         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36349         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36350         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36351
36352         * m4/stdio_h.m4: Add stubs for vasprintf too.
36353
36354         * modules/stdio: Support vasprintf in sed command.
36355
36356         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36357         vasprintf.h.  Add stdio module indicator.
36358
36359         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36360         vasprintf.h.
36361
36362         * lib/vasprintf.h: File removed.
36363
36364         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36365         * lib/vasprintf.c: Ditto.
36366         * lib/xvasprintf.c: Ditto.
36367         * tests/test-vasprintf-posix.c: Ditto.
36368         * tests/test-vasprintf.c: Ditto.
36369
36370 2007-03-27  Bruno Haible  <bruno@clisp.org>
36371
36372         Make vasnprintf multithread-safe.
36373         * lib/vasnprintf.c (decimal_point_char): New function.
36374         (VASNPRINTF): Use it.
36375         Suggested by Simon Josefsson.
36376
36377 2007-03-27  Eric Blake  <ebb9@byu.net>
36378
36379         Support sub-second birthtime on cygwin.
36380         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36381         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36382         (get_stat_birthtime): Also work with st_birthtim.
36383
36384 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36385
36386         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36387         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36388         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36389         (get_stat_birthtime_ns): Simplify compile-time tests.
36390         (get_stat_birthtime): Change the API to look like
36391         get_stat_mtime etc., except return a negative tv_nsec on error.
36392         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36393         Don't check for "spare" fields.
36394         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36395         or for struct stat.st_birthtime, as these tests aren't used.
36396         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36397
36398 2007-03-27  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/stat-time.h: Include <sys/stat.h>.
36401
36402 2007-03-27  James Youngman  <jay@gnu.org>
36403
36404         * lib/stat-time.h (get_stat_birthtime): New function for
36405           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36406         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36407           and its variants.
36408         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36409         * modules/stat-time-test: New file.
36410         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36411
36412 2007-03-26  Bruno Haible  <bruno@clisp.org>
36413
36414         Better support of signalling NaNs.
36415         * lib/atanl.c: Include isnanl.h.
36416         (atanl): Perform test for NaN at the beginning of the function and
36417         through a call to isnanl.
36418         * lib/cosl.c: Include isnanl.h.
36419         (cosl): Perform test for NaN at the beginning of the function and
36420         through a call to isnanl.
36421         * lib/ldexpl.c: Include isnanl.h.
36422         (ldexpl): Perform test for NaN through a call to isnanl.
36423         * lib/logl.c: Include isnanl.h.
36424         (logl): Perform test for NaN at the beginning of the function and
36425         through a call to isnanl.
36426         * lib/sinl.c: Include isnanl.h.
36427         (sinl): Perform test for NaN at the beginning of the function and
36428         through a call to isnanl.
36429         * lib/sqrtl.c: Include isnanl.h.
36430         (sqrtl): Perform test for NaN at the beginning of the function and
36431         through a call to isnanl.
36432         * lib/tanl.c: Include isnanl.h.
36433         (tanl): Perform test for NaN at the beginning of the function and
36434         through a call to isnanl.
36435         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36436         * modules/mathl (Depends-on): Add isnanl.
36437
36438 2007-03-26  Eric Blake  <ebb9@byu.net>
36439
36440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36441         regression in logic sense of previous patch.
36442
36443 2007-03-26  Bruno Haible  <bruno@clisp.org>
36444
36445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36446         unportable shell command "if ! ...".
36447         Reported by Ralf Wildenhues.
36448
36449 2007-03-25  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36452         <sysexits.h> file, and only add EX_CONFIG.
36453         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36454         absolute file name and whether it is sufficient. Substitute also
36455         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36456         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36457         ABSOLUTE_SYSEXITS_H into sysexits.h.
36458
36459 2007-03-25  Bruno Haible  <bruno@clisp.org>
36460
36461         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36462         hints is NULL.
36463
36464 2007-03-25  Bruno Haible  <bruno@clisp.org>
36465
36466         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36467         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36468
36469 2007-03-25  Bruno Haible  <bruno@clisp.org>
36470
36471         * lib/vasnprintf.c: Include langinfo.h.
36472         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36473         multithread-safe.
36474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36475         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36477         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36478         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36480         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36481         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36482         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36483         Reported by Simon Josefsson.
36484
36485 2007-03-25  Bruno Haible  <bruno@clisp.org>
36486
36487         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36488         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36489         * modules/vasnprintf (Depends-on): Add stdint.
36490
36491 2007-03-25  Bruno Haible  <bruno@clisp.org>
36492
36493         * modules/fpieee: New file.
36494         * m4/fpieee.m4: New file.
36495         * modules/isnan-nolibm (Depends-on): Add fpieee.
36496         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36497         * modules/isnanl (Depends-on): Add fpieee.
36498
36499 2007-03-25  Bruno Haible  <bruno@clisp.org>
36500
36501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36502
36503 2007-03-25  Bruno Haible  <bruno@clisp.org>
36504
36505         Avoid test failures on IRIX 6.5.
36506         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36507         (main): Use it.
36508         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36509         macros.
36510         (main): Use them.
36511
36512 2007-03-25  Bruno Haible  <bruno@clisp.org>
36513
36514         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36515         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36516         exists but doesn't work.
36517         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36518         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36520         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36521
36522 2007-03-25  Bruno Haible  <bruno@clisp.org>
36523
36524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36525         returns inf. Needed on IRIX 6.5.
36526
36527 2007-03-25  Bruno Haible  <bruno@clisp.org>
36528
36529         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36530         (main): Use isnanl instead of x != x idiom.
36531         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36532
36533         * tests/test-frexp.c: Include isnan.h.
36534         (main): Use isnan instead of x != x idiom.
36535         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36536
36537 2007-03-25  Bruno Haible  <bruno@clisp.org>
36538
36539         * tests/test-frexp.c (NaN): New function/macro.
36540         (main): Use it instead of 0.0 / 0.0.
36541         * tests/test-isnan.c (NaN): New function/macro.
36542         (main): Use it instead of 0.0 / 0.0.
36543         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36544         (test_function): Use it instead of 0.0 / 0.0.
36545         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36546         (test_function): Use it instead of 0.0 / 0.0.
36547         * tests/test-snprintf-posix.h (NaN): New function/macro.
36548         (test_function): Use it instead of 0.0 / 0.0.
36549         * tests/test-sprintf-posix.h (NaN): New function/macro.
36550         (test_function): Use it instead of 0.0 / 0.0.
36551         * tests/test-fprintf-posix.h (NaN): New function/macro.
36552         (test_function): Use it instead of 0.0 / 0.0.
36553         * tests/test-printf-posix.h (NaN): New function/macro.
36554         (test_function): Use it instead of 0.0 / 0.0.
36555
36556         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36557
36558 2007-03-25  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36561
36562 2007-03-25  Bruno Haible  <bruno@clisp.org>
36563
36564         * lib/regexec.c (merge_state_with_log): Make static.
36565
36566 2007-03-25  Bruno Haible  <bruno@clisp.org>
36567
36568         * lib/trigl.c (kernel_rem_pio2): Make static.
36569
36570 2007-03-25  Bruno Haible  <bruno@clisp.org>
36571
36572         * lib/sincosl.c (sincosl_table): Make static.
36573
36574 2007-03-25  Bruno Haible  <bruno@clisp.org>
36575
36576         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36577         if the compiler does not support C99.
36578
36579 2007-03-25  Bruno Haible  <bruno@clisp.org>
36580
36581         * modules/time (Makefile.am): Ensure all rule action lines start with a
36582         tab.
36583
36584 2007-03-24  Bruno Haible  <bruno@clisp.org>
36585
36586         * modules/tsearch-tests: New file.
36587         * tests/test-tsearch.sh: New file.
36588         * tests/test-tsearch.c: New file, mostly copied from glibc.
36589
36590         * modules/search-tests: New file.
36591         * tests/test-search.c: New file.
36592
36593         * modules/search: New file.
36594         * lib/search_.h: New file, incorporating lib/tsearch.h.
36595         * m4/search_h.m4: New file.
36596         * lib/tsearch.h: Remove file.
36597         * lib/tsearch.c: Include search.h instead of tsearch.h.
36598         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36599         HAVE_TSEARCH.
36600         * modules/tsearch (Files): Remove lib/tsearch.h.
36601         (Depends-on): Add search.
36602         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36603         (Include): Change tsearch.h into search.h.
36604
36605 2007-03-24  Bruno Haible  <bruno@clisp.org>
36606
36607         * modules/fpucw: New file.
36608         * lib/fpucw.h: New file.
36609         * lib/frexp.c: Include fpucw.h.
36610         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36611         (FUNC): Use them.
36612         * lib/printf-frexp.c: Include fpucw.h.
36613         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36614         (FUNC): Use them.
36615         * lib/vasnprintf.c: Include fpucw.h.
36616         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36617         'long double' calculations.
36618         * tests/test-frexpl.c: Include fpucw.h.
36619         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36620         * tests/test-printf-frexpl.c: Include fpucw.h.
36621         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36622         * modules/frexpl (Depends-on): Add fpucw.
36623         * modules/printf-frexpl (Depends-on): Likewise.
36624         * modules/fprintf-posix (Depends-on): Likewise.
36625         * modules/snprintf-posix (Depends-on): Likewise.
36626         * modules/sprintf-posix (Depends-on): Likewise.
36627         * modules/vasnprintf-posix (Depends-on): Likewise.
36628         * modules/vasprintf-posix (Depends-on): Likewise.
36629         * modules/vfprintf-posix (Depends-on): Likewise.
36630         * modules/vsnprintf-posix (Depends-on): Likewise.
36631         * modules/vsprintf-posix (Depends-on): Likewise.
36632         * modules/frexpl-tests (Depends-on): Likewise.
36633         * modules/printf-frexpl-tests (Depends-on): Likewise.
36634
36635 2007-03-24  Bruno Haible  <bruno@clisp.org>
36636
36637         * lib/float+.h: New file.
36638         * lib/isnan.c: Include float+.h.
36639         (SIZE): New macro.
36640         (FUNC): Compare only SIZE bytes of the value.
36641         * lib/vasnprintf.c: Include float+.h.
36642         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36643         SIZEOF_LDBL or SIZEOF_DBL bytes.
36644         * modules/isnan-nolibm (Files): Add lib/float+.h.
36645         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36646         * modules/isnanl (Files): Add lib/float+.h.
36647         * modules/vasnprintf (Files): Add lib/float+.h.
36648
36649 2007-03-24  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36652         include isnanl-nolibm.h.
36653
36654 2007-03-24  Bruno Haible  <bruno@clisp.org>
36655
36656         * tests/test-read-file.c (main): Don't produce spurious output for
36657         expected situations. Make the test fail if it encountered unexpected
36658         results.
36659
36660 2007-03-24  Bruno Haible  <bruno@clisp.org>
36661
36662         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36663         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36664
36665 2007-03-24  Bruno Haible  <bruno@clisp.org>
36666
36667         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36668
36669 2007-03-24  Bruno Haible  <bruno@clisp.org>
36670
36671         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36672         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36673
36674         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36675         * modules/utf8-ucs4: Turn into a symbolic link to module
36676         unistr/u8-mbtouc.
36677
36678         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36679         utf8-ucs4-unsafe.
36680         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36681         unistr/u8-mbtouc-unsafe.
36682
36683         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36684         * modules/utf16-ucs4: Turn into a symbolic link to module
36685         unistr/u16-mbtouc.
36686
36687         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36688         utf16-ucs4-unsafe.
36689         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36690         unistr/u16-mbtouc-unsafe.
36691
36692         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36693         * modules/ucs4-utf8: Turn into a symbolic link to module
36694         unistr/u8-ubtomb.
36695
36696         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36697         * modules/ucs4-utf16: Turn into a symbolic link to module
36698         unistr/u16-ubtomb.
36699
36700 2007-03-24  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36703         Enable the function only if HAVE_INLINE.
36704         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36705         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36706         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36707         Enable the function only if HAVE_INLINE.
36708         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36709         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36710         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36711         Enable the function only if HAVE_INLINE.
36712         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36713         Enable the function only if HAVE_INLINE.
36714         * modules/utf8-ucs4: Update.
36715         * modules/utf8-ucs4-unsafe: Update.
36716         * modules/utf16-ucs4: Update.
36717         * modules/utf16-ucs4-unsafe: Update.
36718         * modules/ucs4-utf8: Update.
36719         * modules/ucs4-utf16: Update.
36720
36721 2007-03-24  Bruno Haible  <bruno@clisp.org>
36722
36723         * lib/utf8-ucs4.h: Remove file.
36724         * lib/utf8-ucs4-unsafe.h: Remove file.
36725         * lib/utf16-ucs4.h: Remove file.
36726         * lib/utf16-ucs4-unsafe.h: Remove file.
36727         * lib/ucs4-utf8.h: Remove file.
36728         * lib/ucs4-utf16.h: Remove file.
36729         * lib/unistr.h: Include their previous contents.
36730         * m4/utf-ucs4.m4: Remove file.
36731         * m4/ucs4-utf.m4: Remove file.
36732         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36733         (Depends-on): Add unistr/base.
36734         (configure.ac): Remove gl_UTF_UCS4.
36735         (Makefile.am): Update.
36736         (Include): Change to unistr.h.
36737         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36738         (Depends-on): Add unistr/base.
36739         (configure.ac): Remove gl_UTF_UCS4.
36740         (Makefile.am): Update.
36741         (Include): Change to unistr.h.
36742         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36743         (Depends-on): Add unistr/base.
36744         (configure.ac): Remove gl_UTF_UCS4.
36745         (Makefile.am): Update.
36746         (Include): Change to unistr.h.
36747         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36748         (Depends-on): Add unistr/base.
36749         (configure.ac): Remove gl_UTF_UCS4.
36750         (Makefile.am): Update.
36751         (Include): Change to unistr.h.
36752         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36753         (Depends-on): Add unistr/base.
36754         (configure.ac): Remove gl_UCS4_UTF.
36755         (Makefile.am): Update.
36756         (Include): Change to unistr.h.
36757         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36758         (Depends-on): Add unistr/base.
36759         (configure.ac): Remove gl_UCS4_UTF.
36760         (Makefile.am): Update.
36761         (Include): Change to unistr.h.
36762         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36763         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36764         utf8-ucs4-unsafe.h.
36765         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36766         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36767         utf16-ucs4-unsafe.h.
36768         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36769         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36770         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36771         * lib/unistr/u8-strchr.c: Likewise.
36772         * lib/unistr/u8-strrchr.c: Likewise.
36773         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36774         * lib/unistr/u16-strchr.c: Likewise.
36775         * lib/unistr/u16-strrchr.c: Likewise.
36776         * lib/striconveh.c: Update.
36777         * lib/linebreak.c: Update.
36778
36779 2007-03-24  Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36782         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36783
36784 2007-03-22  Bruno Haible  <bruno@clisp.org>
36785
36786         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36787
36788 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36789
36790         * MODULES.html.sh (File system functions): New module write-any-file.
36791         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36792         * m4/write-any-file.m4: New files.
36793
36794 2007-03-23  Eric Blake  <ebb9@byu.net>
36795
36796         * gnulib-tool: Rearrange space-tab sequences, since some editors
36797         like to eat them.
36798
36799 2007-03-23  Eric Blake  <ebb9@byu.net>
36800
36801         * lib/version-etc.c (version_etc_va): Update license wording to
36802         be more concise.  Recommended by Richard Stallman.
36803
36804 2007-03-22  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/poll.c (MSG_PEEK): New fallback definition.
36807
36808 2007-03-22  Bruno Haible  <bruno@clisp.org>
36809
36810         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36811         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36812         (main): Update.
36813         Fixes a compilation error on BeOS.
36814
36815 2007-03-22  Bruno Haible  <bruno@clisp.org>
36816
36817         * modules/frexpl-tests: New file.
36818         * tests/test-frexpl.c: New file.
36819
36820         * modules/frexpl: New file.
36821         * m4/frexpl.m4: New file.
36822         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36823         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36825         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36826         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36827         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36828
36829 2007-03-22  Bruno Haible  <bruno@clisp.org>
36830
36831         * lib/frexpl.c: Share code with lib/frexp.c.
36832         * modules/mathl (Files): Add lib/frexp.c.
36833         (Depends-on): Add isnanl-nolibm.
36834
36835 2007-03-22  Bruno Haible  <bruno@clisp.org>
36836
36837         * modules/printf-frexp (Files): Add m4/frexp.m4.
36838         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36839         only if the found frexp function actually works.
36840
36841 2007-03-22  Bruno Haible  <bruno@clisp.org>
36842
36843         * lib/frexp.c: Remove older implementation that uses divisions.
36844
36845 2007-03-21  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/frexp-tests: New file.
36848         * tests/test-frexp.c: New file.
36849
36850         * modules/frexp: New file.
36851         * lib/frexp.c: New file.
36852         * m4/frexp.m4: New file.
36853         * lib/math_.h (frexp): New declaration.
36854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36855         REPLACE_FREXP.
36856         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36857
36858 2007-03-21  Bruno Haible  <bruno@clisp.org>
36859
36860         * modules/isnanl-tests: New file.
36861         * tests/test-isnanl.c: New file.
36862
36863         * modules/isnanl: New file.
36864         * lib/isnanl.h: New file.
36865         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36866         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36867         gl_FUNC_ISNANL_WORKS.
36868         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36869         New macros.
36870
36871 2007-03-21  Bruno Haible  <bruno@clisp.org>
36872
36873         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36874         lib/isnanl.h.
36875         (Include): Update.
36876         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36877         * lib/vasnprintf.c: Update.
36878         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36879         tests/test-isnanl.h, remove tests/test-isnanl.c.
36880         (Makefile.am): Update.
36881         * tests/test-isnanl-nolibm.c: New file.
36882         * tests/test-isnanl.h: New file.
36883         * tests/test-isnanl.c: Remove file.
36884
36885 2007-03-21  Jim Meyering  <jim@meyering.net>
36886
36887         When trying to open ".", treat ESTALE like EACCES.
36888         * lib/savewd.c (savewd_save): Resort to forking not just upon
36889         failure with EACCES, but also when errno is ESTALE.
36890
36891 2007-03-20  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36894         Needed on AIX 5.1. Reported by Matthew Woehlke.
36895
36896 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36897
36898         Suggestions by Bruno Haible:
36899         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36900         our own.
36901         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36902         * modules/acl (Depends-on): Add gettext.
36903
36904 2007-03-19  Bruno Haible  <bruno@clisp.org>
36905
36906         * modules/iconvme: Remove file.
36907         * lib/iconvme.h: Remove file.
36908         * lib/iconvme.c: Remove file.
36909         * m4/iconvme.m4: Remove file.
36910
36911 2007-03-19  Bruno Haible  <bruno@clisp.org>
36912
36913         * doc/relocatable-maint.texi: Break long shell script line.
36914         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36915
36916 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36917
36918         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36919         handle file_has_acl.
36920         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36921         * lib/acl.c: Move header inclusions and related macro defns into
36922         lib/acl-internal.h.
36923         (S_ISLNK): Remove defn, since that's now done for us.
36924         (file_has_acl): Move to lib/file-has-acl.c.
36925         Call acl_trivial if available.  This is the crucial part of the fix.
36926         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36927         shared within the library.  Rewrite a bit, partly to make it compatible
36928         with the GNU coding style.
36929         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36930         Remove unnecessary double-quotes.
36931         Don't test for acl_to_text; the build will catch that.
36932         Replace acl_entries if it doesn't exist and it is needed.
36933         Check for -lsec and acl_trivial (as used on Solaris 10).
36934         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36935         lib/file-has-acl.c.
36936         (Depends-on): Add sys_stat, for S_ISLNK.
36937
36938 2007-03-19  Ben Pfaff  <blp@gnu.org>
36939
36940         * doc/gnulib.texi: Fix typos.
36941         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36942
36943 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36944
36945         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36946         If size is zero here, buf must be zero.
36947
36948 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36949
36950         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36951         <bruno@clisp.org>.
36952
36953 2007-03-18  Bruno Haible  <bruno@clisp.org>
36954
36955         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36956         Suggested by Eric Blake.
36957
36958 2007-03-18  Ben Pfaff  <blp@gnu.org>
36959
36960         * doc/relocatable.texi: Recommend using as prefix a directory
36961         that does not exist and will never be created.  Based on
36962         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36963         and others.
36964
36965 2007-03-17  Bruno Haible  <bruno@clisp.org>
36966
36967         * lib/fchownat.c: Include lchown.h.
36968
36969 2007-03-17  Bruno Haible  <bruno@clisp.org>
36970
36971         Fix endless loop when the given allocated size was > INT_MAX.
36972         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36973         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36974         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36975         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36976         * lib/sprintf.c (sprintf): Likewise.
36977
36978 2007-03-17  Bruno Haible  <bruno@clisp.org>
36979
36980         * tests/test-argp-2.sh (func_compare): Output a context diff.
36981
36982 2007-03-17  Bruno Haible  <bruno@clisp.org>
36983
36984         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36985         locale's decimal-point character.
36986
36987 2007-03-17  Bruno Haible  <bruno@clisp.org>
36988
36989         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36990         before comparing it. Needed because on some platforms (e.g. x86) a
36991         'long double' occupies less bytes than sizeof (long double).
36992
36993 2007-03-17  Bruno Haible  <bruno@clisp.org>
36994
36995         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36996         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36997         * tests/test-getaddrinfo.c (simple): Likewise.
36998         * tests/test-read-file.c (main): Likewise.
36999
37000 2007-03-17  Bruno Haible  <bruno@clisp.org>
37001
37002         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37003
37004 2007-03-17  Bruno Haible  <bruno@clisp.org>
37005
37006         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37007         unused variable.
37008
37009 2007-03-17  Bruno Haible  <bruno@clisp.org>
37010
37011         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37012         * tests/test-c-strncasecmp.c: Likewise.
37013
37014 2007-03-17  Bruno Haible  <bruno@clisp.org>
37015
37016         * modules/stdlib (Depends-on): Add unistd.
37017         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37018         Needed for MacOS X 10.3.
37019
37020 2007-03-17  Bruno Haible  <bruno@clisp.org>
37021
37022         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37023
37024 2007-03-17  Bruno Haible  <bruno@clisp.org>
37025
37026         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37027
37028 2007-03-17  Bruno Haible  <bruno@clisp.org>
37029
37030         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37031         to reflect files copied from gnulib (with or without modifications).
37032         Suggested by Jim Meyering.
37033
37034 2007-03-17  Eric Blake  <ebb9@byu.net>
37035
37036         * NEWS: Document stdlib change from 2007-02-18.
37037
37038 2007-03-17  Jim Meyering  <jim@meyering.net>
37039
37040         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37041         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37042         someone uses a name containing shell meta-characters.
37043         Reported by Alfred M. Szmidt.
37044
37045         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37046
37047 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37048
37049         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37050         and copy gettext configuration files only if configure.ac contains
37051         a use of AM_GNU_GETTEXT_VERSION.
37052
37053 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37054
37055         * build-aux/bootstrap (gnulib_name): New variable.
37056         (gnulib_tool_options): Use it.
37057
37058 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37059
37060         * tests/test-des.c: Use new namespace.
37061
37062 2007-03-15  Bruno Haible  <bruno@clisp.org>
37063
37064         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37065         Reported by James Youngman <jay@gnu.org>.
37066
37067 2007-03-15  Bruno Haible  <bruno@clisp.org>
37068
37069         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37070         declared prototype. Needed with cc on OSF/1 5.1.
37071
37072 2007-03-15  Bruno Haible  <bruno@clisp.org>
37073
37074         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37075         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37076         (struct gl_list_implementation): Add dispose_fn argument to the
37077         'create_empty', 'create' methods.
37078         (struct gl_list_impl_base): Add field 'dispose_fn'.
37079         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37080         argument.
37081         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37082         dispose_fn argument.
37083         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37084         dispose_fn on the dropped values.
37085         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37086         dispose_fn argument.
37087         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37088         dropped values.
37089         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37090         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37091         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37092         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37093         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37094         argument.
37095         (gl_tree_list_free): Call dispose_fn on the dropped values.
37096         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37097         the dropped values.
37098         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37099         Add dispose_fn argument.
37100         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37101         Call dispose_fn on the dropped values.
37102         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37103         Add dispose_fn argument.
37104         (gl_sublist_create): Initialize the 'dispose_fn' field.
37105         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37106         * tests/test-array_list.c (main): Update.
37107         * tests/test-carray_list.c (main): Update.
37108         * tests/test-avltree_list.c (main): Update.
37109         * tests/test-rbtree_list.c (main): Update.
37110         * tests/test-avltreehash_list.c (main): Update.
37111         * tests/test-rbtreehash_list.c (main): Update.
37112         * tests/test-linked_list.c (main): Update.
37113         * tests/test-linkedhash_list.c (main): Update.
37114         * tests/test-array_oset.c (main): Update.
37115
37116 2007-03-15  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37119         (gl_oset_create_empty): Add dispose_fn argument.
37120         (struct gl_oset_implementation): Add dispose_fn argument to
37121         'create_empty' method.
37122         (struct gl_oset_impl_base): Add dispose_fn field.
37123         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37124         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37125         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37126         values.
37127         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37128         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37129         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37130         dropped value.
37131         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37132         dropped value.
37133         * tests/test-array_oset.c (main): Update.
37134         * tests/test-avltree_oset.c (main): Update.
37135         * tests/test-rbtree_oset.c (main): Update.
37136         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37137
37138 2007-03-13  Bruno Haible  <bruno@clisp.org>
37139
37140         * tests/test-stdbool.c (i): Update after last patch.
37141
37142 2007-03-12  Bruno Haible  <bruno@clisp.org>
37143
37144         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37145         the iswprint macro. Needed on Solaris 2.5.1.
37146
37147 2007-03-12  Bruno Haible  <bruno@clisp.org>
37148
37149         * tests/test-printf-frexp.c (main): Declare x as volatile.
37150
37151 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37152
37153         * doc/gnulib.texi (Build robot for gnulib): New section.
37154
37155 2007-03-12  Jim Meyering  <jim@meyering.net>
37156
37157         * build-aux/bootstrap: New file.
37158         * build-aux/bootstrap.conf: New file, from coreutils.
37159
37160 2007-03-11  Bruno Haible  <bruno@clisp.org>
37161
37162         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37163
37164 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37165
37166         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37167         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37168         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37169
37170 2007-03-11  Bruno Haible  <bruno@clisp.org>
37171
37172         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37173         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37174
37175 2007-03-11  Bruno Haible  <bruno@clisp.org>
37176
37177         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37178         formula. Needed for SunPRO C 5.0.
37179
37180 2007-03-11  Bruno Haible  <bruno@clisp.org>
37181
37182         * modules/long-options (Depends-on): Add getopt.
37183
37184 2007-03-11  Bruno Haible  <bruno@clisp.org>
37185
37186         * modules/modechange (Depends-on): Add stdbool.
37187
37188 2007-03-11  Bruno Haible  <bruno@clisp.org>
37189
37190         * modules/i-ring (Depends-on): Add stdbool.
37191
37192 2007-03-11  Bruno Haible  <bruno@clisp.org>
37193
37194         * modules/gc-des (Depends-on): Add stdbool.
37195
37196 2007-03-11  Bruno Haible  <bruno@clisp.org>
37197
37198         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37199
37200 2007-03-11  Bruno Haible  <bruno@clisp.org>
37201
37202         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37203
37204 2007-03-11  Bruno Haible  <bruno@clisp.org>
37205
37206         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37207
37208 2007-03-11  Bruno Haible  <bruno@clisp.org>
37209
37210         * lib/vasnprintf.c (sprintf): Undefine.
37211
37212 2007-03-11  Bruno Haible  <bruno@clisp.org>
37213
37214         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37215         initializers in SunPRO C and Compaq C compilers.
37216
37217 2007-03-11  Bruno Haible  <bruno@clisp.org>
37218
37219         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37220         decrementing code ANSI C compliant.
37221
37222 2007-03-11  Bruno Haible  <bruno@clisp.org>
37223
37224         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37225         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37226
37227 2007-03-11  Bruno Haible  <bruno@clisp.org>
37228
37229         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37230         <stdbool.h> substitute doesn't pass.
37231
37232 2007-03-11  Bruno Haible  <bruno@clisp.org>
37233
37234         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37235
37236 2007-03-11  Bruno Haible  <bruno@clisp.org>
37237
37238         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37239         script, for submission to autobuild.josefsson.org.
37240
37241 2007-03-10  Bruno Haible  <bruno@clisp.org>
37242
37243         * modules/canonicalize-lgpl-tests: New file.
37244         * tests/test-canonicalize-lgpl.sh: New file.
37245         * tests/test-canonicalize-lgpl.c: New file.
37246
37247         * modules/c-strcase-tests: New file.
37248         * tests/test-c-strcase.sh: New file.
37249         * tests/test-c-strcasecmp.c: New file.
37250         * tests/test-c-strncasecmp.c: New file.
37251
37252         * modules/atexit-tests: New file.
37253         * tests/test-atexit.sh: New file.
37254         * tests/test-atexit.c: New file.
37255
37256 2007-03-10  Bruno Haible  <bruno@clisp.org>
37257
37258         * tests/test-binary-io.sh: Use temporary filenames that are not so
37259         likely to clash with those of other tests (in a parallel make).
37260         * tests/test-binary-io.c: Likewise.
37261
37262 2007-03-10  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37265         fallback; use #error instead.
37266         Suggested by Simon Josefsson.
37267
37268 2007-03-10  Bruno Haible  <bruno@clisp.org>
37269
37270         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37271         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37272         first and the last.
37273
37274 2007-03-10  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37277
37278 2007-03-10  Bruno Haible  <bruno@clisp.org>
37279
37280         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37281         "make distcheck".
37282         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37283         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37284         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37285
37286 2007-03-10  Bruno Haible  <bruno@clisp.org>
37287
37288         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37289         variable.
37290         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37291         variable.
37292
37293 2007-03-09  Eric Blake  <ebb9@byu.net>
37294         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37295
37296         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37297         types are not being provided by gnulib.
37298         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37299         types are supported.
37300
37301 2007-03-10  Bruno Haible  <bruno@clisp.org>
37302
37303         * lib/stdio_.h (__attribute__): New macro.
37304         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37305         vsprintf): Specify __attribute__ __format__ for GCC.
37306         Suggested by Eric Blake.
37307
37308 2007-03-09  Bruno Haible  <bruno@clisp.org>
37309
37310         * modules/printf-posix-tests: New file.
37311         * tests/test-printf-posix.sh: New file.
37312         * tests/test-printf-posix.c: New file.
37313
37314         * modules/printf-posix: New file.
37315         * lib/printf.c: New file.
37316         * m4/printf-posix-rpl.m4: New file.
37317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37318         REPLACE_PRINTF.
37319         * lib/stdio_.h (printf): New declaration.
37320         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37321         ____strfmon____): New macros.
37322         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37323         REPLACE_PRINTF.
37324
37325 2007-03-09  Bruno Haible  <bruno@clisp.org>
37326
37327         * tests/test-vasnprintf-posix2.sh: New file.
37328         * tests/test-vasnprintf-posix2.c: New file.
37329         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37330         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37331         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37332
37333         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37334         a locale dependent decimal point, rather than always '.'.
37335
37336 2007-03-09  Eric Blake  <ebb9@byu.net>
37337
37338         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37339         spite of platforms like Tandem/NSK that define it to -1.
37340
37341 2007-03-08  Bruno Haible  <bruno@clisp.org>
37342
37343         * modules/vprintf-posix-tests: New file.
37344         * tests/test-vprintf-posix.sh: New file.
37345         * tests/test-vprintf-posix.c: New file.
37346         * tests/test-printf-posix.h: New file.
37347
37348         * modules/vprintf-posix: New file.
37349         * lib/vprintf.c: New file.
37350         * m4/vprintf-posix.m4: New file.
37351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37352         REPLACE_VPRINTF.
37353         * lib/stdio_.h (vprintf): New declaration.
37354         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37355         REPLACE_VPRINTF.
37356
37357 2007-03-08  Bruno Haible  <bruno@clisp.org>
37358
37359         * modules/fprintf-posix-tests: New file.
37360         * tests/test-fprintf-posix.sh: New file.
37361         * tests/test-fprintf-posix.c: New file.
37362
37363         * modules/fprintf-posix: New file.
37364         * lib/fprintf.c: New file.
37365         * m4/fprintf-posix.m4: New file.
37366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37367         REPLACE_FPRINTF.
37368         * lib/stdio_.h (fprintf): New declaration.
37369         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37370         REPLACE_FPRINTF.
37371
37372 2007-03-08  Bruno Haible  <bruno@clisp.org>
37373
37374         * modules/vfprintf-posix-tests: New file.
37375         * tests/test-vfprintf-posix.sh: New file.
37376         * tests/test-vfprintf-posix.c: New file.
37377         * tests/test-fprintf-posix.h: New file.
37378         * tests/test-fprintf-posix.out: New file.
37379
37380         * modules/vfprintf-posix: New file.
37381         * lib/vfprintf.c: New file.
37382         * m4/vfprintf-posix.m4: New file.
37383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37384         REPLACE_VFPRINTF.
37385         * lib/stdio_.h (vfprintf): New declaration.
37386         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37387         REPLACE_VFPRINTF.
37388
37389 2007-03-08  Bruno Haible  <bruno@clisp.org>
37390
37391         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37392
37393 2007-03-08  Bruno Haible  <bruno@clisp.org>
37394
37395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37396         instead of 'expr' invocations.
37397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37398         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37399         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37402         Suggested by Paul Eggert.
37403
37404 2007-03-08  Bruno Haible  <bruno@clisp.org>
37405
37406         * modules/fseterr-tests: New file.
37407         * tests/test-fseterr.c: New file.
37408
37409         * modules/fseterr: New file.
37410         * lib/fseterr.h: New file.
37411         * lib/fseterr.c: New file.
37412
37413 2007-03-08  Bruno Haible  <bruno@clisp.org>
37414
37415         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37416         * lib/getopt_.h: Likewise.
37417         * lib/mbswidth.h: Likewise.
37418         * lib/setenv.h: Likewise.
37419         * lib/vasnprintf.h: Likewise.
37420         * lib/vasprintf.h: Likewise.
37421         * lib/verror.h: Likewise.
37422         * lib/xsetenv.h: Likewise.
37423         * lib/xvasprintf.h: Likewise.
37424
37425 2007-03-08  Jim Meyering  <jim@meyering.net>
37426
37427         * users.txt: Add parted.
37428
37429         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37430
37431 2007-03-07  Bruno Haible  <bruno@clisp.org>
37432
37433         * m4/printf.m4: Make the shell script snippets copy&pastable.
37434
37435 2007-03-02  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/netinet_in_.h: New file.
37438         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37439         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37440         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37441         (Depends-on): Add absolute-header.
37442         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37443         into netinet/in.h.
37444
37445 2007-03-03  Bruno Haible  <bruno@clisp.org>
37446
37447         * lib/sys_select_.h: New file.
37448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37449         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37450         * modules/sys_select (Files): Add lib/sys_select_.h.
37451         (Depends-on): Add absolute-header.
37452         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37453         into sys/select.h.
37454
37455 2007-03-02  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37458         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37459         values.
37460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37461         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37462         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37463         * modules/sys_socket (Depends-on): Add absolute-header.
37464         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37465         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37466         (Include): Remove requirement of inclusion of <sys/types.h>.
37467
37468 2007-03-02  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/byteswap_.h (bswap_32): Fix formula.
37471
37472 2007-03-06  Bruno Haible  <bruno@clisp.org>
37473
37474         * modules/sprintf-posix-tests: New file.
37475         * tests/test-sprintf-posix.c: New file.
37476
37477         * modules/sprintf-posix: New file.
37478         * lib/sprintf.c: New file.
37479         * m4/sprintf-posix.m4: New file.
37480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37481         REPLACE_SPRINTF.
37482         * lib/stdio_.h (sprintf): New declaration.
37483         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37484         REPLACE_SPRINTF.
37485
37486 2007-03-06  Bruno Haible  <bruno@clisp.org>
37487
37488         * modules/vsprintf-posix-tests: New file.
37489         * tests/test-vsprintf-posix.c: New file.
37490         * tests/test-sprintf-posix.h: New file.
37491
37492         * modules/vsprintf-posix: New file.
37493         * lib/vsprintf.c: New file.
37494         * m4/vsprintf-posix.m4: New file.
37495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37496         REPLACE_VSPRINTF.
37497         * lib/stdio_.h (vsprintf): New declaration.
37498         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37499         REPLACE_VSPRINTF.
37500
37501 2007-03-06  Bruno Haible  <bruno@clisp.org>
37502
37503         * modules/vsnprintf (Depend-on): Remove minmax.
37504
37505 2007-03-06  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/snprintf-posix-tests: New file.
37508         * tests/test-snprintf-posix.c: New file.
37509
37510         * modules/snprintf-posix: New file.
37511         * m4/snprintf-posix.m4: New file.
37512         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37513         gl_FUNC_SNPRINTF.
37514         (gl_FUNC_SNPRINTF): Invoke it.
37515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37516         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37517         is set.
37518         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37519
37520 2007-03-06  Bruno Haible  <bruno@clisp.org>
37521
37522         * modules/vsnprintf-posix-tests: New file.
37523         * tests/test-vsnprintf-posix.c: New file.
37524         * tests/test-snprintf-posix.h: New file.
37525
37526         * modules/vsnprintf-posix: New file.
37527         * m4/vsnprintf-posix.m4: New file.
37528         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37529         gl_FUNC_VSNPRINTF.
37530         (gl_FUNC_VSNPRINTF): Invoke it.
37531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37532         * lib/stdio_.h (vsnprintf): Define as a replacement if
37533         REPLACE_VSNPRINTF is set.
37534         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37535
37536 2007-03-06  Bruno Haible  <bruno@clisp.org>
37537
37538         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37540
37541 2007-03-06  Bruno Haible  <bruno@clisp.org>
37542
37543         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37544         (asinl): Declare also if HAVE_DECL_ASINL is set.
37545         (atanl): Declare also if HAVE_DECL_ATANL is set.
37546         (ceill): Declare also if HAVE_DECL_CEILL is set.
37547         (cosl): Declare also if HAVE_DECL_COSL is set.
37548         (expl): Declare also if HAVE_DECL_EXPL is set.
37549         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37550         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37551         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37552         (logl): Declare also if HAVE_DECL_LOGL is set.
37553         (sinl): Declare also if HAVE_DECL_SINL is set.
37554         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37555         (tanl): Declare also if HAVE_DECL_TANL is set.
37556         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37559         declaration of frexpl, ldexpl.
37560         * modules/printf-frexpl (Depends-on): Add math.
37561         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37562
37563 2007-03-05  Bruno Haible  <bruno@clisp.org>
37564
37565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37566         frexpl and ldexpl are declared.
37567         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37568
37569 2007-03-05  Bruno Haible  <bruno@clisp.org>
37570
37571         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37572         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37573
37574 2007-03-05  Bruno Haible  <bruno@clisp.org>
37575
37576         * lib/stdio_.h: Include <stddef.h>.
37577
37578 2007-03-05  Bruno Haible  <bruno@clisp.org>
37579
37580         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37581
37582 2007-03-05  Bruno Haible  <bruno@clisp.org>
37583
37584         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37585         NetBSD 4, from Ralf Wildenhues.
37586
37587 2007-03-04  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/vasprintf.h: Update #if logic for the case when the functions
37590         exist but are overridden.
37591
37592 2007-03-04  Bruno Haible  <bruno@clisp.org>
37593
37594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37595         implementations: glibc-2.4 and MacOS X 10.3.
37596         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37597         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37598         * tests/test-vasprintf-posix.c (test_function): Likewise.
37599
37600 2007-03-04  Bruno Haible  <bruno@clisp.org>
37601
37602         * modules/vasprintf-posix-tests: New file.
37603         * tests/test-vasprintf-posix.c: New file.
37604
37605         * modules/vasprintf-posix: New file.
37606         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37607         defined.
37608         * m4/vasprintf-posix.m4: New file.
37609         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37610         gl_FUNC_VASPRINTF.
37611         (gl_FUNC_VASPRINTF): Invoke it.
37612         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37613         here.
37614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37615
37616 2007-03-04  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37619         REPLACE_GETTIMEOFDAY.
37620         * modules/sys_time (Makefile.am): Likewise.
37621         * m4/sys_time_h.m4: Likewise.
37622         * m4/gettimeofday.m4: Likewise.
37623
37624 2007-03-04  Bruno Haible  <bruno@clisp.org>
37625
37626         * modules/vasnprintf-posix-tests: New file.
37627         * tests/test-vasnprintf-posix.c: New file.
37628
37629         * modules/vasnprintf-posix: New file.
37630         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37631         printf-frexpl.h.
37632         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37633         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37634         REPLACE_VASNPRINTF is defined.
37635         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37636         gl_FUNC_VASNPRINTF.
37637         (gl_FUNC_VASNPRINTF): Invoke it.
37638         * m4/vasnprintf-posix.m4: New file.
37639         * m4/printf.m4: New file.
37640
37641 2007-03-04  Bruno Haible  <bruno@clisp.org>
37642
37643         Compile progreloc.c only if --enable-relocatable is specified.
37644         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37645         if --enable-relocatable was specified.
37646         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37647         lib_SOURCES.
37648
37649 2007-03-04  Jim Meyering  <jim@meyering.net>
37650
37651         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37652         Use it consistently, rather than enumerating errno constants.
37653
37654 2007-03-04  Bruno Haible  <bruno@clisp.org>
37655
37656         * modules/xvasprintf-tests: New file.
37657         * tests/test-xvasprintf.c: New file.
37658
37659         * modules/vasprintf-tests: New file.
37660         * tests/test-vasprintf.c: New file.
37661
37662         * modules/vasnprintf-tests: New file.
37663         * tests/test-vasnprintf.c: New file.
37664
37665         * modules/vsnprintf-tests: New file.
37666         * tests/test-vsnprintf.c: New file.
37667
37668         * modules/snprintf-tests: New file.
37669         * tests/test-snprintf.c: New file.
37670
37671 2007-03-04  Bruno Haible  <bruno@clisp.org>
37672
37673         Compile relocatable.c only if --enable-relocatable is specified.
37674         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37675         gl_RELOCATABLE_LIBRARY.
37676         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37677         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37678         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37679         gl_RELOCATABLE_LIBRARY.
37680         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37681         (Makefile.am): Remove lib_SOURCES.
37682         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37683         gl_RELOCATABLE_LIBRARY.
37684         (Makefile.am): Remove lib_SOURCES.
37685         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37686         always.
37687         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37688         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37689
37690 2007-03-04  Bruno Haible  <bruno@clisp.org>
37691
37692         * modules/argmatch-tests: New file.
37693         * tests/test-argmatch.c: New file.
37694
37695         * tests/test-allocsa.c (main): Halve the number of loop runs.
37696
37697         * modules/alloca-opt-tests: New file.
37698         * tests/test-alloca-opt.c: New file.
37699
37700 2007-03-04  Jim Meyering  <jim@meyering.net>
37701
37702         Work around difference between Linux ACLs and Solaris 10 ZFS.
37703         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37704         for EINVAL.
37705
37706 2007-03-03  Bruno Haible  <bruno@clisp.org>
37707
37708         * modules/relocatable-prog (Depends-on): Add back progreloc's
37709         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37710
37711 2007-03-03  Bruno Haible  <bruno@clisp.org>
37712
37713         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37714         * modules/relocatable-lib: New file.
37715
37716 2007-03-03  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/relocatable-prog: Renamed from modules/relocatable.
37719         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37720
37721 2007-03-03  Bruno Haible  <bruno@clisp.org>
37722
37723         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37724         m4/relocatable-lib.m4.
37725         (Depends-on): Remove 'relocatable'.
37726         (configure.ac): Add gl_RELOCATABLE_NOP.
37727
37728 2007-03-03  Bruno Haible  <bruno@clisp.org>
37729
37730         * modules/relocatable-prog-wrapper: New file.
37731         * modules/relocatable (Depends-on): Add it. Remove all other
37732         dependencies except progname.
37733         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37734
37735         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37736         (gl_FUNC_STRERROR): Nop.
37737         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37738
37739         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37740         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37741
37742         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37743         (gl_FUNC_READLINK): Update.
37744
37745         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37746
37747 2007-03-03  Bruno Haible  <bruno@clisp.org>
37748
37749         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37750         * modules/xreadlink (Depends-on): Add unistd.
37751         * modules/xreadlink-with-size (Depends-on): Likewise.
37752
37753 2007-03-03  Bruno Haible  <bruno@clisp.org>
37754
37755         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37756         extracted from gt_FUNC_SETENV.
37757         (gt_FUNC_SETENV): Remove macro.
37758         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37759         remove gt_FUNC_SETENV.
37760
37761 2007-03-03  Bruno Haible  <bruno@clisp.org>
37762
37763         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37764         ENABLE_RELOCATABLE here.
37765         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37766
37767 2007-03-03  Bruno Haible  <bruno@clisp.org>
37768
37769         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37770         * tests/test-rbtreehash_list.c: Include progname.h.
37771         (main): Call set_program_name.
37772
37773         * modules/rbtree-oset-tests (Depends-on): Add progname.
37774         * tests/test-rbtree_oset.c: Include progname.h.
37775         (main): Call set_program_name.
37776
37777         * modules/rbtree-list-tests (Depends-on): Add progname.
37778         * tests/test-rbtree_list.c: Include progname.h.
37779         (main): Call set_program_name.
37780
37781         * modules/linked-list-tests (Depends-on): Add progname.
37782         * tests/test-linked_list.c: Include progname.h.
37783         (main): Call set_program_name.
37784
37785 2007-03-03  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37788         All uses of __restrict changed to _Restrict_.
37789         * lib/glob_.h (__restrict): Remove macro.
37790
37791 2007-03-02  Bruno Haible  <bruno@clisp.org>
37792
37793         * modules/gettext (configure.ac): Require gettext infrastructure
37794         from version 0.16.1.
37795
37796 2007-03-02  Bruno Haible  <bruno@clisp.org>
37797
37798         * modules/linkedhash-list-tests (Depends-on): Add progname.
37799         * tests/test-linkedhash_list.c: Include progname.h.
37800         (main): Call set_program_name.
37801
37802         * modules/carray-list-tests (Depends-on): Add progname.
37803         * tests/test-carray_list.c: Include progname.h.
37804         (main): Call set_program_name.
37805
37806         * modules/avltreehash-list-tests (Depends-on): Add progname.
37807         * tests/test-avltreehash_list.c: Include progname.h.
37808         (main): Call set_program_name.
37809
37810         * modules/avltree-oset-tests (Depends-on): Add progname.
37811         * tests/test-avltree_oset.c: Include progname.h.
37812         (main): Call set_program_name.
37813
37814         * modules/avltree-list-tests (Depends-on): Add progname.
37815         * tests/test-avltree_list.c: Include progname.h.
37816         (main): Call set_program_name.
37817
37818         * modules/array-oset-tests (Depends-on): Add progname.
37819         * tests/test-array_oset.c: Include progname.h.
37820         (main): Call set_program_name.
37821
37822         * modules/array-list-tests (Depends-on): Add progname.
37823         * tests/test-array_list.c: Include progname.h.
37824         (main): Call set_program_name.
37825
37826         * modules/argp-tests (Depends-on): Add progname.
37827         * tests/test-argp.c: Include argp.h first. Include progname.h.
37828         (main): Call set_program_name.
37829
37830 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37831
37832         * doc/gnulib-tool.texi (Initial import): Reword description of
37833         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37834         limited effect even if defined after the first system include.
37835
37836 2007-03-01  Bruno Haible  <bruno@clisp.org>
37837
37838         * build-aux/config.libpath: Update to libtool-1.5.22.
37839         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37840
37841 2007-03-01  Bruno Haible  <bruno@clisp.org>
37842
37843         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37844         foo_CFLAGS.
37845         Reported by Ralf Wildenhues.
37846
37847 2007-03-01  Bruno Haible  <bruno@clisp.org>
37848
37849         * build-aux/install-reloc: Remove object files left over by some
37850         compilers.
37851         Reported by Ralf Wildenhues.
37852
37853 2007-03-01  Bruno Haible  <bruno@clisp.org>
37854
37855         * build-aux/install-reloc: Break long lines.
37856
37857 2007-03-01  Bruno Haible  <bruno@clisp.org>
37858
37859         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37860         Reported by Ralf Wildenhues.
37861
37862 2007-03-01  Bruno Haible  <bruno@clisp.org>
37863
37864         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37865         include ordering constraints.
37866
37867 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37868
37869         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37871         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37872         as another example.
37873         * lib/time_.h: Fix misspelling.
37874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37875         Require gl_HEADER_TIME_H_DEFAULTS.
37876         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37877         * m4/time_r.m4 (gl_TIME_R): Likewise.
37878         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37879
37880 2007-03-01  Bruno Haible  <bruno@clisp.org>
37881
37882         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37883         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37884
37885 2007-03-01  Jim Meyering  <jim@meyering.net>
37886
37887         * modules/xreadlink (Maintainer): Add my name.
37888         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37889
37890 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37891             Bruno Haible  <bruno@clisp.org>
37892
37893         * build-aux/install-reloc: Compile also c-ctype.c.
37894         * build-aux/relocatable.sh.in: New file.
37895         * doc/relocatable.texi: New file.
37896         * doc/relocatable-maint.texi: New file.
37897         * doc/gnulib.texi: Include relocatable-maint.texi.
37898         * lib/progreloc.c: Include unistd.h unconditionally.
37899         * lib/relocwrapper.c: Include unistd.h unconditionally.
37900         Include c-ctype.h.
37901         (add_dotbin): Use c_tolower.
37902         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37903         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37904         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37905         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37906         to m4/relocatable-lib.m4.
37907         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37908         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37909         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37910         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37911         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37912         * modules/relocatable: New file.
37913         * modules/relocatable-lib: New file.
37914         * modules/relocatable-script: New file.
37915
37916 2007-02-28  Bruno Haible  <bruno@clisp.org>
37917
37918         Import --enable-relocatable infrastructure.
37919         * build-aux/config.libpath: New file, from GNU gettext.
37920         * build-aux/install-reloc: New file, from GNU gettext.
37921         * build-aux/reloc-ldflags: New file, from GNU gettext.
37922         * lib/relocatable.h: New file, from GNU gettext.
37923         * lib/relocatable.c: New file, from GNU gettext.
37924         * lib/relocwrapper.c: New file, from GNU gettext.
37925         * m4/relocatable.m4: New file, from GNU gettext.
37926
37927 2007-02-28  Bruno Haible  <bruno@clisp.org>
37928
37929         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37930
37931         * modules/xreadlink: New file, from GNU gettext with modifications.
37932         * lib/xreadlink.c: New file, from GNU gettext.
37933         * lib/xreadlink.h: Add comments.
37934         (xreadlink): New declaration.
37935
37936         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37937         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37938         lib/xreadlink-with-size.c.
37939         (configure.ac): Remove gl_XREADLINK invocation.
37940         (Makefile.am): Augment lib_SOURCES.
37941         * m4/xreadlink.m4: Remove file.
37942         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37943         (xreadlink_with_size): Renamed from xreadink.
37944         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37945         * modules/canonicalize (Depends-on): Replace xreadlink with
37946         xreadlink-with-size.
37947         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37948
37949 2007-02-25  Jim Meyering  <jim@meyering.net>
37950
37951         * build-aux/announce-gen: When complaining about excess arguments,
37952         list them.
37953
37954 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37955
37956         * README: Document signed integer overflow situation more
37957         accurately.
37958
37959 2007-02-25  Bruno Haible  <bruno@clisp.org>
37960
37961         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37962         'a' or 'A' conversion.
37963
37964 2007-02-25  Bruno Haible  <bruno@clisp.org>
37965
37966         * modules/filename: Renamed from modules/pathname.
37967         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37968         lib/concatpath.c with lib/concat-filename.c.
37969         (Makefile.am): Update.
37970         (Include): Replace pathname.h with filename.h.
37971         * lib/filename.h: Renamed from lib/pathname.h.
37972         (concatenated_filename): Renamed from concatenated_pathname.
37973         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37974         (concatenated_filename): Renamed from concatenated_pathname.
37975         * lib/findprog.c: Include filename.h instead of pathname.h.
37976         (find_in_path): Update.
37977         * lib/javacomp.c: Include filename.h instead of pathname.h.
37978         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37979         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37980         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37981         is_oldgcj_14_13_usable, is_javac_usable): Update.
37982         * lib/javaexec.c: Include filename.h instead of pathname.h.
37983         (execute_java_class): Update.
37984         * modules/findprog: Update.
37985         * modules/javacomp: Update.
37986         * modules/javaexec: Update.
37987         * MODULES.html.sh (File system functions): Add 'filename', remove
37988         'pathname'.
37989
37990 2007-02-25  Bruno Haible  <bruno@clisp.org>
37991
37992         * modules/printf-frexpl-tests: New file.
37993         * tests/test-printf-frexpl.c: New file.
37994
37995         * modules/printf-frexpl: New file.
37996         * lib/printf-frexpl.h: New file.
37997         * lib/printf-frexpl.c: New file.
37998         * m4/printf-frexpl.m4: New file.
37999
38000 2007-02-25  Bruno Haible  <bruno@clisp.org>
38001
38002         * modules/printf-frexp-tests: New file.
38003         * tests/test-printf-frexp.c: New file.
38004
38005         * modules/printf-frexp: New file.
38006         * lib/printf-frexp.h: New file.
38007         * lib/printf-frexp.c: New file.
38008         * m4/printf-frexp.m4: New file.
38009
38010 2007-02-25  Bruno Haible  <bruno@clisp.org>
38011
38012         Assume automake >= 1.10 for the tests.
38013         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38014         * modules/arctwo-tests: Likewise.
38015         * modules/argp-tests: Likewise.
38016         * modules/avltree-list-tests: Likewise.
38017         * modules/avltree-oset-tests: Likewise.
38018         * modules/avltreehash-list-tests: Likewise.
38019         * modules/carray-list-tests: Likewise.
38020         * modules/crc-tests: Likewise.
38021         * modules/des-tests: Likewise.
38022         * modules/gc-arcfour-tests: Likewise.
38023         * modules/gc-arctwo-tests: Likewise.
38024         * modules/gc-des-tests: Likewise.
38025         * modules/gc-hmac-md5-tests: Likewise.
38026         * modules/gc-hmac-sha1-tests: Likewise.
38027         * modules/gc-md2-tests: Likewise.
38028         * modules/gc-md4-tests: Likewise.
38029         * modules/gc-md5-tests: Likewise.
38030         * modules/gc-pbkdf2-sha1-tests: Likewise.
38031         * modules/gc-rijndael-tests: Likewise.
38032         * modules/gc-sha1-tests: Likewise.
38033         * modules/gc-tests: Likewise.
38034         * modules/getaddrinfo-tests: Likewise.
38035         * modules/hmac-md5-tests: Likewise.
38036         * modules/hmac-sha1-tests: Likewise.
38037         * modules/linked-list-tests: Likewise.
38038         * modules/linkedhash-list-tests: Likewise.
38039         * modules/lock-tests: Likewise.
38040         * modules/md2-tests: Likewise.
38041         * modules/md4-tests: Likewise.
38042         * modules/md5-tests: Likewise.
38043         * modules/rbtree-list-tests: Likewise.
38044         * modules/rbtree-oset-tests: Likewise.
38045         * modules/rbtreehash-list-tests: Likewise.
38046         * modules/read-file-tests: Likewise.
38047         * modules/rijndael-tests: Likewise.
38048         * modules/stdint-tests: Likewise.
38049         * modules/tls-tests: Likewise.
38050
38051 2007-02-24  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38054         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38055         function; instead check whether isnan with a double argument links.
38056         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38057         function; instead check whether isnan with a 'long double' argument
38058         links.
38059         Reported by Eric Blake <ebb9@byu.net>.
38060
38061 2007-02-24  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38064         defined.
38065         * lib/isnanl.c: Remove all code. Just include isnan.c.
38066         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38067
38068 2007-02-25  Jim Meyering  <jim@meyering.net>
38069
38070         Avoid conflicting types for 'unsetenv' on FreeBSD.
38071         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38072         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38073         in stdlib.h.
38074
38075 2007-02-24  Bruno Haible  <bruno@clisp.org>
38076
38077         * modules/isnanl-nolibm-tests: New file.
38078         * tests/test-isnanl.c: New file.
38079
38080         * modules/isnanl-nolibm: New file.
38081         * lib/isnanl.h: New file.
38082         * lib/isnanl.c: New file.
38083         * m4/isnanl.m4: New file.
38084
38085 2007-02-24  Bruno Haible  <bruno@clisp.org>
38086
38087         * modules/isnan-nolibm-tests: New file.
38088         * tests/test-isnan.c: New file.
38089
38090         * modules/isnan-nolibm: New file.
38091         * lib/isnan.h: New file.
38092         * lib/isnan.c: New file.
38093         * m4/isnan.m4: New file.
38094
38095 2007-02-24  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38098         assume that an exponent fits in 20 bits.
38099
38100 2007-02-24  Jim Meyering  <jim@meyering.net>
38101
38102         * m4/regex.m4: Update the description of the configure-time option,
38103         --without-included-regex, to state accurately what the defaults are,
38104         and perhaps to give people an idea why using this option is risky.
38105
38106 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38107
38108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38109         loops on small arguments.  This attempts to avoid the problem
38110         Bruno Haible reported for AIX 4.3.2 in
38111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38112
38113 2007-02-23  Bruno Haible  <bruno@clisp.org>
38114
38115         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38116         Needed for help2man.
38117
38118 2007-02-23  Karl Berry  <karl@gnu.org>
38119
38120         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38121         exists, foo.h should be cvs-ignored, not committed.
38122
38123 2007-02-23  Eric Blake  <ebb9@byu.net>
38124
38125         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38126         * lib/stat-time.h (includes): Likewise.
38127         * lib/utimecmp.c (includes): Likewise.
38128         * lib/utimens.h (includes): Likewise.
38129         * lib/getdate.y (includes): Also include "timespec.h" for use
38130         internal to the module.
38131         * modules/utimens (Depends-on): Revert yesterday's patch.
38132         * modules/nanosleep (Depends-on): Add missing dependency.
38133
38134 2007-02-22  Bruno Haible  <bruno@clisp.org>
38135
38136         * lib/glob.c: Don't include getlogin_r.h.
38137
38138 2007-02-22  Jim Meyering  <jim@meyering.net>
38139
38140         * modules/utimens (Depends-on): Add timespec, required for
38141         utimens.h's inclusion of timespec.h.
38142
38143 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38144
38145         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38146         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38147         Schwab in
38148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38149         I'll try to think of a better way to fix the Solaris problem.
38150
38151         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38152         like glibc; on Solaris 10, it fails with errno == EINVAL.
38153         POSIX says the behavior is unspecified if the first argument is NULL,
38154         so play it safe and never pass NULL to the system getcwd.
38155
38156 2007-02-21  Jim Meyering  <jim@meyering.net>
38157
38158         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38159         of gettimeofday.  It would conflict with the one now always
38160         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38161         an IRIX 6.5 build failure.
38162
38163 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38164
38165         Minor fixups to port to Solaris 10 with Sun C 5.8.
38166         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38167         * modules/getcwd (Depends-on): Add dirfd.
38168         * lib/putenv.c (putenv): #undef it.
38169         (rpl_putenv): New decl.
38170         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38171
38172 2007-02-20  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/stdio-tests: New file.
38175         * tests/test-stdio.c: New file.
38176
38177         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38178         (Depends-on): Add stdio.
38179         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38180         (Include): Use <stdio.h> instead of vsnprintf.h.
38181         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38182         HAVE_DECL_VSNPRINTF.
38183         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38184
38185         * modules/snprintf (Files): Remove lib/snprintf.h.
38186         (Depends-on): Add stdio.
38187         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38188         (Include): Use <stdio.h> instead of snprintf.h.
38189         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38190         HAVE_DECL_SNPRINTF.
38191         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38192         * lib/getaddrinfo.c: Likewise.
38193
38194         * modules/stdio: New file.
38195         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38196         * lib/snprintf.h: Remove file.
38197         * lib/vsnprintf.h: Remove file.
38198         * lib/.cppi-disable: Remove snprintf.h.
38199         * m4/stdio_h.m4: New file.
38200         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38201
38202 2007-02-20  Jim Meyering  <jim@meyering.net>
38203
38204         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38205         used by e.g., mingw.  From Bruno Haible.
38206
38207 2007-02-19  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38210         warnings.
38211         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38212
38213 2007-02-19  Bruno Haible  <bruno@clisp.org>
38214
38215         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38216         from mingw users.
38217
38218 2007-02-19  Bruno Haible  <bruno@clisp.org>
38219
38220         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38221         warnings.
38222         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38223
38224 2007-02-19  Jim Meyering  <jim@meyering.net>
38225
38226         Don't use FD after a successful "fdopendir (fd)".
38227         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38228         Reset it by calling dirfd on the just-obtained DIR*.
38229
38230         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38231         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38232
38233 2007-02-18  Bruno Haible  <bruno@clisp.org>
38234
38235         * lib/readlink.c: Include <unistd.h>.
38236         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38237         HAVE_READLINK.
38238         * modules/readlink (Depends-on): Add unistd.
38239         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38240         (Include): Add <unistd.h>.
38241
38242         * lib/getlogin_r.h: Remove file.
38243         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38244         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38245         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38246         HAVE_DECL_GETLOGIN_R.
38247         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38249         (Include): Use <unistd.h> instead of getlogin_r.h.
38250
38251         * lib/getcwd.h: Remove file.
38252         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38253         * lib/xgetcwd.c: Likewise.
38254         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38255         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38256         * modules/getcwd (Files): Remove lib/getcwd.h.
38257         (Depends-on): Add unistd.
38258         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38259         (Include): Use <unistd.h> instad of getcwd.h.
38260
38261         * lib/ftruncate.c: Include <unistd.h> first.
38262         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38263         Set HAVE_FTRUNCATE.
38264         * modules/ftruncate (Depends-on): Add unistd.
38265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38266
38267         * lib/fchdir.c: Include <unistd.h> first.
38268         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38270         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38271         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38272         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38273
38274         * lib/dup2.c: Include <unistd.h> first.
38275         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38276         HAVE_DUP2.
38277         * modules/dup2 (Depends-on): Add unistd.
38278         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38279
38280         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38281         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38282         REPLACE_CHOWN. Don't define chown as a macro here.
38283         * modules/chown (Depends-on): Add unistd.
38284         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38285
38286         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38287         Add definition for GL_LINK_WARNING.
38288         (chown, dup2): New declarations.
38289         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38290         link warning.
38291         (ftruncate): New declaration.
38292         (getcwd): New declaration, taken from old getcwd.h.
38293         (getlogin_r): New declaration, taken from old getlogin_r.h.
38294         (readlink): New declaration.
38295         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38296         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38297         (gl_PREREQ_UNISTD): Remove macro.
38298         (gl_UNISTD_MODULE_INDICATOR): New macro.
38299         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38300         many new variables. Don't set UNISTD_H.
38301         * modules/unistd (Description): Change.
38302         (Depends-on): Add link-warning.
38303         (configure.ac): Update.
38304         (Makefile.am): Create unistd.h always. Substitute many new variables
38305         into it.
38306
38307 2007-02-18  Bruno Haible  <bruno@clisp.org>
38308
38309         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38310         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38311         HAVE_GETSUBOPT.
38312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38313         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38314         * lib/getsubopt.h: Remove file.
38315         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38316         (Depends-on): Add stdlib.
38317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38318         (Includes): Use <stdlib.h> instead of getsubopt.h.
38319         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38320         Set HAVE_GETSUBOPT.
38321         * lib/getsubopt.c: Don't include getsubopt.h.
38322
38323 2007-02-18  Bruno Haible  <bruno@clisp.org>
38324
38325         * modules/fchdir (Depends-on): Add dup2.
38326
38327 2007-02-18  Bruno Haible  <bruno@clisp.org>
38328
38329         * lib/stdlib_.h: Handle glibc's special invocation convention
38330         specially.
38331
38332 2007-02-18  Bruno Haible  <bruno@clisp.org>
38333
38334         * modules/stdlib-tests: New file.
38335         * tests/test-stdlib.c: New file.
38336
38337         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38338         (Depends-on): Add stdlib.
38339         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38340         (Includes): Use <stdlib.h> instead of mkstemp.h.
38341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38342         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38343         * lib/mkstemp.c: Don't include mkstemp.h.
38344         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38345         * lib/stdlib--.h: Don't include mkstemp.h.
38346
38347         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38348         (Depends-on): Add stdlib.
38349         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38350         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38351         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38352         HAVE_MKDTEMP.
38353         * lib/mkdtemp.c: Don't include mkdtemp.h.
38354         * lib/clean-temp.c: Don't include mkdtemp.h.
38355
38356         * modules/exit (Files): Remove lib/exit.h.
38357         (Depends-on): Add stdlib.
38358         (Makefile.am): Remove lib_SOURCES.
38359         (Include): Use <stdlib.h> instead of exit.h.
38360         * lib/argmatch.c: Don't include exit.h.
38361         * lib/execute.c: Likewise.
38362         * lib/pagealign_alloc.c: Likewise.
38363         * lib/pipe.c: Likewise.
38364         * lib/wait-process.c: Likewise.
38365         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38366         * lib/exitfail.c: Likewise.
38367         * lib/savewd.c: Likewise.
38368         * lib/xsetenv.c: Likewise.
38369
38370         * modules/stdlib: New file.
38371         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38372         and extra comments about mkstemp().
38373         * lib/exit.h: Remove file.
38374         * lib/mkdtemp.h: Remove file.
38375         * lib/mkstemp.h: Remove file.
38376         * m4/stdlib_h.m4: New file.
38377         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38378
38379 2007-02-18  Bruno Haible  <bruno@clisp.org>
38380
38381         * modules/math-tests: New file.
38382         * tests/test-math.c: New file.
38383
38384         * modules/math: New file.
38385         * modules/mathl (Files): Remove lib/mathl.h.
38386         (Depends-on): Add math.
38387         (Makefile.am): Don't mention mathl.h.
38388         (Include): Use <math.h> instead of mathl.h.
38389         * lib/math_.h: New file.
38390         * lib/mathl.h: Remove file.
38391         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38392         mathl.h.
38393         * lib/asinl.c: Likewise.
38394         * lib/atanl.c: Likewise.
38395         * lib/ceill.c: Likewise.
38396         * lib/cosl.c: Likewise.
38397         * lib/expl.c: Likewise.
38398         * lib/floorl.c: Likewise.
38399         * lib/frexpl.c: Likewise.
38400         * lib/ldexpl.c: Likewise.
38401         * lib/logl.c: Likewise.
38402         * lib/sincosl.c: Likewise.
38403         * lib/sinl.c: Likewise.
38404         * lib/sqrtl.c: Likewise.
38405         * lib/tanl.c: Likewise.
38406         * lib/trigl.c: Likewise.
38407         * m4/math_h.m4: New file.
38408         * MODULES.html.sh (Mathematics): Add math.
38409
38410 2007-02-17  Bruno Haible  <bruno@clisp.org>
38411
38412         * modules/wctype-tests: New file.
38413         * tests/test-wctype.c: New file.
38414
38415         * modules/wchar-tests: New file.
38416         * tests/test-wchar.c: New file.
38417
38418         * modules/unistd-tests: New file.
38419         * tests/test-unistd.c: New file.
38420
38421         * modules/time-tests: New file.
38422         * tests/test-time.c: New file.
38423
38424         * modules/sysexits-tests: New file.
38425         * tests/test-sysexits.c: New file.
38426
38427         * modules/sys_time-tests: New file.
38428         * tests/test-sys_time.c: New file.
38429
38430         * modules/sys_stat-tests: New file.
38431         * tests/test-sys_stat.c: New file.
38432
38433         * modules/sys_socket-tests: New file.
38434         * tests/test-sys_socket.c: New file.
38435
38436         * modules/sys_select-tests: New file.
38437         * tests/test-sys_select.c: New file.
38438
38439         * modules/string-tests: New file.
38440         * tests/test-string.c: New file.
38441
38442         * modules/stdbool-tests: New file.
38443         * tests/test-stdbool.c: New file.
38444
38445         * modules/netinet_in-tests: New file.
38446         * tests/test-netinet_in.c: New file.
38447
38448         * modules/inttypes-tests: New file.
38449         * tests/test-inttypes.c: New file.
38450
38451         * modules/fcntl-tests: New file.
38452         * tests/test-fcntl.c: New file.
38453
38454         * modules/byteswap-tests: New file.
38455         * tests/test-byteswap.c: New file.
38456
38457         * modules/arpa_inet-tests: New file.
38458         * tests/test-arpa_inet.c: New file.
38459
38460 2007-02-17  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38463         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38464         if the corresponding module is not enabled. Emit link warnings if
38465         the function is used nevertheless.
38466         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38467         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38468         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38469         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38470         * modules/inttypes (Depends-on): Add link-warning.
38471         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38472         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38473         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38474         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38475         * modules/imaxdiv (configure.ac): Likewise.
38476         * modules/strtoimax (configure.ac): Likewise.
38477         * modules/strtoumax (configure.ac): Likewise.
38478
38479 2007-02-17  Bruno Haible  <bruno@clisp.org>
38480
38481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38482         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38483         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38484         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38485
38486 2007-02-17  Bruno Haible  <bruno@clisp.org>
38487
38488         * modules/link-warning: New file.
38489         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38490         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38491         * modules/string (Depends-on): Add link-warning.
38492         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38493         string.h.
38494         * MODULES.html.sh (Support for building libraries and executables): Add
38495         link-warning.
38496
38497 2007-02-17  Bruno Haible  <bruno@clisp.org>
38498
38499         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38500         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38501         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38502         long lines.
38503
38504 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38505             Bruno Haible  <bruno@clisp.org>
38506
38507         * modules/tmpfile: New file.
38508         * lib/tmpfile.c: New file.
38509         * m4/tmpfile.m4: New file.
38510         * MODULES.html.sh (func_all_modules): New section "Input/output".
38511
38512 2007-02-15  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38515         (supports_delete_on_close): New function.
38516         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38517
38518 2007-02-14  Bruno Haible  <bruno@clisp.org>
38519
38520         * modules/mbspcasecmp-tests: New file.
38521         * tests/test-mbspcasecmp.sh: New file.
38522         * tests/test-mbspcasecmp.c: New file.
38523
38524         New module mbspcasecmp.
38525         * modules/mbspcasecmp: New file.
38526         * lib/mbspcasecmp.c: New file.
38527         * lib/string_.h (strncasecmp): Change warning message.
38528         (mbspcasecmp): New declaration.
38529         * m4/mbspcasecmp.m4: New file.
38530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38531         GNULIB_MBSPCASECMP.
38532         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38533         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38534
38535 2007-02-14  Bruno Haible  <bruno@clisp.org>
38536
38537         * modules/mbsncasecmp-tests: New file.
38538         * tests/test-mbsncasecmp.sh: New file.
38539         * tests/test-mbsncasecmp.c: New file.
38540
38541         New module mbsncasecmp.
38542         * modules/mbsncasecmp: New file.
38543         * lib/mbsncasecmp.c: New file.
38544         * lib/string_.h (mbsncasecmp): New declaration.
38545         * m4/mbsncasecmp.m4: New file.
38546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38547         GNULIB_MBSNCASECMP.
38548         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38549         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38550
38551 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38552
38553         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38554         Verify that it doesn't overlap with our flags.
38555         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38556         do not have the desired effect in multibyte locales; instead, use
38557         mbscasecmp.
38558         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38559         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38560         we don't require GNU fnmatch ourselves (if our users require it, they
38561         should do so explicitly).
38562
38563         Fix regex code so it doesn't rely on strcasecmp.
38564         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38565         Otherwise, include gnulib's langinfo.h.
38566         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38567         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38568         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38569         * modules/regex (FILES): Remove m4/codeset.m4.
38570         (Depends-on): Add localcharset.  Remove strcase.
38571
38572 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38573
38574         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38575         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38576
38577 2007-02-13  Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38581
38582 2007-02-12  Bruno Haible  <bruno@clisp.org>
38583
38584         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38585         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38586         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38587         time warning rather than a link error.
38588
38589 2007-02-12  Bruno Haible  <bruno@clisp.org>
38590
38591         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38592         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38593         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38594
38595 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38596
38597         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38598         args, not 2.
38599
38600 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38601
38602         New module 'time', so that apps can include <time.h> as per
38603         POSIX and GNU instead of separate include files like time_r.h
38604         and timegm.h.  This implementation tries out a simpler approach
38605         for replacing decls in standard include files (as compared to
38606         the string module), somewhat as an experiment.
38607
38608         * config/srclist.txt: Comment out mktime.c for now.
38609         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38610         since it doesn't apply any more.  Use generic wording instead.
38611         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38612         'time'.
38613         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38614         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38615         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38616         Don't include <sys/types.h>; no longer needed since we assume C89.
38617         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38618         * lib/strftime.c: Likewise.
38619         * lib/time_r.c: Likewise.
38620         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38621         * lib/nanosleep.c: Include <time.h> first, to check interface.
38622         * lib/strptime.c: Likewise.
38623         * lib/time_r.c: Likewise.
38624         * lib/timegm.c: Likewise.
38625         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38626         needed.
38627         * lib/timegm.c: Don't include timegm.h; no longer needed.
38628         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38629         time.h now handles any problems in that area.
38630         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38631         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38632         that time.h defines struct timespec.
38633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38634         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38635         handles that.
38636         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38637         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38638         needed.  Set REPLACE_LOCALTIME.
38639         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38640         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38641         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38642         nanosleep; time_h.m4 now does that.  Don't require
38643         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38644         module handles this now.
38645         * modules/getdate (Depends-on): Remove timespec.  Add time.
38646         * modules/nanosleep (Depends-on): Likewise.
38647         * modules/stat-time (Depends-on): Likewise.
38648         * modules/nanosleep (Include): Include time.h, not timespec.h.
38649         * modules/strptime (Files): Remove lib/strptime.h.
38650         (Depends-on): Add extensions, time.
38651         (Include): Include time.h, not strptime.h.
38652         * modules/time_r (Files): Remove lib/time_r.h.
38653         (Depends-on): Add time.
38654         (Include): Include time.h, not time_r.h.
38655         * modules/timegm: Likewise.
38656         * modules/timespec (Description): Now does timespec-related decls
38657         of our own, instead of struct timespec itself.
38658         (Depends-on): Add time; remove extensions.
38659         (Maintainer): Add self.
38660         * modules/utimecmp (Depends-on): Add time; remove timespec.
38661         * modules/utimens (Depends-on): Likewise.
38662         * modules/xnanosleep (Depends-on): Likewise.
38663
38664 2007-02-11  Bruno Haible  <bruno@clisp.org>
38665
38666         * lib/c-strstr.c: Include allocsa.h.
38667         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38668         * lib/c-strcasestr.c: Include allocsa.h.
38669         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38670         * lib/strcasestr.c: Include allocsa.h.
38671         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38672         * lib/mbsstr.c: Include allocsa.h.
38673         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38674         allocsa/freesa instead of malloc/free.
38675         * lib/mbscasestr.c: Include allocsa.h.
38676         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38677         allocsa/freesa instead of malloc/free.
38678         * modules/c-strstr (Depends-on): Add allocsa.
38679         * modules/c-strcasestr (Depends-on): Likewise.
38680         * modules/strcasestr (Depends-on): Likewise.
38681         * modules/mbsstr (Depends-on): Likewise.
38682         * modules/mbscasestr (Depends-on): Likewise.
38683
38684 2007-02-11  Bruno Haible  <bruno@clisp.org>
38685
38686         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38687
38688         * modules/mbsspn-tests: New file.
38689         * tests/test-mbsspn.sh: New file.
38690         * tests/test-mbsspn.c: New file.
38691
38692 2007-02-11  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38695
38696         * modules/mbspbrk-tests: New file.
38697         * tests/test-mbspbrk.sh: New file.
38698         * tests/test-mbspbrk.c: New file.
38699
38700 2007-02-11  Bruno Haible  <bruno@clisp.org>
38701
38702         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38703         unneeded cast.
38704
38705         * modules/mbscspn-tests: New file.
38706         * tests/test-mbscspn.sh: New file.
38707         * tests/test-mbscspn.c: New file.
38708
38709 2007-02-11  Bruno Haible  <bruno@clisp.org>
38710
38711         * modules/mbscasecmp-tests: New file.
38712         * tests/test-mbscasecmp.sh: New file.
38713         * tests/test-mbscasecmp.c: New file.
38714
38715 2007-02-11  Bruno Haible  <bruno@clisp.org>
38716
38717         Ensure O(n) worst-case complexity of mbscasestr.
38718         * lib/mbscasestr.c: Include stdbool.h.
38719         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38720         functions.
38721         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38722         the bookkeeping indicates that it's worth it.
38723         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38724
38725         * modules/mbscasestr-tests: New file.
38726         * tests/test-mbscasestr1.c: New file.
38727         * tests/test-mbscasestr2.sh: New file.
38728         * tests/test-mbscasestr2.c: New file.
38729         * tests/test-mbscasestr3.sh: New file.
38730         * tests/test-mbscasestr3.c: New file.
38731         * tests/test-mbscasestr4.sh: New file.
38732         * tests/test-mbscasestr4.c: New file.
38733         * m4/locale-tr.m4: New file.
38734
38735 2007-02-11  Bruno Haible  <bruno@clisp.org>
38736
38737         Ensure O(n) worst-case complexity of mbsstr.
38738         * lib/mbsstr.c: Include stdbool.h.
38739         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38740         functions.
38741         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38742         bookkeeping indicates that it's worth it.
38743         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38744
38745         * modules/mbsstr-tests: New file.
38746         * tests/test-mbsstr1.c: New file.
38747         * tests/test-mbsstr2.sh: New file.
38748         * tests/test-mbsstr2.c: New file.
38749         * tests/test-mbsstr3.sh: New file.
38750         * tests/test-mbsstr3.c: New file.
38751         * m4/locale-fr.m4: New file.
38752
38753 2007-02-11  Bruno Haible  <bruno@clisp.org>
38754
38755         * lib/mbsrchr.c (mbsrchr): Fix bug.
38756
38757         * modules/mbsrchr-tests: New file.
38758         * tests/test-mbsrchr.sh: New file.
38759         * tests/test-mbsrchr.c: New file.
38760
38761 2007-02-11  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/mbschr.c (mbschr): Fix bug.
38764
38765         * modules/mbschr-tests: New file.
38766         * tests/test-mbschr.sh: New file.
38767         * tests/test-mbschr.c: New file.
38768         * m4/locale-zh.m4: New file.
38769
38770 2007-02-11  Bruno Haible  <bruno@clisp.org>
38771
38772         Support for copying multibyte string iterators.
38773         * lib/mbiter.h: Include <string.h>.
38774         (mbiter_multi_copy): New function.
38775         (mbi_copy): New macro.
38776         * lib/mbuiter.h: Include <string.h>.
38777         (mbuiter_multi_copy): New function.
38778         (mbui_copy): New macro.
38779
38780 2007-02-11  Bruno Haible  <bruno@clisp.org>
38781
38782         New module mbslen.
38783         * modules/mbslen: New file.
38784         * lib/mbslen.c: New file.
38785         * lib/string_.h (mbslen): New declaration.
38786         * m4/mbslen.m4: New file.
38787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38788         GNULIB_MBSLEN.
38789         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38790         * MODULES.html.sh (Internationalization functions): Add mbslen.
38791
38792 2007-02-11  Bruno Haible  <bruno@clisp.org>
38793
38794         Ensure O(n) worst-case complexity of strcasestr substitute.
38795         * lib/strcasestr.c: Include stdbool.h.
38796         (knuth_morris_pratt): New function.
38797         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38798         bookkeeping indicates that it's worth it.
38799         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38800
38801         * modules/strcasestr-tests: New file.
38802         * tests/test-strcasestr.c: New file.
38803
38804 2007-02-11  Bruno Haible  <bruno@clisp.org>
38805
38806         Ensure O(n) worst-case complexity of c_strcasestr.
38807         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38808         (knuth_morris_pratt): New function.
38809         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38810         the bookkeeping indicates that it's worth it.
38811         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38812
38813         * modules/c-strcasestr-tests: New file.
38814         * tests/test-c-strcasestr.c: New file.
38815
38816 2007-02-11  Bruno Haible  <bruno@clisp.org>
38817
38818         Ensure O(n) worst-case complexity of c_strstr.
38819         * lib/c-strstr.c: Include stdbool.h, string.h.
38820         (knuth_morris_pratt): New function.
38821         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38822         bookkeeping indicates that it's worth it.
38823         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38824
38825         * lib/c-strstr.c: Complete rewrite for maintainability.
38826
38827         * modules/c-strstr-tests: New file.
38828         * tests/test-c-strstr.c: New file.
38829
38830 2007-02-11  Bruno Haible  <bruno@clisp.org>
38831
38832         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38833         5.2.1 and earlier, whereby \055 was treated just like the range
38834         delimiter '-'.
38835         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38836
38837 2007-02-08  Bruno Haible  <bruno@clisp.org>
38838
38839         * modules/regex (Depends-on): Add stdbool.
38840         Reported by Dalibor Topic <robilad@kaffe.org>.
38841
38842 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38843
38844         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38845         Prefer returning from main to exiting from it.
38846         Remove unnecessary parens after sizeof.
38847
38848 2007-02-05  Bruno Haible  <bruno@clisp.org>
38849
38850         New module mbssep.
38851         * modules/mbssep: New file.
38852         * lib/mbssep.c: New file.
38853         * lib/string_.h (strsep): Add a conditional link warning.
38854         (mbssep): New declaration.
38855         * m4/mbssep.m4: New file.
38856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38857         GNULIB_MBSSEP.
38858         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38859         * MODULES.html.sh (Internationalization functions): Add mbssep.
38860
38861 2007-02-05  Bruno Haible  <bruno@clisp.org>
38862
38863         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38864         Optimize search in case of 1 delimiter.
38865
38866 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38867
38868         * lib/acl.h: Include sys/types.h before sys/acl.h.
38869
38870 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38871
38872         Merge upstream fix for glibc bugzilla #3957:
38873
38874         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38875
38876         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38877         bit for RE_HAT_LISTS_NOT_NEWLINE.
38878         (build_charclass_op): Remove bogus comment.
38879
38880 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38881
38882         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38883
38884 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38885
38886         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38887         * lib/memmem.c [!defined _LIBC]: Include config.h.
38888
38889 2007-02-04  Bruno Haible  <bruno@clisp.org>
38890
38891         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38892         warning message.
38893
38894 2007-02-04  Bruno Haible  <bruno@clisp.org>
38895
38896         New module mbstok_r.
38897         * modules/mbstok_r: New file.
38898         * lib/mbstok_r.c: New file.
38899         * lib/string_.h (strtok_r): Change argument names to match the
38900         comments. Add a conditional link warning.
38901         (mbstok_r): New declaration.
38902         * m4/mbstok_r.m4: New file.
38903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38904         GNULIB_MBSTOK_R.
38905         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38906         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38907
38908 2007-02-04  Bruno Haible  <bruno@clisp.org>
38909
38910         New module mbsspn.
38911         * modules/mbsspn: New file.
38912         * lib/mbsspn.c: New file.
38913         * lib/string_.h (strspn): Add a conditional link warning.
38914         (mbsspn): New declaration.
38915         * m4/mbsspn.m4: New file.
38916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38917         GNULIB_MBSSPN.
38918         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38919         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38920
38921 2007-02-04  Bruno Haible  <bruno@clisp.org>
38922
38923         New module mbspbrk.
38924         * modules/mbspbrk: New file.
38925         * lib/mbspbrk.c: New file.
38926         * lib/string_.h (strpbrk): Add a conditional link warning.
38927         (mbspbrk): New declaration.
38928         * m4/mbspbrk.m4: New file.
38929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38930         GNULIB_MBSPBRK.
38931         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38932         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38933
38934 2007-02-04  Bruno Haible  <bruno@clisp.org>
38935
38936         New module mbscspn.
38937         * modules/mbscspn: New file.
38938         * lib/mbscspn.c: New file.
38939         * lib/string_.h (strcspn): Add a conditional link warning.
38940         (mbscspn): New declaration.
38941         * m4/mbscspn.m4: New file.
38942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38943         GNULIB_MBSCSPN.
38944         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38945         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38946
38947 2007-02-04  Bruno Haible  <bruno@clisp.org>
38948
38949         New module mbscasestr, reduced goal of strcasestr.
38950         * modules/mbscasestr: New file.
38951         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38952         (mbscasestr): Renamed from strcasestr.
38953         * lib/strcasestr.c: Don't include mbuiter.h.
38954         (strcasestr): Remove support for multibyte locales.
38955         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38956         Change the conditional link warning.
38957         (mbscasestr): New declaration.
38958         * m4/mbscasestr.m4: New file.
38959         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38960         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38961         REPLACE_STRCASESTR.
38962         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38964         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38965         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38966         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38967         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38968         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38969         (Depends-on): Remove mbuiter.
38970         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38971
38972 2007-02-04  Bruno Haible  <bruno@clisp.org>
38973
38974         Simplify handling of strncasecmp.
38975         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38976         the conditional link warning.
38977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38978         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38979         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38980         * modules/strcase (configure.ac): Don't invoke
38981         gl_STRING_MODULE_INDICATOR.
38982         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38983
38984 2007-02-04  Bruno Haible  <bruno@clisp.org>
38985
38986         New module mbscasecmp, reduced goal of strcasecmp.
38987         * modules/mbscasecmp: New file.
38988         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38989         (mbscasecmp): Renamed from strcasecmp.
38990         * lib/strcasecmp.c: Don't include mbuiter.h.
38991         (strcasecmp): Remove support for multibyte locales.
38992         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38993         Change the conditional link warning.
38994         (mbscasecmp): New declaration.
38995         * m4/mbscasecmp.m4: New file.
38996         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38997         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38998         REPLACE_STRCASECMP.
38999         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39001         GNULIB_MBSCASECMP.
39002         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39003         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39004         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39005         (Depends-on): Remove mbuiter.
39006         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39007
39008 2007-02-04  Bruno Haible  <bruno@clisp.org>
39009
39010         New module mbsstr. Remove module strstr.
39011         * modules/mbsstr: New file.
39012         * modules/strstr: Remove file.
39013         * lib/mbsstr.c: Renamed from lib/strstr.c.
39014         (mbsstr): Renamed from strstr.
39015         * lib/string_.h (strstr): Remove declaration. Change the conditional
39016         link warning.
39017         (mbsstr): New declaration.
39018         * m4/mbsstr.m4: New file.
39019         * m4/strstr.m4: Remove file.
39020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39021         REPLACE_STRSTR.
39022         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39023         Don't initialize GNULIB_STRSTR.
39024         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39025         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39026         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39027         (Support for systems lacking ANSI C 89): Remove strstr.
39028
39029 2007-02-04  Bruno Haible  <bruno@clisp.org>
39030
39031         New module mbsrchr.
39032         * modules/mbsrchr: New file.
39033         * lib/mbsrchr.c: New file.
39034         * lib/string_.h (strrchr): Add a conditional link warning.
39035         (mbsrchr): New declaration.
39036         * m4/mbsrchr.m4: New file.
39037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39038         GNULIB_MBSRCHR.
39039         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39040         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39041
39042 2007-02-04  Bruno Haible  <bruno@clisp.org>
39043
39044         New module mbschr.
39045         * modules/mbschr: New file.
39046         * lib/mbschr.c: New file.
39047         * lib/string_.h (strchr): Add a conditional link warning.
39048         (mbschr): New declaration.
39049         * m4/mbschr.m4: New file.
39050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39051         GNULIB_MBSCHR.
39052         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39053         * MODULES.html.sh (Internationalization functions): Add mbschr.
39054
39055 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39056
39057         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39058
39059         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39060
39061 2007-02-04  Bruno Haible  <bruno@clisp.org>
39062
39063         New module description section 'configure.ac-early'.
39064         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39065         (func_get_autoconf_early_snippet): New function.
39066         (func_import, func_create_testdir): Use it. Remove special cases for
39067         modules 'extensions' and 'lock'.
39068         * modules/extensions (configure.ac-early): Require
39069         gl_USE_SYSTEM_EXTENSIONS.
39070         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39071
39072 2007-02-04  Bruno Haible  <bruno@clisp.org>
39073
39074         Make use of gcj-4.3's -fsource and -ftarget option.
39075         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39076         and if so try the options -fsource and -ftarget.
39077         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39078         source_version, ftarget_option, target_version arguments.
39079         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39080         (is_envjavac_oldgcj_14_14_usable): Renamed from
39081         is_envjavac_gcj_14_14_usable.
39082         (is_envjavac_oldgcj_14_13_usable): Renamed from
39083         is_envjavac_gcj_14_13_usable.
39084         (is_gcj_present): Update.
39085         (is_gcj_43, is_gcj43_usable): New functions.
39086         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39087         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39088         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39089         try the options -fsource and -ftarget.
39090
39091 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39092
39093         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39094         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39095         larger value.
39096
39097 2007-02-03  Jim Meyering  <jim@meyering.net>
39098
39099         Give tools a better chance to allocate space for very large buffers.
39100         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39101
39102         Make pwd and readlink work also when run with an unreadable parent dir
39103         on systems with openat support.
39104         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39105         provided getcwd function, even when we have openat support.
39106         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39107
39108 2007-02-02  Bruno Haible  <bruno@clisp.org>
39109
39110         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39111         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39112         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39113         portability problems if one of these functions is only used on specific
39114         platforms.
39115         Reported by Paul Eggert.
39116
39117 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39118
39119         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39120         is causing more trouble than it's curing.
39121         * lib/regex_internal.h (__mempcpy): Remove.
39122         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39123         (and make the code a tad smaller to boot).
39124         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39125
39126 2007-02-02  Jim Meyering  <jim@meyering.net>
39127
39128         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39129         section, not in the Makefile.am: one.
39130
39131 2007-02-02  Eric Blake  <ebb9@byu.net>
39132
39133         * lib/strchrnul.c: Always include config.h first.
39134
39135         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39136         gnulib strstr is not necessary here.
39137
39138 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39139
39140         * m4/socklen.m4: Fix typo.
39141
39142 2007-02-02  Eric Blake  <ebb9@byu.net>
39143
39144         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39145         * modules/netinet_in (Makefile.am): Likewise.
39146
39147 2007-02-01  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/string_.h (GL_LINK_WARNING): New macro.
39150         (strcasecmp, strstr, strcasestr): If provided by the system,
39151         conditionally define as a macro that leads to a warning instead of to
39152         an error.
39153         (strncasecmp): Conditionally define as a macro that leads to a warning.
39154
39155 2007-02-01  Karl Berry  <karl@gnu.org>
39156
39157         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39158
39159 2007-02-01  Bruno Haible  <bruno@clisp.org>
39160
39161         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39162         renamings.
39163
39164 2007-02-01  Eric Blake  <ebb9@byu.net>
39165
39166         * modules/regex (Depends-on): Revert dependence on mempcpy.
39167         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39168         module's definition of mempcpy.
39169         Reported by Paul Eggert.
39170
39171 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39172
39173         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39174         the symbol XYZ before redefining it.  This fixes a problem with
39175         programs that don't use XYZ, when compiled on systems that define
39176         XYZ to something else.
39177
39178 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39179
39180         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39181         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39182         writeable to group or other and (2) is intended to have a special
39183         mode bit that is set or cleared.  In such a case, the directory
39184         should be neither group- nor other-writeable until the special
39185         mode bits are right.
39186
39187 2007-01-31  Eric Blake  <ebb9@byu.net>
39188
39189         * modules/mountlist (Depends-on): Add strstr.
39190
39191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39192         bug.
39193         * modules/string (Makefile.am): Remove redundant replacement.
39194         * modules/regex (Depends-on): Add mempcpy.
39195
39196 2007-01-31  Bruno Haible  <bruno@clisp.org>
39197
39198         New module description field 'Link'.
39199         * gnulib-tool (func_usage): Document --extract-link-directive.
39200         (sed_extract_prog): Recognize 'Link' directive.
39201         (func_get_link_directive): New function.
39202         (func_import): Show summary of link directives.
39203         Handle --extract-link-directive option.
39204         * modules/acl (Link): New section.
39205         * modules/clock-time (Link): New section.
39206         * modules/euidaccess (Link): New section.
39207         * modules/gettext (Link): New section.
39208         * modules/iconv (Link): New section.
39209         * modules/lock (Link): New section.
39210         * modules/nanosleep (Link): New section.
39211         * modules/readline (Link): New section.
39212
39213 2007-01-27  Bruno Haible  <bruno@clisp.org>
39214
39215         Enforce the use of gnulib modules for unportable <string.h> functions.
39216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39217         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39218         (gl_HEADER_STRING_H_BODY): Require it.
39219         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39220         the symbol XYZ to one that gives a link error.
39221         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39222         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39223         * modules/mempcpy (configure.ac): Likewise.
39224         * modules/memrchr (configure.ac): Likewise.
39225         * modules/stpcpy (configure.ac): Likewise.
39226         * modules/stpncpy (configure.ac): Likewise.
39227         * modules/strcase (configure.ac): Likewise.
39228         * modules/strcasestr (configure.ac): Likewise.
39229         * modules/strchrnul (configure.ac): Likewise.
39230         * modules/strdup (configure.ac): Likewise.
39231         * modules/strndup (configure.ac): Likewise.
39232         * modules/strnlen (configure.ac): Likewise.
39233         * modules/strpbrk (configure.ac): Likewise.
39234         * modules/strsep (configure.ac): Likewise.
39235         * modules/strstr (configure.ac): Likewise.
39236         * modules/strtok_r (configure.ac): Likewise.
39237
39238 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39239
39240         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39241
39242 2007-01-30  Jim Meyering  <jim@meyering.net>
39243
39244         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39245
39246 2007-01-29  Bruno Haible  <bruno@clisp.org>
39247
39248         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39249         * lib/execute.c: Likewise.
39250         * lib/pipe.c: Likewise.
39251         * lib/printf-args.h: Likewise.
39252         * lib/printf-args.c: Likewise.
39253         * lib/printf-parse.c: Likewise.
39254         * lib/vasnprintf.c: Likewise.
39255
39256 2007-01-29  Eric Blake  <ebb9@byu.net>
39257
39258         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39259         declaration.
39260
39261 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39262
39263         * lib/strptime.h (strptime): Use 'restrict' for args where
39264         POSIX requires this.
39265         * lib/strptime.c (strptime): Likewise.
39266         Change license notice from LGPL to GPL, since gnulib-tool will
39267         change this as needed.
39268         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39269         defined.
39270         Include "strptime.h" first, to check interface.
39271         Do not #undef _LIBC and _NL_CURRENT.
39272         Do not include <stdlib.h>; no longer needed.
39273         Include "time_r.h" and declare ptime_locale_status
39274         only if _LIBC is not defined.
39275         (__P): Remove unused macro.
39276         (match_string): Bring back glibc version, but use it only if _LIBC
39277         is defined.
39278         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39279         Remove unnecessary assertion and abort() call.
39280         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39281         * m4/strptime.m4: Fix serial number comment.
39282         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39283         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39284         (Depends-on): Add time_r.
39285
39286 2007-01-29  Bruno Haible  <bruno@clisp.org>
39287
39288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39289         strptime.
39290         * modules/strptime (Depends-on): Add stdbool.
39291         * lib/strptime.h: Include <time.h> always. Add comments.
39292
39293 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39294
39295         * modules/strptime: New file.
39296         * lib/strptime.h: New file.
39297         * lib/strptime.c: New file.
39298         * m4/strptime.m4: New file.
39299
39300 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39301
39302         * MODULES.html.sh: New module mpsort.
39303         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39304
39305         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39306         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39308         All uses changed.
39309         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39310         All uses changed.
39311         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39312         to _Restrict_.
39313         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39314         the parameter matches the prototype.
39315
39316 2007-01-28  Jim Meyering  <jim@meyering.net>
39317
39318         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39319         sys/time.h here, reverting that part of the previous patch:
39320         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39321
39322 2007-01-28  Bruno Haible  <bruno@clisp.org>
39323
39324         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39325         value of $(SYS_TIME_H).
39326         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39327         remove it conditionally, too. [added by Jim Meyering]
39328         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39329         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39330         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39331         GETTIMEOFDAY_REPLACEMENT to 1.
39332
39333 2007-01-28  Bruno Haible  <bruno@clisp.org>
39334
39335         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39336         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39338         Set UNISTD_H instead of UNISTD_H2.
39339         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39340
39341 2007-01-28  Bruno Haible  <bruno@clisp.org>
39342
39343         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39344         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39345
39346 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39347
39348         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39349         (func_create_testdir): Ensure C locale for `grep' and `tr'
39350         character ranges.
39351         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39352         ACLOCAL_AMFLAGS parsing state machine.
39353
39354 2007-01-27  Bruno Haible  <bruno@clisp.org>
39355
39356         * modules/unistr/base: Update.
39357
39358 2007-01-27  Bruno Haible  <bruno@clisp.org>
39359
39360         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39361         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39362         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39363         modules/unistr/u32-mbtouc.
39364         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39365         * lib/unistr.h: Update.
39366         * lib/linebreak.c: Update.
39367         * modules/unistr/u32-mbtouc: Renamed from
39368         modules/unistr/u32-mbtouc-safe.
39369         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39370         * lib/unistr.h: Update.
39371         * lib/unistr/u32-to-u8.c: Update.
39372         * lib/unistr/u32-to-u16.c: Update.
39373
39374 2007-01-27  Bruno Haible  <bruno@clisp.org>
39375
39376         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39377         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39378         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39379         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39380         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39381         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39382         modules/unistr/u16-mbtouc.
39383         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39384         * lib/unistr.h: Update.
39385         * lib/linebreak.c: Update.
39386         * modules/linebreak: Update.
39387         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39388         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39389         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39390         * modules/unistr/u16-mbtouc: Renamed from
39391         modules/unistr/u16-mbtouc-safe.
39392         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39393         * lib/unistr.h: Update.
39394         * lib/unistr/u16-to-u8.c: Update.
39395         * modules/unistr/u16-to-u8: Update.
39396         * lib/unistr/u16-to-u32.c: Update.
39397         * modules/unistr/u16-to-u32: Update.
39398
39399 2007-01-27  Bruno Haible  <bruno@clisp.org>
39400
39401         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39402         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39403         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39404         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39405         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39406         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39407         modules/unistr/u8-mbtouc.
39408         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39409         * lib/unistr.h: Update.
39410         * lib/striconveh.c: Update.
39411         * modules/striconveh: Update.
39412         * lib/linebreak.c: Update.
39413         * modules/linebreak: Update.
39414         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39415         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39416         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39417         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39418         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39419         * lib/unistr.h: Update.
39420         * lib/striconveh.c: Update.
39421         * modules/striconveh: Update.
39422         * lib/unistr/u8-to-u16.c: Update.
39423         * modules/unistr/u8-to-u16: Update.
39424         * lib/unistr/u8-to-u32.c: Update.
39425         * modules/unistr/u8-to-u32: Update.
39426
39427 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39428
39429         Sync from Libtool.
39430         * lib/argz.c: Do not include strings.h nor memory.h, include
39431         string.h unconditionally.  Patch by Simon Josefsson.
39432
39433 2007-01-27  Bruno Haible  <bruno@clisp.org>
39434
39435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39436         from gl_HEADER_STRING_H_BODY.
39437         (gl_HEADER_STRING_H_BODY): Require it.
39438         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39439         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39440         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39441         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39442         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39443         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39445         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39446         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39447         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39448         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39449         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39450         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39451         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39452         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39453
39454 2007-01-27  Bruno Haible  <bruno@clisp.org>
39455
39456         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39457         check_PROGRAMS into noinst_PROGRAMS.
39458         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39459         check_PROGRAMS in this case.
39460         (func_import): Set for_test to false.
39461         (func_create_testdir): Set for_test to true.
39462
39463 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39464             Bruno Haible  <bruno@clisp.org>
39465
39466         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39467         (Depends-on): Add string.
39468         (Includes): Use <string.h> instead of strcasestr.h.
39469         * modules/string (Makefile.am): Also substitute the value of
39470         REPLACE_STRCASESTR.
39471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39472         assume strcasestr is declared in <string.h> not <strings.h>. Also
39473         set REPLACE_STRCASESTR.
39474         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39475         REPLACE_STRCASESTR.
39476         * lib/strcasestr.h: Remove file.
39477         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39478         * lib/string_.h (strcasestr): New declaration.
39479
39480 2007-01-27  Bruno Haible  <bruno@clisp.org>
39481
39482         * lib/string_.h: Use 'extern'.
39483
39484 2007-01-27  Jim Meyering  <jim@meyering.net>
39485
39486         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39487         of set-but-not-used local, "q".
39488
39489         * lib/mempcpy.c: Include <config.h> before <string.h>.
39490         This fixes a compilation error on HP-UX, due to the system's
39491         "restrict"-using mempcpy prototype.
39492
39493 2007-01-26  Bruno Haible  <bruno@clisp.org>
39494
39495         Small optimization.
39496         * lib/javacomp.c: Include c-strstr.h.
39497          (is_envjavac_gcj): Use c_strstr instead of strstr.
39498         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39499
39500 2007-01-26  Bruno Haible  <bruno@clisp.org>
39501
39502         * MODULES.html.sh (Unicode string functions): Add the new modules.
39503
39504         * modules/uniconv/u32-strconv-to-locale: New file.
39505         * lib/uniconv/u32-strconv-to-locale.c: New file.
39506
39507         * modules/uniconv/u16-strconv-to-locale: New file.
39508         * lib/uniconv/u16-strconv-to-locale.c: New file.
39509
39510         * modules/uniconv/u8-strconv-to-locale: New file.
39511         * lib/uniconv/u8-strconv-to-locale.c: New file.
39512
39513         * modules/uniconv/u32-strconv-from-locale: New file.
39514         * lib/uniconv/u32-strconv-from-locale.c: New file.
39515
39516         * modules/uniconv/u16-strconv-from-locale: New file.
39517         * lib/uniconv/u16-strconv-from-locale.c: New file.
39518
39519         * modules/uniconv/u8-strconv-from-locale: New file.
39520         * lib/uniconv/u8-strconv-from-locale.c: New file.
39521
39522         * modules/uniconv/u32-strconv-to-enc: New file.
39523         * lib/uniconv/u32-strconv-to-enc.c: New file.
39524         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39525         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39526
39527         * modules/uniconv/u16-strconv-to-enc: New file.
39528         * lib/uniconv/u16-strconv-to-enc.c: New file.
39529         * lib/uniconv/u-strconv-to-enc.h: New file.
39530         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39531         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39532
39533         * modules/uniconv/u8-strconv-to-enc: New file.
39534         * lib/uniconv/u8-strconv-to-enc.c: New file.
39535         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39536         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39537
39538         * modules/uniconv/u32-strconv-from-enc: New file.
39539         * lib/uniconv/u32-strconv-from-enc.c: New file.
39540         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39541         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39542
39543         * modules/uniconv/u16-strconv-from-enc: New file.
39544         * lib/uniconv/u16-strconv-from-enc.c: New file.
39545         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39546         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39547
39548         * modules/uniconv/u8-strconv-from-enc: New file.
39549         * lib/uniconv/u8-strconv-from-enc.c: New file.
39550         * lib/uniconv/u-strconv-from-enc.h: New file.
39551         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39552         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39553
39554         * modules/uniconv/u32-conv-from-enc: New file.
39555         * lib/uniconv/u32-conv-from-enc.c: New file.
39556         * modules/uniconv/u32-conv-from-enc-tests: New file.
39557         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39558
39559         * modules/uniconv/u16-conv-from-enc: New file.
39560         * lib/uniconv/u16-conv-from-enc.c: New file.
39561         * lib/uniconv/u-conv-from-enc.h: New file.
39562         * modules/uniconv/u16-conv-from-enc-tests: New file.
39563         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39564
39565         * modules/uniconv/u8-conv-from-enc: New file.
39566         * lib/uniconv/u8-conv-from-enc.c: New file.
39567         * modules/uniconv/u8-conv-from-enc-tests: New file.
39568         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39569
39570         * modules/uniconv/base: New file.
39571         * lib/uniconv.h: New file.
39572
39573 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39574
39575         * doc/gnulib-tool.texi (Initial import): Update to match current
39576         behavior with strdup module.
39577         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39578         * lib/memmem.h: Remove; all uses removed.  This is now done
39579         by <string.h>.
39580         * lib/mempcpy.h: Likewise.
39581         * lib/memrchr.h: Likewise.
39582         * lib/stpcpy.h: Likewise.
39583         * lib/stpncpy.h: Likewise.
39584         * lib/strcase.h: Likewise.
39585         * lib/strchrnul.h: Likewise.
39586         * lib/strdup.h: Likewise.
39587         * lib/strndup.h: Likewise.
39588         * lib/strnlen.h: Likewise.
39589         * lib/strpbrk.h: Likewise.
39590         * lib/strsep.h: Likewise.
39591         * lib/strstr.h: Likewise.
39592         * lib/strtok_r.h: Likewise.
39593         * lib/string_.h: New file.
39594         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39595         Rely on <string.h> instead.
39596         * lib/canon-host.c: Likewise.
39597         * lib/chdir-long.c: Likewise.
39598         * lib/concatpath.c: Likewise.
39599         * lib/exclude.c: Likewise.
39600         * lib/fchdir.c: Likewise.
39601         * lib/getaddrinfo.c: Likewise.
39602         * lib/getcwd.c: Likewise.
39603         * lib/getsubopt.c: Likewise.
39604         * lib/glob.c: Likewise.
39605         * lib/hard-locale.c: Likewise.
39606         * lib/iconvme.c: Likewise.
39607         * lib/javacomp.c: Likewise.
39608         * lib/mempcpy.c: Likewise.
39609         * lib/memrchr.c: Likewise.
39610         * lib/regex_internal.h: Likewise.
39611         * lib/stpncpy.c: Likewise.
39612         * lib/strcasecmp.c: Likewise.
39613         * lib/strchrnul.c: Likewise.
39614         * lib/strdup.c: Likewise.
39615         * lib/striconv.c: Likewise.
39616         * lib/striconveh.c: Likewise.
39617         * lib/striconveha.c: Likewise.
39618         * lib/strncasecmp.c: Likewise.
39619         * lib/strndup.c: Likewise.
39620         * lib/strnlen.c: Likewise.
39621         * lib/strsep.c: Likewise.
39622         * lib/strstr.c: Likewise.
39623         * lib/strtok_r.c: Likewise.
39624         * lib/userspec.c: Likewise.
39625         * lib/w32spawn.h: Likewise.
39626         * lib/xstrndup.c: Likewise.
39627         * lib/mountlist.c (strstr): Remove decl.
39628         * m4/string_h.m4: New file.
39629         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39631         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39632         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39633         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39634         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39635         Set REPLACE_STRCASECMP if necessary.
39636         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39637         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39638         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39639         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39640         HAVE_DECL_STRDUP if necessary.
39641         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39642         since gl_FUNC_STRNDUP does that now.
39643         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39644         Check for decl here...
39645         (gl_PREREQ_STRNLEN): ... not here.
39646         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39647         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39648         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39650         necessary.
39651         * modules/string: New file.
39652         * modules/memmem (Files): Remove special-purpose include file.
39653         (Depends-on): Add string.
39654         (Include): Include <string.h>, not the removed file.
39655         * modules/mempcpy: Likewise.
39656         * modules/memrchr: Likewise.
39657         * modules/stpcpy: Likewise.
39658         * modules/stpncpy: Likewise.
39659         * modules/strcase: Likewise.
39660         * modules/strchrnul: Likewise.
39661         * modules/strdup: Likewise.
39662         * modules/strndup: Likewise.
39663         * modules/strnlen: Likewise.
39664         * modules/strpbrk: Likewise.
39665         * modules/strsep: Likewise.
39666         * modules/strstr: Likewise.
39667         * modules/strtok_r: Likewise.
39668         * tests/test-dirname.c: Don't include "strdup.h", since
39669         <string.h> now suffices.
39670         * tests/test-memmem.c: Don't include "memmem.h", since
39671         <string.h> now suffices.
39672
39673 2007-01-25  Bruno Haible  <bruno@clisp.org>
39674
39675         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39676         *resultp is 0.
39677
39678         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39679         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39680         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39681         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39682
39683         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39684         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39685         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39686         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39687         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39688         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39689
39690 2007-01-24  Bruno Haible  <bruno@clisp.org>
39691
39692         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39694         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39695         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39696         gl_FUNC_FTS_CORE.
39697         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39698         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39699         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39700         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39701         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39702         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39703         gl_FUNC_FCHOWNAT.
39704         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39705         gl_FUNC_STRFTIME.
39706         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39707         Reported by Ralf Wildenhues.
39708
39709 2007-01-24  Bruno Haible  <bruno@clisp.org>
39710
39711         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39712         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39713         gl_GETADDRINFO.
39714         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39715         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39716         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39717
39718 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39719
39720         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39721         Don't use 'exit'; just return from 'main'.
39722         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39723
39724         * lib/fnmatch_.h: Readjust white space and comments to match
39725         glibc, to avoid spurious diffs.
39726
39727 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39728
39729         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39730         2004-12-01 change by Jakub Jelinek, since this code won't compile
39731         if !LIBC.  Problem reported by Bob Proulx.
39732
39733 2007-01-23  Bruno Haible  <bruno@clisp.org>
39734
39735         * lib/striconveh.c: Include c-strcaseeq.h.
39736         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39737         * modules/striconveh (Depends-on): Add c-strcaseeq.
39738
39739 2007-01-23  Bruno Haible  <bruno@clisp.org>
39740
39741         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39742
39743         * modules/c-strcaseeq: New file.
39744         * lib/c-strcaseeq.h: New file.
39745
39746         * modules/streq: New file.
39747         * lib/streq.h: New file.
39748
39749 2007-01-23  Bruno Haible  <bruno@clisp.org>
39750
39751         * modules/striconveha-tests: New file.
39752         * tests/test-striconveha.c: New file.
39753
39754         * lib/striconveha.h: Include <stdbool.h>.
39755         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39756         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39757         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39758         (mem_iconveha): New function.
39759         (str_iconveha_notranslit): Renamed from str_iconveha.
39760         (str_iconveha): New function.
39761         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39762         c-strcase.
39763
39764 2007-01-23  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39767         encodings without forgiving before trying any encoding with handler.
39768         (str_iconveha): Try all encodings without forgiving before trying any
39769         encoding with handler.
39770
39771 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39772
39773         Import the following changes from libc.
39774
39775         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39776
39777         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39778
39779         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39780
39781         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39782         normal_bracket label.
39783
39784         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39785
39786         [BZ #361]
39787         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39788         to normal_bracket after fetching the next character.
39789
39790 2007-01-22  Bruno Haible  <bruno@clisp.org>
39791
39792         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39793         argument.
39794         * lib/striconveh.c (iconv_carefully_1): New function.
39795         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39796         argument.
39797         (str_cd_iconveh): Update.
39798         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39799         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39800         * tests/test-striconveh.c (MAGIC): New macro.
39801         (new_offsets): New function.
39802         (main): Test call with and without offsets.
39803
39804 2007-01-22  Bruno Haible  <bruno@clisp.org>
39805
39806         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39807         * modules/sys_select (Makefile.am): Likewise.
39808         * modules/sys_socket (Makefile.am): Likewise.
39809         * modules/sys_time (Makefile.am): Likewise.
39810
39811 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39812
39813         * modules/gettimeofday (License): Change from GPL to LGPL, since
39814         gettimeofday is a library function.
39815
39816 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39817
39818         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39819
39820 2007-01-21  Bruno Haible  <bruno@clisp.org>
39821
39822         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39823
39824 2007-01-21  Bruno Haible  <bruno@clisp.org>
39825
39826         * modules/striconveha: New file.
39827         * lib/striconveha.h: New file.
39828         * lib/striconveha.c: New file.
39829         * MODULES.html.sh (Internationalization functions): Add striconveha.
39830         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39831         string.
39832         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39833
39834 2007-01-21  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39837         * lib/striconveh.c (str_iconveh): Likewise.
39838
39839 2007-01-21  Bruno Haible  <bruno@clisp.org>
39840
39841         * lib/striconveh.h (mem_iconveh): New declaration.
39842         * lib/striconveh.c (mem_iconveh): New function.
39843         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39844
39845 2007-01-21  Bruno Haible  <bruno@clisp.org>
39846
39847         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39848
39849         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39850         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39851         original result buffer.
39852         (str_cd_iconveh): Update.
39853         * tests/test-striconveh.c (main): Update.
39854
39855         * lib/striconv.h (mem_cd_iconv): Change specification.
39856         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39857         result buffer.
39858         (str_cd_iconv): Update.
39859         * tests/test-striconv.c (main): Update.
39860
39861 2007-01-21  Bruno Haible  <bruno@clisp.org>
39862
39863         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39864
39865 2007-01-20  Jim Meyering  <jim@meyering.net>
39866
39867         * lib/userspec.c (parse_with_separator): If a user or group string
39868         starts with "+", skip the corresponding name-to-ID look-up, since
39869         such a look-up must fail: user and group names may not include "+".
39870
39871 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39872
39873         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39874         since we now assume the sys_time module.
39875         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39876         check for sys/time.h; no longer needed.
39877         * modules/poll (Depends-on): Depend on sys_time.
39878
39879 2007-01-18  Bruno Haible  <bruno@clisp.org>
39880
39881         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39882         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39883
39884         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39885         gettimeofday.
39886
39887         * tests/test-gettimeofday.c: Include <time.h>.
39888         (dummy): Remove variable.
39889
39890         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39891         gl_HEADER_SYS_TIME_H.
39892         (gl_HEADER_SYS_TIME_H): New macro.
39893
39894         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39895         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39896         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39897         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39898         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39899         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39900         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39901         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39902         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39903         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39904         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39905
39906         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39907         last change; it caused a compilation error when cross-compiling to
39908         Cygwin.
39909
39910 2007-01-18  Jim Meyering  <jim@meyering.net>
39911
39912         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39913         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39914         than the race-prone "test -d sys || mkdir sys".
39915         (configure.ac): Use AC_PROG_MKDIR_P.
39916         * modules/sys_select: Likewise.
39917         * modules/sys_socket: Likewise.
39918         * modules/sys_time: Likewise.
39919
39920 2007-01-18  Eric Blake  <ebb9@byu.net>
39921
39922         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39923         replace gettimeofday.
39924         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39925         name, to avoid infinite recursion.
39926
39927 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39928
39929         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39930         module sys_time.
39931         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39932         assume timespec.h defines struct timeval.
39933         * lib/settime.c: Likewise.
39934         * lib/utimens.c: Likewise.
39935         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39936         since we now assume the gettimeofday module.
39937         * lib/tempname.c (__gen_tempname): Likewise.
39938         * lib/gettimeofday.h: Remove.
39939         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39940         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39941         Include <time.h>, for 'time()'.
39942         (localtime_buffer_addr): Also use this workaround if
39943         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39944         to simplify the uses.  All uses changed.
39945         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39946         that #undef is inside {}, and 'const' follows type name consistently.
39947         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39948         (gettimeofday): Do not use the maximum possible value for
39949         tv->tv_usec, since that might break usages other than ls.c.
39950         Instead, we'll leave ls.c alone.  This undoes today's patch
39951         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39952         we've never observed the problem but might as well keep the
39953         canary.
39954         * lib/nanosleep.c: Include timespec.h first, for interface check.
39955         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39956         now assume the sys_time module.
39957         * lib/tempname.c: Likewise.
39958         * lib/timespec.h: Likewise.
39959         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39960         needed.
39961         * lib/strftime.c: Likewise.
39962         * lib/timespec.h: Likewise.
39963         * lib/posixtm.c: Include posixtm.h first, for interface check.
39964         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39965         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39966         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39967         * lib/sys_time_.h: New file.
39968         * lib/timespec.h (struct timespec): Use long int, not long.
39969         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39970         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39971         Remove obsolescent call to AC_HEADER_TIME.
39972         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39974         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39975         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39976         Likewise.
39977         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39978         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39979         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39980         into the sys_time module.  Check for gettimeofday just once.
39981         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39982         for gettimeofday signature to just check the signature.  Merely
39983         compile it, since linking doesn't test signature.  Improve test for
39984         whether gettimeofday.o is actually needed.
39985         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39986         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39987         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39988         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39989         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39990         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39991         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39992         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39993         than worrying about sys/time.h.
39994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39995         Don't bother worrying about TIME_WITH_SYS_TIME.
39996         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39997         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39998         * m4/sys_time_h.m4: New file.
39999         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40000         Don't include sys/time.h.  Return from main rather than exiting.
40001         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40002         all uses changed.
40003         * modules/gethrxtime (Depends-on): Add sys_time.
40004         * modules/gettime (Depends-on): Likewise.
40005         * modules/gettimeofday (Depends-on): Likewise.
40006         * modules/nanosleep (Depends-on): Likewise.
40007         * modules/settime (Depends-on): Likewise.
40008         * modules/tempname (Depends-on): Likewise.
40009         * modules/utimens (Depends-on): Likewise.
40010         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40011         (Include:) Change back to <sys/time.h>.
40012         (Maintainer:) Add self.
40013         * modules/sys_time: New file.
40014         * modules/tempname (Depends-on): Add gettimeofday.
40015         * tests/test-gettimeofday.c: Include <sys/time.h>
40016         rather than gettimeofday.h.
40017
40018 2007-01-17  Bruno Haible  <bruno@clisp.org>
40019
40020         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40021         the license default to GPL.
40022         (func_create_testdir): Don't complain if a module is LGPL and its
40023         tests module depends on GPLed modules.
40024
40025 2007-01-17  Bruno Haible  <bruno@clisp.org>
40026
40027         * lib/gettimeofday.c (gettimeofday): Add code for the case
40028         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40029         maximum possible value for tv->tv_usec, rather than the minimum one.
40030
40031 2005-10-08  Martin Lambers  <marlam@marlam.de>
40032 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40033 2007-01-16  Bruno Haible  <bruno@clisp.org>
40034
40035         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40036         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40037         gl_FUNC_GETTIMEOFDAY.
40038         (Include): Add gettimeofday.h.
40039         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40040         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40041         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40042         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40043         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40044         * lib/gettimeofday.h: New file.
40045         * lib/gettimeofday.c: Include <sys/timeb.h>.
40046         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40047         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40048         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40049         fall back on time().
40050
40051         * tests/test-gettimeofday.c: New file.
40052         * modules/gettimeofday-tests: New file.
40053
40054 2007-01-16  Eric Blake  <ebb9@byu.net>
40055
40056         * modules/fnmatch (Depends-on): Depend on wchar.
40057         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40058         * m4/fnmatch.m4: Likewise.
40059         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40060         * m4/mbchar.m4: Likewise.
40061         * modules/mbswidth (Depends-on): Depend on wchar.
40062         * lib/mbswidth.c: Assume <wchar.h>.
40063         * m4/mbswidth.m4: Likewise.
40064         * modules/quotearg (Depends-on): Depend on wchar.
40065         * lib/quotearg.c: Assume <wchar.h>.
40066         * m4/quotearg.m4: Likewise.
40067         * modules/regex (Depends-on): Depend on wchar.
40068         * lib/regex_internal.h: Assume <wchar.h>.
40069         * m4/regex.m4: Likewise.
40070         * modules/stdint (Depends-on): Depend on wchar.
40071         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40072         * m4/stdint.m4: Likewise.
40073         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40074         * modules/strftime (Depends-on): Depend on wchar.
40075         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40076         * modules/strtol (Depends-on): Depend on wchar.
40077         * lib/strtol.c: Assume <wchar.h>.
40078         * modules/wcwidth (Depends-on): Depend on wchar.
40079         * lib/wcwidth.h: Assume <wchar.h>.
40080         * m4/wcwidth.m4: Likewise.
40081
40082 2007-01-16  Bruno Haible  <bruno@clisp.org>
40083
40084         * modules/csharpexec-script: New, created from...
40085         * modules/csharpexec: ... this.
40086
40087 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40088
40089         * modules/javaexec-script: New, created from...
40090         * modules/javaexec: ... this.
40091
40092 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40093
40094         * modules/poll (Dependencies): Add sys_select.
40095
40096 2007-01-15  Jim Meyering  <jim@meyering.net>
40097
40098         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40099         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40100         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40101         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40102
40103 2007-01-15  Bruno Haible  <bruno@clisp.org>
40104
40105         * modules/striconveh: New file.
40106         * lib/striconveh.h: New file.
40107         * lib/striconveh.c: New file.
40108         * MODULES.html.sh (Internationalization functions): Add striconveh.
40109
40110         * modules/striconveh-tests: New file.
40111         * tests/test-striconveh.c: New file.
40112
40113 2007-01-15  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40116         not from GNU libiconv or GNU libc.
40117
40118 2007-01-15  Bruno Haible  <bruno@clisp.org>
40119
40120         * doc/gnulib-intro.texi (Copyright): Explain the different license
40121         terms for module descriptions, autoconf macros, tests, documentation.
40122
40123 2007-01-14  Bruno Haible  <bruno@clisp.org>
40124
40125         * modules/striconv-tests: New file.
40126         * tests/test-striconv.c: New file.
40127
40128 2007-01-14  Bruno Haible  <bruno@clisp.org>
40129
40130         * modules/iconv-tests: New file.
40131         * tests/test-iconv.c: New file.
40132
40133 2007-01-14  Bruno Haible  <bruno@clisp.org>
40134
40135         * gnulib-tool (func_get_license): For test modules, use the license of
40136         the main module.
40137
40138 2007-01-14  Bruno Haible  <bruno@clisp.org>
40139
40140         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40141         if iconv is found to exist.
40142
40143 2007-01-14  Bruno Haible  <bruno@clisp.org>
40144
40145         * modules/c-ctype-tests: New file.
40146         * tests/test-c-ctype.c: New file.
40147
40148 2007-01-14  Bruno Haible  <bruno@clisp.org>
40149
40150         * modules/binary-io-tests: New file.
40151         * tests/test-binary-io.sh: New file.
40152         * tests/test-binary-io.c: New file.
40153
40154 2007-01-14  Bruno Haible  <bruno@clisp.org>
40155
40156         * modules/array-oset-tests: New file.
40157         * tests/test-array_oset.c: New file.
40158
40159 2007-01-14  Bruno Haible  <bruno@clisp.org>
40160
40161         * modules/array-list-tests: New file.
40162         * tests/test-array_list.c: New file.
40163
40164 2007-01-14  Bruno Haible  <bruno@clisp.org>
40165
40166         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40167         and make.
40168         Reported by Simon Josefsson in
40169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40170
40171 2007-01-14  Bruno Haible  <bruno@clisp.org>
40172
40173         * modules/allocsa-tests: New file.
40174         * tests/test-allocsa.c: New file.
40175
40176 2007-01-14  Bruno Haible  <bruno@clisp.org>
40177
40178         * modules/fchdir (Depends-on): Add absolute-header.
40179         * modules/unistd (Depends-on): Likewise.
40180
40181 2006-12-30  Bruno Haible  <bruno@clisp.org>
40182
40183         * modules/fchdir: New file.
40184         * modules/unistd (Files): Add lib/unistd_.h.
40185         (Makefile.am): Generate unistd.h from unistd_.h.
40186         * lib/fchdir.c: New file.
40187         * lib/dirent_.h: New file.
40188         * lib/unistd_.h: New file.
40189         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40190         * m4/fchdir.m4: New file.
40191         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40192         (gl_HEADER_UNISTD): Invoke it.
40193         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40194         function.
40195         * lib/backupfile.c (opendir, closedir): Undefine.
40196         * lib/chown.c (open, close): Undefine.
40197         * lib/clean-temp.c (open, close): Undefine.
40198         * lib/copy-file.c (open, close): Undefine.
40199         * lib/execute.c (open, close): Undefine.
40200         * lib/fsusage.c (open, close): Undefine.
40201         * lib/gc-gnulib.c (open, close): Undefine.
40202         * lib/getcwd.c (opendir, closedir): Undefine.
40203         * lib/glob.c (opendir, closedir): Undefine.
40204         * lib/javacomp.c (open, close): Undefine.
40205         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40206         * lib/openat-proc.c (open, close): Undefine.
40207         * lib/pagealign_alloc.c (open, close): Undefine.
40208         * lib/pipe.c (open, close): Undefine.
40209         * lib/progreloc.c (open, close): Undefine.
40210         * lib/savedir.c (opendir, closedir): Undefine.
40211         * lib/utime.c (open, close): Undefine.
40212         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40213
40214 2007-01-10  Bruno Haible  <bruno@clisp.org>
40215
40216         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40217
40218 2007-01-12  Eric Blake  <ebb9@byu.net>
40219
40220         Provide a robust <wchar.h>.  Further simplifications are now
40221         possible in other modules, but not included here.
40222         * modules/wchar: New module.
40223         * m4/wchar.m4: New file.
40224         * lib/wchar_.h: Likewise.
40225         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40226         of the new module.
40227         * MODULES.html.sh (Extended multibyte and wide character utilities):
40228         New section.
40229
40230 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40231
40232         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40233         to a reasonable default for memory allocation.
40234         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40235         file system that reports garbage st_size values for symlinks.
40236         Problem reported by Liyang Hu.
40237
40238 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40239
40240         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40241         Emacs .#* auto-save files).
40242
40243 2007-01-11  Bruno Haible  <bruno@clisp.org>
40244
40245         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40246         directory.
40247
40248 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40249
40250         Use @...@ consistently in lib/wctype_.h.
40251         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40252         on it being set to 1 or 0.
40253         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40254         go back to AC_SUBSTing it.
40255         * modules/wctype (Makefile.am): Undo previous change.
40256
40257 2007-01-10  Eric Blake  <ebb9@byu.net>
40258
40259         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40260         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40261         * modules/wctype (Makefile.am): Likewise.
40262         Reported by Chris McGuire.
40263
40264 2007-01-10  Jim Meyering  <jim@meyering.net>
40265
40266         fts.c: a small readability/maintainability improvement
40267         * lib/fts.c (fts_read): Make this code slightly more readable and
40268         maintainable by hoisting the "sp->fts_cur = p" assignments to
40269         immediately follow the statements that set P.  Derived from
40270         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40271
40272 2007-01-10  Eric Blake  <ebb9@byu.net>
40273
40274         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40275         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40277         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40278         Reported by Chris McGuire.
40279
40280 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40281
40282         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40283         in sed script.
40284
40285 2007-01-09  Bruno Haible  <bruno@clisp.org>
40286
40287         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40288         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40289         variables.
40290         (func_module): Use them.
40291
40292 2007-01-09  Bruno Haible  <bruno@clisp.org>
40293
40294         * modules/unistr/base: New file.
40295         * lib/unistr.h: New file.
40296
40297         * modules/unistr/u8-to-u16: New file.
40298         * lib/unistr/u8-to-u16.c: New file.
40299
40300         * modules/unistr/u8-to-u32: New file.
40301         * lib/unistr/u8-to-u32.c: New file.
40302
40303         * modules/unistr/u16-to-u8: New file.
40304         * lib/unistr/u16-to-u8.c: New file.
40305
40306         * modules/unistr/u16-to-u32: New file.
40307         * lib/unistr/u16-to-u32.c: New file.
40308
40309         * modules/unistr/u32-to-u8: New file.
40310         * lib/unistr/u32-to-u8.c: New file.
40311
40312         * modules/unistr/u32-to-u16: New file.
40313         * lib/unistr/u32-to-u16.c: New file.
40314
40315         * modules/unistr/u8-check: New file.
40316         * modules/unistr/u16-check: New file.
40317         * modules/unistr/u32-check: New file.
40318         * lib/unistr/u8-check.c: New file.
40319         * lib/unistr/u16-check.c: New file.
40320         * lib/unistr/u32-check.c: New file.
40321
40322         * modules/unistr/u8-chr: New file.
40323         * modules/unistr/u16-chr: New file.
40324         * modules/unistr/u32-chr: New file.
40325         * lib/unistr/u8-chr.c: New file.
40326         * lib/unistr/u16-chr.c: New file.
40327         * lib/unistr/u32-chr.c: New file.
40328
40329         * modules/unistr/u8-cmp: New file.
40330         * modules/unistr/u16-cmp: New file.
40331         * modules/unistr/u32-cmp: New file.
40332         * lib/unistr/u8-cmp.c: New file.
40333         * lib/unistr/u16-cmp.c: New file.
40334         * lib/unistr/u32-cmp.c: New file.
40335
40336         * modules/unistr/u8-cpy: New file.
40337         * modules/unistr/u16-cpy: New file.
40338         * modules/unistr/u32-cpy: New file.
40339         * lib/unistr/u8-cpy.c: New file.
40340         * lib/unistr/u16-cpy.c: New file.
40341         * lib/unistr/u32-cpy.c: New file.
40342         * lib/unistr/u-cpy.h: New file.
40343
40344         * modules/unistr/u8-cpy-alloc: New file.
40345         * modules/unistr/u16-cpy-alloc: New file.
40346         * modules/unistr/u32-cpy-alloc: New file.
40347         * lib/unistr/u8-cpy-alloc.c: New file.
40348         * lib/unistr/u16-cpy-alloc.c: New file.
40349         * lib/unistr/u32-cpy-alloc.c: New file.
40350         * lib/unistr/u-cpy-alloc.h: New file.
40351
40352         * modules/unistr/u8-endswith: New file.
40353         * modules/unistr/u16-endswith: New file.
40354         * modules/unistr/u32-endswith: New file.
40355         * lib/unistr/u8-endswith.c: New file.
40356         * lib/unistr/u16-endswith.c: New file.
40357         * lib/unistr/u32-endswith.c: New file.
40358         * lib/unistr/u-endswith.h: New file.
40359
40360         * modules/unistr/u8-mblen: New file.
40361         * modules/unistr/u16-mblen: New file.
40362         * modules/unistr/u32-mblen: New file.
40363         * lib/unistr/u8-mblen.c: New file.
40364         * lib/unistr/u16-mblen.c: New file.
40365         * lib/unistr/u32-mblen.c: New file.
40366
40367         * modules/unistr/u8-mbtouc: New file.
40368         * modules/unistr/u16-mbtouc: New file.
40369         * modules/unistr/u32-mbtouc: New file.
40370         * lib/unistr/u8-mbtouc.c: New file.
40371         * lib/unistr/u16-mbtouc.c: New file.
40372         * lib/unistr/u32-mbtouc.c: New file.
40373
40374         * modules/unistr/u8-mbtouc-safe: New file.
40375         * modules/unistr/u16-mbtouc-safe: New file.
40376         * modules/unistr/u32-mbtouc-safe: New file.
40377         * lib/unistr/u8-mbtouc-safe.c: New file.
40378         * lib/unistr/u16-mbtouc-safe.c: New file.
40379         * lib/unistr/u32-mbtouc-safe.c: New file.
40380
40381         * modules/unistr/u8-move: New file.
40382         * modules/unistr/u16-move: New file.
40383         * modules/unistr/u32-move: New file.
40384         * lib/unistr/u8-move.c: New file.
40385         * lib/unistr/u16-move.c: New file.
40386         * lib/unistr/u32-move.c: New file.
40387         * lib/unistr/u-move.h: New file.
40388
40389         * modules/unistr/u8-next: New file.
40390         * modules/unistr/u16-next: New file.
40391         * modules/unistr/u32-next: New file.
40392         * lib/unistr/u8-next.c: New file.
40393         * lib/unistr/u16-next.c: New file.
40394         * lib/unistr/u32-next.c: New file.
40395
40396         * modules/unistr/u8-prev: New file.
40397         * modules/unistr/u16-prev: New file.
40398         * modules/unistr/u32-prev: New file.
40399         * lib/unistr/u8-prev.c: New file.
40400         * lib/unistr/u16-prev.c: New file.
40401         * lib/unistr/u32-prev.c: New file.
40402
40403         * modules/unistr/u8-set: New file.
40404         * modules/unistr/u16-set: New file.
40405         * modules/unistr/u32-set: New file.
40406         * lib/unistr/u8-set.c: New file.
40407         * lib/unistr/u16-set.c: New file.
40408         * lib/unistr/u32-set.c: New file.
40409         * lib/unistr/u-set.h: New file.
40410
40411         * modules/unistr/u8-startswith: New file.
40412         * modules/unistr/u16-startswith: New file.
40413         * modules/unistr/u32-startswith: New file.
40414         * lib/unistr/u8-startswith.c: New file.
40415         * lib/unistr/u16-startswith.c: New file.
40416         * lib/unistr/u32-startswith.c: New file.
40417         * lib/unistr/u-startswith.h: New file.
40418
40419         * modules/unistr/u8-stpcpy: New file.
40420         * modules/unistr/u16-stpcpy: New file.
40421         * modules/unistr/u32-stpcpy: New file.
40422         * lib/unistr/u8-stpcpy.c: New file.
40423         * lib/unistr/u16-stpcpy.c: New file.
40424         * lib/unistr/u32-stpcpy.c: New file.
40425         * lib/unistr/u-stpcpy.h: New file.
40426
40427         * modules/unistr/u8-stpncpy: New file.
40428         * modules/unistr/u16-stpncpy: New file.
40429         * modules/unistr/u32-stpncpy: New file.
40430         * lib/unistr/u8-stpncpy.c: New file.
40431         * lib/unistr/u16-stpncpy.c: New file.
40432         * lib/unistr/u32-stpncpy.c: New file.
40433         * lib/unistr/u-stpncpy.h: New file.
40434
40435         * modules/unistr/u8-strcat: New file.
40436         * modules/unistr/u16-strcat: New file.
40437         * modules/unistr/u32-strcat: New file.
40438         * lib/unistr/u8-strcat.c: New file.
40439         * lib/unistr/u16-strcat.c: New file.
40440         * lib/unistr/u32-strcat.c: New file.
40441         * lib/unistr/u-strcat.h: New file.
40442
40443         * modules/unistr/u8-strchr: New file.
40444         * modules/unistr/u16-strchr: New file.
40445         * modules/unistr/u32-strchr: New file.
40446         * lib/unistr/u8-strchr.c: New file.
40447         * lib/unistr/u16-strchr.c: New file.
40448         * lib/unistr/u32-strchr.c: New file.
40449
40450         * modules/unistr/u8-strcmp: New file.
40451         * modules/unistr/u16-strcmp: New file.
40452         * modules/unistr/u32-strcmp: New file.
40453         * lib/unistr/u8-strcmp.c: New file.
40454         * lib/unistr/u16-strcmp.c: New file.
40455         * lib/unistr/u32-strcmp.c: New file.
40456
40457         * modules/unistr/u8-strcpy: New file.
40458         * modules/unistr/u16-strcpy: New file.
40459         * modules/unistr/u32-strcpy: New file.
40460         * lib/unistr/u8-strcpy.c: New file.
40461         * lib/unistr/u16-strcpy.c: New file.
40462         * lib/unistr/u32-strcpy.c: New file.
40463         * lib/unistr/u-strcpy.h: New file.
40464
40465         * modules/unistr/u8-strcspn: New file.
40466         * modules/unistr/u16-strcspn: New file.
40467         * modules/unistr/u32-strcspn: New file.
40468         * lib/unistr/u8-strcspn.c: New file.
40469         * lib/unistr/u16-strcspn.c: New file.
40470         * lib/unistr/u32-strcspn.c: New file.
40471         * lib/unistr/u-strcspn.h: New file.
40472
40473         * modules/unistr/u8-strdup: New file.
40474         * modules/unistr/u16-strdup: New file.
40475         * modules/unistr/u32-strdup: New file.
40476         * lib/unistr/u8-strdup.c: New file.
40477         * lib/unistr/u16-strdup.c: New file.
40478         * lib/unistr/u32-strdup.c: New file.
40479         * lib/unistr/u-strdup.h: New file.
40480
40481         * modules/unistr/u8-strlen: New file.
40482         * modules/unistr/u16-strlen: New file.
40483         * modules/unistr/u32-strlen: New file.
40484         * lib/unistr/u8-strlen.c: New file.
40485         * lib/unistr/u16-strlen.c: New file.
40486         * lib/unistr/u32-strlen.c: New file.
40487         * lib/unistr/u-strlen.h: New file.
40488
40489         * modules/unistr/u8-strmblen: New file.
40490         * modules/unistr/u16-strmblen: New file.
40491         * modules/unistr/u32-strmblen: New file.
40492         * lib/unistr/u8-strmblen.c: New file.
40493         * lib/unistr/u16-strmblen.c: New file.
40494         * lib/unistr/u32-strmblen.c: New file.
40495
40496         * modules/unistr/u8-strmbtouc: New file.
40497         * modules/unistr/u16-strmbtouc: New file.
40498         * modules/unistr/u32-strmbtouc: New file.
40499         * lib/unistr/u8-strmbtouc.c: New file.
40500         * lib/unistr/u16-strmbtouc.c: New file.
40501         * lib/unistr/u32-strmbtouc.c: New file.
40502
40503         * modules/unistr/u8-strncat: New file.
40504         * modules/unistr/u16-strncat: New file.
40505         * modules/unistr/u32-strncat: New file.
40506         * lib/unistr/u8-strncat.c: New file.
40507         * lib/unistr/u16-strncat.c: New file.
40508         * lib/unistr/u32-strncat.c: New file.
40509         * lib/unistr/u-strncat.h: New file.
40510
40511         * modules/unistr/u8-strncmp: New file.
40512         * modules/unistr/u16-strncmp: New file.
40513         * modules/unistr/u32-strncmp: New file.
40514         * lib/unistr/u8-strncmp.c: New file.
40515         * lib/unistr/u16-strncmp.c: New file.
40516         * lib/unistr/u32-strncmp.c: New file.
40517
40518         * modules/unistr/u8-strncpy: New file.
40519         * modules/unistr/u16-strncpy: New file.
40520         * modules/unistr/u32-strncpy: New file.
40521         * lib/unistr/u8-strncpy.c: New file.
40522         * lib/unistr/u16-strncpy.c: New file.
40523         * lib/unistr/u32-strncpy.c: New file.
40524         * lib/unistr/u-strncpy.h: New file.
40525
40526         * modules/unistr/u8-strnlen: New file.
40527         * modules/unistr/u16-strnlen: New file.
40528         * modules/unistr/u32-strnlen: New file.
40529         * lib/unistr/u8-strnlen.c: New file.
40530         * lib/unistr/u16-strnlen.c: New file.
40531         * lib/unistr/u32-strnlen.c: New file.
40532         * lib/unistr/u-strnlen.h: New file.
40533
40534         * modules/unistr/u8-strpbrk: New file.
40535         * modules/unistr/u16-strpbrk: New file.
40536         * modules/unistr/u32-strpbrk: New file.
40537         * lib/unistr/u8-strpbrk.c: New file.
40538         * lib/unistr/u16-strpbrk.c: New file.
40539         * lib/unistr/u32-strpbrk.c: New file.
40540         * lib/unistr/u-strpbrk.h: New file.
40541
40542         * modules/unistr/u8-strrchr: New file.
40543         * modules/unistr/u16-strrchr: New file.
40544         * modules/unistr/u32-strrchr: New file.
40545         * lib/unistr/u8-strrchr.c: New file.
40546         * lib/unistr/u16-strrchr.c: New file.
40547         * lib/unistr/u32-strrchr.c: New file.
40548
40549         * modules/unistr/u8-strspn: New file.
40550         * modules/unistr/u16-strspn: New file.
40551         * modules/unistr/u32-strspn: New file.
40552         * lib/unistr/u8-strspn.c: New file.
40553         * lib/unistr/u16-strspn.c: New file.
40554         * lib/unistr/u32-strspn.c: New file.
40555         * lib/unistr/u-strspn.h: New file.
40556
40557         * modules/unistr/u8-strstr: New file.
40558         * modules/unistr/u16-strstr: New file.
40559         * modules/unistr/u32-strstr: New file.
40560         * lib/unistr/u8-strstr.c: New file.
40561         * lib/unistr/u16-strstr.c: New file.
40562         * lib/unistr/u32-strstr.c: New file.
40563         * lib/unistr/u-strstr.h: New file.
40564
40565         * modules/unistr/u8-strtok: New file.
40566         * modules/unistr/u16-strtok: New file.
40567         * modules/unistr/u32-strtok: New file.
40568         * lib/unistr/u8-strtok.c: New file.
40569         * lib/unistr/u16-strtok.c: New file.
40570         * lib/unistr/u32-strtok.c: New file.
40571         * lib/unistr/u-strtok.h: New file.
40572
40573         * modules/unistr/u8-uctomb: New file.
40574         * modules/unistr/u16-uctomb: New file.
40575         * modules/unistr/u32-uctomb: New file.
40576         * lib/unistr/u8-uctomb.c: New file.
40577         * lib/unistr/u16-uctomb.c: New file.
40578         * lib/unistr/u32-uctomb.c: New file.
40579
40580         * MODULES.html.sh (Unicode string functions): Add the new modules.
40581
40582 2007-01-08  Bruno Haible  <bruno@clisp.org>
40583
40584         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40585         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40586         subdirectories.
40587
40588 2007-01-08  Karl Berry  <karl@gnu.org>
40589
40590         * doc/error.texi: mention that main() fns must set program_name
40591         when progname is used.
40592
40593 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40594
40595         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40596         WCTYPE_H is empty, for the benefit of builds from non-distclean
40597         directories.  Problem reported by Eric Blake in
40598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40599
40600 2007-01-08  Bruno Haible  <bruno@clisp.org>
40601
40602         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40603         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40604         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40605         PROVIDE_CANONICALIZE_FILENAME_MODE.
40606         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40607
40608 2007-01-08  Bruno Haible  <bruno@clisp.org>
40609
40610         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40611         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40612         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40613         * lib/fts.c: Likewise.
40614         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40615
40616 2006-12-25  Bruno Haible  <bruno@clisp.org>
40617
40618         * modules/utf8-ucs4-safe: New file.
40619         * lib/utf8-ucs4-safe.h: New file.
40620         * lib/unistr/utf8-ucs4-safe.c: New file.
40621
40622         * modules/utf16-ucs4-safe: New file.
40623         * lib/utf16-ucs4-safe.h: New file.
40624         * lib/unistr/utf16-ucs4-safe.c: New file.
40625
40626         * MODULES.html.sh (Unicode string functions): Add the new modules.
40627
40628 2007-01-08  Bruno Haible  <bruno@clisp.org>
40629
40630         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40631         (Depends-on): Add unitypes.
40632         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40633         (u8_mbtouc_aux): Move out to separate file.
40634         (u8_mbtouc): Use ucs4_t, uint8_t types.
40635         * lib/unistr/utf8-ucs4.c: New file.
40636
40637         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40638         (Depends-on): Add unitypes.
40639         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40640         (u16_mbtouc_aux): Move out to separate file.
40641         (u16_mbtouc): Use ucs4_t, uint16_t types.
40642         * lib/unistr/utf16-ucs4.c: New file.
40643
40644         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40645         (Depends-on): Add unitypes.
40646         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40647         (u8_uctomb_aux): Move out to separate file.
40648         (u8_uctomb): Use ucs4_t, uint8_t types.
40649         * lib/unistr/ucs4-utf8.c: New file.
40650
40651         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40652         (Depends-on): Add unitypes.
40653         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40654         (u16_uctomb_aux): Move out to separate file.
40655         (u16_uctomb): Use ucs4_t, uint16_t types.
40656         * lib/unistr/ucs4-utf16.c: New file.
40657
40658 2006-12-25  Bruno Haible  <bruno@clisp.org>
40659
40660         * modules/unitypes: New file.
40661         * lib/unitypes.h: New file.
40662         * MODULES.html.sh (func_all_modules): New section "Unicode string
40663         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40664         this section. Add unitypes.
40665
40666 2007-01-08  Bruno Haible  <bruno@clisp.org>
40667
40668         Avoid variable names that conflict with those from libtool.
40669         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40670         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40671         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40672         library_names_spec to acl_library_names_spec, hardcode_* to
40673         acl_hardcode_*.
40674         Reported by Ralf Wildenhues.
40675
40676 2007-01-08  Bruno Haible  <bruno@clisp.org>
40677
40678         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40679         definition.
40680         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40681         definition.
40682         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40683         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40684         definition.
40685         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40686         definition.
40687         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40688         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40689         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40690         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40691         definition.
40692         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40693         definition.
40694         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40695         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40696         GC_USE_<algorithm>.
40697         * lib/gc-libgcrypt.c: Likewise.
40698         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40699         * modules/gc-arctwo (configure.ac): Likewise.
40700         * modules/gc-des (configure.ac): Likewise.
40701         * modules/gc-hmac-md5 (configure.ac): Likewise.
40702         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40703         * modules/gc-md2 (configure.ac): Likewise.
40704         * modules/gc-md4 (configure.ac): Likewise.
40705         * modules/gc-md5 (configure.ac): Likewise.
40706         * modules/gc-random (configure.ac): Likewise.
40707         * modules/gc-rijndael (configure.ac): Likewise.
40708         * modules/gc-sha1 (configure.ac): Likewise.
40709
40710 2007-01-08  Bruno Haible  <bruno@clisp.org>
40711
40712         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40713         macro definition.
40714         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40715         definition.
40716         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40717         definition.
40718         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40719         * modules/fcntl-safer (configure.ac): Likewise.
40720         * modules/fopen-safer (configure.ac): Likewise.
40721         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40722         GNULIB_FWRITEERROR macro definition.
40723
40724 2007-01-08  Bruno Haible  <bruno@clisp.org>
40725
40726         * m4/gnulib-common.m4: New file.
40727         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40728         (func_get_filelist): Add m4/gnulib-common.m4.
40729
40730 2007-01-08  Bruno Haible  <bruno@clisp.org>
40731
40732         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40733         command.
40734
40735 2007-01-08  Jim Meyering  <jim@meyering.net>
40736
40737         Use a more robust test for a "can't happen" condition.
40738         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40739         narrowed the st_size value.  Presuming the "can't happen" condition
40740         is true, that narrowing could conceivably convert an invalid st_size
40741         value into a valid one.  Instead, use a change based on Matthew
40742         Woehlke's original patch.
40743
40744         Slight readability improvement: use an assert-like macro
40745         in place of literal "abort ()" uses.
40746         * lib/fts.c (fts_assert): Define.
40747         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40748         Use this macro instead of a bare 'abort'.
40749
40750 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40751
40752         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40753         simply work around them.
40754         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40755         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40756         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40757         declaring.
40758         Don't bother to define as macros, since the standard doesn't require it.
40759         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40760         longer worry about IRIX 5.3.
40761         (HAVE_WCTYPE_CTMP_BUG): Remove.
40762
40763 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40764
40765         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40766         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40767         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40768         Problems reported by Georg Schwarz for IRIX 5.3.
40769
40770         * gnulib-tool (autoconf_minversion): Take the maximum version number
40771         found, not the minimum.  Problem reported by James Youngman.
40772
40773 2007-01-03  Karl Berry  <karl@gnu.org>
40774
40775         * doc/error.texi: new file, explaining interaction with progname.
40776         * doc/gnulib.texi: include it.  Update copyright.
40777
40778 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40779
40780         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40781         AC_CANONICAL_HOST, to improve autobuild outputs.
40782
40783 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40784             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40785
40786         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40787         sockets, server sockets, and other file descriptors.  Count errors
40788         to compute the return value.  Reorder the code a bit to be easier
40789         to follow.  Don't set event bits that were not requested (except
40790         POLLERR and POLLHUP).
40791
40792 2007-01-01  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40795
40796 2007-01-03  Jim Meyering  <jim@meyering.net>
40797
40798         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40799
40800 2007-01-02  Bruno Haible  <bruno@clisp.org>
40801
40802         * modules/settime (Include): Require timespec.h.
40803         * modules/nanosleep (Include): Likewise.
40804
40805 2007-01-01  Bruno Haible  <bruno@clisp.org>
40806
40807         * gnulib-tool (func_emit_copyright_notice): Bump year.
40808         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40809
40810 2007-01-01  Bruno Haible  <bruno@clisp.org>
40811
40812         Improve support for OpenBSD.
40813         * build-aux/config.rpath (libname_spec): Export.
40814         (library_names_spec): New variable. Export.
40815         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40816         library_names_spec from the config.rpath output. Locate shared library
40817         through the name pattern in library_names_spec.
40818
40819 2007-01-01  Eric Blake  <ebb9@byu.net>
40820
40821         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40822
40823 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40824
40825         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40826         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40827         assume the C locale, and avoid an "eval" that could cause trouble.
40828         Problem with SORT reported by Bob Proulx.
40829
40830         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40831         Define.  Trivial patch from Henning Nielsen Lund, originally
40832         sent to bug-grep@gnu.org today.
40833
40834 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40835
40836         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40837         struct stat.  Problem reported by Henning Nielsen Lund.
40838         * lib/acl.c: Include acl.h first, to check interface.  Don't
40839         bother to include sys/types.h and sys/stat.h again.
40840
40841 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40842
40843         Import the following change from libc; problem reported by
40844         Sven Verdoolaege.
40845
40846         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40847
40848         [BZ #1373]
40849         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40850
40851 2006-12-28  Jim Meyering  <jim@meyering.net>
40852
40853         * build-aux/announce-gen: Do not assume that the package
40854         builds any of tar.gz, tar.bz2, and .xdelta files.
40855         Suggestion from Simon Josefsson.
40856
40857 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40858
40859         * modules/announce-gen: New file.
40860
40861 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40862
40863         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40864         handles its gotchas now.
40865         * lib/mbswidth.c: Likewise.
40866         * lib/wcwidth.h: Likewise.
40867         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40868         and iswcntrl; the wctype module does this stuff now.
40869         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40871         * modules/mbchar (Depends-on): Add wctype.
40872         * modules/mbswidth (Depends-on): Likewise.
40873         * modules/wcwidth (Depends-on): Likewise.
40874
40875 2006-12-27  Eric Blake  <ebb9@byu.net>
40876
40877         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40878         module uses more than what <wctype.h> is required to provide.
40879
40880 2006-12-26  Eric Blake  <ebb9@byu.net>
40881
40882         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40883
40884 2006-12-26  Eric Blake  <ebb9@byu.net>
40885
40886         * modules/absolute-header: New module.
40887         * modules/fcntl (Depends-on): Depend on it.
40888         * modules/inttypes (Depends-on): Likewise.
40889         * modules/stdint (Depends-on): Likewise.
40890         * modules/sys_stat (Depends-on): Likewise.
40891         * modules/wctype (Depends-on): Likewise.
40892         * MODULES.html.sh (Support for building libraries and
40893         executables): Document it.
40894
40895 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40896
40897         * gnulib-tool (SED): Remove, undoing previous change.
40898         The problem was that it broke coreutils on Solaris, because
40899         "sed --posix" leaked into a makefile.
40900         (sed): New alias, if 'alias' and GNU sed.
40901
40902 2006-12-24  Jim Meyering  <jim@meyering.net>
40903
40904         Work around an fchownat bug in glibc-2.4:
40905         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40906         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40907         in spite of the -P option.
40908         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40909         New macros.
40910         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40911         * modules/openat (Files): Add lib/fchownat.c.
40912         * lib/openat.c (fchownat): Don't define here.  Move to...
40913         * lib/fchownat.c: ...this new file.
40914
40915 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40916
40917         Fix bug reported by Bruno Haible in
40918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40919         where quotearg.c didn't compile on Mac OS X 10.2 because it
40920         lacks <wchar.h> and wint_t.
40921         * lib/wctype_.h (__wctype_wint_t): New type.
40922         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40923         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40924         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40925         Arg is now of type __wctype_wint_t, not wint_t.
40926         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40927         substitute HAVE_WINT_T.
40928         * modules/wctype (Files): Add m4/wint_t.m4.
40929         (wctype.h): Substitute HAVE_WINT_T.
40930
40931 2006-12-23  Bruno Haible  <bruno@clisp.org>
40932
40933         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40934
40935 2006-12-23  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40938         S_ISLNK.
40939         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40940         mingw.
40941
40942 2006-12-22  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/copy-file.c: Include acl.h.
40945         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40946         Close the file descriptors only after being done with copy_acl.
40947         * modules/copy-file (Depends-on): Add acl.
40948
40949 2006-12-22  Bruno Haible  <bruno@clisp.org>
40950
40951         * gnulib-tool (SED): New variable.
40952         Use $SED instead of sed everywhere.
40953
40954 2006-12-22  Bruno Haible  <bruno@clisp.org>
40955
40956         * modules/no-c++: New file.
40957         * m4/no-c++.m4: New file.
40958         * MODULES.html.sh (Support for building libraries and executables):
40959         Add no-c++.
40960
40961 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40962
40963         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40964         Include <limits.h>, and use its INT_MAX to rewrite the
40965         j loop so that it does not overflow 'int'.  Problem reported by
40966         Ralf Wildenhues in
40967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40968         Play it safe by shifting left by 1 rather than multiplying by 2,
40969         as GCC is less likely to optimize this away when the value
40970         is signed (when it assumes overflow leads to undefined behavior).
40971         Also, don't assume time_t uses two's complement.
40972
40973 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40974
40975         * MODULES.html.sh: New module wctype.
40976         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40977         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40978         <wctype.h>, since the new wctype module should fix this.
40979         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40980         the wctype module should arrange for it.
40981         * lib/regex_internal.h: Likewise.
40982         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40983         since the wctype module should handle this now.
40984         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40985         * modules/fnmatch (Depends-on): Add wctype.
40986         * modules/quotearg (Depends-on): Likewise.
40987         * modules/regex (Depends-on): Likewise.
40988
40989 2006-12-19  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40992         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40993
40994 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40995
40996         * modules/savewd (Depends-on): Fix dependency on fcntl.
40997
40998 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40999
41000         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41001         conforms to C99, rather than relying on the user's environment
41002         setting of STDINT_H.
41003
41004 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41005         and Eric Blake  <ebb9@byu.net>
41006
41007         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41008         This is more consistent with the other defines here.
41009         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41010         Port to z/OS.  Problem reported by Paul Gilmartin.
41011         Change local vars to use gl_ prefix rather than ac_.
41012         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41013         with other defines.
41014         * modules/double-slash-root: New module.
41015         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41016         (Depends-on): Add double-slash-root.
41017         * MODULES.html.sh (File system functions): Mention new module.
41018
41019 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41020
41021         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41022         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41023         This is for the benefit of gzip, which doesn't do i18n.
41024
41025 2006-12-12  Jim Meyering  <jim@meyering.net>
41026
41027         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41028         Reported by Andreas Schwab <schwab@suse.de>.
41029
41030 2006-12-12  Bruno Haible  <bruno@clisp.org>
41031
41032         Merge these changes.
41033         2006-09-05  Bruno Haible  <bruno@clisp.org>
41034         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41035         iconv_alloc succeeded.
41036         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41037         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41038         test for " && dest " at the end - dest is always != NULL there. Call
41039         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41040         with 2xNULL arguments, also to flush the state storage. Handle the
41041         IRIX iconv behaviour. Realloc the final result, to throw away unused
41042         memory.
41043
41044 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41045
41046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41047         and fchmodat unconditionally, since glibc 2.4 has them.
41048         Problem reported by Arkadiusz Miskiewicz.
41049
41050 2006-12-10  Bruno Haible  <bruno@clisp.org>
41051
41052         * gnulib-tool (func_import): Show the include files only for those
41053         modules that are copied and specified.
41054         Reported by Karl Berry.
41055
41056 2006-12-08  Jim Meyering  <jim@meyering.net>
41057
41058         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41059         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41060
41061         * build-aux/announce-gen: Add two new options, both optional:
41062         --bootstrap-tools=TOOL_LIST
41063               a comma-separated list of tools, e.g.,
41064               autoconf,automake,bison,gnulib
41065         --gnulib-snapshot-date=DATE
41066               if gnulib is in the bootstrap tool list,
41067               then report this as the snapshot date.
41068               If not specified, use the current date/time.
41069               If you specify a date here, be sure it's UTC.
41070
41071 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41072
41073         * tests/test-argp-2.sh: Fix test to match actual output.
41074         (func_compare): Fix sed script to be portable.
41075
41076 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41077
41078         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41079         workaround for this case.  It is not autoconfigured now; offhand
41080         it's hard to see how to autoconfigure it.
41081
41082 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41083
41084         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41085         a directory that is about to be chowned.  Such a directory's
41086         initial file permissions should permit the owner only and this
41087         should not be changed until after the chown, since the group and
41088         other bits would be incorrect if they granted permission before
41089         the chown.
41090
41091         Fix porting problem for iswctype reported by Georg Schwarz in:
41092         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41093         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41094         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41095         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41096         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41097
41098 2006-12-03  Jim Meyering  <jim@meyering.net>
41099
41100         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41101         p->fts_statp may not yet be defined.
41102         (fts_read): Instead, set it in the caller, once p->fts_statp is
41103         sure to be defined, and corresponds to a top-level directory.
41104         This bug made du -x fail.  Here's the coreutils test case:
41105         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41106         Reported by Mike Frysinger.
41107
41108 2006-12-01  Jim Meyering  <jim@meyering.net>
41109
41110         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41111         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41112         Reported by Simon Josefsson.
41113
41114 2006-11-30  Jim Meyering  <jim@meyering.net>
41115
41116         * m4/warning.m4: Use the all-permissive copyright notice
41117         recommended by RMS (rather than LGPL).
41118         * m4/vararrays.m4: Likewise.
41119         * m4/flexmember.m4: Likewise.
41120
41121 2006-11-29  Bruno Haible  <bruno@clisp.org>
41122
41123         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41124         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41125         using +=.
41126         Reported by Simon Josefsson <simon@josefsson.org>.
41127
41128 2006-11-28  James Youngman <jay@gnu.org>
41129
41130         * README: Advise users that they might find the bug-gnulib@gnu.org
41131         and autotools-announce@gnu.org mailing lists useful.
41132
41133 2006-11-28  Bruno Haible  <bruno@clisp.org>
41134
41135         * m4/ptrdiff_max.m4: Remove file.
41136
41137 2006-11-21  Bruno Haible  <bruno@clisp.org>
41138
41139         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41140         _AC_COMPUTE_INT.
41141         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41142         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41143         _AC_COMPUTE_INT.
41144         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41145         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41146         _AC_COMPUTE_INT.
41147         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41148
41149 2006-11-28  Jim Meyering  <jim@meyering.net>
41150
41151         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41152         warning from "gcc -Wshadow" about shadowing the builtin.
41153
41154 2006-11-27  Bruno Haible  <bruno@clisp.org>
41155
41156         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41157         _AC_COMPUTE_INT.
41158         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41159
41160 2006-11-27  Bruno Haible  <bruno@clisp.org>
41161             Paul Eggert  <eggert@cs.ucla.edu>
41162
41163         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41164
41165 2006-11-26  Bruno Haible  <bruno@clisp.org>
41166
41167         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41168         noinst_LTLIBRARIES.
41169
41170 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41171             Bruno Haible  <bruno@clisp.org>
41172
41173         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41174         if compiling with "gcc -ansi".
41175
41176 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41177
41178         Fix some incompatibilities with gcc -ansi -pedantic.
41179         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41180         if compiling pedantically with GCC, unless it's C99 or later.
41181         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41182         it mishandles gcc -ansi -pedantic as well.
41183         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41184         if gcc -pedantic.
41185         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41186         initializers for struct if -pedantic, unless it's C99 or later.
41187
41188 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41189
41190         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41191         Don't close an fd more than once. Identical atimes indicate
41192         success, not failure.
41193
41194 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41195
41196         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41197
41198 2006-11-23  Jim Meyering  <jim@meyering.net>
41199
41200         * build-aux/announce-gen: New file.  From coreutils.
41201
41202 2006-11-22  Jim Meyering  <jim@meyering.net>
41203
41204         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41205         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41206         (fts_read): Use a temporary to narrow the overused st_size member
41207         before using it in a switch statement.  Reported by Matthew Woehlke.
41208
41209         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41210         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41211
41212 2006-11-20  Bruno Haible  <bruno@clisp.org>
41213
41214         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41215         changequote instead of pairs of brackets.
41216         Reported by Andreas Schwab <schwab@suse.de>.
41217
41218 2006-11-21  Jim Meyering  <jim@meyering.net>
41219
41220         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41221         so as to remain compatible with older compilers.
41222         Patch from Michael Deutschmann.
41223
41224 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41225
41226         * MODULES.html.sh (File system functions): Add openat.
41227
41228         * lib/openat.h (rpl_fstatat): New macro, if
41229         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41230         (fstatat): Define to rpl_fstatat under the same conditions,
41231         unless COMPILING_FSTATAT.
41232         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41233         seems to have the bug.
41234         * lib/fstatat.c: New file.
41235         * modules/openat (Files): Add it.
41236
41237 2006-11-20  Bruno Haible  <bruno@clisp.org>
41238
41239         * Makefile: New file.
41240
41241 2006-11-20  Jim Meyering  <jim@meyering.net>
41242
41243         The beginnings of syntax-related checks for gnulib.
41244         * lib/Makefile: New file.
41245         * lib/t-idcache: New script.  Ensure that the two halves of
41246         idcache.c stay in sync.
41247
41248         * lib/idcache.c: Adjust comments in user- and group- portions to
41249         be more accurate, and to be consistent with one another.
41250
41251 2006-11-20  Jim Meyering  <jim@meyering.net>
41252
41253         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41254         continue using the flexible array member (thus, this module performs
41255         half as many malloc calls), with the addition that...
41256         (getgroup, getuser): Consistently record a non-match via an empty
41257         "name" string, and map an empty string match to a NULL return value.
41258         * modules/idcache (Depends-on): Re-add flexmember.
41259
41260         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41261         (getuidbyname, getgroup, getgidbyname): Likewise.
41262
41263         Use cleaner syntax: NULL rather than 0.
41264         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41265
41266 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41267
41268         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41269         It mishandled the case where the group was missing.
41270         Problem reported by Greg Schafer.
41271         * modules/idcache: Likewise.
41272
41273 2006-11-18  Jim Meyering  <jim@meyering.net>
41274
41275         * check-module (%exempt_header): Add exception for some
41276         conditionally-included headers.
41277
41278         * modules/i-ring (Depends-on): Add verify.
41279         (License): Change to LGPL.
41280
41281 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41284         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41285         and inttostr.h.  Use snprintf rather than uinttostr, so that
41286         LGPLed code doesn't depend on GPLed.
41287
41288 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41289
41290         * modules/inline (License): Change from GPL to LGPL.
41291
41292 2006-11-17  Jim Meyering  <jim@meyering.net>
41293
41294         * modules/d-type (License): Switch to LGPL.
41295
41296 2006-11-15  Bruno Haible  <bruno@clisp.org>
41297
41298         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41299
41300 2006-11-15  Eric Blake  <ebb9@byu.net>
41301
41302         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41303         the module dependency.
41304
41305 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41306             Bruno Haible  <bruno@clisp.org>
41307
41308         * gnulib-tool (func_create_testdir): Add license consistency check.
41309
41310 2006-11-15  Eric Blake  <ebb9@byu.net>
41311
41312         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41313         random "(cached)" in configure output.
41314
41315 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41316
41317         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41318         test for conforming inttypes.h is both announced and cached.
41319
41320         * MODULES.html.sh (seen_modules, seen_files): New variables.
41321         (func_module): Rewrite to use a few less gnulib-tool and sed
41322         invocations.  Avoid a couple of quadratic algorithms for ...
41323         (missed_modules, missed_files): ... these, with ...
41324         (func_append, func_tmpdir): ... these new functions, from
41325         gnulib-tool.  Analogously, install traps for cleanup.
41326
41327         * tests/test-gc.c (main): Remove unused variables.
41328         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41329
41330 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41331
41332         * modules/inttostr (License): Change to LGPL.
41333
41334 2006-11-14  Eric Blake  <ebb9@byu.net>
41335
41336         * modules/tempname (License): Change to LGPL.
41337
41338 2006-11-14  Eric Blake  <ebb9@byu.net>
41339
41340         * doc/functions.texi (Function Portability): *printf functions on
41341         Cygwin now understand all POSIX size specifiers.
41342
41343 2006-11-14  Bruno Haible  <bruno@clisp.org>
41344
41345         * modules/c-ctype (License): Change to LGPL.
41346
41347 2006-11-12  Bruno Haible  <bruno@clisp.org>
41348
41349         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41350         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41351         for GNOME libraries, for which the include files are installed in
41352         subdirectories of $prefix/include.
41353
41354 2006-11-12  Bruno Haible  <bruno@clisp.org>
41355
41356         * m4/lib-link.m4: Require at least autoconf-2.54.
41357         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41358         name to underscores for the --with option.
41359
41360 2006-11-13  Bruno Haible  <bruno@clisp.org>
41361
41362         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41363         the tests directory.
41364         Reported by Ralf Wildenhues.
41365
41366 2006-11-13  Bruno Haible  <bruno@clisp.org>
41367
41368         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41369         (func_emit_initmacro_end): Undo the override here.
41370         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41371         Works around the famous automake error in coreutils.
41372
41373 2006-11-13  Eric Blake  <ebb9@byu.net>
41374
41375         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41376         element, not its node.
41377
41378 2006-11-12  Bruno Haible  <bruno@clisp.org>
41379
41380         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41381         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41382
41383 2006-11-12  Bruno Haible  <bruno@clisp.org>
41384
41385         * gnulib-tool: New option --local-symlink.
41386         (func_usage): Document it.
41387         (lsymbolic): New variable.
41388         (func_import, func_create_testdir): If --symlink was not specified,
41389         test whether --local-symlink was specified and the file comes from
41390         the local_gnulib_dir.
41391
41392 2006-11-12  Bruno Haible  <bruno@clisp.org>
41393
41394         * gnulib-tool (func_ln): New function.
41395         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41396
41397 2006-11-12  Bruno Haible  <bruno@clisp.org>
41398
41399         Finish support for source files in subdirectories.
41400         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41401         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41402         AUTOMAKE_OPTIONS.
41403         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41404
41405 2006-11-12  Bruno Haible  <bruno@clisp.org>
41406
41407         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41408         EXTRA_lib_SOURCES augmentation.
41409         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41410
41411 2006-11-12  Jim Meyering  <jim@meyering.net>
41412
41413         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41414         file descriptors.  This also averts a failure on systems with
41415         native openat support when a traversed directory lacks "x" access.
41416         * lib/fts_.h: Include "i-ring.h"
41417         (struct FTS) [fts_fd_ring]: New member.
41418         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41419         (FCHDIR): Add parentheses.
41420         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41421         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41422         When descending, rather than simply closing the previous
41423         fts_cwd_fd value, push that file descriptor onto the ring.
41424         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41425         (fts_open): Initialize the new fd_ring member.
41426         (fts_close): Clear the ring.
41427         (fts_safe_changedir): When possible, use our new fd_ring to skip
41428         the diropen and fstat and dev/ino comparison that would normally
41429         accompany a virtual `chdir ("..")'.
41430
41431         * modules/fts (Depends-on): Add i-ring.
41432         * modules/i-ring: New module.
41433         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41434         * m4/i-ring.m4: New file.
41435
41436 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41437
41438         * gnulib-tool (func_create_testdir): Fix replacement of
41439         `build-aux' in configure.ac.  Run autotools in gltests
41440         subdirectory.
41441         (func_create_testdir, func_create_megatestdir, test): There is
41442         no need for '--force' in most autotool invocations in a new
41443         tree.  Actually fail the whole test if any of the tools, or the
41444         configure or make stages fail.
41445
41446         Sync from Automake.
41447         * build-aux/gnupload: Revert last change.  Add pointer to upload
41448         instructions of the GNU Maintenance Instructions.
41449         Suggestion by Karl Berry.
41450
41451 2006-11-10  Jim Meyering  <jim@meyering.net>
41452
41453         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41454
41455 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41456
41457         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41458         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41459         (bind_textdomain_codeset) [! ENABLE_NLS]:
41460         Evaluate all the arguments.  That way, callers get compatible behavior
41461         if the arguments have side effects.  Also, it avoids some GCC
41462         diagnostics in some cases; Joel E. Denny reported problems when Bison
41463         was configured with --enable-gcc-warnigs.
41464
41465 2006-11-10  Jim Meyering  <jim@meyering.net>
41466
41467         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41468         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41469         account.
41470
41471 2006-11-10  Jim Meyering  <jim@meyering.net>
41472
41473         * modules/inline: New file/module.
41474         * modules/xalloc (Files): Remove m4/inline.m4.
41475         (Depends-on): Add inline, instead.
41476         * modules/oset: Likewise.
41477         * modules/list: Likewise.
41478
41479 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41480
41481         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41482         Problem reported by Matthew Woehlke.
41483
41484 2006-11-09  Bruno Haible  <bruno@clisp.org>
41485
41486         * lib/tempname.c (gen_tempname): Remove variant that invokes
41487         __gen_tempname.
41488         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41489         __gen_tempname.
41490
41491 2006-11-08  Bruno Haible  <bruno@clisp.org>
41492
41493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41494         to 'yes' instead of 'cross-compiling'.
41495
41496 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41497
41498         * lib/quotearg.h (quotearg_free): New decl.
41499         * lib/quotearg.c (quotearg_free): New function.
41500         (slot0, nslots, slotvec0, slotvec):
41501         Now file-scope so that quotearg_free can get at them.
41502
41503 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41504
41505         Sync from Automake.
41506         * build-aux/gnupload: Add missing 'gnu' to example URL.
41507         Report by Karl Berry.
41508
41509 2006-11-08  Bruno Haible  <bruno@clisp.org>
41510
41511         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41512         Suggested by Paul Eggert.
41513
41514 2006-11-08  Jim Meyering  <jim@meyering.net>
41515
41516         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41517         It's already included if !_LIBC.
41518         (fts_safe_changedir): Add a comment.
41519
41520 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41521
41522         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41523         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41524         Matthew Woehlke.
41525
41526         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41527         definitions up, to avoid colliding with change below.
41528         (static_inline) [HAVE_INLINE]: New macro.
41529         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41530         Provide extern decls when !HAVE_INLINE.  Do not define unless
41531         static_inline is defined, either by us or by xmalloc.c.  Use
41532         static_inline rather than static inline.
41533         (XCALLOC): Optimize sizeof(T) = 1 case.
41534         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41535
41536 2006-11-07  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41539         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41540         AC_C_INLINE.
41541         * modules/xalloc (Files): Add m4/inline.m4.
41542
41543 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41544
41545         * README: Fix typo.
41546         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41547         (Miscellanous Notes): ...from this.
41548
41549 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41550
41551         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41552         Mention that offsetof should be used instead of sizeof.
41553         From Bruno Haible.
41554
41555 2006-11-07  Bruno Haible  <bruno@clisp.org>
41556
41557         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41558
41559 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41560
41561         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41562         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41563         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41564         (gl_tree_add_before, gl_tree_add_after):
41565         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41566         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41567         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41568         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41569         (gl_linked_add_after, gl_linked_add_at): Likewise.
41570         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41571         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41572         (gl_tree_add_before, gl_tree_add_after): Likewise.
41573         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41574         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41575         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41576
41577 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41578
41579         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41580
41581 2006-11-06  Bruno Haible  <bruno@clisp.org>
41582
41583         * m4/inline.m4: New file.
41584         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41585         * modules/list (Files): Add m4/inline.m4.
41586         * modules/oset (Files): Likewise.
41587
41588 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41589
41590         * lib/idcache.c: Include <stddef.h>, for offsetof.
41591         (struct userid.name): Change from char * to a flexible array member.
41592         All uses changed.
41593         * modules/idcache (Depends-on): Add flexmember.
41594
41595         * MODULES.html.sh (Core language properties): New module flexmember.
41596         * modules/flexmember, m4/flexmember.m4: New files.
41597
41598         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41599         inline functions that are identical with the old xnmalloc_inline,
41600         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41601         that we can avoid some unnecessary integer multiplications and
41602         divisions in the common case where the element size is known at
41603         compile time.
41604         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41605         needed.
41606         (xnboundedmalloc): Remove.
41607         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41608         arguments, for consistency with rest of this header.
41609         (xcharalloc): Rewrite using XNMALLOC.
41610         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41611         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41612         versions have been moved to lib/xalloc.h and renamed to be the
41613         non-*_inline versions.
41614         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41615         and xnrealloc functions, since those functions are now inline and
41616         now call us.
41617         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41618         renaming described above.
41619         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41620         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41621         captures the dependency in AC_C_INLINE.
41622
41623         New module canonicalize-lgpl, proposed by Charles Wilson in
41624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41625         with a few small changes afterwards.
41626         * MODULES.html.sh (File system functions): New module
41627         canonicalize-lgpl.
41628         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41629         and canonicalize_file_name.
41630         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41631         * modules/canonicalize-lgpl: New files.
41632
41633 2006-11-05  Bruno Haible  <bruno@clisp.org>
41634
41635         * gnulib-tool (func_import, func_create_testdir): Create directories
41636         also for files in subdirectories of lib/.
41637
41638 2006-11-05  Bruno Haible  <bruno@clisp.org>
41639
41640         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41641         ANSI C compliant.
41642
41643 2006-11-03  Bruno Haible  <bruno@clisp.org>
41644
41645         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41646         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41647         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41648         (xnboundedmalloc): New inline function.
41649         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41650         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41651         xmalloc.
41652         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41653         xmalloc.
41654         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41655         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41656         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41657         xmalloc.
41658         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41659         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41660         xmalloc.
41661         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41662         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41663         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41664         xmalloc.
41665         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41666         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41667         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41668         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41669         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41670         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41671         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41672
41673 2006-11-03  Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/c-ctype.h [C++]: Define functions without name mangling.
41676         * lib/fwriteerror.h [C++]: Likewise.
41677         * lib/gcd.h [C++]: Likewise.
41678         * lib/linebreak.h [C++]: Likewise.
41679
41680 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41681
41682         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41683         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41684         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41685         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41686         Check for functions and headers just once.
41687         Check for declaration of canonicalize_file_name.
41688         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41689
41690 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41691
41692         * gnulib-tool (func_import): Fix typo in actioncmd.
41693
41694 2006-11-02  Bruno Haible  <bruno@clisp.org>
41695
41696         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41697         newline sequence in the Makefile.am snippet as a space, like "make"
41698         does.
41699         Reported by Roger Persson <perrog@gmail.com>.
41700
41701 2006-11-01  Bruno Haible  <bruno@clisp.org>
41702
41703         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41704         already declared in <string.h>.
41705         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41706
41707 2006-11-01  Bruno Haible  <bruno@clisp.org>
41708
41709         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41710         * lib/strcase.h: Include <string.h>.
41711         (strcasecmp): Define to rpl_strcasecmp here.
41712
41713 2006-11-01  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41716
41717 2006-11-01  Eric Blake  <ebb9@byu.net>
41718
41719         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41720
41721         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41722
41723 2006-10-29  Bruno Haible  <bruno@clisp.org>
41724
41725         Make it compile in C++ mode.
41726         * lib/full-write.c (full_rw): Add a cast.
41727
41728 2006-11-01  Bruno Haible  <bruno@clisp.org>
41729
41730         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41731         be POSIX compliant.
41732         Reported by Roger Persson <perrog@gmail.com>.
41733
41734 2006-11-01  Eric Blake  <ebb9@byu.net>
41735
41736         * lib/getopt_.h: Fix comments.
41737
41738 2006-10-31  Eric Blake  <ebb9@byu.net>
41739
41740         * modules/tmpdir (Depends-on): Add sys_stat.
41741         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41742         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41743         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41744         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41745         tempname.
41746
41747 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41748
41749         Avoid some C++ diagnostics reported by Bruno Haible.
41750         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41751         xmalloc.
41752         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41753         (struct slotvec): Move to top level.
41754         (quotearg_n_options): Rewrite to avoid xmalloc.
41755         * lib/xalloc.h (xcharalloc): New function.
41756         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41757         [defined __cplusplus]: Add function template that provides result
41758         type propagation.  This part of the change is from Bruno Haible.
41759
41760 2006-10-29  Bruno Haible  <bruno@clisp.org>
41761
41762         Make it compile in C++ mode.
41763         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41764         * lib/strnlen1.c (strnlen1): Cast memchr result.
41765         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41766         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41767         (create_temp_dir): Rename local variable 'template'.
41768         (compile_csharp_using_sscli): Add cast.
41769         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41770         * lib/findprog.c (find_in_path): Likewise.
41771         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41772         * lib/wait-process.c (register_slave_subprocess): Likewise.
41773
41774 2006-10-22  Bruno Haible  <bruno@clisp.org>
41775
41776         * modules/tsearch: New file.
41777         * lib/tsearch.h: New file.
41778         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41779         * m4/tsearch.m4: New file.
41780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41781
41782 2006-10-29  Eric Blake  <ebb9@byu.net>
41783
41784         * lib/arcfour.c: Assume config.h.
41785         * lib/arctwo.c: Likewise.
41786         * lib/base64.c: Likewise.
41787         * lib/check-version.c: Likewise.
41788         * lib/crc.c: Likewise.
41789         * lib/des.c: Likewise.
41790         * lib/gc-gnulib.c: Likewise.
41791         * lib/gc-libgcrypt.c: Likewise.
41792         * lib/gc-pbkdf2-sha1.c: Likewise.
41793         * lib/getaddrinfo.c: Likewise.
41794         * lib/getdelim.c: Likewise.
41795         * lib/getline.c: Likewise.
41796         * lib/hmac-md5.c: Likewise.
41797         * lib/hmac-sha1.c: Likewise.
41798         * lib/iconvme.c: Likewise.
41799         * lib/md2.c: Likewise.
41800         * lib/md4.c: Likewise.
41801         * lib/memxor.c: Likewise.
41802         * lib/read-file.c: Likewise.
41803         * lib/readline.c: Likewise.
41804         * lib/rijndael-alg-fst.c: Likewise.
41805         * lib/rijndael-api-fst.c: Likewise.
41806         * lib/xgetdomainname.c: Likewise.
41807
41808 2006-10-28  Eric Blake  <ebb9@byu.net>
41809
41810         * lib/xstrndup.c: Assume config.h.
41811
41812 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41813
41814         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41815         stat-macros.h is now for our own macros, whereas stat_h is for
41816         macros in the <sys/stat.h> name space.
41817         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41818         (STAT_MACROS_H): Remove.
41819         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41820         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41821         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41822         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41823         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41824         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41825         Move these macros to ...
41826         * lib/stat_.h: here.  Don't include stat-macros.h.
41827         * lib/canonicalize.c: Don't include stat-macros.h.
41828         * lib/chown.c: Likewise.
41829         * lib/euidaccess.c: Likewise.
41830         * lib/file-type.c: Likewise.
41831         * lib/filemode.c: Likewise.
41832         * lib/glob.c: Likewise.
41833         * lib/isapipe.c: Likewise.
41834         * lib/lchown.c: Likewise.
41835         * lib/lstat.c: Likewise.
41836         * lib/mkdir-p.c: Likewise.
41837         * lib/rmdir.c: Likewise.
41838         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41839         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41840         unless mkdir isn't declared, to speed up 'configure'.
41841         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41842         would define all the S_* symbols.
41843         * modules/canonicalize (Depends-on):
41844         Depend on sys_stat, not stat-macros.
41845         * modules/chown: Likewise.
41846         * modules/euidaccess: Likewise.
41847         * modules/filemode: Likewise.
41848         * modules/file-type: Likewise.
41849         * modules/glob: Likewise.
41850         * modules/isapipe: Likewise.
41851         * modules/lchown: Likewise.
41852         * modules/lstat: Likewise.
41853         * modules/mkancesdirs: Likewise.
41854         * modules/rmdir: Likewise.
41855         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41856         * modules/modechange: Likewise.
41857         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41858         (configure.ac): Remove gl_STAT_MACROS.
41859         * modules/sys_stat (Depends-on): Remove stat-macros.
41860
41861 2006-10-27  Bruno Haible  <bruno@clisp.org>
41862
41863         * m4/signed.m4: Remove file.
41864         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41865         invocation.
41866         * modules/vasnprintf (Files): Remove m4/signed.m4.
41867
41868 2006-10-27  Bruno Haible  <bruno@clisp.org>
41869
41870         Update to GNU gettext 0.16.
41871         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41872         m4/inttypes-h.m4, m4/signed.m4.
41873         * m4/gettext.m4: Update to GNU gettext 0.16.
41874         * m4/intl.m4: New file, from GNU gettext.
41875         * m4/intldir.m4: New file, from GNU gettext.
41876         * config/srclist.txt: Update
41877
41878 2006-10-27  Eric Blake  <ebb9@byu.net>
41879
41880         * MODULES.html.sh: Document tempname.
41881         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41882         dependencies.
41883         (Files): Move lib/tempname.c...
41884         * modules/tempname: ...to this new module.
41885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41886         (gl_PREREQ_TEMPNAME): Move...
41887         * m4/tempname.m4: ...to this new file.
41888         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41889         * modules/sys_stat (Depends-on): Add stat-macros.
41890         * lib/stat_.h (includes): Pick up stat macros.
41891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41892         if stat macros are broken.
41893         * lib/tempname.c (includes): No need to include "stat-macros.h".
41894         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41895         (direxists, __path_search) [!_LIBC]: Don't compile these in
41896         gnulib; the tmpdir module covers that.
41897         * lib/tempname.h: New file.
41898
41899 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41900
41901         * COPYING: Explain how gnulib-tool converts licence headers.
41902         Almost all wording by Eric Blake.
41903
41904 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41905
41906         * lib/mbchar.h (is_basic_table): Make read-only.
41907         * lib/mbchar.c (is_basic_table): Likewise.
41908         Reported by John Darrington.
41909
41910 2006-10-25  Bruno Haible  <bruno@clisp.org>
41911
41912         * lib/progname.h (set_program_name): Undefine before defining.
41913
41914 2006-10-25  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41917         false for non-gcc C++ compilers.
41918         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41919
41920 2006-10-24  Bruno Haible  <bruno@clisp.org>
41921
41922         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41923         iconv implementations like Irix iconv.
41924
41925 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41926
41927         * modules/vararrays: New file.
41928         * m4/vararrays.m4: New file, taken from diffutils.
41929         * MODULES.html.sh: New module vararrays.
41930
41931 2006-10-24  Karl Berry  <karl@gnu.org>
41932
41933         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41934         Don't call GNU Unix.
41935
41936 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41937
41938         * users.txt: Add Libtool.
41939
41940         Sync from Libtool:
41941
41942         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41943
41944         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41945         to gnulib's policy of including config.h unconditionally.
41946
41947 2006-10-24  Bruno Haible  <bruno@clisp.org>
41948
41949         * modules/wcwidth (Files): Add m4/wint_t.m4.
41950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41951         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41952
41953 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41954
41955         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41956         to pacify GCC with some -W flags enabled.  Problem reported by
41957         Bruno Haible.
41958
41959 2006-10-24  Jim Meyering  <jim@meyering.net>
41960
41961         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41962         Reported by Karl Berry.
41963
41964 2006-10-23  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41967
41968 2006-10-24  Bruno Haible  <bruno@clisp.org>
41969
41970         * lib/gl_list.h: Use C comment style, not C++ comment style.
41971
41972 2006-10-23  Eric Blake  <ebb9@byu.net>
41973
41974         * lib/getaddrinfo.c (includes): Add missing include.
41975
41976 2006-10-23  Bruno Haible  <bruno@clisp.org>
41977             Paul Eggert  <eggert@cs.ucla.edu>
41978
41979         Ability to rename obstack_free.
41980         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41981         obstack_free.
41982         (obstack_free): Invoke the __obstack_free macro.
41983         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41984
41985 2006-10-23  Bruno Haible  <bruno@clisp.org>
41986             Paul Eggert  <eggert@cs.ucla.edu>
41987
41988         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41989         __argc, __argv from the declaration. (They are defined as macros on
41990         mingw.)
41991
41992 2006-10-22  Bruno Haible  <bruno@clisp.org>
41993
41994         * doc/gnulib-intro.texi: New file.
41995         * doc/gnulib.texi: Include it.
41996
41997 2006-10-21  Bruno Haible  <bruno@clisp.org>
41998
41999         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42000         "Introduction", "Miscellanous Notes", "Particular Modules".
42001
42002 2006-10-21  Bruno Haible  <bruno@clisp.org>
42003
42004         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42005         Change mostlyclean-local rule to avoid sh syntax error from bash
42006         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42007
42008 2006-10-23  Jim Meyering  <jim@meyering.net>
42009
42010         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42011         in place of snprintf.
42012
42013         * modules/inttostr (Files): Add lib/uinttostr.c.
42014         * lib/uinttostr.c (inttostr): New file/function.
42015         * lib/inttostr.h (uinttostr): Declare.
42016         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42017         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42018         Add uinttostr.
42019         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42020
42021 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42022
42023         * lib/canonicalize.c (ELOOP): Define if not already defined.
42024         Problem reported by Bruno Haible in
42025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42026
42027 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42028
42029         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42030         Problem reported by Perry Smith and Ville Laurikari.
42031
42032         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42033         uses.
42034
42035 2006-10-19  Bruno Haible  <bruno@clisp.org>
42036
42037         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42038         for mingw.
42039
42040 2006-10-19  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42043         Needed for mingw.
42044
42045 2006-10-19  Bruno Haible  <bruno@clisp.org>
42046
42047         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42048
42049 2006-10-19  Bruno Haible  <bruno@clisp.org>
42050
42051         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42052         it.
42053
42054 2006-10-19  Bruno Haible  <bruno@clisp.org>
42055
42056         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42057         invocation.
42058
42059 2006-10-19  Bruno Haible  <bruno@clisp.org>
42060
42061         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42062         mountlist by default.
42063
42064 2006-10-16  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/c-strstr.c: Include c-strstr.h.
42067
42068 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42069
42070         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42071         in a slash.
42072
42073 2006-10-18  Bruno Haible  <bruno@clisp.org>
42074
42075         * lib/lock.h [C++]: Wrap definitions in extern "C".
42076
42077 2006-10-18  Bruno Haible  <bruno@clisp.org>
42078
42079         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42080         gl_LIBOBJS list.
42081
42082 2006-10-18  Bruno Haible  <bruno@clisp.org>
42083
42084         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42085
42086 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42087
42088         * lib/xstrtol.h: Include gettext.h.
42089         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42090         Problem reported by Eric Blake.
42091         * modules/xstrtol (Depends-on): Add gettext-h.
42092
42093 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42094
42095         * lib/strftime.c (advance): New macro.
42096         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42097         incomplete type, so you can't add 0 to it.  Problem and patch
42098         reported by Eelco Dolstra for dietlibc.
42099
42100 2006-10-18  Jim Meyering  <jim@meyering.net>
42101
42102         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42103         type for a local, and rename it: s/up/user_proc/.
42104
42105 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42106
42107         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42108         READ_UTMP_USER_PROCESS.
42109         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42110
42111 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42112
42113         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42114         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42115
42116 2006-10-17  Eric Blake  <ebb9@byu.net>
42117
42118         * lib/sigprocmask.c (sigprocmask): Fix typo.
42119
42120         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42121
42122         * modules/clean-temp (Makefile.am): Don't add to make output...
42123         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42124         config.h.
42125
42126 2006-10-17  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42129         differently if DEFAULT_TEXT_DOMAIN is set.
42130
42131 2006-10-16  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/clean-temp.c: Include fwriteerror.h.
42134
42135 2006-10-16  Bruno Haible  <bruno@clisp.org>
42136
42137         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42138
42139 2006-10-16  Bruno Haible  <bruno@clisp.org>
42140
42141         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42142         * lib/sigprocmask.h: Include <sys/types.h>.
42143         (sigset_t): Use the system's definition if present.
42144
42145 2006-10-17  Eric Blake  <ebb9@byu.net>
42146
42147         * lib/xvasprintf.c (includes): Assume config.h.
42148         * lib/xasprintf.c (includes): Likewise.
42149
42150 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42151
42152         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42153         at least as wide as intmax_t.
42154
42155 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42156
42157         (Imported from Automake.)
42158         * build-aux/gnupload: Update to version 1.1 of directive file.
42159
42160 2006-10-16  Eric Blake  <ebb9@byu.net>
42161
42162         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42163         match Automake 1.10a.
42164
42165 2006-10-14  Bruno Haible  <bruno@clisp.org>
42166
42167         * modules/sigprocmask: New file.
42168         * lib/sigprocmask.h: New file.
42169         * lib/sigprocmask.c: New file.
42170         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42171         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42172         request sigprocmask.o.
42173         (gl_PREREQ_SIGPROCMASK): New macro.
42174         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42175         (Depends-on): Add sigprocmask.
42176         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42177         gt_SIGNALBLOCKING. Test for 'raise' only once.
42178         * lib/fatal-signal.c: Include sigprocmask.h.
42179         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42180         unblock_fatal_signals): Define always.
42181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42182         sigprocmask.
42183
42184 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42185
42186         Sync from Automake.
42187         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42188         which incorrectly sets the mode of an existing destination
42189         directory.  In some cases the unpatched install-sh could do the
42190         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42191         system.  We hope this is rare in practice, but it's clearly worth
42192         fixing.  Problem reported by Alex Unleashed in
42193         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42194         Also, don't bother to check for -m bugs unless we're using -m;
42195         suggested by Stepan Kasal.
42196
42197 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42198
42199         Sync from Automake.
42200         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42201         `-c' flag, so they appear at the same position as in %FASTDEP%
42202         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42203         which ignores unknown options only after the first non-option.
42204         Bug report against M4 by Nelson H. F. Beebe.
42205
42206 2006-10-13  Jim Meyering  <jim@meyering.net>
42207
42208         Fix a bug in yesterday's change.
42209         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42210         p->fts_statp->st_dev would be used uninitialized.
42211         Ensures that we always call fts_stat on the very first entry.
42212         Miklos Szeredi reported that find -xdev stopped working.
42213
42214 2006-10-12  Bruno Haible  <bruno@clisp.org>
42215
42216         * gnulib-tool (func_get_automake_snippet): Append an automatically
42217         computed EXTRA_DIST augmentation.
42218         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42219         * modules/alloca-opt (Makefile.am): Likewise.
42220         * modules/allocsa (Makefile.am): Likewise.
42221         * modules/arcfour (Makefile.am): Likewise.
42222         * modules/arctwo (Makefile.am): Likewise.
42223         * modules/argmatch (Makefile.am): Likewise.
42224         * modules/argz (Makefile.am): Likewise.
42225         * modules/atexit (Makefile.am): Likewise.
42226         * modules/backupfile (Makefile.am): Likewise.
42227         * modules/byteswap (Makefile.am): Likewise.
42228         * modules/c-strtod (Makefile.am): Likewise.
42229         * modules/c-strtold (Makefile.am): Likewise.
42230         * modules/calloc (Makefile.am): Likewise.
42231         * modules/canon-host (Makefile.am): Likewise.
42232         * modules/canonicalize (Makefile.am): Likewise.
42233         * modules/chdir-long (Makefile.am): Likewise.
42234         * modules/chdir-safer (Makefile.am): Likewise.
42235         * modules/check-version (Makefile.am): Likewise.
42236         * modules/chown (Makefile.am): Likewise.
42237         * modules/cloexec (Makefile.am): Likewise.
42238         * modules/close-stream (Makefile.am): Likewise.
42239         * modules/closeout (Makefile.am): Likewise.
42240         * modules/crc (Makefile.am): Likewise.
42241         * modules/csharpexec (Makefile.am): Likewise.
42242         * modules/cycle-check (Makefile.am): Likewise.
42243         * modules/des (Makefile.am): Likewise.
42244         * modules/dev-ino (Makefile.am): Likewise.
42245         * modules/dirfd (Makefile.am): Likewise.
42246         * modules/dirname (Makefile.am): Likewise.
42247         * modules/dup2 (Makefile.am): Likewise.
42248         * modules/eealloc (Makefile.am): Likewise.
42249         * modules/error (Makefile.am): Likewise.
42250         * modules/euidaccess (Makefile.am): Likewise.
42251         * modules/exclude (Makefile.am): Likewise.
42252         * modules/exitfail (Makefile.am): Likewise.
42253         * modules/fcntl-safer (Makefile.am): Likewise.
42254         * modules/fcntl (Makefile.am): Likewise.
42255         * modules/file-type (Makefile.am): Likewise.
42256         * modules/fileblocks (Makefile.am): Likewise.
42257         * modules/filemode (Makefile.am): Likewise.
42258         * modules/filenamecat (Makefile.am): Likewise.
42259         * modules/fnmatch (Makefile.am): Likewise.
42260         * modules/fopen-safer (Makefile.am): Likewise.
42261         * modules/fpending (Makefile.am): Likewise.
42262         * modules/fprintftime (Makefile.am): Likewise.
42263         * modules/free (Makefile.am): Likewise.
42264         * modules/fsusage (Makefile.am): Likewise.
42265         * modules/ftruncate (Makefile.am): Likewise.
42266         * modules/fts (Makefile.am): Likewise.
42267         * modules/gc-arcfour (Makefile.am): Likewise.
42268         * modules/gc-des (Makefile.am): Likewise.
42269         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42270         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42271         * modules/gc-md4 (Makefile.am): Likewise.
42272         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42273         * modules/gc-sha1 (Makefile.am): Likewise.
42274         * modules/gc (Makefile.am): Likewise.
42275         * modules/getaddrinfo (Makefile.am): Likewise.
42276         * modules/getcwd (Makefile.am): Likewise.
42277         * modules/getdelim (Makefile.am): Likewise.
42278         * modules/getdomainname (Makefile.am): Likewise.
42279         * modules/getgroups (Makefile.am): Likewise.
42280         * modules/gethostname (Makefile.am): Likewise.
42281         * modules/gethrxtime (Makefile.am): Likewise.
42282         * modules/getline (Makefile.am): Likewise.
42283         * modules/getloadavg (Makefile.am): Likewise.
42284         * modules/getlogin_r (Makefile.am): Likewise.
42285         * modules/getndelim2 (Makefile.am): Likewise.
42286         * modules/getopt (Makefile.am): Likewise.
42287         * modules/getpagesize (Makefile.am): Likewise.
42288         * modules/getpass-gnu (Makefile.am): Likewise.
42289         * modules/getpass (Makefile.am): Likewise.
42290         * modules/getsubopt (Makefile.am): Likewise.
42291         * modules/gettime (Makefile.am): Likewise.
42292         * modules/gettimeofday (Makefile.am): Likewise.
42293         * modules/getugroups (Makefile.am): Likewise.
42294         * modules/getusershell (Makefile.am): Likewise.
42295         * modules/glob (Makefile.am): Likewise.
42296         * modules/group-member (Makefile.am): Likewise.
42297         * modules/hard-locale (Makefile.am): Likewise.
42298         * modules/hash (Makefile.am): Likewise.
42299         * modules/hmac-md5 (Makefile.am): Likewise.
42300         * modules/hmac-sha1 (Makefile.am): Likewise.
42301         * modules/human (Makefile.am): Likewise.
42302         * modules/idcache (Makefile.am): Likewise.
42303         * modules/imaxabs (Makefile.am): Likewise.
42304         * modules/imaxdiv (Makefile.am): Likewise.
42305         * modules/inet_ntop (Makefile.am): Likewise.
42306         * modules/inet_pton (Makefile.am): Likewise.
42307         * modules/intprops (Makefile.am): Likewise.
42308         * modules/inttostr (Makefile.am): Likewise.
42309         * modules/inttypes (Makefile.am): Likewise.
42310         * modules/isapipe (Makefile.am): Likewise.
42311         * modules/javaversion (Makefile.am): Likewise.
42312         * modules/lchmod (Makefile.am): Likewise.
42313         * modules/lchown (Makefile.am): Likewise.
42314         * modules/localcharset (Makefile.am): Likewise.
42315         * modules/long-options (Makefile.am): Likewise.
42316         * modules/lstat (Makefile.am): Likewise.
42317         * modules/malloc (Makefile.am): Likewise.
42318         * modules/mathl (Makefile.am): Likewise.
42319         * modules/mbchar (Makefile.am): Likewise.
42320         * modules/md2 (Makefile.am): Likewise.
42321         * modules/md4 (Makefile.am): Likewise.
42322         * modules/md5 (Makefile.am): Likewise.
42323         * modules/memcasecmp (Makefile.am): Likewise.
42324         * modules/memchr (Makefile.am): Likewise.
42325         * modules/memcmp (Makefile.am): Likewise.
42326         * modules/memcoll (Makefile.am): Likewise.
42327         * modules/memcpy (Makefile.am): Likewise.
42328         * modules/memmem (Makefile.am): Likewise.
42329         * modules/memmove (Makefile.am): Likewise.
42330         * modules/mempcpy (Makefile.am): Likewise.
42331         * modules/memrchr (Makefile.am): Likewise.
42332         * modules/memset (Makefile.am): Likewise.
42333         * modules/memxor (Makefile.am): Likewise.
42334         * modules/mkancesdirs (Makefile.am): Likewise.
42335         * modules/mkdir-p (Makefile.am): Likewise.
42336         * modules/mkdir (Makefile.am): Likewise.
42337         * modules/mkdtemp (Makefile.am): Likewise.
42338         * modules/mkstemp (Makefile.am): Likewise.
42339         * modules/mktime (Makefile.am): Likewise.
42340         * modules/modechange (Makefile.am): Likewise.
42341         * modules/mountlist (Makefile.am): Likewise.
42342         * modules/nanosleep (Makefile.am): Likewise.
42343         * modules/obstack (Makefile.am): Likewise.
42344         * modules/openat (Makefile.am): Likewise.
42345         * modules/pagealign_alloc (Makefile.am): Likewise.
42346         * modules/pathmax (Makefile.am): Likewise.
42347         * modules/physmem (Makefile.am): Likewise.
42348         * modules/poll (Makefile.am): Likewise.
42349         * modules/posixtm (Makefile.am): Likewise.
42350         * modules/posixver (Makefile.am): Likewise.
42351         * modules/putenv (Makefile.am): Likewise.
42352         * modules/quote (Makefile.am): Likewise.
42353         * modules/quotearg (Makefile.am): Likewise.
42354         * modules/raise (Makefile.am): Likewise.
42355         * modules/read-file (Makefile.am): Likewise.
42356         * modules/readline (Makefile.am): Likewise.
42357         * modules/readlink (Makefile.am): Likewise.
42358         * modules/readtokens (Makefile.am): Likewise.
42359         * modules/readutmp (Makefile.am): Likewise.
42360         * modules/realloc (Makefile.am): Likewise.
42361         * modules/regex (Makefile.am): Likewise.
42362         * modules/rename-dest-slash (Makefile.am): Likewise.
42363         * modules/rename (Makefile.am): Likewise.
42364         * modules/rijndael (Makefile.am): Likewise.
42365         * modules/rmdir (Makefile.am): Likewise.
42366         * modules/rpmatch (Makefile.am): Likewise.
42367         * modules/safe-read (Makefile.am): Likewise.
42368         * modules/safe-write (Makefile.am): Likewise.
42369         * modules/same-inode (Makefile.am): Likewise.
42370         * modules/same (Makefile.am): Likewise.
42371         * modules/save-cwd (Makefile.am): Likewise.
42372         * modules/savedir (Makefile.am): Likewise.
42373         * modules/setenv (Makefile.am): Likewise.
42374         * modules/settime (Makefile.am): Likewise.
42375         * modules/sha1 (Makefile.am): Likewise.
42376         * modules/sig2str (Makefile.am): Likewise.
42377         * modules/snprintf (Makefile.am): Likewise.
42378         * modules/stat-macros (Makefile.am): Likewise.
42379         * modules/stat-time (Makefile.am): Likewise.
42380         * modules/stdbool (Makefile.am): Likewise.
42381         * modules/stdint (Makefile.am): Likewise.
42382         * modules/stdlib-safer (Makefile.am): Likewise.
42383         * modules/stpcpy (Makefile.am): Likewise.
42384         * modules/stpncpy (Makefile.am): Likewise.
42385         * modules/strcase (Makefile.am): Likewise.
42386         * modules/strcasestr (Makefile.am): Likewise.
42387         * modules/strchrnul (Makefile.am): Likewise.
42388         * modules/strcspn (Makefile.am): Likewise.
42389         * modules/strdup (Makefile.am): Likewise.
42390         * modules/strerror (Makefile.am): Likewise.
42391         * modules/strftime (Makefile.am): Likewise.
42392         * modules/strndup (Makefile.am): Likewise.
42393         * modules/strnlen (Makefile.am): Likewise.
42394         * modules/strpbrk (Makefile.am): Likewise.
42395         * modules/strsep (Makefile.am): Likewise.
42396         * modules/strstr (Makefile.am): Likewise.
42397         * modules/strtod (Makefile.am): Likewise.
42398         * modules/strtoimax (Makefile.am): Likewise.
42399         * modules/strtok_r (Makefile.am): Likewise.
42400         * modules/strtol (Makefile.am): Likewise.
42401         * modules/strtoll (Makefile.am): Likewise.
42402         * modules/strtoul (Makefile.am): Likewise.
42403         * modules/strtoull (Makefile.am): Likewise.
42404         * modules/strtoumax (Makefile.am): Likewise.
42405         * modules/strverscmp (Makefile.am): Likewise.
42406         * modules/sys_socket (Makefile.am): Likewise.
42407         * modules/sys_stat (Makefile.am): Likewise.
42408         * modules/sysexits (Makefile.am): Likewise.
42409         * modules/time_r (Makefile.am): Likewise.
42410         * modules/timegm (Makefile.am): Likewise.
42411         * modules/timespec (Makefile.am): Likewise.
42412         * modules/tmpfile-safer (Makefile.am): Likewise.
42413         * modules/trim (Makefile.am): Likewise.
42414         * modules/unistd-safer (Makefile.am): Likewise.
42415         * modules/unlinkdir (Makefile.am): Likewise.
42416         * modules/unlocked-io (Makefile.am): Likewise.
42417         * modules/userspec (Makefile.am): Likewise.
42418         * modules/utime (Makefile.am): Likewise.
42419         * modules/utimecmp (Makefile.am): Likewise.
42420         * modules/utimens (Makefile.am): Likewise.
42421         * modules/vasnprintf (Makefile.am): Likewise.
42422         * modules/vasprintf (Makefile.am): Likewise.
42423         * modules/vsnprintf (Makefile.am): Likewise.
42424         * modules/xalloc (Makefile.am): Likewise.
42425         * modules/xgetcwd (Makefile.am): Likewise.
42426         * modules/xnanosleep (Makefile.am): Likewise.
42427         * modules/xreadlink (Makefile.am): Likewise.
42428         * modules/xstrtod (Makefile.am): Likewise.
42429         * modules/xstrtol (Makefile.am): Likewise.
42430         * modules/xstrtold (Makefile.am): Likewise.
42431         * modules/yesno (Makefile.am): Likewise.
42432         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42433
42434 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42435
42436         * modules/error (Makefile.am): Distribute files through
42437         EXTRA_DIST, not lib_SOURCES.
42438
42439 2006-10-12  Eric Blake  <ebb9@byu.net>
42440
42441         * modules/error (Makefile.am): Distribute files in /lib.
42442         * modules/obstack (Makefile.am): Likewise.
42443
42444 2006-10-12  Bruno Haible  <bruno@clisp.org>
42445
42446         * modules/acl (Makefile.am): Distribute all files in lib/ through
42447         EXTRA_DIST.
42448         * modules/arcfour (Makefile.am): Likewise.
42449         * modules/arctwo (Makefile.am): Likewise.
42450         * modules/argmatch (Makefile.am): Likewise.
42451         * modules/argz (Makefile.am): Likewise.
42452         * modules/atexit (Makefile.am): Likewise.
42453         * modules/backupfile (Makefile.am): Likewise.
42454         * modules/c-strtod (Makefile.am): Likewise.
42455         * modules/c-strtold (Makefile.am): Likewise.
42456         * modules/calloc (Makefile.am): Likewise.
42457         * modules/canon-host (Makefile.am): Likewise.
42458         * modules/canonicalize (Makefile.am): Likewise.
42459         * modules/chdir-long (Makefile.am): Likewise.
42460         * modules/chdir-safer (Makefile.am): Likewise.
42461         * modules/check-version (Makefile.am): Likewise.
42462         * modules/chown (Makefile.am): Likewise.
42463         * modules/cloexec (Makefile.am): Likewise.
42464         * modules/close-stream (Makefile.am): Likewise.
42465         * modules/closeout (Makefile.am): Likewise.
42466         * modules/crc (Makefile.am): Likewise.
42467         * modules/cycle-check (Makefile.am): Likewise.
42468         * modules/des (Makefile.am): Likewise.
42469         * modules/dirfd (Makefile.am): Likewise.
42470         * modules/dirname (Makefile.am): Likewise.
42471         * modules/dup2 (Makefile.am): Likewise.
42472         * modules/euidaccess (Makefile.am): Likewise.
42473         * modules/exclude (Makefile.am): Likewise.
42474         * modules/exitfail (Makefile.am): Likewise.
42475         * modules/fcntl-safer (Makefile.am): Likewise.
42476         * modules/file-type (Makefile.am): Likewise.
42477         * modules/fileblocks (Makefile.am): Likewise.
42478         * modules/filemode (Makefile.am): Likewise.
42479         * modules/filenamecat (Makefile.am): Likewise.
42480         * modules/fnmatch (Makefile.am): Likewise.
42481         * modules/fopen-safer (Makefile.am): Likewise.
42482         * modules/fpending (Makefile.am): Likewise.
42483         * modules/fprintftime (Makefile.am): Likewise.
42484         * modules/free (Makefile.am): Likewise.
42485         * modules/fsusage (Makefile.am): Likewise.
42486         * modules/ftruncate (Makefile.am): Likewise.
42487         * modules/fts (Makefile.am): Likewise.
42488         * modules/gc (Makefile.am): Likewise.
42489         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42490         * modules/getaddrinfo (Makefile.am): Likewise.
42491         * modules/getcwd (Makefile.am): Likewise.
42492         * modules/getdelim (Makefile.am): Likewise.
42493         * modules/getdomainname (Makefile.am): Likewise.
42494         * modules/getgroups (Makefile.am): Likewise.
42495         * modules/gethostname (Makefile.am): Likewise.
42496         * modules/gethrxtime (Makefile.am): Likewise.
42497         * modules/getline (Makefile.am): Likewise.
42498         * modules/getloadavg (Makefile.am): Likewise.
42499         * modules/getlogin_r (Makefile.am): Likewise.
42500         * modules/getopt (Makefile.am): Likewise.
42501         * modules/getpass (Makefile.am): Likewise.
42502         * modules/getpass-gnu (Makefile.am): Likewise.
42503         * modules/getsubopt (Makefile.am): Likewise.
42504         * modules/gettime (Makefile.am): Likewise.
42505         * modules/gettimeofday (Makefile.am): Likewise.
42506         * modules/getugroups (Makefile.am): Likewise.
42507         * modules/getusershell (Makefile.am): Likewise.
42508         * modules/glob (Makefile.am): Likewise.
42509         * modules/group-member (Makefile.am): Likewise.
42510         * modules/hard-locale (Makefile.am): Likewise.
42511         * modules/hash (Makefile.am): Likewise.
42512         * modules/hmac-md5 (Makefile.am): Likewise.
42513         * modules/hmac-sha1 (Makefile.am): Likewise.
42514         * modules/human (Makefile.am): Likewise.
42515         * modules/idcache (Makefile.am): Likewise.
42516         * modules/imaxabs (Makefile.am): Likewise.
42517         * modules/imaxdiv (Makefile.am): Likewise.
42518         * modules/inet_ntop (Makefile.am): Likewise.
42519         * modules/inet_pton (Makefile.am): Likewise.
42520         * modules/inttostr (Makefile.am): Likewise.
42521         * modules/isapipe (Makefile.am): Likewise.
42522         * modules/lchown (Makefile.am): Likewise.
42523         * modules/long-options (Makefile.am): Likewise.
42524         * modules/lstat (Makefile.am): Likewise.
42525         * modules/malloc (Makefile.am): Likewise.
42526         * modules/mathl (Makefile.am): Likewise.
42527         * modules/mbchar (Makefile.am): Likewise.
42528         * modules/md2 (Makefile.am): Likewise.
42529         * modules/md4 (Makefile.am): Likewise.
42530         * modules/md5 (Makefile.am): Likewise.
42531         * modules/memcasecmp (Makefile.am): Likewise.
42532         * modules/memchr (Makefile.am): Likewise.
42533         * modules/memcmp (Makefile.am): Likewise.
42534         * modules/memcoll (Makefile.am): Likewise.
42535         * modules/memcpy (Makefile.am): Likewise.
42536         * modules/memmem (Makefile.am): Likewise.
42537         * modules/memmove (Makefile.am): Likewise.
42538         * modules/mempcpy (Makefile.am): Likewise.
42539         * modules/memrchr (Makefile.am): Likewise.
42540         * modules/memset (Makefile.am): Likewise.
42541         * modules/memxor (Makefile.am): Likewise.
42542         * modules/mkancesdirs (Makefile.am): Likewise.
42543         * modules/mkdir (Makefile.am): Likewise.
42544         * modules/mkdir-p (Makefile.am): Likewise.
42545         * modules/mkdtemp (Makefile.am): Likewise.
42546         * modules/mkstemp (Makefile.am): Likewise.
42547         * modules/mktime (Makefile.am): Likewise.
42548         * modules/modechange (Makefile.am): Likewise.
42549         * modules/mountlist (Makefile.am): Likewise.
42550         * modules/nanosleep (Makefile.am): Likewise.
42551         * modules/openat (Makefile.am): Likewise.
42552         * modules/pagealign_alloc (Makefile.am): Likewise.
42553         * modules/physmem (Makefile.am): Likewise.
42554         * modules/poll (Makefile.am): Likewise.
42555         * modules/posixtm (Makefile.am): Likewise.
42556         * modules/posixver (Makefile.am): Likewise.
42557         * modules/putenv (Makefile.am): Likewise.
42558         * modules/quote (Makefile.am): Likewise.
42559         * modules/quotearg (Makefile.am): Likewise.
42560         * modules/raise (Makefile.am): Likewise.
42561         * modules/read-file (Makefile.am): Likewise.
42562         * modules/readline (Makefile.am): Likewise.
42563         * modules/readlink (Makefile.am): Likewise.
42564         * modules/readtokens (Makefile.am): Likewise.
42565         * modules/readutmp (Makefile.am): Likewise.
42566         * modules/realloc (Makefile.am): Likewise.
42567         * modules/regex (Makefile.am): Likewise.
42568         * modules/rename (Makefile.am): Likewise.
42569         * modules/rename-dest-slash (Makefile.am): Likewise.
42570         * modules/rijndael (Makefile.am): Likewise.
42571         * modules/rmdir (Makefile.am): Likewise.
42572         * modules/rpmatch (Makefile.am): Likewise.
42573         * modules/safe-read (Makefile.am): Likewise.
42574         * modules/safe-write (Makefile.am): Likewise.
42575         * modules/same (Makefile.am): Likewise.
42576         * modules/save-cwd (Makefile.am): Likewise.
42577         * modules/savedir (Makefile.am): Likewise.
42578         * modules/setenv (Makefile.am): Likewise.
42579         * modules/settime (Makefile.am): Likewise.
42580         * modules/sha1 (Makefile.am): Likewise.
42581         * modules/sig2str (Makefile.am): Likewise.
42582         * modules/snprintf (Makefile.am): Likewise.
42583         * modules/stdlib-safer (Makefile.am): Likewise.
42584         * modules/stpcpy (Makefile.am): Likewise.
42585         * modules/stpncpy (Makefile.am): Likewise.
42586         * modules/strcase (Makefile.am): Likewise.
42587         * modules/strcasestr (Makefile.am): Likewise.
42588         * modules/strchrnul (Makefile.am): Likewise.
42589         * modules/strcspn (Makefile.am): Likewise.
42590         * modules/strdup (Makefile.am): Likewise.
42591         * modules/strerror (Makefile.am): Likewise.
42592         * modules/strftime (Makefile.am): Likewise.
42593         * modules/strndup (Makefile.am): Likewise.
42594         * modules/strnlen (Makefile.am): Likewise.
42595         * modules/strpbrk (Makefile.am): Likewise.
42596         * modules/strsep (Makefile.am): Likewise.
42597         * modules/strstr (Makefile.am): Likewise.
42598         * modules/strtod (Makefile.am): Likewise.
42599         * modules/strtoimax (Makefile.am): Likewise.
42600         * modules/strtok_r (Makefile.am): Likewise.
42601         * modules/strtol (Makefile.am): Likewise.
42602         * modules/strtoll (Makefile.am): Likewise.
42603         * modules/strtoul (Makefile.am): Likewise.
42604         * modules/strtoull (Makefile.am): Likewise.
42605         * modules/strtoumax (Makefile.am): Likewise.
42606         * modules/strverscmp (Makefile.am): Likewise.
42607         * modules/time_r (Makefile.am): Likewise.
42608         * modules/timegm (Makefile.am): Likewise.
42609         * modules/tmpfile-safer (Makefile.am): Likewise.
42610         * modules/unistd-safer (Makefile.am): Likewise.
42611         * modules/unlinkdir (Makefile.am): Likewise.
42612         * modules/userspec (Makefile.am): Likewise.
42613         * modules/utime (Makefile.am): Likewise.
42614         * modules/utimecmp (Makefile.am): Likewise.
42615         * modules/utimens (Makefile.am): Likewise.
42616         * modules/vasnprintf (Makefile.am): Likewise.
42617         * modules/vasprintf (Makefile.am): Likewise.
42618         * modules/vsnprintf (Makefile.am): Likewise.
42619         * modules/xalloc (Makefile.am): Likewise.
42620         * modules/xgetcwd (Makefile.am): Likewise.
42621         * modules/xnanosleep (Makefile.am): Likewise.
42622         * modules/xreadlink (Makefile.am): Likewise.
42623         * modules/xstrtod (Makefile.am): Likewise.
42624         * modules/xstrtol (Makefile.am): Likewise.
42625         * modules/xstrtold (Makefile.am): Likewise.
42626         * modules/yesno (Makefile.am): Likewise.
42627
42628 2006-10-12  Jim Meyering  <jim@meyering.net>
42629
42630         * m4/getloadavg.m4: Revert the change below.
42631
42632         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42633         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42634         fail with a symlink, which is what coreutils' ./bootstrap now
42635         creates by default.
42636
42637 2006-10-12  Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42640         mingw.
42641         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42642         MSVC and mingw explicitly.
42643
42644 2006-10-11  Simon Josefsson  <jas@extundo.com>
42645             Bruno Haible  <bruno@clisp.org>
42646
42647         Add support for multiple gnulib-tool invocations in the scope of a
42648         single configure.ac file.
42649         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42650         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42651         with the same contents as the _LIBADD variable.
42652         (func_emit_initmacro_start, func_emit_initmacro_end,
42653         func_emit_initmacro_done): New functions.
42654         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42655         gl_LIBOBJS and gl_LTLIBOBJS.
42656
42657 2006-10-11  Bruno Haible  <bruno@clisp.org>
42658
42659         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42660         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42661         autoreconf. Instead, invoke autopoint explicitly but move back the
42662         *.m4 files from gnulib.
42663
42664 2006-10-11  Bruno Haible  <bruno@clisp.org>
42665
42666         * gnulib-tool (func_usage): Make module names after --create-testdir
42667         optional.
42668         (func_create_testdir): If no module was specified, use nearly all
42669         modules.
42670
42671 2006-10-12  Jim Meyering  <jim@meyering.net>
42672
42673         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42674         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42675         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42676         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42677         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42678         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42679         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42680         (fts_set_stat_required): New function.
42681         (fts_open): Defer the calls to fts_stat, if possible or requested.
42682         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42683         into fts_stat itself.
42684         (fts_read): Perform any required (deferred) fts_stat call.
42685         (fts_build): Likewise, for the directory we're about to open and read.
42686         In the readdir loop, carefully decide whether each entry will require
42687         an eventual call to fts_stat, using dirent.d_type info if available.
42688         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42689         a command line argument into this function.  Update all callers.
42690         Map a return value of FTS_DOT to FTS_D for a command line argument.
42691         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42692         Thanks to Miklos Szeredi for his tenacity and for the initial
42693         bug report about "find" failing on a FUSE-based file system.
42694
42695         * lib/fts.c (fts_open): Use consistent indentation.
42696
42697 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42698
42699         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42700         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42701         reported by Jim Meyering.  All uses of cache variables renamed
42702         to match Autoconf's.
42703         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42704         the other one.
42705
42706         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42707         Fix misspelling in diagnostic.
42708
42709 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42710
42711         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42712         defined.  Problem reported by Matthew Woehlke.
42713
42714         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42715         Add support for Tandem NonStop R series.
42716         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42717         Use new macro.
42718
42719         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42720         (has_trailing_slash): Omit size arg; all callers changed.
42721         Omit 'inline', since it doesn't help performance and we'd
42722         need to configure it.
42723         Don't count //, ///, etc. as having a trailing slash.
42724         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42725         (rpl_rename_dest_slash): On failure, use rename's errno rather
42726         than (in some cases) an incorrect or junk errno.
42727         Simplify code by removing need to compute length; this does
42728         cause it to make two passes instead of one over the file name,
42729         but it's worth it.
42730
42731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42732         change, since Autoconf's version may no longer be appropriate now
42733         that we are using CVS Autoconf's version.  Add support for Tandem.
42734
42735 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42736             Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42739         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42740         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42741         gl_AC_TYPE_LONG_LONG.
42742
42743         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42744         instead of HAVE_LONG_LONG.
42745         * lib/printf-args.c (printf_fetchargs): Likewise.
42746         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42747         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42748         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42749         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42750         gl_AC_TYPE_LONG_LONG.
42751
42752 2006-10-11  Bruno Haible  <bruno@clisp.org>
42753
42754         * m4/longlong.m4: Add comments.
42755         * m4/ulonglong.m4: Likewise.
42756
42757 2006-10-10  Bruno Haible  <bruno@clisp.org>
42758
42759         Make it possible to #define stpcpy, strdup to aliases.
42760         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42761         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42762
42763 2006-10-10  Bruno Haible  <bruno@clisp.org>
42764
42765         Make it possible to #define gcd to an alias.
42766         * lib/gcd.c: Include config.h.
42767
42768 2006-10-10  Bruno Haible  <bruno@clisp.org>
42769
42770         Make it possible to #define c_isascii to an alias.
42771         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42772         defined. Undefine the macros before defining them, to avoid gcc
42773         warnings.
42774         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42775         define NO_C_CTYPE_MACROS early.
42776
42777 2006-10-10  Bruno Haible  <bruno@clisp.org>
42778
42779         Make it possible to #define set_program_name to an alias.
42780         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42781         ENABLE_RELOCATABLE early.
42782
42783 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42786         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42787         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42788         More generally, don't assume that 64-bit signed int is available
42789         if unsigned int is, and vice versa.
42790         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42791         unsigned symbols, not on their signed counterparts.
42792         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42793         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42794         (UINT64_C, UINTMAX_C):
42795         Likewise.
42796         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42797         unsigned counterparts.
42798         (Have_long_long, Unsigned): New macros.
42799         (Int): Renamed from INT.
42800         (strtoimax): Use the new macros.
42801         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42802         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42803         * modules/inttypes (inttypes.h): Substitute
42804         HAVE_UNSIGNED_LONG_LONG_INT.
42805         * modules/stdint (stdint.h): Likewise.
42806         (Files): Add m4/ulonglong.m4.
42807
42808 2006-10-10  Bruno Haible  <bruno@clisp.org>
42809
42810         Fix a gcc -Wshadow warning.
42811         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42812         to 'bucket'.
42813         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42814         gl_linked_indexof_from_to): Likewise.
42815         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42816         Likewise.
42817         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42818         Likewise.
42819         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42820         Reported by Eric Blake.
42821
42822 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42823
42824         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42825         for NetBSD.  Problem reported by Bruno Haible.
42826
42827 2006-10-09  Jim Meyering  <jim@meyering.net>
42828
42829         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42830         Patch from Bruno Haible.
42831
42832 2006-10-09  Jim Meyering  <jim@meyering.net>
42833
42834         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42835         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42836         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42837
42838 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42839
42840         Don't include <config.h> twice; this doesn't work in some cases,
42841         e.g., when config.h has "#define intmax_t long long int" and
42842         we include <config.h>, <inttypes.h>, <config.h> in that order.
42843         Problem reported by Matthew Woehlke in:
42844         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42845         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42846         * lib/fts-cycle.c: Don't include config.h.
42847         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42848         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42849         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42850         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42851         inttypes.h.
42852         * lib/xstrtoumax.c: Likewise.
42853         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42854         __strtol and the like, so that this module is more like its siblings.
42855         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42856         Remove; no longer needed now that we assume gnulib inttypes.h.
42857
42858 2006-10-08  Bruno Haible  <bruno@clisp.org>
42859
42860         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42861         option.
42862
42863 2006-10-07  Jim Meyering  <jim@meyering.net>
42864
42865         * modules/inttypes (inttypes.h): Revert what seems to have been
42866         an inadvertent part of today's change: use "|", not "/" in the
42867         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42868
42869 2006-10-07  Bruno Haible  <bruno@clisp.org>
42870
42871         * modules/sublist: New file.
42872
42873 2006-10-07  Bruno Haible  <bruno@clisp.org>
42874
42875         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42876         * modules/argz (argz.h): Likewise.
42877         * modules/arpa_inet (arpa/inet.h): Likewise.
42878         * modules/byteswap (byteswap.h): Likewise.
42879         * modules/configmake (configmake.h): Likewise.
42880         * modules/fcntl (fcntl.h): Likewise.
42881         * modules/fnmatch (fnmatch.h): Likewise.
42882         * modules/getopt (getopt.h): Likewise.
42883         * modules/glob (glob.h): Likewise.
42884         * modules/inttypes (inttypes.h): Likewise.
42885         * modules/netinet_in (netinet/in.h): Likewise.
42886         * modules/poll (poll.h): Likewise.
42887         * modules/stdbool (stdbool.h): Likewise.
42888         * modules/stdint (stdint.h): Likewise.
42889         * modules/sys_select (sys/select.h): Likewise.
42890         * modules/sys_socket (sys/socket.h): Likewise.
42891         * modules/sys_stat (sys/stat.h): Likewise.
42892         * modules/sysexits (sysexits.h): Likewise.
42893         * modules/unistd (unistd.h): Likewise.
42894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42895         Add a "DO NOT EDIT" comment to the generated file.
42896         (func_import): Likewise for gnulib-comp.m4.
42897
42898 2006-10-07  Bruno Haible  <bruno@clisp.org>
42899
42900         * lib/gl_sublist.h: New file.
42901         * lib/gl_sublist.c: New file.
42902
42903 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42904
42905         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42906         name (relative to the original working directory) and the file
42907         name component (relative to the temporary working directory).  All
42908         callers changed.
42909         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42910         * lib/mkdir-p.c (make_dir_parents): Likewise.
42911         * lib/mkdir-p.h (make_dir_parents): Likewise.
42912
42913 2006-10-06  Eric Blake  <ebb9@byu.net>
42914
42915         Define several macros for use by the clean-temp module.
42916         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42917         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42918         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42919
42920         * lib/clean-temp.h (close_stream_temp): New declaration.
42921         * lib/clean-temp.c (includes): Pull in headers according to what
42922         other modules are in use.
42923         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42924
42925 2006-10-06  Bruno Haible  <bruno@clisp.org>
42926
42927         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42928         instead of fopen, fwriteerror.
42929
42930 2006-10-06  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42933         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42934         int.
42935         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42936         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42937         Return an error indicator.
42938         Suggested by Eric Blake.
42939
42940 2006-10-06  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42943         Reported by Eric Blake.
42944
42945 2006-10-06  Bruno Haible  <bruno@clisp.org>
42946
42947         * modules/closeout (Description): Mention stderr too.
42948
42949 2006-10-06  Bruno Haible  <bruno@clisp.org>
42950         and Paul Eggert  <eggert@cs.ucla.edu>
42951
42952         * lib/closeout.c (close_stdout): Also close stderr.
42953         * lib/closeout.h: Update comment.
42954
42955 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42956
42957         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42958         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42959         * lib/dirchownmod.c: Include lchown.h.
42960         * lib/lchown.c: Don't include files that lchown.h now includes.
42961         Don't declare chown, since lchown.h now does that.
42962         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42963         (lchown): Define to rpl_chown if lchown is declared but
42964         does not exist.  Declare using a prototype if lchown is not
42965         declared.  Add a copyright notice.
42966         * lib/mkstemp.h: Include <unistd.h>.
42967         * lib/openat.c: Include lchown.h.
42968
42969         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42970         we now test for that separately.
42971         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42972         rather than O_NOFOLLOW, when testing whether it's possible to
42973         avoid a race condition reliably.
42974         * lib/savewd.c (savewd_chdir): Likewise.
42975
42976         Remove macros that are no longer needed now that stdint.h is
42977         reliable.
42978         * lib/fsusage.c (UINTMAX_MAX): Remove.
42979         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42980         * lib/utimecmp.c (SIZE_MAX): Remove.
42981
42982         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42983
42984         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42985         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42986         O_NOATIME works.
42987
42988 2006-10-05  Bruno Haible  <bruno@clisp.org>
42989
42990         * lib/gl_list.h (gl_sortedlist_search_from_to,
42991         gl_sortedlist_indexof_from_to): New declarations.
42992         (gl_list_implementation): New fields sortedlist_search_from_to,
42993         sortedlist_indexof_from_to.
42994         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42995         inline functions.
42996         * lib/gl_list.c (gl_sortedlist_search_from_to,
42997         gl_sortedlist_indexof_from_to): New functions.
42998         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42999         function.
43000         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43001         (gl_array_sortedlist_search_from_to): New function.
43002         (gl_array_list_implementation): Update.
43003         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43004         function.
43005         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43006         (gl_carray_sortedlist_search_from_to): New function.
43007         (gl_carray_list_implementation): Update.
43008         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43009         gl_linked_sortedlist_indexof_from_to): New functions.
43010         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43011         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43012         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43013         gl_tree_sortedlist_indexof_from_to): New functions.
43014         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43015         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43016         Update.
43017         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43018         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43019         Update.
43020
43021 2006-10-05  Bruno Haible  <bruno@clisp.org>
43022
43023         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43024         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43025         (struct gl_list_implementation): Add fields search_from_to,
43026         indexof_from_to. Remove fields search, indexof.
43027         (gl_list_search): Use the search_from_to method.
43028         (gl_list_search_from, gl_list_search_from_to): New functions.
43029         (gl_list_indexof): Use the indexof_from_to method.
43030         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43031         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43032         (gl_list_search_from, gl_list_search_from_to): New functions.
43033         (gl_list_indexof): Use the indexof_from_to method.
43034         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43035         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43036         gl_array_indexof. Add start_index, end_index arguments.
43037         (gl_array_search_from_to): Renamed from gl_array_search. Add
43038         start_index, end_index arguments.
43039         (gl_array_remove, gl_array_list_implementation): Update.
43040         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43041         gl_carray_indexof. Add start_index, end_index arguments.
43042         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43043         start_index, end_index arguments.
43044         (gl_carray_remove, gl_carray_list_implementation): Update.
43045         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43046         gl_linked_search. Add start_index, end_index arguments.
43047         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43048         start_index, end_index arguments.
43049         (gl_linked_remove): Update.
43050         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43051         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43052         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43053         field to 'size_t'.
43054         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43055         gl_tree_search. Add start_index, end_index arguments.
43056         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43057         start_index, end_index arguments.
43058         (gl_tree_remove): Update.
43059         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43060         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43061         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43062         function.
43063         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43064         gl_tree_search. Add start_index, end_index arguments.
43065         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43066         start_index, end_index arguments.
43067         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43068         Update.
43069         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43070
43071 2006-10-05  Bruno Haible  <bruno@clisp.org>
43072
43073         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43074
43075         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43076         fwriteerror_temp): New declarations.
43077         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43078         (descriptors): New variable.
43079         (cleanup): First, close the descriptors.
43080         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43081         fclose_temp, fwriteerror_temp): New functions.
43082
43083 2006-10-04  Jim Meyering  <jim@meyering.net>
43084
43085         * lib/fts.c (fts_open): Tiny comment change.
43086
43087 2006-10-04  Bruno Haible  <bruno@clisp.org>
43088
43089         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43090         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43091         gl_LOCK_BODY.
43092         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43093         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43094         gl_LOCK_EARLY_BODY.
43095         (gl_LOCK): Require gl_LOCK_BODY.
43096
43097 2006-10-04  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43100         (gl_oset_search_atleast): New declaration.
43101         (struct gl_oset_implementation): Add field 'search_atleast'.
43102         (gl_oset_search_atleast): New inline function.
43103         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43104         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43105         (gl_array_oset_implementation): Update.
43106         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43107         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43108         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43109
43110 2006-10-04  Bruno Haible  <bruno@clisp.org>
43111
43112         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43113
43114 2006-10-03  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43117         from gl_avltreehash_list_implementation.
43118
43119 2006-10-03  Bruno Haible  <bruno@clisp.org>
43120
43121         * lib/gl_oset.c (gl_oset_add): Fix return type.
43122
43123 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43124
43125         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43126
43127 2006-10-02  Eric Blake  <ebb9@byu.net>
43128
43129         * modules/strnlen (Depends-on): Add extensions.
43130
43131 2006-10-02  Eric Blake  <ebb9@byu.net>
43132
43133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43134         definition in 2.60+.
43135
43136 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43137
43138         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43139         checks.
43140
43141 2006-10-02  Bruno Haible  <bruno@clisp.org>
43142
43143         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43144         to the AUTOMAKE_OPTIONS.
43145         Reported by Jim Meyering.
43146
43147 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43148
43149         Work around bug in Solaris 10 /proc file system:
43150         /proc/self/fd/NNN/.. isn't the parent directory of
43151         the directory whose file descriptor is NNN.  This needs to
43152         be worked around at run time, not compile time, since a
43153         program might be built on Solaris 8, where things work, and
43154         run on Solaris 10.
43155         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43156         to use the following interface instead:
43157         (OPENAT_BUFFER_SIZE): New macro.
43158         (openat_proc_name): New function.
43159         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43160         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43161         Likewise.
43162         * lib/openat-proc.c: New file.
43163         * modules/openat (Files): Add lib/openat-proc.c.
43164         (Depends-on): Add same-inode, stdbool.
43165         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43166
43167 2006-09-29  Bruno Haible  <bruno@clisp.org>
43168
43169         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43170         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43171         argument. Set stdout_closed before testing for ferror, not after.
43172         (fwriteerror, fwriteerror_no_ebadf): New functions.
43173
43174 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43175
43176         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43177
43178 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43179
43180         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43181         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43182
43183 2006-09-28  Jim Meyering  <jim@meyering.net>
43184
43185         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43186         Include <unistd.h>.
43187
43188 2006-09-28  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43191         * modules/linkedhash-list (Depends-on): Likewise.
43192         * modules/rbtreehash-list (Depends-on): Likewise.
43193
43194 2006-09-28  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/strndup.h: Simplify the redefinition of strndup.
43197         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43198         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43199
43200 2006-09-28  Bruno Haible  <bruno@clisp.org>
43201
43202         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43203         * lib/gl_linkedhash_list.c: Likewise.
43204         * lib/gl_rbtreehash_list.c: Likewise.
43205
43206 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43207
43208         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43209         getaddrinfo.
43210
43211         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43212         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43213         it causes <stdio_ext.h> to cause a compile-time error.
43214         Problem reported by Nelson H. F. Beebe.
43215         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43216         of HAVE_DECL___PENDING.
43217
43218         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43220         declaration.
43221
43222 2006-09-27  Jim Meyering  <jim@meyering.net>
43223
43224         This file could end up with a definition for a function
43225         named __strndup, rather than rpl_strndup on a system with
43226         incomplete weak_alias support.
43227         * lib/strndup.c (strndup): Rename from __strndup.
43228         Remove #defines that used to map __strndup to strndup.
43229         Don't use K&R prototypes.
43230         Remove LIBC-related code, since this file is not sync'd with glibc.
43231         * lib/strndup.h: Revamp, accordingly.
43232         * m4/strndup.m4: Modernize.
43233
43234 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43235
43236         * modules/savewd (Depends-on): Add 'raise'.
43237         * lib/savewd.c: Include <signal.h>, for 'raise'.
43238
43239 2006-09-26  Jim Meyering  <jim@meyering.net>
43240
43241         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43242         when we detect Darwin 8.7.0's acl_get_file bug.
43243         Rearrange to perform the new (below) run-test while $LIBS
43244         contains any acl-related library.  Set USE_ACL at the end.
43245         (gl_ACL_GET_FILE): New function.
43246
43247 2006-09-26  Eric Blake  <ebb9@byu.net>
43248
43249         * lib/verror.c: Include <config.h> unconditionally.
43250
43251 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43252
43253         * modules/clock-time (Maintainer): Add self.
43254         * modules/getlogin_r (Depends-on): Add extensions.
43255
43256 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43257
43258         * modules/clock-time: New module.
43259         * modules/nanosleep (Depends-on): Add clock-time.
43260         * modules/gethrxtime (Depends-on): Likewise.
43261         * modules/gettime (Depends-on): Likewise.
43262         * modules/settime (Depends-on): Likewise.
43263
43264         * modules/fts-lgpl: Depend on openat.
43265         * modules/mkancesdirs: Depend on savewd.
43266         * modules/mkdir-p: Likewise.
43267
43268 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43269
43270         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43271
43272         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43273         `gl_have_arbitrary_file_name_length_limit' to
43274         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43275         actually works between configure runs.
43276
43277 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43278             Bruno Haible  <bruno@clisp.org>
43279
43280         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43281
43282 2006-09-25  Jim Meyering  <jim@meyering.net>
43283
43284         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43285         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43286
43287 2006-09-25  Eric Blake  <ebb9@byu.net>
43288
43289         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43290         exec's in 2006-09-18 patch when shuffling fds.
43291
43292 2006-09-25  Bruno Haible  <bruno@clisp.org>
43293
43294         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43295         Reported by Jim Meyering.
43296
43297 2006-09-24  Jim Meyering  <jim@meyering.net>
43298
43299         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43300         compare a pointer against a literal "0".  That caused failures with
43301         at least HP-UX's hpcc.
43302
43303 2006-09-22  Simon Josefsson  <jas@extundo.com>
43304
43305         * modules/gc-sha1:
43306         * modules/gc-md4:
43307         * modules/gc-hmac-sha1:
43308         * modules/gc-hmac-md5:
43309         * modules/gc-des:
43310         * modules/gc-arcfour: Distribute more files.
43311
43312 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43313
43314         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43315         (gl_linked_iterator_from_to): Initialize struct completely.
43316         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43317         (gl_tree_iterator_from_to): Likewise
43318         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43319         * lib/gl_array_list.c [lint] (gl_array_iterator)
43320         (gl_array_iterator_from_to): Likewise.
43321         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43322         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43323         (gl_carray_iterator_from_to): Likewise.
43324
43325         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43326         * lib/md4.c (md4_process_block): Remove unused variable.
43327         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43328         parentheses for clarity.
43329
43330 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43331
43332         * modules/bison-i18n (Depends-on): Add gettext.
43333
43334 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43335
43336         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43338         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43339         also add missing comma that caused broken test.
43340         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43341         stdlib.h, for `abort'.
43342         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43343         variables.
43344         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43345         include unistd.h if present, for `rmdir'.
43346         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43347         variables.
43348         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43349         in the process include standard headers for prototypes.
43350         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43351         gets declared on GNU/Linux.
43352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43353         unistd.h, for `rmdir'.
43354         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43355
43356         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43357         always true.
43358         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43359
43360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43361
43362 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43363
43364         * gnulib-tool (func_version): Create output all at once.  This
43365         may help avoid triggering unnecessary SIGPIPEs, and at any
43366         rate it doesn't hurt.
43367
43368 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43369             Bruno Haible  <bruno@clisp.org>
43370
43371         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43372         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43373         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43374
43375         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43376         (gl_FUNC_VASPRINTF): Invoke it.
43377
43378 2006-09-22  Bruno Haible  <bruno@clisp.org>
43379
43380         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43381         getloadavg.c as first argument.
43382
43383 2006-09-22  Bruno Haible  <bruno@clisp.org>
43384
43385         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43386         at the beginning of the gl_INIT macro.
43387         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43388         gl_GETLOADAVG.
43389
43390 2006-09-22  Bruno Haible  <bruno@clisp.org>
43391
43392         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43393         module.
43394         Suggested by Ralf Wildenhues.
43395
43396 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43397
43398         Import this patch from libc:
43399
43400         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43401
43402         * lib/regex_internal.c (re_string_reconstruct): Handle
43403         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43404         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43405         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43406         re_string_context_at.
43407
43408         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43409         now requires it.
43410         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43411         gl_REGEX now does it for us.
43412         (gl_REGEX): Add test taken from
43413         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43414
43415         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43416         Check that large offsets work.  Modernize Autoconf usages.
43417         Prefer "yes" to mean a good thing rather than a bad.
43418         Don't put "#define mkstemp" in config.h, as this might interfere
43419         with standard system headers that "#define mkstemp mkstemp64".
43420
43421         * modules/mkstemp (Depends-on): Add extensions, so that
43422         mkstemp is visible on some platforms.
43423         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43424         (Include): Change to "mkstemp.h" from <stdlib.h>.
43425         (Files): Add mkstemp.h.
43426
43427         * lib/mkstemp.h: New file, since some standard headers
43428         #define mkstemp.
43429         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43430         Include "mkstemp.h".
43431         Make the _LIBC code resemble glibc original more,
43432         e.g., use K&R style.
43433         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43434         (mkstemp): Remove, since mkstemp.h does this for us.
43435         * lib/stdlib--.h: Include mkstemp.h.
43436
43437         Import this patch from libc:
43438
43439         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43440
43441         * lib/tempname.c (__gen_tempname): Change attempts_min
43442         into a macro.  Use preprocessor to decide how to initialize
43443         attempts [Coverity CID 67].
43444
43445 2006-09-20  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/mkdtemp.c: Import from libc.
43448         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43449                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43450                 attempts_min into a macro.  Use preprocessor to decide how to
43451                 initialize attempts [Coverity CID 67].
43452         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43453                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43454                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43455
43456 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43457
43458         * gnulib-tool (func_exit): New function, to allow to pass the
43459         exit status portably through the trap.  Use everywhere.
43460         (--help, --version): Signal a write error.
43461         (trap): catch SIGPIPE, for write errors.
43462         Exit at the end of the trap, with the correct exit status.
43463
43464 2006-09-19  Karl Berry  <karl@gnu.org>
43465
43466         * doc/gnulib.texi: note about the license texinfo files.
43467
43468 2006-09-19  Eric Blake  <ebb9@byu.net>
43469
43470         * gnulib-tool: Avoid space-tab.
43471
43472 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43473
43474         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43475         that prevented coreutils 6.1 from building.  Problem reported
43476         by Petter Reinholdtsen.
43477
43478 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43479
43480         * gnulib-tool (avoidlist): Fix typo that broke options like
43481         --avoid=lock that are used by coreutils bootstrap.
43482
43483 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43484
43485         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43486         more systematically.
43487
43488 2006-09-18  Jim Meyering  <jim@meyering.net>
43489
43490         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43491
43492 2006-09-18  Bruno Haible  <bruno@clisp.org>
43493
43494         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43495
43496 2006-09-18  Bruno Haible  <bruno@clisp.org>
43497
43498         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43499         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43500         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43501         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43502         * m4/gettext.m4: Require autoconf >= 2.52.
43503         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43504         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43505         of gl_cv_header_inttypes_h.
43506
43507 2006-09-18  Bruno Haible  <bruno@clisp.org>
43508
43509         * lib/javaversion.c: Include configmake.h.
43510
43511 2006-09-18  Bruno Haible  <bruno@clisp.org>
43512
43513         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43514         avoid that the while loops be executed in a subshell.
43515
43516 2006-09-18  Bruno Haible  <bruno@clisp.org>
43517
43518         * MODULES.html.sh (func_module): Break long lines.
43519         Suggested by Bruce Korb <bkorb@gnu.org>.
43520
43521 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43522
43523         Speed up by a factor of 1.12.
43524         * gnulib-tool (nl): New variable.
43525         (func_import): Rewrite include directive extraction to only read each
43526         directive once.
43527
43528 2006-09-17  Bruno Haible  <bruno@clisp.org>
43529
43530         * modules/javaversion (Makefile.am): Remove DEFS setting.
43531         (Depends-on): Add configmake, for PKGDATADIR definition.
43532
43533 2006-09-17  Bruno Haible  <bruno@clisp.org>
43534
43535         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43536
43537 2006-09-17  Bruno Haible  <bruno@clisp.org>
43538
43539         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43540         (func_modules_transitive_closure, func_modules_add_dummy,
43541         func_modules_to_filelist, func_import, func_create_testdir,
43542         func_create_megatestdir, ...): Use it wherever possible.
43543         Suggested by Ralf Wildenhues.
43544
43545 2006-09-16  Karl Berry  <karl@gnu.org>
43546
43547         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43548         to avoid sectioning errors.
43549         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43550         [ifinfo]: blank line after @center-ed titles.
43551         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43552         Spell FSF address consistently with others.
43553         (These changes approved by rms.)
43554
43555 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43556
43557         Speed up by a factor of 1.61.
43558         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43559         already checked module names again.
43560
43561 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43562
43563         Speed up by a factor of 1.13.
43564         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43565         for new_files, and the input to func_add_or_update.
43566
43567 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43568
43569         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43570         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43571
43572 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43573
43574         * modules/mkancesdirs (Depends-on): Add fcntl.
43575         * modules/savewd: New file.
43576         * MODULES.html.sh (File system functions): Add savewd.
43577
43578         * modules/configmake (Makefile.am): Add support for the
43579         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43580
43581 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         * m4/savewd.m4: New file.
43584
43585 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43586
43587         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43588         (dirchownmod): New arg FD.  All callers changed.
43589         Use FD rather than opening the directory ourself, as opening is
43590         now the caller's responsibility.
43591         * lib/dirchownmod.h: Likewise.
43592         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43593         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43594         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43595         (test_dir): Remove.
43596         (mkancesdirs): Return length of prefix of FILE that has already
43597         been made, or -2 if there is a child doing the work.  Redo
43598         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43599         ".", and treat ".." specially since it might stray back into
43600         already-created areas.  Use a subprocess if necessary.  New arg
43601         WD; all users changed.  MAKE_DIR function should now return 1
43602         if it creates a directory that is not readable.  Return -2 if
43603         a child process is spun off.
43604         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43605         Adjust signature to match code.
43606         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43607         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43608         all users changed.
43609         * lib/savewd.c, lib/savewd.h: New files.
43610
43611 2006-09-15  Jim Meyering  <jim@meyering.net>
43612
43613         * modules/rename-dest-slash: New module.
43614         * MODULES.html.sh (posix_compat): Add it here.
43615
43616         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43617
43618 2006-09-15  Jim Meyering  <jim@meyering.net>
43619
43620         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43621         file.
43622
43623         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43624
43625 2006-09-15  Jim Meyering  <jim@meyering.net>
43626
43627         * lib/rename-dest-slash.c (has_trailing_slash): Use
43628         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43629         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43630         test before testing whether SRC is a directory.
43631         Suggestions from Bruno Haible.
43632
43633         Avoid a warning about an unused variable.
43634         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43635         into the #ifdef block where it's used.
43636
43637         * lib/rename-dest-slash.c: New file.
43638
43639 2006-09-14  Bruno Haible  <bruno@clisp.org>
43640
43641         * lib/allocsa.c: Include <config.h> unconditionally.
43642         * lib/asnprintf.c: Likewise.
43643         * lib/asprintf.c: Likewise.
43644         * lib/c-strcasecmp.c: Likewise.
43645         * lib/c-strcasestr.c: Likewise.
43646         * lib/c-strncasecmp.c: Likewise.
43647         * lib/c-strstr.c: Likewise.
43648         * lib/classpath.c: Likewise.
43649         * lib/clean-temp.c: Likewise.
43650         * lib/concatpath.c: Likewise.
43651         * lib/copy-file.c: Likewise.
43652         * lib/csharpcomp.c: Likewise.
43653         * lib/csharpexec.c: Likewise.
43654         * lib/execute.c: Likewise.
43655         * lib/fatal-signal.c: Likewise.
43656         * lib/findprog.c: Likewise.
43657         * lib/fwriteerror.c: Likewise.
43658         * lib/gl_array_list.c: Likewise.
43659         * lib/gl_array_oset.c: Likewise.
43660         * lib/gl_avltree_list.c: Likewise.
43661         * lib/gl_avltree_oset.c: Likewise.
43662         * lib/gl_avltreehash_list.c: Likewise.
43663         * lib/gl_carray_list.c: Likewise.
43664         * lib/gl_linked_list.c: Likewise.
43665         * lib/gl_linkedhash_list.c: Likewise.
43666         * lib/gl_list.c: Likewise.
43667         * lib/gl_oset.c: Likewise.
43668         * lib/gl_rbtree_list.c: Likewise.
43669         * lib/gl_rbtree_oset.c: Likewise.
43670         * lib/gl_rbtreehash_list.c: Likewise.
43671         * lib/imaxabs.c: Likewise.
43672         * lib/imaxdiv.c: Likewise.
43673         * lib/javacomp.c: Likewise.
43674         * lib/javaexec.c: Likewise.
43675         * lib/javaversion.c: Likewise.
43676         * lib/linebreak.c: Likewise.
43677         * lib/localcharset.c: Likewise.
43678         * lib/lock.c: Likewise.
43679         * lib/mbchar.c: Likewise.
43680         * lib/mbswidth.c: Likewise.
43681         * lib/mkdtemp.c: Likewise.
43682         * lib/pipe.c: Likewise.
43683         * lib/printf-args.c: Likewise.
43684         * lib/printf-parse.c: Likewise.
43685         * lib/progname.c: Likewise.
43686         * lib/progreloc.c: Likewise.
43687         * lib/readlink.c: Likewise.
43688         * lib/sh-quote.c: Likewise.
43689         * lib/stpcpy.c: Likewise.
43690         * lib/stpncpy.c: Likewise.
43691         * lib/strcasecmp.c: Likewise.
43692         * lib/strcasestr.c: Likewise.
43693         * lib/strcspn.c: Likewise.
43694         * lib/striconv.c: Likewise.
43695         * lib/strncasecmp.c: Likewise.
43696         * lib/strnlen1.c: Likewise.
43697         * lib/strstr.c: Likewise.
43698         * lib/strtok_r.c: Likewise.
43699         * lib/tls.c: Likewise.
43700         * lib/tmpdir.c: Likewise.
43701         * lib/unicodeio.c: Likewise.
43702         * lib/unsetenv.c: Likewise.
43703         * lib/vasnprintf.c: Likewise.
43704         * lib/vasprintf.c: Likewise.
43705         * lib/wait-process.c: Likewise.
43706         * lib/xallocsa.c: Likewise.
43707         * lib/xsetenv.c: Likewise.
43708         * lib/xstriconv.c: Likewise.
43709
43710 2006-09-13  Simon Josefsson  <jas@extundo.com>
43711
43712         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43713         that internally, suggested by Ralf Wildenhues
43714         <Ralf.Wildenhues@gmx.de>.
43715
43716 2006-09-13  Simon Josefsson  <jas@extundo.com>
43717
43718         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43719         @LIBOBJS@.
43720         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43721
43722 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43723
43724         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43725         longer worry about uses that don't define HAVE_CONFIG_H.
43726         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43727         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43728         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43729         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43730         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43731         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43732         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43733         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43734         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43735         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43736         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43737         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43738         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43739         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43740         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43741         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43742         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43743         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43744         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43745         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43746         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43747         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43748         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43749         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43750         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43751         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43752         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43753         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43754         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43755         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43756         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43757         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43758         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43759         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43760         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43761         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43762         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43763         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43764         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43765         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43766         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43767         Likewise.
43768
43769 2006-09-13  Eric Blake  <ebb9@byu.net>
43770
43771         * lib/getopt.c: Fix typo in last commit.
43772
43773 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43774
43775         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43776         dgettext.
43777
43778 2006-09-12  Jim Meyering  <jim@meyering.net>
43779
43780         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43781         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43782         Reported by Nelson H. F. Beebe.
43783
43784 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43785
43786         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43787         program_invocation_name and program_invocation_short_name are
43788         initialized.
43789         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43790         and program_invocation_short_name to argp.h, so they are visible
43791         to user programs.
43792         * lib/argp.h: Likewise
43793
43794 2006-09-10  Bruno Haible  <bruno@clisp.org>
43795
43796         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43797         m4/inttypes_h.m4, m4/uintmax_t.m4.
43798
43799 2006-09-10  Bruno Haible  <bruno@clisp.org>
43800
43801         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43802         gl_AC_TYPE_UINTMAX_T.
43803
43804 2006-09-10  Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43807
43808 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43809
43810         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43811         convention.  Text proposed by Bruno Haible.
43812         (struct argp_option): Document the use of N_() wrappers.
43813
43814         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43815         '\v', and translate the two parts separately, instead of feeding
43816         the whole string to gettext.  This allows to exclude
43817         '\v' from the strings visible to the translator by writing doc
43818         strings as N_("..") "\v" N_("..").
43819
43820 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43821
43822         * config/srclist.txt: Undo latest change; the bug was fixed.
43823
43824 2006-09-09  Bruno Haible  <bruno@clisp.org>
43825
43826         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43827         assignments if building a library without libtool.
43828         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43829         in func_emit_lib_Makefile_am.
43830         (func_import): When building a static library libfoo.a, arrange to
43831         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43832         (func_create_testdir): Likewise.
43833         * modules/gc (configure.ac, Makefile.am): If building statically,
43834         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43835         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43836         * modules/striconv (configure.ac, Makefile.am): Likewise.
43837         Based on a suggestion by Ralf Wildenhues.
43838
43839 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43840
43841         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43842         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43843         Also:
43844
43845         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43846         Add year_2050_test to catch glibc bug 2821
43847         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43848
43849         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43850         Prefer #ifdef to #if.
43851
43852         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43853         Return from 'main' instead of calling 'exit'.
43854
43855 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43858         returned the maximum time_t value rather than (time_t) -1.
43859         Problem originally reported by William Bardwell
43860         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43861
43862         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43863         Moved to here ...
43864         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43865         ... from here.
43866
43867 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43868
43869         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43870         2821 is fixed.
43871
43872 2006-09-08  Jim Meyering  <jim@meyering.net>
43873
43874         Don't make generated files read-only.  That would bother too many
43875         people.  However, do retain the ability to work when targets are
43876         read-only: remove the destination and temporary files before writing
43877         them (when generated via sed or echo), or by using the -f option for
43878         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43879         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43880         * modules/byteswap, modules/configmake, modules/fcntl:
43881         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43882         * modules/localcharset, modules/netinet_in, modules/poll:
43883         * modules/stdbool, modules/stdint, modules/sys_select:
43884         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43885
43886 2006-09-08  Jim Meyering  <jim@meyering.net>
43887
43888         Avoid new build failure on FreeBSD 6.0.
43889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43890         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43891         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43892
43893 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43894
43895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43896
43897 2006-09-07  Jim Meyering  <jim@meyering.net>
43898
43899         Fix global typo in last change: use chmod u-w, not chmod u-x.
43900         Spotted by Paul Eggert and Bruce Korb.
43901         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43902         * modules/byteswap, modules/configmake, modules/fcntl:
43903         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43904         * modules/localcharset, modules/netinet_in, modules/poll:
43905         * modules/stdbool, modules/stdint, modules/sys_select:
43906         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43907
43908 2006-09-06  Jim Meyering  <jim@meyering.net>
43909
43910         Make generated files be read-only.
43911         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43912         Ensure that each generated file is now read-only.
43913         * modules/argz: Likewise.
43914         * modules/arpa_inet: Likewise.
43915         * modules/byteswap: Likewise.
43916         * modules/configmake: Likewise.
43917         * modules/fcntl: Likewise.
43918         * modules/fnmatch: Likewise.
43919         * modules/getopt: Likewise.
43920         * modules/glob: Likewise.
43921         * modules/inttypes: Likewise.
43922         * modules/netinet_in: Likewise.
43923         * modules/poll: Likewise.
43924         * modules/stdbool: Likewise.
43925         * modules/stdint: Likewise.
43926         * modules/sys_select: Likewise.
43927         * modules/sys_socket: Likewise.
43928         * modules/sys_stat: Likewise.
43929         * modules/sysexits: Likewise.
43930         * modules/localcharset: Same as above, but continue using temporary
43931         file named "t-$@" (why different?) rather than the "$@-t" used
43932         everywhere else.
43933
43934         * modules/sysexits (Makefile.am): Replace literal occurrences
43935         of "sysexit.h" more readable, and more consistent, "$@".
43936
43937 2006-09-06  Bruno Haible  <bruno@clisp.org>
43938
43939         * modules/striconv: New file.
43940         * modules/xstriconv: New file.
43941         * MODULES.html.sh (Internationalization functions): Add striconv,
43942         xstriconv.
43943
43944 2006-09-06  Bruno Haible  <bruno@clisp.org>
43945
43946         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43947         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43948         not using libtool correctly.
43949
43950 2006-09-06  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/striconv.h: New file.
43953         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43954         iconvstring.c.
43955         * lib/xstriconv.h: New file.
43956         * lib/xstriconv.c: New file.
43957
43958 2006-09-06  Bruno Haible  <bruno@clisp.org>
43959
43960         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43961         lib_..._LDFLAGS.
43962
43963 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43964
43965         * lib/argz_.h: Sync from Libtool.
43966
43967         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43968                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43969
43970         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43971
43972 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43973
43974         * modules/trim: New file.
43975
43976 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43977
43978         * lib/trim.h: New file.
43979         * lib/trim.c: New file.
43980
43981 2006-09-05  Bruno Haible  <bruno@clisp.org>
43982
43983         * MODULES.html.sh (String handling): Add trim.
43984
43985 2006-09-04  Karl Berry  <karl@gnu.org>
43986
43987         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43988         until next release.
43989
43990 2006-09-03  Bruno Haible  <bruno@clisp.org>
43991
43992         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43993         correctly.
43994
43995 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43996
43997         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43998         not gl_GETLOADAVG.  Omit unneeded semicolons.
43999         Problems reported by Ralf Wildenhues in
44000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44001         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44002         at the end, which is the usual gnulib style.
44003
44004         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44005         of doing all the work ourselves.
44006         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44007         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44008
44009 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44010
44011         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44012         Problem reported by Ralf Wildenhues in
44013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44014
44015         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44016         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44017
44018 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44019
44020         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44021         yesterday's patch by changing test -n to test -z.
44022
44023 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44024
44025         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44026         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44027         the former is now obsolescent.
44028
44029         * modules/chdir-long (Depends-on): Add fcntl.
44030
44031 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44032
44033         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44034         obsolescent, and programs should use gnulib instead.
44035         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44036         but with prefixes changed.
44037
44038 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44039
44040         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44041         or stdbool.h, because they might not exist while configuring.
44042
44043         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44044         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44045         does that for us.
44046         (O_DIRECTORY): Remove.
44047
44048 2006-08-31  Eric Blake  <ebb9@byu.net>
44049
44050         * gnulib-tool: Don't let emacs change spaces to TAB.
44051
44052 2006-08-31  Bruno Haible  <bruno@clisp.org>
44053
44054         * gnulib-tool: When calling func_import more than once, do it in a
44055         subshell.
44056         Reported by Eric Blake <ebb9@byu.net>.
44057
44058 2006-08-31  Bruno Haible  <bruno@clisp.org>
44059
44060         * gnulib-tool (nl): Remove variable.
44061         (sed_transform_lib_file): Use more robust test for config-h module.
44062         (func_import): Fix typo in 2006-08-25 patch.
44063
44064 2006-08-31  Bruno Haible  <bruno@clisp.org>
44065
44066         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44067         specified, augment Makefile.am variables instead of assigning them.
44068
44069 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44070
44071         Work around a bug in both the Linux and SunOS 64-bit kernels:
44072         nanosleep mishandles sleeps for longer than 2**31 seconds.
44073         Problem reported by Frank v Waveren in
44074         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44076         Check for nanosleep bug.
44077         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44078
44079 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44080
44081         Work around a bug in both the Linux and SunOS 64-bit kernels:
44082         nanosleep mishandles sleeps for longer than 2**31 seconds.
44083         Problem reported by Frank v Waveren in
44084         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44085         * lib/nanosleep.c (BILLION): New constant.
44086         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44087         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44088         implementation.
44089
44090 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44091
44092         * modules/nanosleep (Depends-on): Add gettime.
44093
44094 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44095         and Simon Josefsson  <jas@extundo.com>
44096         and Oskar Liljeblad  <oskar@osk.mine.nu>
44097
44098         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44099         * gnulib-tool (func_import): New license type 'unmodifiable license
44100         text'.
44101         * modules/fdl: Use it.  Longer description.
44102         * module/gpl, module/lgpl: New files.
44103
44104 2006-08-30  Jim Meyering  <jim@meyering.net>
44105
44106         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44107         shadowing the parameter.
44108
44109 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44110
44111         Sync from Libtool:
44112
44113         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44114
44115         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44116         sharing with gnulib.  Report by Eric Blake.
44117
44118 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44119
44120         * modules/isapipe: New file.
44121         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44122
44123 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         * modules/configmake (Makefile.am): Add a comment, and omit
44126         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44127         by Bruno Haible.
44128
44129 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44130
44131         * m4/isapipe.m4: New file.
44132
44133 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44134
44135         * lib/isapipe.c, lib/isapipe.h: New files.
44136
44137 2006-08-29  Jim Meyering  <jim@meyering.net>
44138
44139         * modules/configmake (Makefile.am): Make configmake.h depend on
44140         Makefile.  Otherwise, a stale configmake.h could hang around.
44141
44142 2006-08-29  Eric Blake  <ebb9@byu.net>
44143
44144         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44145         resolution of upstream bug 3044.
44146
44147 2006-08-29  Bruno Haible  <bruno@clisp.org>
44148
44149         * modules/localcharset (Depends-on): Add configmake.
44150         (Makefile.am): Remove setting of LIBDIR through DEFS.
44151
44152 2006-08-29  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44155         defined.
44156
44157 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44158
44159         * modules/fcntl: New file.
44160         * modules/chdir-safer (Depends-on): Add fcntl.
44161         * modules/fts: Likewise.
44162         * modules/mkdir-p: Likewise.
44163
44164         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44165         This undoes the most recent change, since we're now addressing the
44166         problem in a different way.
44167
44168         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44169         into output, since the output might be called Makefile.am even
44170         if $makefile_name is something different.
44171         (func_import): Use $makefile_am rather than
44172         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44173         empty.
44174
44175         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44176
44177 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44178
44179         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44180         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44181         recent change to stdint.m4, since we're now addressing the problem in a
44182         different way.
44183
44184 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44185
44186         * m4/fcntl_h.m4: New file.
44187
44188 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44189
44190         * lib/fcntl_.h: New file.
44191         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44192         the fcntl module.
44193         * lib/dirchownmod.c: Likewise.
44194         * lib/fts.c: Likewise.
44195
44196         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44197         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44198         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44199         just before including <inttypes.h>, to avoid circular inclusion.
44200
44201 2006-08-28  Jim Meyering  <jim@meyering.net>
44202
44203         * doc/visibility.texi: Actually read and correct the grammar of the
44204         sentence affected by yesterday's change.
44205
44206 2006-08-28  Eric Blake  <ebb9@byu.net>
44207
44208         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44209         needs wrapper.
44210
44211 2006-08-28  Eric Blake  <ebb9@byu.net>
44212
44213         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44214
44215 2006-08-28  Eric Blake  <ebb9@byu.net>
44216
44217         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44218
44219 2006-08-28  Bruno Haible  <bruno@clisp.org>
44220
44221         * modules/c-strstr: New file, from GNU gettext.
44222         * MODULES.html.sh (String handling): Add c-strstr.
44223
44224 2006-08-28  Bruno Haible  <bruno@clisp.org>
44225
44226         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44227         macros.
44228         Reported by Eric Blake.
44229
44230 2006-08-28  Bruno Haible  <bruno@clisp.org>
44231
44232         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44233         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44234         * lib/vasprintf.c: Include errno.h, limits.h.
44235         (EOVERFLOW): New fallback definition.
44236         (vasprintf): Test here whether the string length is > INT_MAX.
44237         * lib/vsnprintf.c: Include errno.h, limits.h.
44238         (EOVERFLOW): New fallback definition.
44239         (vsnprintf): Fix bug when generated string was too long for the buffer.
44240         Test here whether the string length is > INT_MAX.
44241
44242 2006-08-28  Bruno Haible  <bruno@clisp.org>
44243
44244         * lib/inttypes_.h (SCNX*): Remove definitions.
44245         Reported by Eric Blake.
44246
44247 2006-08-28  Bruno Haible  <bruno@clisp.org>
44248
44249         * lib/c-strstr.h: New file, from GNU gettext.
44250         * lib/c-strstr.c: New file, from GNU gettext.
44251
44252 2006-08-28  Bruno Haible  <bruno@clisp.org>
44253
44254         * gnulib-tool: Reorder some statements.
44255
44256 2006-08-28  Bruno Haible  <bruno@clisp.org>
44257
44258         * gnulib-tool: New option --makefile-name.
44259         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44260         $makefile_name.
44261         (func_import): Write $makefile_name to the cache file, and read it from
44262         there unless explicitly specified. Use $makefile_name as file name
44263         instead of Makefile.am. Adjust the recommendations accordingly.
44264
44265 2006-08-28  Bruno Haible  <bruno@clisp.org>
44266
44267         * gnulib-tool (func_verify_module): Check against misapplying patch.
44268
44269 2006-08-28  Bruno Haible  <bruno@clisp.org>
44270
44271         * gnulib-tool (func_relativize, func_relconcat): New functions.
44272         Give an error if --local-dir is given with --update.
44273         Remove trailing slashes from $local_gnulib_dir.
44274         (func_import): Store the relativized $local_gnulib_dir in
44275         gnulib-cache.m4, and read it from there if not specified explicitly.
44276
44277 2006-08-28  Bruno Haible  <bruno@clisp.org>
44278
44279         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44280         is the current directory. Respect also $local_gnulib_dir.
44281
44282 2006-08-28  Bruno Haible  <bruno@clisp.org>
44283             Simon Josefsson  <jas@extundo.com>
44284
44285         BeOS portability.
44286         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44287
44288 2006-08-27  Jim Meyering  <jim@meyering.net>
44289
44290         * doc/visibility.texi: Remove duplicate word: "pointer".
44291
44292 2006-08-26  Bruno Haible  <bruno@clisp.org>
44293
44294         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44295         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44296         (Makefile.am): Create inttypes.h from inttypes_.h.
44297         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44298
44299         * modules/imaxabs: New file.
44300
44301         * modules/imaxdiv: New file.
44302
44303 2006-08-26  Bruno Haible  <bruno@clisp.org>
44304
44305         * m4/inttypes.m4: New file.
44306         * m4/_inttypes_h.m4: Remove file.
44307         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44308         PRI_MACROS_BROKEN.
44309         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44310
44311         * m4/imaxabs.m4: New file.
44312
44313         * m4/imaxdiv.m4: New file.
44314
44315 2006-08-26  Bruno Haible  <bruno@clisp.org>
44316
44317         * lib/inttypes_.h: New file.
44318         * lib/inttypes.h: Remove file.
44319         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44320
44321         * lib/imaxabs.c: New file.
44322
44323         * lib/imaxdiv.c: New file.
44324
44325 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44326
44327         New config-h module, so that "make" output needn't be cluttered
44328         by -DHAVE_CONFIG_H.
44329         * MODULES.html.sh (Support for building libraries and executables):
44330         Add config-h.
44331         * modules/config-h: New file.
44332         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44333         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44334         the config-h module is used.
44335
44336         New configmake module, so that "make" output needn't be cluttered
44337         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44338         * MODULES.html.sh (Support for building libraries and executables):
44339         Add configmake.
44340         * modules/configmake: New file.
44341
44342 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44343
44344         * m4/config-h.m4: New file.
44345
44346 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44347
44348         * config/srclist.txt: Add elisp-comp.
44349
44350 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44351
44352         * MODULES.html.sh (Support for building libraries and executables):
44353         Add elisp-comp.
44354         * build-aux/elisp-comp: New file.
44355         * modules/elisp-comp: New file.
44356
44357 2006-08-24  Bruno Haible  <bruno@clisp.org>
44358
44359         * gnulib-tool (func_create_testdir): Use non-default values of
44360         sourcebase and m4base.
44361
44362 2006-08-24  Bruno Haible  <bruno@clisp.org>
44363
44364         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44365         HTML structure.
44366
44367 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44368
44369         * modules/openat (Depends-on): Add lchown.
44370
44371 2006-08-23  Bruno Haible  <bruno@clisp.org>
44372
44373         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44374         of gl_LOCK_EARLY instead of gl_LOCK.
44375
44376 2006-08-23  Bruno Haible  <bruno@clisp.org>
44377
44378         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44379         on OSF/1 to no.
44380         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44381
44382 2006-08-23  Bruno Haible  <bruno@clisp.org>
44383
44384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44385         as unusable.
44386
44387         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44388         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44389         (gl_LOCK): New macro.
44390
44391 2006-08-22  Simon Josefsson  <jas@extundo.com>
44392
44393         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44394         to md5 module.
44395
44396 2006-08-22  Simon Josefsson  <jas@extundo.com>
44397
44398         * MODULES.html.sh: Add "Support for maintaining and release
44399         projects".
44400
44401         * build-aux/gnupload: New file, from coreutils.
44402
44403 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44404
44405         Avoid the need for AC_LIBSOURCES in m4 macros.
44406         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44407         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44408         * modules/check-version (EXTRA_DIST): Add check-version.h.
44409         * modules/crc (EXTRA_DIST): Add crc.h.
44410         * modules/des (EXTRA_DIST): Add des.h.
44411         * modules/gc (EXTRA_DIST): Add gc.h.
44412         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44413         * modules/getline (EXTRA_DIST): Add getline.h.
44414         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44415         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44416         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44417         * modules/md2 (EXTRA_DIST): Add md2.h.
44418         * modules/md4 (EXTRA_DIST): Add md4.h.
44419         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44420         * modules/read-file (EXTRA_DIST): Add read-file.h.
44421         * modules/readline (EXTRA_DIST): Add readline.h.
44422         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44423         rijndael-api-fst.h.
44424
44425 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44426
44427         * m4/rijndael.m4 (gl_ARCFOUR):
44428         * m4/arctwo.m4 (gl_ARCTWO):
44429         * m4/check-version.m4 (gl_CHECK_VERSION):
44430         * m4/crc.m4 (gl_CRC):
44431         * m4/des.m4 (gl_DES):
44432         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44433         * m4/gc.m4 (gl_GC):
44434         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44435         * m4/getline.m4 (gl_FUNC_GETLINE):
44436         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44437         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44438         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44439         * m4/md2.m4 (gl_MD2):
44440         * m4/md4.m4 (gl_MD4):
44441         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44442         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44443         * m4/readline.m4 (gl_FUNC_READLINE):
44444         * m4/rijndael.m4 (gl_RIJNDAEL):
44445         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44446         to get the necessary .h files and whatnot.
44447
44448 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44449
44450         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44451         gnulib rather than the other way around.
44452         * config/srclistvars.sh (COREUTILS): Remove.
44453
44454 2006-08-22  Jim Meyering  <jim@meyering.net>
44455
44456         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44457
44458         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44459
44460 2006-08-22  Eric Blake  <ebb9@byu.net>
44461
44462         * modules/regexprops-generic: New file.
44463         * MODULES.html.sh (Support for building documentation): List it.
44464
44465 2006-08-22  Eric Blake  <ebb9@byu.net>
44466
44467         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44468         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44469         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44470         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44471
44472 2006-08-22  Bruno Haible  <bruno@clisp.org>
44473
44474         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44475         and lib_LTLIBRARIES like the other lib_* variables.
44476
44477 2006-08-22  Bruno Haible  <bruno@clisp.org>
44478
44479         * build-aux/x-to-1.in: New file, from GNU gettext.
44480
44481 2006-08-22  Bruno Haible  <bruno@clisp.org>
44482
44483         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44484         <utmpx.h> exists.
44485
44486 2006-08-22  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44489         <utmpx.h> exists.
44490
44491 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44492
44493         BeOS portability.
44494         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44495         exist.
44496         Problem reported by Bruno Haible.
44497
44498 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44499
44500         Avoid the need for AC_LIBSOURCES in m4 macros.
44501         * modules/acl (EXTRA_DIST): Add acl.h.
44502         * modules/argmatch (Files): Add m4/argmatch.m4.
44503         (configure.ac): Add gl_ARGMATCH.
44504         (EXTRA_DIST): Renamed from lib_SOURCES, for
44505         consistency with the other modules.  Remove argmatch.c.
44506         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44507         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44508         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44509         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44510         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44511         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44512         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44513         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44514         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44515         * modules/closeout (EXTRA_DIST): Add closeout.h.
44516         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44517         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44518         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44519         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44520         dirname.h; remove basename.c and stripslash.c.
44521         * modules/exclude (EXTRA_DIST): Add exclude.h.
44522         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44523         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44524         * modules/file-type (EXTRA_DIST): Add file-type.h.
44525         * modules/filemode (EXTRA_DIST): Add filemode.h.
44526         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44527         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44528         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44529         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44530         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44531         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44532         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44533         * modules/getdate (EXTRA_DIST): Add getdate.c.
44534         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44535         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44536         * modules/getpass (EXTRA_DIST): Add getpass.h.
44537         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44538         * modules/group-member (EXTRA_DIST): Add group-member.h.
44539         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44540         * modules/hash (EXTRA_DIST): Add hash.h.
44541         * modules/human (EXTRA_DIST): Add human.h.
44542         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44543         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44544         * modules/lchown (EXTRA_DIST): Add lchown.h.
44545         * modules/long-options (EXTRA_DIST): Add long-options.h.
44546         * modules/lstat (EXTRA_DIST): Add lstat.h.
44547         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44548         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44549         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44550         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44551         * modules/memxor (EXTRA_DIST): Add memxor.h.
44552         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44553         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44554         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44555         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44556         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44557         * modules/physmem (EXTRA_DIST): Add physmem.h.
44558         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44559         * modules/posixver (EXTRA_DIST): Add posixver.h.
44560         * modules/quote (EXTRA_DIST): Add quote.h.
44561         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44562         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44563         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44564         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44565         regex_internal.h regexec.c.
44566         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44567         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44568         * modules/same (EXTRA_DIST): Add same.h.
44569         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44570         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44571         * modules/savedir (EXTRA_DIST): Add savedir.h.
44572         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44573         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44574         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44575         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44576         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44577         * modules/strdup (EXTRA_DIST): Add strdup.h.
44578         * modules/strftime (EXTRA_DIST): Add strftime.h.
44579         * modules/strndup (EXTRA_DIST): Add strndup.h.
44580         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44581         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44582         * modules/time_r (EXTRA_DIST): Add time_r.h.
44583         * modules/timespec (EXTRA_DIST): Add timespec.h.
44584         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44585         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44586         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44587         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44588         * modules/userspec (EXTRA_DIST): Add userspec.h.
44589         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44590         * modules/utimens (EXTRA_DIST): Add utimens.h.
44591         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44592         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44593         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44594         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44595         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44596         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44597         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44598         * modules/yesno (EXTRA_DIST): Add yesno.h.
44599
44600 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44601
44602         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44603
44604         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44605         * m4/dev-ino.m4, same-inode.m4: Remove.
44606
44607         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44608         * m4/acl.m4 (AC_FUNC_ACL):
44609         * m4/backupfile.m4 (gl_BACKUPFILE):
44610         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44611         * m4/canon-host.m4 (gl_CANON_HOST):
44612         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44614         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44615         * m4/cloexec.m4 (gl_CLOEXEC):
44616         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44617         * m4/closeout.m4 (gl_CLOSEOUT):
44618         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44619         * m4/dirname.m4 (gl_DIRNAME):
44620         * m4/exclude.m4 (gl_EXCLUDE):
44621         * m4/exitfail.m4 (gl_EXITFAIL):
44622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44623         * m4/file-type.m4 (gl_FILE_TYPE):
44624         * m4/filemode.m4 (gl_FILEMODE):
44625         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44626         * m4/fpending.m4 (gl_FUNC_FPENDING):
44627         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44628         * m4/fts.m4 (gl_FUNC_FTS):
44629         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44630         * m4/getdate.m4 (gl_GETDATE):
44631         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44632         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44633         * m4/getpass.m4 (gl_FUNC_GETPASS):
44634         * m4/gettime.m4 (gl_GETTIME):
44635         * m4/getugroups.m4 (gl_GETUGROUPS):
44636         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44637         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44638         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44639         * m4/hash.m4 (gl_HASH):
44640         * m4/idcache.m4 (gl_IDCACHE):
44641         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44642         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44643         * m4/long-options.m4 (gl_LONG_OPTIONS):
44644         * m4/lstat.m4 (gl_FUNC_LSTAT):
44645         * m4/md5.m4 (gl_MD5):
44646         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44647         * m4/memcoll.m4 (gl_MEMCOLL):
44648         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44649         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44650         * m4/memxor.m4 (gl_MEMXOR):
44651         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44652         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44653         * m4/modechange.m4 (gl_MODECHANGE):
44654         * m4/mountlist.m4 (gl_MOUNTLIST):
44655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44656         * m4/openat.m4 (gl_FUNC_OPENAT):
44657         * m4/pathmax.m4 (gl_PATHMAX):
44658         * m4/physmem.m4 (gl_PHYSMEM):
44659         * m4/posixtm.m4 (gl_POSIXTM):
44660         * m4/posixver.m4 (gl_POSIXVER):
44661         * m4/quote.m4 (gl_QUOTE):
44662         * m4/quotearg.m4 (gl_QUOTEARG):
44663         * m4/readtokens.m4 (gl_READTOKENS):
44664         * m4/readutmp.m4 (gl_READUTMP):
44665         * m4/regex.m4 (gl_REGEX):
44666         * m4/safe-read.m4 (gl_SAFE_READ):
44667         * m4/safe-write.m4 (gl_SAFE_WRITE):
44668         * m4/same.m4 (gl_SAME):
44669         * m4/save-cwd.m4 (gl_SAVE_CWD):
44670         * m4/savedir.m4 (gl_SAVEDIR):
44671         * m4/settime.m4 (gl_SETTIME):
44672         * m4/sha1.m4 (gl_SHA1):
44673         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44674         * m4/stat-macros.m4 (gl_STAT_MACROS):
44675         * m4/stat-time.m4 (gl_STAT_TIME):
44676         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44677         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44678         * m4/strdup.m4 (gl_FUNC_STRDUP):
44679         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44680         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44681         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44682         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44683         * m4/time_r.m4 (gl_TIME_R):
44684         * m4/timespec.m4 (gl_TIMESPEC):
44685         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44686         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44687         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44688         * m4/userspec.m4 (gl_USERSPEC):
44689         * m4/utimecmp.m4 (gl_UTIMECMP):
44690         * m4/utimens.m4 (gl_UTIMENS):
44691         * m4/xalloc.m4 (gl_XALLOC):
44692         * m4/xgetcwd.m4 (gl_XGETCWD):
44693         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44694         * m4/xreadlink.m4 (gl_XREADLINK):
44695         * m4/xstrtod.m4 (gl_XSTRTOD):
44696         * m4/yesno.m4 (gl_YESNO):
44697         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44698         to get the necessary .h files and whatnot.
44699
44700 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44701             Bruno Haible  <bruno@clisp.org>
44702
44703         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44704         /bin/sh understanding of '!' conditional negation.
44705
44706 2006-08-21  Jim Meyering  <jim@meyering.net>
44707
44708         * modules/openat (Depends-on): Really alphabetize.
44709
44710         * modules/acl (Depends-on): Add error and quote.
44711
44712         * check-module (find_included_lib_files): Add at-func.c to the
44713         ok-to-include-more-than-once white list.
44714
44715         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44716
44717 2006-08-21  Bruno Haible  <bruno@clisp.org>
44718
44719         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44720         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44721         Reported by Martin Lambers <marlam@marlam.de>.
44722
44723 2006-08-21  Bruno Haible  <bruno@clisp.org>
44724
44725         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44726         specify an installation location, don't emit a noinst_LIBRARIES or
44727         noinst_LTLIBRARIES assignment.
44728
44729 2006-08-21  Bruno Haible  <bruno@clisp.org>
44730
44731         BeOS portability.
44732         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44733         BeOS has mbrtowc() but no <wctype.h>.
44734
44735 2006-08-21  Bruno Haible  <bruno@clisp.org>
44736
44737         BeOS portability.
44738         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44739         exist.
44740
44741 2006-08-21  Bruno Haible  <bruno@clisp.org>
44742
44743         BeOS portability.
44744         * lib/mbchar.h: Include <wctype.h> only if it exists.
44745
44746 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44747
44748         Remove files that are no longer needed by their respective modules.
44749         * m4/obstack.m4: Remove.
44750         * m4/strerror_r.m4: Remove.
44751         * m4/uint32_t.m4: Remove.
44752         * m4/uintptr_t.m4: Remove.
44753         * m4/ullong_max.m4: Remove.
44754         * m4/xstrtoimax.m4: Remove.
44755         * m4/xstrtoumax.m4: Remove.
44756
44757         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44758         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44759         dependencies now capture this.
44760
44761         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44762         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44763         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44764         * m4/human.m4 (gl_HUMAN): Likewise.
44765         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44766         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44767
44768         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44769
44770         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44771         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44772         stdint.
44773         * m4/human.m4 (gl_HUMAN): Likewise.
44774         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44775         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44776         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44777         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44778         * m4/xstrtol (gl_XSTRTOL): Likewise.
44779
44780         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44781         AC_TYPE_LONG_LONG_INT.
44782         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44783         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44784         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44785         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44786
44787         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44788         on stdbool.
44789
44790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44791         (gl_PREREQ_XSTRTOUL): Remove.
44792
44793         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44794
44795         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44796         mode.
44797
44798 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44799
44800         Add and change modules to make it easier for coreutils to use
44801         gnulib-tool.
44802         * modules/backupfile (Files): Remove m4/d-ino.m4.
44803         (Depends-on): Add d-ino.
44804         * modules/cycle-check (Depends-on): Add stdint.
44805         (lib_SOURCES): Add cycle-check.h.
44806         * modules/d-ino: New module.
44807         * modules/d-type: New module.
44808         * modules/error (Files): Remove m4/strerror_r.m4.
44809         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44810         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44811         m4/inttypes_h.m4, m4/uintmax_t.m4.
44812         (Depends-on): Add stdint.
44813         (lib_SOURCES): Add fsusage.h.
44814         * modules/getcwd (Files): Remove d-ino.m4.
44815         (Depends-on): Add d-ino.
44816         * modules/getndelim2 (Depends-on): Add stdint.
44817         * modules/glob (Files): Remove m4/d-type.m4.
44818         (Depends-on): Add d-type.
44819         * modules/host-os: New module.
44820         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44821         m4/inttypes_h.m4, m4/uintmax_t.m4.
44822         * Depends-on: Add stdint.
44823         (lib_SOURCES): Add human.h.
44824         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44825         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44826         m4/uintmax_t.m4, m4/ulonglong.m4.
44827         (Depends-on): Add stdint.
44828         (EXTRA_DIST): Add inttostr.h.
44829         * modules/lchmod: New module.
44830         * modules/link-follow: New module.
44831         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44832         (Depends-on): Add lchmod.
44833         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44834         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44835         (Depends-on): Add stdint.
44836         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44837         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44838         (Depends-on): Add stdint.
44839         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44840         * modules/perl: New module.
44841         * modules/regex (Depends-on): Add stdint.
44842         * modules/rmdir-errno: New module.
44843         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44844         m4/intmax_t.m4.
44845         (Depends-on): Add stdint.
44846         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44847         m4/uintmax_t.m4.
44848         (Depends-on): Add stdint.
44849         * modules/unlink-busy: New module.
44850         * modules/utimecmp (Depends-on): Add stdint.
44851         * modules/uptime: New module.
44852         * modules/winsz-ioctl: New module.
44853         * modules/winsz-termios: New module.
44854         * modules/xnanosleep (Depends-on): Add nanosleep.
44855         * modules/ullong_max: Remove.
44856         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44857         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44858         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44859         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44860         (Depends-on): Add inttypes.
44861         (lib_SOURCES): Add xstrtol.h.
44862         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44863         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44864         * MODULES.html.sh: Move 'assert' into the assert section.
44865         Move 'dummy' into the linking section.
44866         Remove ullong_max.
44867         Add section for compatibility checks for POSIX:2001 functions,
44868         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44869         winsz-ioctl, and winsz-termios into it.
44870         Add lchmod.
44871         Add top-level Misc section and put host-os, perl, and uptime
44872         into it.
44873
44874 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44875
44876         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44877         now assume the stdint module.  Do not include inttypes.h.
44878         * lib/fsusage.h: Likewise.
44879         * lib/getndelim2.c: Likewise.
44880         * lib/human.h: Likewise.
44881         * lib/inttostr.h: Likewise.
44882         * lib/obstack.c: Likewise.
44883         * lib/regex_internal.h: Likewise.
44884         * lib/tempname.c: Likewise.
44885         * lib/utimecmp.c: Likewise.
44886         * lib/xstrtol.h: Likewise.
44887
44888         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44889
44890         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44891         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44892         * lib/xtime.h: Likewise.
44893
44894 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44895
44896         * modules/openat (Files): Add lib/fchmodat.c.
44897         Fixes problem reported by Jay Youngman.
44898
44899 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44900
44901         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44902         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44903
44904 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44905             Bruno Haible  <bruno@clisp.org>
44906
44907         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44908         and is a script that invokes bison. Tighten the code. Add comments.
44909
44910 2006-08-18  Jim Meyering  <jim@meyering.net>
44911
44912         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44913         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44914         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44915         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44916
44917 2006-08-18  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/bison-i18n: New file.
44920         * MODULES.html.sh (Internationalization functions): Add it.
44921
44922 2006-08-18  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44925         sys/statvfs.h. When getmntinfo was found, check its declaration and
44926         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44927
44928 2006-08-18  Bruno Haible  <bruno@clisp.org>
44929
44930         * m4/bison-i18n.m4: New file, from bison.
44931
44932 2006-08-18  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44935         (ME_DUMMY): Treat "kernfs" as a dummy.
44936         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44937
44938 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44939
44940         Update from coreutils.
44941
44942         2006-08-15  Jim Meyering  <jim@meyering.net>
44943
44944         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44945
44946         2006-01-17  Jim Meyering  <jim@meyering.net>
44947
44948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44949
44950         2006-01-11  Jim Meyering  <jim@meyering.net>
44951
44952         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44953         Check for the lchmod function.
44954
44955 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44956
44957         Update from coreutils.
44958
44959         * lib/__fpending.h: Add copyright notice.
44960         * lib/fprintftime.h: Likewise.
44961         * lib/savedir.c: Use (C) in copyright notice.
44962         * lib/savedir.h: Likewise.
44963
44964         2006-08-15  Jim Meyering  <jim@meyering.net>
44965
44966         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44967         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44968         in support of the EXPECTED_ERRNO macro.
44969         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44970         definitions.  Instead, define the appropriate symbols and include
44971         "at-func.c".
44972         * lib/mkdirat.c (mkdirat): Likewise.
44973         * lib/fchmodat.c (fchmodat): Likewise.
44974         (ENOSYS): Remove definition.
44975         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44976         it.  Don't include "unistd--.h" -- it wasn't ever used.
44977
44978         2006-01-17  Jim Meyering  <jim@meyering.net>
44979
44980         Rewrite fts.c not to change the current working directory,
44981         by using openat, fstatat, fdopendir, etc..
44982
44983         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44984         (HAVE_OPENAT_SUPPORT): Define.
44985         [_LIBC] (fchdir): Don't undef or define; no longer used.
44986         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44987         Now, this `function' always succeeds, and consumes its file descriptor
44988         parameter -- so callers must not close such FDs.  Update callers.
44989         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44990         (diropen): Add parameter, SP.  Adjust all callers.
44991         Implement using diropen_fd, rather than open.
44992         (fts_open): Initialize new member, fts_cwd_fd.
44993         Remove fts_rft-setting code.
44994         (fts_close): Close fts_cwd_fd, if necessary.
44995         (__opendir2): Define in terms of opendir or opendirat,
44996         depending on whether the FST_NOCHDIR flag is set.
44997         (fts_build): Since fts_safe_changedir consumes its FD, and since
44998         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44999         and close the dup'd file descriptor upon failure.
45000         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45001         (fts_safe_changedir): Tweak semantics to reflect that this function
45002         now calls cwd_advance_fd and hence consumes its FD argument.
45003         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45004         [struct FTS] (fts_rft): Remove now-unused member.
45005         [struct FTS] (fts_cycle.state): Improve comment.
45006
45007         * lib/openat.c (openat_needs_fchdir): New function.
45008         * lib/openat.h (openat_needs_fchdir): Declare it.
45009
45010 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45011
45012         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45013         Problem and fix reported by Pádraig Brady in
45014         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45015
45016 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45019
45020 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45021
45022         * lib/memcoll.c (memcoll): Optimize for the common case where the
45023         arguments are bytewise equal.
45024
45025 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45026
45027         * doc/regexprops-generic.texi: Add a copyright notice.
45028
45029 2006-08-15  Bruno Haible  <bruno@clisp.org>
45030
45031         * modules/tmpdir (License): Change to LGPL.
45032
45033 2006-08-15  Bruno Haible  <bruno@clisp.org>
45034
45035         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45036         module.
45037
45038 2006-08-14  Simon Josefsson  <jas@extundo.com>
45039
45040         * config/srclist.txt: Add gnupload.
45041
45042 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45043
45044         Change copyright notice from LGPL 2 to GPL 2, since that's the
45045         standard form used in the gnulib repository.
45046         * tests/test-lock.c: Likewise.
45047         * tests/test-stdint.c: Likewise.
45048         * tests/test-tls.c: Likewise.
45049
45050         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45051         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45052         Add copyright notice.
45053
45054         * check-module: Add copyright notice.  Output a copyright
45055         notice if "--version" is specified.
45056         * modules/COPYING: New file.
45057         * tests/test-getaddrinfo.c: Add copyright notice.
45058         * tests/test-verify.c: Likewise.
45059
45060 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45061
45062         Change copyright notice from LGPL 2 to GPL 2, since that's the
45063         standard form used in the gnulib repository.
45064         * lib/lock.c: LGPL -> GPL.
45065         * lib/lock.h: Likewise.
45066         * lib/strnlen1.c: Likewise.
45067         * lib/strnlen1.h: Likewise.
45068         * lib/tls.c: Likewise.
45069         * lib/tls.h: Likewise.
45070         * lib/tmpdir.c: Likewise.
45071
45072         * lib/TODO: Remove; this belongs only in coreutils.
45073
45074 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45075
45076         Add copyright notices to long-enough files that lack them, since
45077         otherwise the files aren't clearly free.  Use the same notice that
45078         getdate.texi already uses.
45079         * doc/alloca-opt.texi: Add copyright notice.
45080         * doc/alloca.texi: Likewise.
45081         * doc/ctime.texi: Likewise.
45082         * doc/functions.texi: Likewise.
45083         * doc/gcd.texi: Likewise.
45084         * doc/gnulib-tool.texi: Likewise.
45085         * doc/inet_ntoa.texi: Likewise.
45086         * doc/visibility.texi: Likewise.
45087
45088         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45089         * doc/quote.texi: Add copyright notice.
45090
45091         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45092         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45093         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45094         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45095         is now obsolete, and give a pointer to the Sun list.
45096         Add copyright notice.
45097
45098 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45099
45100         * config/srclistvars.sh: Add copyright notice.
45101
45102 2006-08-14  Eric Blake  <ebb9@byu.net>
45103
45104         Import the following change from libc:
45105
45106         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45107
45108         Upstream bug 2997.
45109         * lib/misc/error.c: Add space between program name and message if file
45110         name is missing.
45111
45112 2006-08-12  Karl Berry  <karl@gnu.org>
45113
45114         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45115         remove, these originate in gnulib now.
45116
45117 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45118
45119         * doc/Makefile (standards.info standards.html standards.dvi):
45120         Also depend on make-stds.texi.
45121
45122 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45123
45124         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45125         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45126
45127         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45128         in wchar_t.  Problem reported by Eric Blake.
45129
45130         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45131         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45132         Also, help the compiler to keep LEN in a register.
45133
45134 2006-08-11  Eric Blake  <ebb9@byu.net>
45135
45136         * users.txt: Sort.  Add tar.
45137
45138 2006-08-11  Bruno Haible  <bruno@clisp.org>
45139
45140         * users.txt: New file.
45141
45142 2006-08-11  Bruno Haible  <bruno@clisp.org>
45143
45144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45145         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45146
45147 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45148
45149         * modules/snprintf (Depends-on): Remove minmax.
45150         (Maintainer): Add self and Bruno.
45151
45152 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45153
45154         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45155         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45156         (EOVERFLOW): Define if the system does not.
45157         Do not include "minmax.h"; it wasn't used.
45158         (snprintf): Don't assume size_t promotes to an unsigned type.
45159         Fix bug when generated string was too long for the buffer: the
45160         buffer's contents are supposed to be the initial prefix of the
45161         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45162         exceeds INT_MAX; do the check ourselves.
45163
45164         Import the following changes from libc:
45165
45166         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45167
45168         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45169         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45170         set wc to the byte which couldn't be converted.
45171         (re_string_reconstruct): Don't clear valid_raw_len before calling
45172         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45173         tip_context using re_string_context_at.
45174
45175         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45176
45177         * lib/posix/regex.h: g++ still cannot handled [restrict].
45178
45179         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45180
45181         * lib/posix/regex.h: Remove special handling for VMS.
45182
45183 2006-08-10  Jim Meyering  <jim@meyering.net>
45184
45185         * modules/same-inode: New module.
45186         * modules/dev-ino: New module.
45187         * modules/cycle-check: Depend on these modules, rather than simply
45188         including their .h files.
45189         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45190         required via m4/cycle-check.m4.
45191         * modules/same: Depend on new same-inode module, rather than
45192         including same-inode.h.
45193         * modules/chdir-safer: New file.
45194
45195         * modules/chown (Depends-on): Add stat-macros.
45196
45197 2006-08-10  Jim Meyering  <jim@meyering.net>
45198
45199         * m4/cycle-check.m4: New file.
45200         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45201         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45202
45203 2006-08-10  Eric Blake  <ebb9@byu.net>
45204
45205         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45206         in from original proposal.
45207
45208 2006-08-10  Eric Blake  <ebb9@byu.net>
45209         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45210
45211         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45212         namespace.
45213
45214 2006-08-10  Bruno Haible  <bruno@clisp.org>
45215
45216         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45217         as well.
45218
45219 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45220
45221         Sync from coreutils.
45222
45223         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45224
45225         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45226         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45227
45228 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45229
45230         * modules/restrict: Remove; no longer needed now that we assume
45231         Autoconf 2.59 or later.
45232         * MODULES.html.sh: Remove 'restrict'.
45233         * modules/argp (Depends-on): Remove 'restrict'.
45234         * modules/base64 (Depends-on): Likewise.
45235         * modules/gc (Depends-on): Likewise.
45236         * modules/getaddrinfo (Depends-on): Likewise.
45237         * modules/glob (Depends-on): Likewise.
45238         * modules/inet_ntop (Depends-on): Likewise.
45239         * modules/inet_pton (Depends-on): Likewise.
45240         * modules/memxor (Depends-on): Likewise.
45241         * modules/regex (Depends-on): Likewise.
45242         * modules/strtok_r (Depends-on): Likewise.
45243         * modules/time_r (Depends-on): Likewise.
45244
45245 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45246
45247         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45248         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45249         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45250         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45251         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45252         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45253         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45254         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45255
45256         Merge from coreutils.
45257         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45258         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45259         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45260         * m4/time_r.m4 (gl_TIME_R): Likewise.
45261
45262 2006-08-09  Karl Berry  <karl@gnu.org>
45263
45264         * config/srclist.txt: no more gettext-tools, per Bruno.
45265
45266 2006-08-08  Eric Blake  <ebb9@byu.net>
45267
45268         * modules/verror: New module.
45269         * MODULES.html.sh: Document it.
45270
45271 2006-08-08  Eric Blake  <ebb9@byu.net>
45272
45273         * lib/verror.h, lib/verror.c: New files.
45274
45275 2006-08-08  Eric Blake  <ebb9@byu.net>
45276
45277         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45278         verror_at_line output complies with GNU Coding Standards even when
45279         file is NULL.
45280
45281 2006-08-07  Bruno Haible  <bruno@clisp.org>
45282
45283         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45284         versions of AIX.
45285         Reported by Ralf Wildenhues.
45286
45287 2006-08-07  Bruno Haible  <bruno@clisp.org>
45288
45289         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45290         in an AC_DEFUN. Needed so that the autoconf snippets can use
45291         AC_REQUIRE.
45292
45293 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45294
45295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45296         Initialize pkgdata_DATA.
45297         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45298         overriding it.
45299
45300 2006-08-06  Eric Blake  <ebb9@byu.net>
45301
45302         * lib/error.h: Fold in some upstream changes from glibc.
45303         * lib/error.c: Likewise.
45304
45305 2006-08-04  Bruno Haible  <bruno@clisp.org>
45306
45307         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45308         Make the mostlyclean-local rule depend on mostlyclean-generic.
45309         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45310
45311 2006-07-31  Bruno Haible  <bruno@clisp.org>
45312
45313         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45314         <stdlib.h>, <string.h>.
45315
45316 2006-07-30  Bruno Haible  <bruno@clisp.org>
45317
45318         * modules/readlink (License): Change to LGPL.
45319
45320 2006-07-30  Bruno Haible  <bruno@clisp.org>
45321
45322         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45323         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45324         set PKGDATADIR to point to it.
45325
45326 2006-07-30  Bruno Haible  <bruno@clisp.org>
45327
45328         * modules/csharpexec (configure.ac): Comment out macro invocation.
45329         * modules/javaexec (configure.ac): Likewise.
45330         * modules/javacomp-script (configure.ac): Likewise.
45331
45332         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45333
45334 2006-07-30  Bruno Haible  <bruno@clisp.org>
45335
45336         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45337         linked-list.
45338
45339 2006-07-30  Bruno Haible  <bruno@clisp.org>
45340
45341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45342
45343 2006-07-30  Bruno Haible  <bruno@clisp.org>
45344
45345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45346         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45347         get removed.
45348
45349 2006-07-29  Bruno Haible  <bruno@clisp.org>
45350
45351         Make it possible for gnulib-tool to work with locally modified or
45352         augmented gnulib repositories.
45353         * gnulib-tool (func_usage): Document --local-dir option.
45354         (local_gnulib_dir): New variable.
45355         Handle --local-dir option.
45356         (func_lookup_file): New function.
45357         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45358         (func_get_description, func_get_filelist, func_get_description,
45359         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45360         func_get_automake_snippet, func_get_include_directive,
45361         func_get_license, func_get_maintainer): Use func_lookup_file.
45362         (func_import, func_create_testdir): Use func_lookup_file.
45363
45364 2006-07-29  Bruno Haible  <bruno@clisp.org>
45365
45366         * modules/setenv (Depends-on): Add unistd.
45367
45368 2006-07-29  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45371
45372 2006-07-29  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45375
45376 2006-07-29  Bruno Haible  <bruno@clisp.org>
45377
45378         * gnulib-tool (import, update): If there is no Makefile.am, look at
45379         aclocal.m4, instead of bailing out.
45380
45381 2006-07-29  Bruno Haible  <bruno@clisp.org>
45382
45383         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45384         Categorize the options by when they are useful.
45385
45386 2006-07-29  Bruno Haible  <bruno@clisp.org>
45387
45388         * gnulib-tool (func_usage): Document option --no-libtool.
45389         Handle option --no-libtool.
45390         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45391         for changed semantics of $libtool variable.
45392         (func_import): Likewise. If libtool is not used, show this through
45393         an option --no-libtool.
45394         (func_create_testdir): Update.
45395
45396 2006-07-29  Bruno Haible  <bruno@clisp.org>
45397
45398         * gnulib-tool (func_import): Extend error message about missing
45399         --doc-base.
45400
45401 2006-07-29  Bruno Haible  <bruno@clisp.org>
45402
45403         * gnulib-tool (func_import): Don't create the $docbase directory if
45404         there is no file to store there.
45405
45406 2006-07-29  Bruno Haible  <bruno@clisp.org>
45407
45408         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45409         relevant, look for configure.ac there, not in the current directory.
45410         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45411
45412 2006-07-29  Bruno Haible  <bruno@clisp.org>
45413
45414         * gnulib-tool (SORT): New variable.
45415         (func_usage): Undocument --assume-autoconf option.
45416         Remove --assume-autoconf option handling.
45417         (autoconf_minversion): Determine from the contents of configure.ac.
45418         (func_import): Remove autoconf_minversion handling.
45419         Suggested by Eric Blake.
45420
45421 2006-07-29  Bruno Haible  <bruno@clisp.org>
45422
45423         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45424
45425 2006-07-29  Bruno Haible  <bruno@clisp.org>
45426
45427         * config/srclist.txt (*setenv.[ch]): Remove rules.
45428
45429 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45430
45431         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45432
45433 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45434
45435         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45436         arpa/inet.h.
45437
45438 2006-07-28  Simon Josefsson  <jas@extundo.com>
45439
45440         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45441         * modules/inet_pton (Depends-on): Likewise.
45442
45443 2006-07-28  Simon Josefsson  <jas@extundo.com>
45444
45445         * m4/netinet_in_h.m4: New file.
45446
45447 2006-07-28  Simon Josefsson  <jas@extundo.com>
45448
45449         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45450         #include's.
45451
45452 2006-07-28  Simon Josefsson  <jas@extundo.com>
45453
45454         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45455         #include's.
45456
45457 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45458
45459         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45460         setgid on directories only if they set these bits.
45461         * lib/modechange.h: Remove obsolete comment about masks.
45462
45463 2006-07-28  Eric Blake  <ebb9@byu.net>
45464
45465         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45466         macro expansion.
45467
45468 2006-07-28  Bruno Haible  <bruno@clisp.org>
45469
45470         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45471
45472 2006-07-28  Bruno Haible  <bruno@clisp.org>
45473
45474         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45475
45476 2006-07-28  Bruno Haible  <bruno@clisp.org>
45477
45478         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45479         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45480         Define fallbacks.
45481         Avoids link error on FreeBSD 4.x.
45482         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45483
45484         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45485         encoding.
45486         * lib/mbswidth.c (iswcntrl): Likewise.
45487
45488 2006-07-27  Bruno Haible  <bruno@clisp.org>
45489
45490         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45491         test.
45492
45493 2006-07-27  Bruno Haible  <bruno@clisp.org>
45494
45495         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45496         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45497         defined.
45498
45499 2006-07-26  Eric Blake  <ebb9@byu.net>
45500
45501         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45502
45503 2006-07-26  Eric Blake  <ebb9@byu.net>
45504
45505         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45506         like mingw that lack mkstemp.
45507         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45508         avoid compilation warning on mingw.
45509
45510 2006-07-26  Bruno Haible  <bruno@clisp.org>
45511
45512         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45513         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45514         INT_FAST*_MIN, INTPTR_MIN.
45515
45516 2006-07-25  Bruno Haible  <bruno@clisp.org>
45517
45518         * modules/version-etc (Depends-on): Add stdarg.
45519
45520 2006-07-25  Bruno Haible  <bruno@clisp.org>
45521
45522         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45523         complex commands.
45524
45525 2006-07-25  Bruno Haible  <bruno@clisp.org>
45526
45527         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45528         defined in <stdarg.h> or config.h.
45529
45530 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45531
45532         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45533         (gl_STDIO_SAFER): Remove.
45534
45535 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45536
45537         * MODULES.html.sh (File stream based Input/Output):
45538         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45539         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45540         * modules/fopen-safer, modules/tmpfile-safer: New files.
45541         * modules/stdio-safer: Remove.
45542
45543 2006-07-24  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/tmpdir: New file.
45546         * MODULES.html.sh (File system functions): Add it.
45547
45548 2006-07-24  Bruno Haible  <bruno@clisp.org>
45549
45550         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45551         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45552
45553 2006-07-24  Bruno Haible  <bruno@clisp.org>
45554
45555         * modules/clean-temp: New file.
45556
45557 2006-07-24  Bruno Haible  <bruno@clisp.org>
45558
45559         * m4/tmpdir.m4: New file, from GNU gettext.
45560
45561 2006-07-24  Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/tmpdir.h: New file, from GNU gettext.
45564         * lib/tmpdir.c: New file, from GNU gettext.
45565
45566 2006-07-24  Bruno Haible  <bruno@clisp.org>
45567
45568         * lib/clean-temp.h: New file, from GNU gettext.
45569         * lib/clean-temp.c: New file, from GNU gettext.
45570
45571 2006-07-23  Eric Blake  <ebb9@byu.net>
45572
45573         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45574         (Depends-on): Add binary-io.
45575
45576 2006-07-23  Eric Blake  <ebb9@byu.net>
45577
45578         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45579
45580 2006-07-23  Eric Blake  <ebb9@byu.net>
45581
45582         * lib/tmpfile-safer.c: New file.
45583         * lib/stdio-safer.h (fopen_safer): Add prototype.
45584         * lib/stdio--.h (tmpfile): Make safer.
45585
45586 2006-07-23  Bruno Haible  <bruno@clisp.org>
45587
45588         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45589         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45590         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45591         gl_linked_remove_at): Use it.
45592
45593 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45594         and Simon Josefsson <jas@extundo.com>
45595
45596         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45597
45598         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45599
45600 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45601
45602         * modules/close-stream: New file.
45603         * modules/closeout (Description): Make it clear that it exits
45604         with a diagnostic on error.
45605         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45606         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45607
45608 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45609
45610         * m4/close-stream.m4: New file.
45611
45612 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45613
45614         * lib/close-stream.c, lib/close-stream.h: New files.
45615
45616 2006-07-22  Bruno Haible  <bruno@clisp.org>
45617
45618         Merge from GNU gettext 0.15.
45619
45620         2006-05-01  Bruno Haible  <bruno@clisp.org>
45621
45622                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45623
45624         2006-07-22  Bruno Haible  <bruno@clisp.org>
45625
45626                 * modules/javaversion: New file.
45627                 * MODULES.html.sh (Java): Add javaversion.
45628
45629         2006-03-12  Bruno Haible  <bruno@clisp.org>
45630
45631                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45632
45633         2005-12-04  Bruno Haible  <bruno@clisp.org>
45634
45635                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45636                 (untested).
45637
45638         2006-06-21  Bruno Haible  <bruno@clisp.org>
45639
45640                 Avoid warnings from recent versions of mcs.
45641                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45642                 -o, -L, -r any more. Use options documented since mcs-1.0
45643                 instead. Similarly for -g.
45644
45645         2005-12-04  Bruno Haible  <bruno@clisp.org>
45646
45647                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45648                 .resources, not .resource.
45649
45650         2005-07-09  Bruno Haible  <bruno@clisp.org>
45651
45652                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45653                 add a .dll suffix.
45654                 Reported by Mark Junker <mjscod@gmx.de>.
45655
45656         2006-07-22  Bruno Haible  <bruno@clisp.org>
45657
45658                 * modules/gettext: Upgrade to gettext-0.15.
45659                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45660                 m4/visibility.m4.
45661                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45662
45663 2006-07-22  Bruno Haible  <bruno@clisp.org>
45664
45665         Merge from GNU gettext 0.15.
45666
45667         2006-03-25  Bruno Haible  <bruno@clisp.org>
45668
45669                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45670
45671         2006-07-21  Bruno Haible  <bruno@clisp.org>
45672
45673                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45674                 "1.1".
45675
45676         2006-05-09  Bruno Haible  <bruno@clisp.org>
45677
45678                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45679                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45680                 for the conftestver execution.
45681
45682         2006-05-01  Bruno Haible  <bruno@clisp.org>
45683
45684                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45685                 optional target-version argument. Verify that the compiler
45686                 groks source of the specified source-version, or add -source
45687                 option as necessary. Verify that the compiler produces
45688                 bytecode in the specified target-version, or add -target and
45689                 -source options as necessary. Make the result of the test
45690                 available as variable CONF_JAVAC. Also log error output in
45691                 config.log.
45692
45693         2006-03-11  Bruno Haible  <bruno@clisp.org>
45694
45695                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45696
45697         2006-05-09  Bruno Haible  <bruno@clisp.org>
45698
45699                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45700                 CLASSPATH_SEPARATOR to a semicolon.
45701
45702         2006-03-12  Bruno Haible  <bruno@clisp.org>
45703
45704                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45705                 available as variable CONF_JAVA, for subsequent autoconf
45706                 tests. Also log error output in config.log.
45707
45708         2006-07-19  Bruno Haible  <bruno@clisp.org>
45709
45710                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45711                 that getline works on glibc2 systems. Needed to avoid trouble
45712                 in relocatable.c.
45713                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45714
45715         2005-12-04  Bruno Haible  <bruno@clisp.org>
45716
45717                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45718                 launcher (untested).
45719
45720         2005-12-04  Bruno Haible  <bruno@clisp.org>
45721
45722                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45723
45724         2006-07-22  Bruno Haible  <bruno@clisp.org>
45725
45726                 * gettext.m4: Update from GNU gettext-0.15.
45727                 * nls.m4: Likewise.
45728                 * po.m4: Likewise.
45729                 * inttypes-pri.m4: Likewise.
45730                 * inttypes-h.m4: Renamed from inttypes.m4.
45731                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45732
45733 2006-07-22  Bruno Haible  <bruno@clisp.org>
45734
45735         Merge from GNU gettext 0.15.
45736
45737         2005-07-05  Bruno Haible  <bruno@clisp.org>
45738
45739                 * printf-args.c (printf_fetchargs): Work around broken
45740                 definition of wint_t on mingw.
45741
45742         2005-02-12  Bruno Haible  <bruno@clisp.org>
45743
45744                 * xallocsa.h: Add extern "C" for C++.
45745
45746         2006-05-17  Bruno Haible  <bruno@clisp.org>
45747
45748                 Cygwin portability.
45749                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45750
45751         2006-04-30  Bruno Haible  <bruno@clisp.org>
45752
45753                 * progreloc.c: Include <mach-o/dyld.h> if available.
45754                 (find_executable): Use _NSGetExecutablePath when possible.
45755
45756         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45757
45758                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45759                 function.
45760
45761         2005-12-29  Bruno Haible  <bruno@clisp.org>
45762
45763                 * progreloc.c (set_program_name_and_installdir): Fix
45764                 compilation error.
45765
45766         2005-12-04  Bruno Haible  <bruno@clisp.org>
45767
45768                 Cygwin portability.
45769                 * progreloc.c: Include <windows.h> also on Cygwin.
45770                 (find_executable): Add support for Cygwin.
45771                 (set_program_name_and_installdir): Handle also platforms with
45772                 nonempty EXEEXT.
45773
45774         2006-07-11  Bruno Haible  <bruno@clisp.org>
45775
45776                 * javacomp.c: Fix a comment.
45777                 Reported by Jim Meyering.
45778
45779         2006-04-30  Bruno Haible  <bruno@clisp.org>
45780
45781                 * javacomp.h (compile_java_class): Add source_version,
45782                 target_version arguments.
45783                 * javacomp.c: Rewritten to choose only a compiler that
45784                 respects the specified source_version and target_version.
45785
45786         2006-06-27  Bruno Haible  <bruno@clisp.org>
45787
45788                 Assume correct S_ISDIR macro.
45789                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45790
45791         2006-07-22  Bruno Haible  <bruno@clisp.org>
45792
45793                 * javaversion.h: New file, from GNU gettext.
45794                 * javaversion.c: New file, from GNU gettext.
45795                 * javaversion.java: New file, from GNU gettext.
45796                 * javaversion.class: New file, from GNU gettext.
45797
45798         2006-05-17  Bruno Haible  <bruno@clisp.org>
45799
45800                 Cygwin portability.
45801                 * javaexec.c (execute_java_class): Test for jview program
45802                 also on Cygwin.
45803
45804         2006-04-09  Bruno Haible  <bruno@clisp.org>
45805
45806                 * fatal-signal.c: Don't include string.h.
45807                 (at_fatal_signal): Use a copying loop instead of memcpy.
45808
45809         2005-12-04  Bruno Haible  <bruno@clisp.org>
45810
45811                 * csharpexec.c: Add support for 'clix' launcher (untested).
45812                 (execute_csharp_using_sscli): New function.
45813                 (execute_csharp_program): Call it.
45814
45815         2006-06-21  Bruno Haible  <bruno@clisp.org>
45816
45817                 Avoid warnings from recent versions of mcs.
45818                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45819                 -o, -L, -r any more. Use options documented since mcs-1.0
45820                 instead. Similarly for -g.
45821
45822         2005-07-09  Bruno Haible  <bruno@clisp.org>
45823
45824                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45825                 add a .dll suffix.
45826                 Reported by Mark Junker <mjscod@gmx.de>.
45827
45828         2006-06-17  Bruno Haible  <bruno@clisp.org>
45829
45830                 * config.charset: Update for NetBSD 3.0.
45831
45832         2006-05-17  Bruno Haible  <bruno@clisp.org>
45833
45834                 Cygwin portability.
45835                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45836
45837         2006-05-16  Bruno Haible  <bruno@clisp.org>
45838
45839                 * localcharset.c [CYGWIN]: Include <windows.h>.
45840                 (get_charset_aliases): For Cygwin, return the same CPxxx
45841                 aliases list as under WIN32.
45842                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45843                 the environment variables. Fall back to GetACP().
45844
45845         2006-04-05  Bruno Haible  <bruno@clisp.org>
45846
45847                 * config.charset: Update Juan Manuel Guerrero's address.
45848
45849         2005-02-12  Bruno Haible  <bruno@clisp.org>
45850
45851                 * allocsa.h: Add extern "C" for C++.
45852
45853         2005-02-10  Bruno Haible  <bruno@clisp.org>
45854
45855                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45856                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45857
45858         2006-07-22  Bruno Haible  <bruno@clisp.org>
45859
45860                 * gettext.h: Update to GNU gettext-0.15.
45861
45862 2006-07-22  Bruno Haible  <bruno@clisp.org>
45863
45864         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45865         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45866         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45867
45868 2006-07-21  Eric Blake  <ebb9@byu.net>
45869
45870         * modules/stdlib-safer: New file.
45871         * MODULES.html.sh (File stream based Input/Output): Add
45872         stdlib-safer.
45873
45874 2006-07-21  Eric Blake  <ebb9@byu.net>
45875
45876         * lib/stdlib-safer.h: New file from coreutils, required by
45877         stdlib--.h.
45878
45879 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45880
45881         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45882
45883 2006-07-20  Bruno Haible  <bruno@clisp.org>
45884
45885         * gnulib-tool: Recognize new option --assume-autoconf.
45886         (autoconf_minversion): New variable.
45887         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45888
45889 2006-07-20  Bruno Haible  <bruno@clisp.org>
45890
45891         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45892
45893 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45894
45895         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45896         Reindent and repaginate.
45897
45898 2006-07-19  Derek Price  <derek@ximbiot.com>
45899
45900         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45901         Correct grammar.
45902
45903 2006-07-17  Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/list: New file.
45906         * modules/array-list: New file.
45907         * modules/carray-list, modules/carray-list-tests: New files.
45908         * modules/linked-list, modules/linked-list-tests: New files.
45909         * modules/avltree-list, modules/avltree-list-tests: New files.
45910         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45911         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45912         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45913         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45914         * modules/oset: New file.
45915         * modules/array-oset: New file.
45916         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45917         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45918         * tests/test-carray_list.c: New file.
45919         * tests/test-linked_list.c: New file.
45920         * tests/test-avltree_list.c: New file.
45921         * tests/test-rbtree_list.c: New file.
45922         * tests/test-linkedhash_list.c: New file.
45923         * tests/test-avltreehash_list.c: New file.
45924         * tests/test-rbtreehash_list.c: New file.
45925         * tests/test-avltree_oset.c: New file.
45926         * tests/test-rbtree_oset.c: New file.
45927         * MODULES.html.sh (Container data structures): New section.
45928
45929 2006-07-17  Bruno Haible  <bruno@clisp.org>
45930
45931         * m4/gl_list.m4: New file.
45932
45933 2006-07-17  Bruno Haible  <bruno@clisp.org>
45934
45935         * lib/gl_list.h: New file.
45936         * lib/gl_list.c: New file.
45937         * lib/gl_array_list.h: New file.
45938         * lib/gl_array_list.c: New file.
45939         * lib/gl_carray_list.h: New file.
45940         * lib/gl_carray_list.c: New file.
45941         * lib/gl_linked_list.h: New file.
45942         * lib/gl_linked_list.c: New file.
45943         * lib/gl_anylinked_list1.h: New file.
45944         * lib/gl_anylinked_list2.h: New file.
45945         * lib/gl_avltree_list.h: New file.
45946         * lib/gl_avltree_list.c: New file.
45947         * lib/gl_anyavltree_list1.h: New file.
45948         * lib/gl_anyavltree_list2.h: New file.
45949         * lib/gl_rbtree_list.h: New file.
45950         * lib/gl_rbtree_list.c: New file.
45951         * lib/gl_anyrbtree_list1.h: New file.
45952         * lib/gl_anyrbtree_list2.h: New file.
45953         * lib/gl_anytree_list1.h: New file.
45954         * lib/gl_anytree_list2.h: New file.
45955         * lib/gl_linkedhash_list.h: New file.
45956         * lib/gl_linkedhash_list.c: New file.
45957         * lib/gl_anyhash_list1.h: New file.
45958         * lib/gl_anyhash_list2.h: New file.
45959         * lib/gl_avltreehash_list.h: New file.
45960         * lib/gl_avltreehash_list.c: New file.
45961         * lib/gl_rbtreehash_list.h: New file.
45962         * lib/gl_rbtreehash_list.c: New file.
45963         * lib/gl_anytreehash_list1.h: New file.
45964         * lib/gl_anytreehash_list2.h: New file.
45965
45966         * lib/gl_oset.h: New file.
45967         * lib/gl_oset.c: New file.
45968         * lib/gl_array_oset.h: New file.
45969         * lib/gl_array_oset.c: New file.
45970         * lib/gl_avltree_oset.h: New file.
45971         * lib/gl_avltree_oset.c: New file.
45972         * lib/gl_rbtree_oset.h: New file.
45973         * lib/gl_rbtree_oset.c: New file.
45974         * lib/gl_anytree_oset.h: New file.
45975
45976 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45977
45978         * m4/mkancesdirs.m4: New file.
45979         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45980         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45981         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45982         it.
45983
45984 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45985
45986         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45987         * lib/mkancesdirs.h: New files.
45988         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45989         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45990         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45991         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45992         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45993         callers changed.  Revamp internals significantly, by not
45994         attempting to create directories that are temporarily more
45995         permissive than the final results.  Do not attempt to use
45996         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45997         This removes some race conditions, fixes some bugs, and simplifies
45998         things.  Use new dirchownmod function to do owner and mode changes.
45999         * lib/mkdir-p.h: Likewise.
46000         * lib/modechange.c (octal_to_mode): New function.
46001         (struct mode_change): New member mentioned.
46002         (make_node_op_equals): New arg mentioned.  All callers changed.
46003         (mode_compile): Keep track of which mode bits the user has explicitly
46004         mentioned.
46005         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46006         New arg PMODE_BITS, to keep track of which mode bits the user
46007         mentioned; it treats S_ISUID and S_ISGID speciall.
46008         All callers changed.
46009         * lib/modechange.h: Likewise.
46010
46011 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46012
46013         * MODULES.html.sh: Add mkancestors.
46014         * modules/mkancesdirs: New module.
46015         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46016         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46017         The chdir-safer and afs files are now orphans; I'll remove them
46018         unless someone speaks up.
46019         Add lib/dirchownmod.c, lib/dirchownmod.h.
46020         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46021         Add lchown, mkancesdirs.
46022         (Maintainer): Add self.
46023
46024 2006-07-15  Karl Berry  <karl@gnu.org>
46025
46026         * gnulib-tool: help message wording/arrangement.
46027
46028 2006-07-14  Simon Josefsson  <jas@extundo.com>
46029
46030         * doc/gnulib.texi (Libtool and Windows): New section.
46031
46032 2006-07-12  Simon Josefsson  <jas@extundo.com>
46033
46034         * modules/gendocs (License): Fix license, approved by Karl.
46035
46036 2006-07-12  Eric Blake  <ebb9@byu.net>
46037
46038         * MODULES.html.sh: Add gendocs.
46039
46040 2006-07-11  Eric Blake  <ebb9@byu.net>
46041
46042         * modules/fdl: New module, to install doc/fdl.texi.
46043         * MODULES.html.sh: Add new section for documentation modules.
46044         * gnulib-tool: Avoid space-tab.
46045         (--doc-base): New option, to manage files from doc.
46046
46047 2006-07-11  Eric Blake  <ebb9@byu.net>
46048
46049         * m4/absolute-header.m4: Fix comments to match recent change.
46050
46051 2006-07-11  Eric Blake  <ebb9@byu.net>
46052
46053         * gnulib-tool: List --doc-base before --tests-base.
46054
46055 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46056
46057         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46058
46059 2006-07-11  Bruno Haible  <bruno@clisp.org>
46060
46061         * README: Mention where to put documentation.
46062
46063 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46064
46065         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46066
46067 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46068
46069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46070         to stdint.m4.
46071
46072 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46073
46074         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46075         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46076         "no/such/file/stdint.h" when there is no such file, so that
46077         the resulting C code can be parsed by dodgy compilers.
46078         Problems reported by Bob Proulx.
46079
46080 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46081
46082         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46083         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46084         macros into the GNU _D_EXACT_NAMLEN.
46085         * lib/savedir.c:  Likewise.
46086         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46087
46088 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46089         and Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46092         * m4/savedir.m4:
46093         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46094         macros into the GNU _D_EXACT_NAMLEN.
46095
46096 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46097
46098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46099         around the absolute name, to work around a problem with the HP-UX
46100         11.23 native C compiler, reported by Bob Proulx.
46101
46102 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46103
46104         * doc/maintain.texi, make-stds.texi: Sync from
46105         <http://savannah.gnu.org/projects/gnustandards>.
46106
46107 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46108
46109         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46110
46111 2006-07-09  Jim Meyering  <jim@meyering.net>
46112
46113         * m4/glob.m4: Remove a doubled word in a comment.
46114
46115 2006-07-09  Jim Meyering  <jim@meyering.net>
46116
46117         * lib/argp-pv.c: Remove a doubled word in a comment.
46118         * lib/check-version.c (check_version): Likewise.
46119         * lib/javacomp.c (compile_java_class): Likewise.
46120
46121 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46122
46123         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46124         for the benefit of people using Autoconf 2.60.  If you want to
46125         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46126         (or m4/onceonly.m4, if pre-2.57) manually.
46127
46128 2006-07-08  Jim Meyering  <jim@meyering.net>
46129
46130         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46131         comment.
46132         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46133         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46134         comment.
46135
46136 2006-07-08  Jim Meyering  <jim@meyering.net>
46137
46138         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46139
46140 2006-07-07  Simon Josefsson  <jas@extundo.com>
46141
46142         * tests/test-crc.c: Change expected crc value, the test vector
46143         were probably computed using the old broken crc.c?
46144
46145 2006-07-06  Simon Josefsson  <jas@extundo.com>
46146
46147         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46148         now the canonical place for the M4 file).
46149
46150         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46151         from the sys_socket dependency now.
46152
46153         * modules/inet_pton (Files): Ditto.
46154
46155         * modules/inet_ntop (Files): Ditto.
46156
46157 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46158
46159         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46160         not gl_PREREQ_GETUSERSHELL.
46161
46162 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46163
46164         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46165         with only one argument, for Autoconf 2.60.
46166         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46167         expand to nothing, so add a shell command to avoid syntax error.
46168         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46169
46170 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46171
46172         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46173
46174 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46175
46176         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46177         no longer needed.  Check for isblank decl.
46178         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46179         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46180         of existence.
46181
46182 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46183
46184         * lib/getloadavg.c: Use __VMS, not VMS.
46185         * lib/getopt.c: Likewise.
46186         * lib/getpagesize.h: Likewise.
46187         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46188         and probably does not work.
46189
46190 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46191
46192         * lib/.cppi-disable: Add wcwidth.
46193         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46194         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46195         (ISGRAPH): Remove.  All uses changed to isgraph.
46196         (FOLD) [!defined _LIBC]: Remove special case.
46197         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46198         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46199         HAVE_ISBLANK.
46200         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46201         case.
46202
46203 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46204
46205         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46206         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46207         brackets.  Other minor changes to suppress some compiler
46208         warnings.
46209
46210 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46211         and Paul Eggert  <eggert@cs.ucla.edu>
46212
46213         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46214         of invoking obsolescent AC_HEADER_DIRENT macro.
46215         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46216         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46217         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46218         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46219         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46220         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46221         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46222         * m4/readdir.m4: Remove; no longer needed.
46223
46224 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46225         and Paul Eggert  <eggert@cs.ucla.edu>
46226
46227         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46228         Don't worry about this obsolete case any more.
46229         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46230         directories.
46231         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46232         worry about this obsolete case any more.
46233         * lib/fts.c: Likewise.
46234         * lib/getcwd.c: Likewise.
46235         * lib/glob.h: Likewise.
46236         * lib/savedir.c: Likewise.
46237
46238 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46241         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46242         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46243         needed.
46244         All uses removed.
46245         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46246         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46247         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46248         needed.
46249         * m4/getdate.m4 (gl_GETDATE): Likewise.
46250         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46251         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46252         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46253         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46254         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46255         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46256         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46257         needed.
46258
46259 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46260
46261         * lib/memcasecmp.c: Include <limits.h>.
46262         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46263         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46264         Don't assume isdigit succeeds only on '0' through '9'.
46265
46266 2006-07-05  Eric Blake  <ebb9@byu.net>
46267
46268         * modules/getaddrinfo (Depends-on): Add snprintf.
46269
46270 2006-07-05  Eric Blake  <ebb9@byu.net>
46271
46272         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46273         to avoid 'header present but could not be compiled' on cygwin.
46274
46275 2006-07-05  Eric Blake  <ebb9@byu.net>
46276
46277         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46278         missing from netdb.h.
46279         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46280
46281 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46282
46283         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46284         no longer needed.
46285         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46286         * m4/getdate.m4 (gl_GETDATE): Likewise.
46287         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46288         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46289         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46290         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46291         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46292
46293 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46294
46295         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46296         All uses of is_space replaced by isspace.
46297         * lib/exit.h: Don't talk about STDC_HEADERS.
46298         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46299         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46300         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46301         replaced by isprint etc.
46302         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46303         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46304         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46305         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46306         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46307         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46308
46309 2006-07-05  Bruno Haible  <bruno@clisp.org>
46310
46311         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46312         the function exists, before testing against AIX.
46313         Reported by Martin Lambers <marlam@marlam.de>.
46314
46315 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46316
46317         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46318         From Mark D. Baushke.
46319
46320 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46321
46322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46323         to the absolute name, not just one, to bypass Sun C 5.8's
46324         "warning: #include of /usr/include/... may be non-portable".
46325
46326 2006-07-04  Eric Blake  <ebb9@byu.net>
46327
46328         * modules/dirname-tests: New test module.
46329         * tests/test-dirname.c: New file, replacing dirname.c
46330         TEST_DIRNAME section that was recently deleted.
46331
46332 2006-07-04  Bruno Haible  <bruno@clisp.org>
46333
46334         Assume ANSI C header files and <ctype.h> functions.
46335         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46336         (mbsnwidth): Use isprint, iscntrl instead.
46337
46338 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46339
46340         Merge from coreutils.
46341         * MODULES.html.sh: Add xstrtold.
46342         * modules/xstrtold: New file.
46343         * modules/cycle-check (Files): Add lib/same-inode.h.
46344         * modules/dirname (Files): Add m4/double-slash-root.m4.
46345         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46346         * modules/mkdir-p (Files): Add lib/same-inode.h.
46347         * modules/same (Files): Add lib/same-inode.h.
46348
46349 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46350
46351         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46352         This is to keep the terminology clean; POSIX talks about
46353         "absolute pathnames", not "full pathnames", but the GNU
46354         Coding Standards say to use "path" for something else;
46355         so use "absolute" to keep both sides happy.
46356         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46357         Set gl_absolute_header, not gl_full_header_path.
46358         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46359         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46360         All uses changed.
46361
46362         Merge from coreutils.
46363
46364         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46367         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46368         want to require the building of c-strtod.o.
46369         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46370         needs -lm directly.
46371         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46372
46373         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46374
46375         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46376         --as-needed option if available.  Problem reported by Albert Chin in
46377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46378         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46379         cc merely issues a bunch of annoying warnings for --as-needed
46380         (this problem was reported by Bob Proulx).  Also, try linking with
46381         -lm to detect a bug in binutils 2.16 (this problem was reported
46382         by Ralf Wildenhues).
46383
46384         2006-06-18  Jim Meyering  <jim@meyering.net>
46385
46386         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46387         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46388         macro.
46389         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46390         also check for glibc-2.4's abort-inducing bug.
46391
46392         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46393         Low-probability clean-up should be to use rmdir to get rid of
46394         the just-created directory, not unlink.
46395
46396         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46397         configure fail, and request a bug report to inform us about it.
46398         Add a comment that, barring reports to the contrary, in 2007 we'll
46399         assume ftruncate is universally available.
46400
46401         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46402
46403         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46404
46405         2006-03-12  Jim Meyering  <jim@meyering.net>
46406
46407         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46408         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46409         * m4/same.m4 (gl_SAME): Likewise.
46410         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46411
46412         2006-03-11  Eric Blake  <ebb9@byu.net>
46413
46414         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46415         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46416         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46417         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46418
46419 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46420
46421         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46422         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46423         reported by Mark D. Baushke, one in
46424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46425
46426         Merge from coreutils.
46427
46428         * lib/.cppi-disable: Add stdint_.h.
46429         * lib/.cvsignore: Add stdint.h.
46430
46431         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46432
46433         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46434         both double and long double versions.
46435         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46436         * lib/xstrtold.c: New file.
46437         * lib/xstrtod.h (xstrtold): New decl.
46438
46439         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46440
46441         * lib/filemode.c (setst): Remove.
46442         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46443         (arguably) clearer, and the generated code is a bit smaller on my
46444         Debian GNU/Linux stable x86 host.
46445
46446         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46447
46448         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46449         Assume that filemode.h includes sys/types.h and sys/stat.h.
46450         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46451         (ftypelet): Reorder to put common cases first, for efficiency.
46452         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46453         to do 'M'.
46454         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46455         of 10, for compatibility with FreeBSD.  All callers changed.
46456         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46457         types that can't be deduced solely from st_mode.  First arg is now a
46458         const pointer.
46459         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46460         (strmode): Renamed from mode_string.
46461         (filemodestring): New decl.
46462         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46463         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46464         needed.
46465         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46466
46467         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46470         fsusage.h now does that.  Include fsusage.h first, to test interface.
46471         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46472         at most one method (the old code could have generated decls that
46473         didn't conform to C89, not that this was ever exercised).
46474         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46475
46476         2006-03-19  Jim Meyering  <jim@meyering.net>
46477
46478         Work even in a chroot where d_ino values for entries in "/"
46479         don't match the stat.st_ino values for the same names.
46480         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46481         number, iterate through all entries again, using lstat instead.
46482         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46483         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46484
46485         * lib/getcwd.c (__getcwd): Clarify a comment.
46486         Use memcpy in place of a call to strcpy.
46487
46488         2006-03-12  Jim Meyering  <jim@meyering.net>
46489
46490         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46491         matches that of the current directory (which we're about to chdir ".."
46492         out of), then save the dev-ino of the parent, instead.
46493
46494         * lib/same-inode.h (SAME_INODE): New file/macro.
46495         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46496         Include "same-inode.h", instead.
46497         * lib/same.c: Likewise.
46498         * lib/cycle-check.h: Include "same-inode.h".
46499         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46500         * lib/cycle-check.c (SAME_INODE): Remove definition.
46501         * lib/root-dev-ino.h: Include "same-inode.h".
46502
46503         2006-03-11  Eric Blake  <ebb9@byu.net>
46504
46505         * lib/same.c (same_name): s/base_name/last_component/
46506         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46507         * lib/filenamecat.c (file_name_concat): Likewise.
46508
46509         2006-03-11  Eric Blake  <ebb9@byu.net>,
46510                     Paul Eggert  <eggert@cs.ucla.edu>
46511
46512         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46513         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46514         drive prefix.
46515         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46516         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46517         (last_component): New method.
46518         * lib/dirname.c (dir_len): Determine when drive letters need a
46519         subsequent slash.  Preserve // when it is special.
46520         (dir_name): Don't append dot when drive letter is absolute.
46521         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46522         * lib/basename.c (base_name): New semantics - malloc the result.
46523         Preserve // when it is special.  Preserve relative files that look
46524         like drive letters.
46525         (base_len): Preserve // when it is special.
46526         (last_component): New method, similar to old base_name semantics.
46527         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46528         base_name.  Strip redundant slashes from ///.
46529
46530 2006-07-03  Jim Meyering  <jim@meyering.net>
46531
46532         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46533         macro is used before the first cycle_check call.
46534
46535 2006-07-03  Eric Blake  <ebb9@byu.net>
46536
46537         * modules/dirname (Depends-on): Add xstrndup.
46538
46539 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46540
46541         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46542         test cases, so that config.log is a bit easier to follow.
46543
46544 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46545
46546         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46547         both are 64 bits, since this seems to be the tradition, and this
46548         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46549         we ever run into a host that prefers long long to long in this
46550         case, we'll need another configure-time test.  Problem reported by
46551         Jim Meyering.
46552
46553 2006-07-02  Eric Blake  <ebb9@byu.net>
46554
46555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46556
46557 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46558
46559         * modules/inttypes (Depends-on): No longer depends on stdint.
46560         * modules/stdint (Description): Say more about assumptions.
46561         Say that the fast types might differ.  Say macros are used.
46562         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46563         (Makefile.am): Revise list of substituted symbols to match
46564         new stdint.m4.
46565         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46566         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46567         * tests/test-stdint.c (verify_same_types)
46568         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46569         the code conforms to C99/C89.
46570         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46571         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46572
46573 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46574
46575         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46576         but fix a bug, by requiring at least 64 bits.
46577         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46578         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46579         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46580         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46581
46582         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46583         changes.  Make 2.59 a prerequisite.  Check and substitute for
46584         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46585         inttypes.h.  Do not use special include files; just use the
46586         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46587         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46588         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46589         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46590         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46591         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46592         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46593         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46594         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46595         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46596         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46597         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46598         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46599         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46600         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46601         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46602         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46603         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46604         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46605         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46606         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46607         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46608         not check for things that C99 does not require, e.g., int8_t.  If
46609         a test isn't needed unless <stdint.h> isn't working, and is
46610         unlikely to be needed for any other reason, then don't do it
46611         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46612         size_t, since we assume C89 freestanding at least.  Do not check
46613         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46614         the right thing even if the types are not defined.  Instead use:
46615         (gl_STDINT_TYPE_PROPERTIES): New macro.
46616         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46617         testing whether <sys/types.h> clashes, as Autoconf does this for
46618         us now.  All uses removed.
46619         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46620         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46621         (gl_CHECK_TYPE_SAME):
46622         Remove; no longer needed.
46623         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46624         exists, since we'll return 0 anyway in that case.
46625         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46626
46627 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46628
46629         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46630         possible collision with system files.
46631         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46632         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46633         WCHAR_MIN and WCHAR_MAX in this case.
46634         (<stddef.h>): Do not include; no longer needed.
46635         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46636         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46637         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46638         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46639         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46640         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46641         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46642         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46643         !defined(__c99))]: Include in this case too, since it's harmless
46644         now.
46645         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46646         dangerous to do so.
46647         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46648         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46649         (_STDINT_MIN, _STDINT_MAX): New macros.
46650         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46651         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46652         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46653         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46654         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46655         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46656         macros, not typedefs; this simplifies things quite a bit.
46657         Use long int for all types narrower than int64_t.
46658         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46659         Define in terms of long long int or int64_t or long int,
46660         not int64_t or int32_t.  This saves some compile-time testing.
46661         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46662         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46663         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46664         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46665         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46666         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46667         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46668         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46669         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46670         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46671         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46672         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46673         undef any previous version and define our own version, for
46674         simplicity and consistency with the new macros for types.
46675         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46676         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46677         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46678         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46679         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46680         @WINT_T_SUFFIX@ to keep things simple here.
46681         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46682         Simplify by assuming typical 8/16/32/64 host, since we're
46683         already doing that elsewhere anyway.
46684         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46685         and assume long long int is 64 bits if available.  This
46686         speeds up 'configure'.
46687
46688 2006-07-01  Eric Blake  <ebb9@byu.net>
46689
46690         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46691         Reported by Andreas Buening.
46692
46693 2006-07-01  Eric Blake  <ebb9@byu.net>
46694
46695         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46696
46697 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46698
46699         * lib/getaddrinfo.c: fixed typo
46700
46701 2006-06-29  Jim Meyering  <jim@meyering.net>
46702
46703         * modules/strftime (Maintainer): Add my name, since with the
46704         FPRINTFTIME changes strftime.c has forked from glibc.
46705
46706 2006-06-29  Eric Blake  <ebb9@byu.net>
46707
46708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46709
46710 2006-06-29  Eric Blake  <ebb9@byu.net>
46711
46712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46713
46714 2006-06-29  Eric Blake  <ebb9@byu.net>
46715
46716         * lib/stat_.h: New file.
46717
46718 2006-06-29  Eric Blake  <ebb9@byu.net>
46719
46720         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46721         unused static function.
46722
46723 2006-06-29  Eric Blake  <ebb9@byu.net>
46724
46725         * doc/functions.texi (Function Portability): Document missing lstat
46726         on mingw.
46727
46728 2006-06-29  Eric Blake  <ebb9@byu.net>
46729
46730         * MODULES.html.sh: Add sys_stat.
46731         * modules/sys_stat: New module.
46732         * modules/mkstemp (Depends-on): Add sys_stat.
46733
46734 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46735
46736         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46737
46738 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46739
46740         * m4/c-bs-a.m4: Removed.
46741
46742 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46743
46744         * lib/strftime.c: Assume strftime() exists.
46745
46746 2006-06-29  Derek Price  <derek@ximbiot.com>
46747
46748         * modules/c-bs-a: Removed - \a is C89.
46749         * MODULES.html.sh: Remove c-bs-a.
46750
46751 2006-06-29  Bruno Haible  <bruno@clisp.org>
46752
46753         * modules/wcwidth (License): Change to LGPL.
46754
46755 2006-06-28  Simon Josefsson  <jas@extundo.com>
46756
46757         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46758         on _WIN32.
46759
46760         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46761         getnameinfo.
46762
46763 2006-06-28  Simon Josefsson  <jas@extundo.com>
46764
46765         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46766
46767 2006-06-28  Simon Josefsson  <jas@extundo.com>
46768
46769         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46770         functions there.  It will succeed on Windows XP, but on Windows
46771         2000 and (presumably) earlier, it will fail, and use the internal
46772         re-implementation.
46773         (use_win32_p): New function.
46774         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46775         Support AI_NUMERICSERV to disable getservbyname.
46776         (getnameinfo): New function, only supports
46777         NI_NUMERICHOST|NI_NUMERICSERV for now.
46778
46779         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46780         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46781         getnameinfo.
46782
46783 2006-06-28  Eric Blake  <ebb9@byu.net>
46784
46785         * modules/wcwidth: New file.
46786         * modules/mbchar (Depends-on): Add wcwidth.
46787         * modules/mbswidth (Depends-on): Add wcwidth.
46788         * MODULES.html.sh: Add wcwidth.
46789
46790 2006-06-28  Eric Blake  <ebb9@byu.net>
46791
46792         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46794
46795 2006-06-28  Eric Blake  <ebb9@byu.net>
46796
46797         * lib/xvasprintf.h: Fix comments.
46798
46799 2006-06-28  Eric Blake  <ebb9@byu.net>
46800
46801         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46802         * lib/mbswidth.c (wcwidth): Move from here...
46803         * lib/wcwidth.h: ...to this new file.
46804
46805 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46806
46807         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46808
46809         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46810         it's obsolete.
46811         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46812
46813 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46814
46815         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46816         Autoconf 2.60 says this stuff was obsolete.
46817
46818 2006-06-28  Bruno Haible  <bruno@clisp.org>
46819
46820         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46821
46822 2006-06-28  Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46825         gt_TYPE_WCHAR_T.
46826
46827 2006-06-28  Bruno Haible  <bruno@clisp.org>
46828
46829         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46830         declaration for wcwidth.
46831         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46832
46833 2006-06-28  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46836         (mkdir): Define using _mkdir.
46837
46838 2006-06-28  Bruno Haible  <bruno@clisp.org>
46839
46840         * lib/getaddrinfo.h: Fix POSIX URL.
46841         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46842         _WIN32.
46843         (use_win32_p): Make static.
46844         (getaddrinfo): Reject service name if it is empty or does not consist
46845         solely of decimal digits, or if its value is > 65535.
46846         (getnameinfo): Remove useless casts.
46847
46848 2006-06-27  Simon Josefsson  <jas@extundo.com>
46849
46850         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46851         Eggert and Martin Lambers.
46852
46853 2006-06-27  Simon Josefsson  <jas@extundo.com>
46854
46855         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46856         Eggert and Martin Lambers.
46857
46858 2006-06-27  Bruno Haible  <bruno@clisp.org>
46859
46860         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46861         result to 0, not to empty.
46862         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46863
46864 2006-06-27  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46867
46868 2006-06-26  Simon Josefsson  <jas@extundo.com>
46869
46870         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46871         present.
46872
46873 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46876         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46877         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46878
46879 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46880
46881         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46882
46883 2006-06-26  Bruno Haible  <bruno@clisp.org>
46884
46885         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46886
46887 2006-06-26  Bruno Haible  <bruno@clisp.org>
46888
46889         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46890
46891 2006-06-26  Bruno Haible  <bruno@clisp.org>
46892
46893         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46894         SGI C compiler in pre-C99 mode.
46895         Suggested by Mark D. Baushke and Larry Jones.
46896
46897 2006-06-26  Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46900         WCHAR_MAX.
46901         Reported by Mark D. Baushke and Larry Jones.
46902
46903 2006-06-26  Bruno Haible  <bruno@clisp.org>
46904
46905         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46906         in pre-C99 mode.
46907         Suggested by Mark D. Baushke and Larry Jones.
46908
46909 2006-06-23  Simon Josefsson  <jas@extundo.com>
46910             Bruno Haible  <bruno@clisp.org>
46911
46912         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46913         Emit mostlyclean-local rule.
46914         (func_emit_tests_Makefile_am): Likewise.
46915         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46916
46917 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46918
46919         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46920
46921 2006-06-23  Bruno Haible  <bruno@clisp.org>
46922
46923         * tests/test-stdint.c: Update to match ISO C 99 Technical
46924         Corrigendum 1.
46925
46926 2006-06-23  Bruno Haible  <bruno@clisp.org>
46927
46928         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46929
46930 2006-06-23  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/stdint_.h: Treat IRIX like OpenBSD.
46933
46934 2006-06-23  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46937         ISO C 99 Technical Corrigendum 1.
46938
46939 2006-06-22  Simon Josefsson  <jas@extundo.com>
46940
46941         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46942         MinGW.
46943
46944 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46945
46946         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46947         needed.  Some compiler complained about some of them.  Problem reported
46948         by Larry Jones in
46949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46950
46951 2006-06-21  Simon Josefsson  <jas@extundo.com>
46952
46953         * tests/test-getaddrinfo.c: New file.
46954
46955         * modules/getaddrinfo-tests: New file.
46956
46957         * MODULES.html.sh: Add inet_pton.
46958
46959         * modules/inet_pton: New file.
46960
46961 2006-06-21  Simon Josefsson  <jas@extundo.com>
46962
46963         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46964         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46965         of using the (limited) gnulib implementation on Windows XP.
46966
46967         * m4/inet_pton.m4: New file.
46968
46969 2006-06-21  Simon Josefsson  <jas@extundo.com>
46970
46971         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46972         variable.
46973
46974         * lib/socket_.h: Don't define WINVER.
46975
46976         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46977         slightly modified to work in gnulib.
46978
46979 2006-06-21  Simon Josefsson  <jas@extundo.com>
46980
46981         * doc/gnulib.texi (Windows sockets): Add.
46982
46983 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46984
46985         * lib/read-file.c (fread_file): Start with buffer allocation of
46986         0 bytes rather than 1 byte; this simplifies the code.
46987         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46988         code to free buffer and save/restore errno.
46989         (internal_read_file): Remove unused local.
46990
46991 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46992
46993         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46994         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46995         Problem reported by Denis Excoffier in
46996         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46997
46998 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46999
47000         * modules/sys_socket, modules/socklen: Include sys/types since
47001         FreeBSD 4.x's sys/socket.h needs it.
47002
47003 2006-06-19  Simon Josefsson  <jas@extundo.com>
47004
47005         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47006
47007 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47008
47009         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47010
47011 2006-06-19  Bruno Haible  <bruno@clisp.org>
47012
47013         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47014         and FULL_PATH_INTTYPES_H in angle brackets.
47015         Reported by Mark D. Baushke <mdb@gnu.org>.
47016
47017 2006-06-17  Eric Blake  <ebb9@byu.net>
47018
47019         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47020         errno.
47021
47022 2006-06-17  Bruno Haible  <bruno@clisp.org>
47023
47024         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47025         <sys/inttypes.h>.
47026
47027 2006-06-17  Bruno Haible  <bruno@clisp.org>
47028
47029         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47030         whether errno is declared. Assume <errno.h> declares errno.
47031
47032 2006-06-17  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47035
47036 2006-06-17  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47039         problem on Solaris 2.5.1.
47040
47041 2006-06-16  Eric Blake  <ebb9@byu.net>
47042
47043         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47044         * lib/unicodeio.c [!defined errno]: Likewise.
47045         * lib/strtol.c [!defined errno]: Likewise.
47046         * lib/strtod.c [!defined errno]: Likewise.
47047
47048 2006-06-15  Eric Blake  <ebb9@byu.net>
47049
47050         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47051
47052 2006-06-15  Eric Blake  <ebb9@byu.net>
47053
47054         * config/srclist.txt (ssize_t.m4): Lose sync.
47055
47056 2006-06-15  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/stdint (Files): Include m4/full-header-path.m4,
47059         m4/size_max.m4, m4/wchar_t.m4.
47060         (Makefile.am): Many more substitutions.
47061         * modules/stdint-tests: New file.
47062         * tests/test-stdint.c: New file.
47063
47064 2006-06-15  Bruno Haible  <bruno@clisp.org>
47065
47066         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47067         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47068         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47069         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47070         gl_CHECK_TYPE_SAME): New macros.
47071
47072 2006-06-15  Bruno Haible  <bruno@clisp.org>
47073
47074         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47075
47076 2006-06-15  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/stdint_.h: Rewritten to be fully auto-configured.
47079         Fixes bug on HP-UX/IA64.
47080
47081 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47082
47083         * lib/getdate.y (__attribute__): Don't define if already defined.
47084         Problem reported by Larry Jones.
47085         * lib/utimens.c (__attribute__): Likewise.
47086
47087 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47088
47089         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47090         reported by Andreas Schwab.
47091
47092 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47093             Bruno Haible  <bruno@clisp.org>
47094
47095         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47096         check for the declaration of strnlen and a run test that exposes the
47097         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47098         rpl_strndup.
47099
47100 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47101             Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47104
47105 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47106
47107         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47108         compile test, for Tru64 4.0D.
47109
47110 2006-05-28  Karl Berry  <karl@gnu.org>
47111
47112         * config/srclist.txt (printf-args.c): lose sync.
47113
47114 2006-05-26  Martin Lambers  <marlam@marlam.de>
47115
47116         * lib/getpass.c: Updates the test for the native W32 API, and adds
47117         missing includes, thus fixing compilation warnings.
47118
47119 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47120
47121         * lib/exclude.c (exclude_fnmatch): New function.
47122         (excluded_file_name): Call exclude_fnmatch.
47123         * lib/exclude.h (excluded_file_name): New prototype
47124
47125 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47126
47127         * lib/tempname.c (small_open, large_open): New macros.
47128         (__open, __open64) [!_LIBC]: Remove.
47129         (__gen_tempname): Use small_open and large_open instead of __open
47130         and __open64.  This fixes a portability bug on HP-UX 11.11i
47131         reported by Simon Wing-Tang in
47132         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47133
47134 2006-05-24  Bruno Haible  <bruno@clisp.org>
47135
47136         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47137         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47138         Reported by Thorsten Maerz <torte@netztorte.de> via
47139         Aaron Stone <aaron@serendipity.cx>.
47140
47141 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47142
47143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47144         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47145         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47146         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47147         not really conditional on the cache.
47148         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47149
47150 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47151
47152         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47153         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47154         (my_usleep): Don't mishandle maximum value.
47155
47156 2006-05-19  Jim Meyering  <jim@meyering.net>
47157
47158         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47159
47160 2006-05-17  Bruno Haible  <bruno@clisp.org>
47161
47162         Cygwin portability.
47163         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47164
47165 2006-05-17  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/stdint_.h: Fix recognition of Cygwin.
47168
47169 2006-05-15  Bruno Haible  <bruno@clisp.org>
47170
47171         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47172         on libtool patch by Ralf Wildenhues.
47173
47174 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47175
47176         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47177         test for C99 conformance; (bool) 0.5 is an integer constant
47178         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47179         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47180
47181 2006-05-11  Simon Josefsson  <jas@extundo.com>
47182
47183         * m4/xvasprintf.m4: Fix obvious typo.
47184
47185 2006-05-11  Jim Meyering  <jim@meyering.net>
47186
47187         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47188         James Lemley.
47189
47190 2006-05-10  Simon Josefsson  <jas@extundo.com>
47191
47192         * lib/md4.c: Typo fix, update copyright years.
47193         (K1, K2): Don't use L because it turn computations into 64-bit on
47194         64-bit platforms.
47195
47196 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47197
47198         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47199         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47200         unwanted sign propagation, e.g., on hosts with 64-bit int.
47201         There still are some problems with reeelly weird theoretical hosts
47202         (e.g., 33-bit int) but it's not worth worrying about now.
47203         * lib/sha1.c (rol): Likewise.
47204         (K1, K2, K3, K4): Remove unnecessary L suffix.
47205
47206 2006-05-10  Bruno Haible  <bruno@clisp.org>
47207
47208         * lib/des.c: Cast to avoid warnings.
47209
47210 2006-05-09  Bruno Haible  <bruno@clisp.org>
47211
47212         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47213         (Depends-on): Depend also on xsize, stdarg.
47214         (configure.ac): Add gl_XVASPRINTF.
47215
47216 2006-05-09  Bruno Haible  <bruno@clisp.org>
47217
47218         * m4/xvasprintf.m4: New file.
47219
47220 2006-05-09  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47223         (EOVERFLOW): Define fallback value.
47224         (xstrcat): New function.
47225         (xvasprintf): Recognize the special case of a string concatenation.
47226
47227 2006-05-08  Eric Blake  <ebb9@byu.net>
47228
47229         * gnulib-tool (func_version): Base copyright year on CVS date.
47230         (func_emit_copyright_notice): New function.
47231         (func_emit_lib_Makefile_am): Use it.
47232         (func_emit_tests_Makefile_am): Likewise.
47233         (func_import): Likewise.
47234
47235 2006-05-08  Bruno Haible  <bruno@clisp.org>
47236
47237         * modules/stdarg: New file.
47238         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47239
47240 2006-05-08  Bruno Haible  <bruno@clisp.org>
47241
47242         * m4/stdarg.m4: New file, from GNU gettext.
47243
47244 2006-05-08  Bruno Haible  <bruno@clisp.org>
47245
47246         * config/srclist.txt (build-aux/config.rpath): different from latest
47247         release.
47248
47249 2006-05-08  Bruno Haible  <bruno@clisp.org>
47250
47251         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47252
47253 2006-05-05  Jim Meyering  <jim@meyering.net>
47254
47255         * m4/warning.m4: New file, derived from bison's file by the same name.
47256
47257 2006-05-03  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/stdint_.h: Shorter URL.
47260         * lib/inttypes.h: Likewise.
47261
47262 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47263
47264         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47265
47266 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47267
47268         * lib/verify.h: Document the internals better.  Most of this change
47269         was written by Bruno Haible.
47270
47271 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47272
47273         * doc/verify.texi: New file, partly based on a proposal by
47274         Bruno Haible.
47275
47276 2006-05-02  Bruno Haible  <bruno@clisp.org>
47277
47278         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47279         test from here...
47280         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47281
47282 2006-04-29  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47285         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47286
47287 2006-04-29  Bruno Haible  <bruno@clisp.org>
47288
47289         * gnulib-tool: Make --update option actually work.
47290
47291 2006-04-29  Bruno Haible  <bruno@clisp.org>
47292
47293         * doc/gcd.texi: New file.
47294         * doc/gnulib.texi: Include it.
47295
47296 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47297
47298         * lib/getdate.y (get_date): When adding relative date, start with the
47299         initial time, not with the result of the first mktime call.
47300
47301 2006-04-25  Bruno Haible  <bruno@clisp.org>
47302
47303         * gnulib-tool (func_import): Output the include directives in three
47304         blocks, sorted separately.
47305         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47306
47307 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47308
47309         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47310         to define main with arguments, for C++.  Reported by Eric Blake.
47311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47312         Prefer 'int main ()' to 'int main (void)', for C++.
47313         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47315         for 'main', for C99 and C++.
47316
47317 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47318
47319         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47320         Don't assume that exit status -1 is valid.
47321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47322         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47323         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47324         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47325         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47326         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47327         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47328         functions can be used without declaring them, or that you can
47329         exit with status -1.
47330         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47331
47332 2006-04-24  Karl Berry  <karl@gnu.org>
47333
47334         * config/srclist.txt (longdouble.m4): sync lost.
47335
47336 2006-04-24  Eric Blake  <ebb9@byu.net>
47337
47338         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47339
47340 2006-04-24  Bruno Haible  <bruno@clisp.org>
47341
47342         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47343         poll() implementation in AIX.
47344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47345
47346 2006-04-24  Bruno Haible  <bruno@clisp.org>
47347
47348         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47349         assigned exactly once.
47350
47351 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47352             Bruno Haible  <bruno@clisp.org>
47353
47354         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47355         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47356         for AM_CPPFLAGS.
47357
47358 2006-04-23  Bruno Haible  <bruno@clisp.org>
47359
47360         * modules/copy-file: Depend on unistd.
47361         * modules/execute: Likewise.
47362         * modules/fatal-signal: Likewise.
47363         * modules/findprog: Likewise.
47364         * modules/mkdtemp : Likewise.
47365         * modules/pipe: Likewise.
47366         * modules/wait-process: Likewise.
47367
47368 2006-04-23  Bruno Haible  <bruno@clisp.org>
47369
47370         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47371         condition was already detected.
47372         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47373
47374 2006-04-23  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/copy-file.c: Include <unistd.h> unconditionally.
47377         * lib/execute.c: Likewise.
47378         * lib/fatal-signal.c: Likewise.
47379         * lib/findprog.c: Likewise.
47380         * lib/mkdtemp.c: Likewise.
47381         * lib/pipe.h: Likewise.
47382         * lib/pipe.c: Likewise.
47383         * lib/wait-process.h: Likewise.
47384
47385 2006-04-23  Bruno Haible  <bruno@clisp.org>
47386
47387         * gnulib-tool (func_usage): Fix --import description. Document
47388         --update.
47389         (func_import): Create temporary file in a temporary directory, if
47390         --dry-run is specified. Silence errors from 'grep' when there are no
47391         m4 files in $m4dir.
47392         (func_create_testdir): Silence errors from 'grep' when there are no
47393         m4 files in $m4dir.
47394         Reported by Karl Berry <karl@freefriends.org>.
47395
47396 2006-04-20  Bruno Haible  <bruno@clisp.org>
47397
47398         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47399         one argument, so that the code will be portable to Autoconf 2.60.
47400         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47401         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47402         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47403
47404 2006-04-19  Derek Price  <derek@ximbiot.com>
47405             Eric Blake  <ebb9@byu.net>
47406
47407         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47408         rather than "/full/path.h".  Update comment to match.  Shorten &
47409         generalize m4_translit call via AS_TR_CPP.
47410
47411 2006-04-19  Derek Price  <derek@ximbiot.com>
47412             Eric Blake  <ebb9@byu.net>
47413
47414         * lib/inttypes.h: Correct grammar in comment.
47415
47416 2006-04-18  Derek Price  <derek@ximbiot.com>
47417             Paul Eggert  <eggert@cs.ucla.edu>
47418
47419         * modules/inttypes: New file.
47420         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47421
47422 2006-04-18  Derek Price  <derek@ximbiot.com>
47423             Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47426         New files.
47427
47428 2006-04-18  Derek Price  <derek@ximbiot.com>
47429             Paul Eggert  <eggert@cs.ucla.edu>
47430
47431         * lib/inttypes.h: New file.
47432         * lib/strtoimax.c: Assume <inttypes.h>.
47433
47434 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47437         isn't mounted.  Problem reported by Kir Kolyshkin.
47438
47439 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47440
47441         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47442         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47443         Derek R. Price.
47444         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47445         implementation.
47446
47447 2006-04-12  Eric Blake  <ebb9@byu.net>
47448
47449         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47450         is now done automatically by the corresponding Autoconf macro.
47451
47452 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47453
47454         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47455         time_r.h.
47456
47457 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         Merge regex changes from libc, removing some of our
47460         POSIX-conformance changes that were rejected and redoing them in a
47461         less-intrusive way.
47462
47463         * lib/regcomp.c (re_compile_internal, init_dfa):
47464         Length arg is now size_t, not Idx.  All uses changed.
47465         (peek_token): Forward decl now says internal_function.
47466         (__re_error_msgid, __re_error_msgid_idx):
47467         Now static rather than extern with attribute_hidden.
47468         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47469         For some reason libc prefers K&R style defns for external functions.
47470         (regerror) [!defined _LIBC]: Likewise.
47471         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47472         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47473         (build_range_exp, build_collating_symbol):
47474         Use K&R-style defn.
47475         (re_compile_fastmap): Use '\0' to memset, not 0.
47476         (utf8_sb_map): Make the calculations more obvious.
47477         (init_dfa, parse_bracket_exp, build_charclass_op):
47478         Call calloc and cast result, as glibc does.
47479         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47480         (build_range_exp, build_collating_symbol):
47481         Now internal functions.
47482
47483         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47484
47485         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47486         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47487         Don't depend on VMS; depend on __VMS instead, for POSIX
47488         namespace cleanness.
47489         (regoff_t): Define to ssize_t, not long int.
47490
47491         Remove the REG_ macros named below.  Instead, make the old names
47492         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47493         __USE_GNU_REGEX.
47494         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47495         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47496         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47497         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47498         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47499         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47500         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47501         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47502         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47503         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47504         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47505         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47506         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47507         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47508         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47509         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47510         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47511         (REG_NREGS):
47512         Remove.  All uses replaced by the old RE_* names.
47513         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47514         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47515         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47516         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47517         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47518         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47519         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47520         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47521         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47522         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47523         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47524         Don't bother having these macros be independent of each others'
47525         values, since they no longer exist in the POSIX name space.
47526
47527         Rename the following member names back to their old names,
47528         unless !__USE_GNU_REGEX.  All uses changed back.
47529         (buffer): Renamed from re_buffer.
47530         (allocated): Renamed from re_allocated.
47531         (used): Renamed from re_used.
47532         (syntax): Renamed from re_syntax.
47533         (fastmap): Renamed from re_fastmap.
47534         (translate): Renamed from re_translate.
47535         (can_be_null): Renamed from re_can_be_null.
47536         (regs_allocated): Renamed from re_regs_allocated.
47537         (fastmap_accurate): Renamed from re_fastmap_accurate.
47538         (no_sub): Renamed from re_no_sub.
47539         (not_bol): Renamed from re_not_bol.
47540         (not_eol): Renamed from re_not_eol.
47541         (newline_anchor): Renamed from re_newline_anchor.
47542         (num_regs): Renamed from rm_num_regs.
47543         (start): Renamed from rm_start.
47544         (end): Renamed from rm_end.
47545
47546         (free_state): Move up a bit.
47547
47548         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47549         #define to be empty.
47550         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47551         when that is what is intended.
47552         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47553         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47554         (MAX): New macro.
47555         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47556         All uses changed back to re_malloc, etc.  It's now the caller's
47557         responsibility to check for overflow; all callers changed.
47558         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47559         (re_x2nrealloc): Remove.
47560         (free_state): Remove decl.
47561
47562         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47563         (re_set_registers, re_exec):
47564         Use K&R-style defn.
47565
47566         2006-01-31  Roland McGrath  <roland@redhat.com>
47567
47568         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47569         Reported by Mike Frysinger <vapier@gentoo.org>.
47570
47571         2006-01-15  Andreas Jaeger  <aj@suse.de>
47572
47573         [BZ #1950]
47574         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47575         build_wcs_upper_buffer change.
47576         (build_wcs_upper_buffer): Change return type.
47577
47578         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47579
47580         * lib/regex_internal.h: Include <stdint.h> if available.
47581
47582         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47583
47584         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47585
47586         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47587
47588         * lib/regcomp.c: Adjust for changed secondary hash function.
47589
47590         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47591
47592         * lib/regex.h: Pretty printing.
47593         Clean up namespace a bit.
47594
47595         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47596
47597         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47598         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47599
47600         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47601                     Ulrich Drepper  <drepper@redhat.com>
47602
47603         [BZ #1302]
47604         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47605         changed.
47606         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47607
47608         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47609
47610         [BZ #281]
47611         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47612         * lib/regcomp.c: Remove unnecessary uses of
47613         unsigned RE_TRANSLATE_TYPE.
47614         * lib/regex_internal.h: Likewise.
47615         * lib/regex_internal.c: Likewise.
47616         * lib/regexec.c: Likewise.
47617         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47618
47619         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47620
47621         * lib/regexec.c (find_recover_state): Remove unnecessary
47622         initialization.
47623         (transit_state_bkref): Make DFA a const pointer.
47624         (get_subexp): Likewise.
47625         (check_arrival): Likewise.
47626         (update_cur_sifted_state): Likewise.
47627         (re_search_internal): Likewise.
47628         (prune_impossible_nodes): Likewise.
47629         (acquire_init_state_context): Likewise.
47630         (proceed_next_node): Likewise.
47631         (set_regs): Likewise.
47632         (free_fail_stack_return): Likewise.
47633         (check_arrival_expand_ecl): Mark DFA parameter as const.
47634         (check_arrival_expand_ecl_sub): Likewise.
47635         (check_subexp_limits): Likewise.
47636         (sub_epsilon_src_nodes):  Likewise.
47637         (add_epsilon_src_nodes):  Likewise.
47638         (merge_state_array): Likewise.
47639         (update_regs): Likewise.
47640         (build_trtable): Likewise.
47641         (sift_states_backward): Mark MCTX parameter as const.
47642         (build_sifted_states): Likewise.
47643         (update_cur_sifted_state): Likewise.
47644         (sift_states_mkref): Likewise.
47645         (check_arrival_expand_ecl): Mark eclosure as const.
47646         (check_dst_limits_calc_pos_1): Likewise.
47647         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47648         pointer.
47649
47650         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47651
47652         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47653         (transit_state_sb): Likewise.
47654         (transit_state_mb): Likewise.
47655         (sift_states_iter_mb): Likewise.
47656         (check_arrival_add_next_nodes): Likewise.
47657         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47658         [_LIBC] (re_search_2_stub): Use mempcpy.
47659
47660         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47661         mbrtowc for very simple UTF-8 case.
47662
47663         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47664         a pointer-to-const.
47665         (re_acquire_state_context): Likewise.
47666         * lib/regex_internal.h: Adjust prototypes.
47667
47668         * lib/regex.c: Prevent using C++ compilers.
47669
47670         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47671         (re_acquire_state_context): Likewise.
47672
47673 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         * modules/regex (Depends-on): Add ssize_t.
47676
47677 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47678
47679         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47680         translation table.
47681
47682 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47683
47684         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47685
47686 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47687             Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47690         <sys/types.h> and <inttypes.h>.
47691
47692 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47693
47694         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47695         `__error_t_defined', so argp.h will not typedef the former.
47696
47697 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47698
47699         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47700         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47701         glibc names.  Even if glibc is changed to conform to POSIX, the
47702         traditional names will be available anyway, since regex depends on
47703         the extensions module.  Also, fix a longstanding typo in the
47704         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47705         reported by Emanuele Giaquinta.  Also, change sense of cached
47706         variable, so that the message makes sense.
47707
47708 2006-03-24  Simon Josefsson  <jas@extundo.com>
47709
47710         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47711         including some doc fixes.
47712         (base64_encode_alloc): Fix +1 bug on allocation failures.
47713
47714 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47715
47716         * lib/base64.c (base64_encode): Do not read past end of array with
47717         unsanitized input on systems with CHAR_BIT > 8.
47718
47719 2006-03-24  Eric Blake  <ebb9@byu.net>
47720
47721         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47722
47723 2006-03-22  Karl Berry  <karl@gnu.org>
47724
47725         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47726         * config/srclistvars.sh (COREUTILS): new var.
47727
47728 2006-03-17  Jim Meyering  <jim@meyering.net>
47729
47730         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47731         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47732
47733 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47734
47735         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47736         no longer needs it.  Instead, check that regoff_t is as least
47737         as wide as ptrdiff_t.
47738
47739         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47740         so that our regex.h stays compatible with the installed regex.
47741         This is helpful for installers who configure --without-included-regex.
47742         Problem reported by Emanuele Giaquinta.
47743
47744 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47747         Typedef to long int, not to off_, as POSIX will likely change
47748         in that direction.
47749
47750 2006-03-15  Eric Blake  <ebb9@byu.net>
47751
47752         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47753
47754 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47755
47756         * lib/argp-help.c (validate_uparams): Fix typo
47757         * lib/argp-parse.c (argp_default_options): Consistently begin help
47758         messages with a lowercase letter.
47759
47760 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47761
47762         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47763         overrun buffers and shouldn't be used (much as gets shouldn't be
47764         used).
47765         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47766
47767 2006-03-08  Simon Josefsson  <jas@extundo.com>
47768
47769         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47770         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47771
47772 2006-03-08  Simon Josefsson  <jas@extundo.com>
47773
47774         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47775         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47776
47777 2006-03-08  Simon Josefsson  <jas@extundo.com>
47778
47779         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47780         signal that configure disabled the device.
47781
47782 2006-03-08  Simon Josefsson  <jas@extundo.com>
47783
47784         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47785         languages.
47786
47787 2006-03-07  Simon Josefsson  <jas@extundo.com>
47788
47789         * modules/getopt (Depends-on): Add unistd.
47790
47791         * modules/unistd: New file.
47792
47793 2006-03-07  Simon Josefsson  <jas@extundo.com>
47794
47795         * modules/gc-random: New file.
47796
47797 2006-03-07  Simon Josefsson  <jas@extundo.com>
47798
47799         * m4/unistd_h.m4: New file.
47800
47801 2006-03-07  Simon Josefsson  <jas@extundo.com>
47802
47803         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47804         test to be side-effect free by storing the result in the cache
47805         variable gl_cv_lib_readline, and moving the assignment of
47806         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47807         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47808
47809 2006-03-07  Simon Josefsson  <jas@extundo.com>
47810
47811         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47812         error on missing devices (the functions will return an error).
47813
47814         * m4/gc.m4: Move random stuff to gc-random.m4
47815
47816 2006-03-07  Simon Josefsson  <jas@extundo.com>
47817
47818         * lib/unistd_.h: New file.
47819
47820 2006-03-07  Simon Josefsson  <jas@extundo.com>
47821
47822         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47823
47824 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47825
47826         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47827         Problem reported by Juan Manuel Guerrero.
47828
47829 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47830
47831         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47832         the unistd module.
47833         * lib/getlogin_r.c: Likewise.
47834         * lib/getlogin_r.h: Likewise.
47835         * lib/glob.c: Likewise.
47836         * lib/pagealign_alloc.c: Likewise.
47837         * lib/unistd_.h: Remove; no longer needed.
47838
47839 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47840
47841         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47842         Add unistd.
47843         * modules/c-stack (Depends-on): Add unistd.
47844         * modules/getlogin_r: Likewise.
47845         * modules/glob: Likewise.
47846         * modules/pagealign_alloc: Likewise.
47847         * modules/unistd (Files): Remove lib/unistd_.h.
47848         (EXTRA_DIST): Remove.
47849         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47850         need unistd_.h.
47851         (MOSTLYCLEANFILES): Remove unistd.h-t.
47852
47853 2006-03-03  Simon Josefsson  <jas@extundo.com>
47854
47855         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47856
47857 2006-03-03  Simon Josefsson  <jas@extundo.com>
47858
47859         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47860         libidn and bison.
47861
47862 2006-03-03  Simon Josefsson  <jas@extundo.com>
47863
47864         * build-aux/maint.mk: Add indent target.
47865
47866 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47867
47868         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47869         our replacement poll.h in any case, to avoid a differing
47870         declaration from a system header.  Seen on AIX.
47871
47872 2006-03-01  Simon Josefsson  <jas@extundo.com>
47873
47874         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47875         <kasal@ucw.cz>.
47876
47877 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47878
47879         * modules/gettime (Depends-on): Add extensions module.
47880         * modules/nanosleep (Depends-on): Likewise.
47881         * modules/settime (Depends-on): Likewise.
47882
47883 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47884
47885         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47886         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47887         pedantically.
47888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47889         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47890
47891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47892         not "==".  Reported by Ralf Wildenhues.
47893
47894 2006-03-01  Karl Berry  <karl@gnu.org>
47895
47896         * doc/Copyright/request-*: new files, synced from gnuorg.
47897
47898 2006-03-01  Karl Berry  <karl@gnu.org>
47899
47900         * config/srclist.txt (Copyright/*): new entries.
47901
47902 2006-02-28  Simon Josefsson  <jas@extundo.com>
47903
47904         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47905
47906 2006-02-27  Simon Josefsson  <jas@extundo.com>
47907
47908         * lib/base64.h: Indent #define's.  From Jim Meyering
47909         <jim@meyering.net>.
47910
47911 2006-02-27  Jim Meyering  <jim@meyering.net>
47912
47913         Revert the change of 2006-02-24, so these files can continue
47914         to be sync'd from gettext.
47915         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47916         of `config.h'.
47917
47918 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47919
47920         * modules/intprops: New file.
47921         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47922         Add intprops.
47923         * modules/getloadavg (Files): Remove lib/intprops.h.
47924         (Depends-on): Add intprops.
47925         * modules/human: Likewise.
47926         * modules/inttostr: Likewise.
47927         * modules/openat: Likewise.
47928         * modules/sig2str: Likewise.
47929         * modules/userspec: Likewise.
47930         * modules/utimecmp: Likewise.
47931         * modules/xnanosleep: Likewise.
47932         * modules/xstrtol: Likewise.
47933
47934 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47935
47936         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47937         * modules/lock-tests (TESTS): Use $(EXEEXT).
47938         * modules/tls-tests: Likewise.
47939         * modules/argp-tests: Likewise.
47940         (check_PROGRAMS): New var, replacing...
47941         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47942
47943 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47944
47945         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47946         `config.h'.
47947
47948 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47949
47950         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47951
47952 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47953
47954         Sync from coreutils.
47955         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47956         gl_CHDIR_SAFER.
47957
47958 2006-02-22  Jim Meyering  <jim@meyering.net>
47959
47960         Sync from coreutils.
47961         * m4/chdir-safer.m4: New file.
47962
47963 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47964
47965         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47966         AT_FDCWD exceeds INT_MAX.
47967         * lib/openat.h (AT_FDCWD): Likewise.
47968
47969 2006-02-17  Eric Blake  <address@hidden>
47970
47971         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47972
47973 2006-02-16  Simon Josefsson  <jas@extundo.com>
47974
47975         * modules/getaddrinfo (Depends-on): Add sys_socket.
47976
47977 2006-02-15  Simon Josefsson  <jas@extundo.com>
47978
47979         * build-aux/maint.mk: Add dsyntax-check rule.
47980
47981 2006-02-15  Eric Blake  <ebb9@byu.net>
47982
47983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47984         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47985         'present but cannot compile' warnings on cygwin.
47986         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47987         use ws2tcpip.h if sys/socket.h works.
47988         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47989         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47990
47991 2006-02-14  Simon Josefsson  <jas@extundo.com>
47992
47993         * modules/maintainer-makefile (Files): Rename.
47994
47995         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47996         and (the local) Makefile.cfg to maint-cfg.mk.
47997
47998         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47999         to the latter.
48000
48001         * modules/maintainer-makefile: New module.
48002
48003         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48004         severaly stripped to make it possible to build it up from scratch
48005         with reliable tests.
48006
48007         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48008         fixes to permit overriding the default actions when configure and
48009         makefile are not available.
48010
48011 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48012
48013         Sync from coreutils.
48014         * modules/lstat (Depends-on): Don't depend on xalloc.
48015         (License): Change from GPL to LGPL, since this is now simply a
48016         replacement for a libc function.
48017
48018 2006-02-14  Jim Meyering  <jim@meyering.net>
48019
48020         Sync from coreutils.
48021
48022         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48023         failure on deficient systems, and simplify gnulib lgpl dependencies.
48024         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48025         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48026
48027         * lib/xalloc-die.c: Remove unused definition of N_.
48028
48029 2006-02-14  Jim Meyering  <jim@meyering.net>
48030
48031         Sync from coreutils.
48032         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48033         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48034         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48035         double-quote uses of that variable, to accommodate the rare case in
48036         which getmntent is available in none of the libraries checked.  This
48037         happens at least on FreeBSD 5.0.
48038
48039 2006-02-13  Simon Josefsson  <jas@extundo.com>
48040
48041         * gnulib-tool (Usage): Fix --import, from
48042         karl@freefriends.org (Karl Berry).
48043
48044 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48045
48046         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48047
48048 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48049
48050         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48051         "autoupdate" on 2005-12-12.
48052
48053 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48054
48055         * modules/closeout (Depends-on): Remove atexit.
48056
48057 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48058
48059         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48060         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48061
48062 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48063
48064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48065         __EXTENSIONS__ if this causes compilation to fail.  Problem
48066         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48067         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48068
48069 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48070
48071         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48072         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48074         All uses changed.
48075
48076 2006-01-26  Simon Josefsson  <jas@extundo.com>
48077
48078         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48079         prototype is visible on mingw32.
48080
48081         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48082         for mingw32.
48083
48084         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48085         mingw32).
48086
48087 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48088
48089         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48090         attempt to open for write; this always fails, at least on POSIX
48091         hosts.  This reinstates the 2006-01-09 change, which was
48092         inadvertently removed.
48093
48094 2006-01-26  Bruno Haible  <bruno@clisp.org>
48095
48096         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48097         Reported by Paul Eggert.
48098
48099 2006-01-26  Bruno Haible  <bruno@clisp.org>
48100             Paul Eggert  <eggert@cs.ucla.edu>
48101
48102         * lib/stdbool_.h (_Bool)
48103         [(! (defined __cplusplus || defined __BEOS__)
48104           && !defined __GNUC__
48105           && !(defined __HP_cc || defined __xlc__
48106                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48107                || defined __sgi))]:
48108         #define to signed char in these cases too; this simplifies
48109         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48110         etc., separately) and makes it more conservative.
48111
48112 2006-01-25  Simon Josefsson  <jas@extundo.com>
48113
48114         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48115         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48116         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48117
48118 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48119
48120         * lib/argp-namefrob.h: Bugfix. Remove stray #
48121
48122 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48123
48124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48125         so that we test the test.
48126         Check for yet another HP-UX cc bug involving *bool |= bool.
48127
48128 2006-01-25  Karl Berry  <karl@gnu.org>
48129
48130         * config/srclist.txt (vasnprintf.c): sync lost.
48131
48132 2006-01-25  Jim Meyering  <jim@meyering.net>
48133
48134         Sync from the stable (b5) branch of coreutils:
48135
48136         * lib/fts.c (fts_children): Don't let close() clobber errno from
48137         failed fchdir().
48138
48139         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48140         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48141         a dangling symlink.  That can also happen at least for ELOOP.
48142         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48143         FYI, this bug predates the inclusion of fts.c in coreutils.
48144
48145         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48146         in their own block, so pre-c99 compilers don't object.
48147
48148         Avoid the double-free (first in fts_read, second in fts_close) that
48149         would occur when an `active' directory is made inaccessible (e.g.,
48150         via chmod a-x) during a traversal.
48151         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48152         before returning.  Reproduce this failure by
48153         mkdir -p a/b; cd a; chmod a-x . b
48154         Reported by Stavros Passas.
48155
48156 2006-01-25  Jim Meyering  <jim@meyering.net>
48157
48158         * lib/fileblocks.c: Remove more useless parentheses.
48159         * lib/readutmp.h: Likewise.
48160
48161 2006-01-25  Bruno Haible  <bruno@clisp.org>
48162
48163         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48164         warnings.
48165         Reported by Paul Eggert.
48166
48167 2006-01-25  Bruno Haible  <bruno@clisp.org>
48168
48169         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48170         rid of a trap command. For Solaris sh.
48171         Reported by Mark D. Baushke <mdb@gnu.org>.
48172
48173 2006-01-24  Simon Josefsson  <jas@extundo.com>
48174
48175         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48176         Bruno.
48177
48178 2006-01-24  Karl Berry  <karl@gnu.org>
48179
48180         * config/srclist.txt (argp-namefrob.h): sync lost.
48181
48182 2006-01-24  Jim Meyering  <jim@meyering.net>
48183
48184         * modules/openat (Files): Add lib/intprops.h.
48185         From Mark D. Baushke.
48186
48187 2006-01-24  Jim Meyering  <jim@meyering.net>
48188
48189         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48190         Reported by Mark D. Baushke.
48191
48192 2006-01-24  Jim Meyering  <jim@meyering.net>
48193
48194         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48195
48196 2006-01-24  Bruno Haible  <bruno@clisp.org>
48197
48198         * modules/strnlen (Maintainer): Change from glibc to all.
48199
48200 2006-01-24  Bruno Haible  <bruno@clisp.org>
48201
48202         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48203         Patch by Paul Eggert.
48204
48205 2006-01-24  Bruno Haible  <bruno@clisp.org>
48206
48207         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48208         already has it.
48209         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48210         2005-11-26.
48211
48212         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48213         'signed char' to avoid problems with the built-in _Bool type.
48214         Reported by Paul Eggert on 2005-11-26.
48215
48216 2006-01-24  Bruno Haible  <bruno@clisp.org>
48217
48218         * gnulib-tool (func_import): Avoid constructing complicated sed
48219         expressions inside backquote.
48220         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48221
48222 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48223
48224         These changes imported from libc.
48225         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48226         test and two separate function calls.
48227         * lib/strndup.c (__strndup): Add libc_hidden_def.
48228
48229 2006-01-23  Simon Josefsson  <jas@extundo.com>
48230
48231         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48232         Remove the test_*_SOURCES variable: automake infers it by default.
48233         * modules/tls-tests: Likewise.
48234
48235 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         Work around porting bugs reported by Dieter in
48238         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48239         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48240         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48241         Include "getopt.h" first, to check interface.
48242         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48243         !HAVE_DECL_GETENV.
48244         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48245         (__strndup): Revert to K&R-style function dfns, the glibc style.
48246         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48247         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48248         Include strnlen.h first, to get prototype properly.
48249         (strnlen): Renamed from __strnlen.
48250         Remove weak alias.
48251
48252 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48253
48254         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48255
48256 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48257
48258         * config/srclist.txt: Adjust to reflect glibc reorganization.
48259         This affects only comments.
48260
48261 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48262
48263          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48264          Reported by Bruce Korb <bkorb@gnu.org>.
48265
48266 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48269         to pacify gcc -Wswitch-default.
48270
48271 2006-01-22  Bruno Haible  <bruno@clisp.org>
48272
48273         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48274         temporary buffer for sprintf, take into account the precision also
48275         for 'd', 'i', 'u', 'o', 'x', 'X'.
48276
48277 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48278
48279         * modules/argp-tests: New module
48280         * tests/test-argp.c: New file
48281         * tests/test-argp-2.sh: New file
48282
48283 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48284
48285         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48286         (__argp_base_name): Removed
48287         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48288         typo.
48289         (__argp_base_name): Provide macro definition or extern declaration
48290         depending on the configuration
48291
48292 2006-01-20  Simon Josefsson  <jas@extundo.com>
48293
48294         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48295
48296 2006-01-20  Simon Josefsson  <jas@extundo.com>
48297
48298         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48299
48300 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48301
48302         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48303         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48304         Suggested by Bruno Haible.
48305
48306 2006-01-20  Karl Berry  <karl@gnu.org>
48307
48308         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48309         until changes propagate, I guess.
48310
48311 2006-01-19  Simon Josefsson  <jas@extundo.com>
48312
48313         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48314
48315 2006-01-19  Simon Josefsson  <jas@extundo.com>
48316
48317         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48318
48319 2006-01-19  Simon Josefsson  <jas@extundo.com>
48320
48321         * gnulib-tool: Set check_PROGRAMS.
48322
48323         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48324         modules/des-tests, modules/gc-arcfour-tests,
48325         modules/gc-arctwo-tests, modules/gc-des-tests,
48326         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48327         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48328         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48329         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48330         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48331         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48332         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48333         test_*_SOURCES.
48334
48335 2006-01-18  Simon Josefsson  <jas@extundo.com>
48336
48337         * modules/socklen (Depends-on): Depend on sys_socket.
48338
48339 2006-01-18  Simon Josefsson  <jas@extundo.com>
48340
48341         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48342         modules/des-tests, modules/gc-arcfour-tests,
48343         modules/gc-arctwo-tests, modules/gc-des-tests,
48344         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48345         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48346         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48347         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48348         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48349         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48350         $(EXEEXT) to automake TESTS variable, for mingw32.
48351
48352 2006-01-17  Simon Josefsson  <jas@extundo.com>
48353
48354         * modules/socklen (Include): Need sys/socket.h.
48355
48356 2006-01-17  Bruno Haible  <bruno@clisp.org>
48357
48358         * modules/ssize_t (Include): Add <sys/types.h>.
48359
48360 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48363         it's not portable and it doesn't work with cross-compiles.
48364         Problem reported by Bruno Haible.  Fix missing-$ typo in
48365         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48366         -zignore from being used with Sun's C compiler.
48367
48368 2006-01-12  Simon Josefsson  <jas@extundo.com>
48369
48370         * lib/base64.c: Fix warning, reported by Bruno Haible
48371         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48372
48373 2006-01-12  Bruno Haible  <bruno@clisp.org>
48374
48375         * modules/ldd: New file.
48376         * build-aux/ldd.sh.in: New file.
48377         * MODULES.html.sh (Support for building libraries and executables): Add
48378         ldd.
48379
48380 2006-01-12  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/ldd.m4: New file.
48383
48384 2006-01-12  Bruno Haible  <bruno@clisp.org>
48385
48386         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48387         endless loop while replacing $auxdir with build-aux.
48388
48389 2006-01-11  Simon Josefsson  <jas@extundo.com>
48390
48391         * lib/stdint_.h (SIZE_MAX): Add missing (.
48392
48393 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         Sync from coreutils.
48396         * lib/md5.c: Fix commentary typos.
48397         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48398         * lib/md5.h (__attribute__): Remove; unused.
48399         * lib/sha1.c: Fix commentary to match md5 better.
48400         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48401         so that we don't need to worry about alignment.  All uses changed.
48402         This merges the 2005-10-28 md5 change into sha1.
48403
48404 2006-01-11  Jim Meyering  <jim@meyering.net>
48405
48406         Sync from coreutils.
48407         * lib/md5.c (OP): Fix spacing.
48408
48409 2006-01-11  Bruno Haible  <bruno@clisp.org>
48410
48411         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48412         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48413         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48414
48415 2006-01-11  Bruno Haible  <bruno@clisp.org>
48416
48417         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48418         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48419         the "early" section as well.
48420
48421 2006-01-11  Bruno Haible  <bruno@clisp.org>
48422
48423         Avoid "ar: no archive members specified" error on MacOS X.
48424         * gnulib-tool (func_modules_add_dummy): New function.
48425         (func_import, func_create_testdir): Invoke it.
48426
48427 2006-01-11  Bruno Haible  <bruno@clisp.org>
48428
48429         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48430         with $auxdir in AC_CONFIG_FILES statements.
48431
48432 2006-01-11  Bruno Haible  <bruno@clisp.org>
48433
48434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48435         Initialize also noinst_HEADERS to empty.
48436
48437 2006-01-11  Bruno Haible  <bruno@clisp.org>
48438
48439         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48440         variables.
48441         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48442         autoreconf.
48443
48444 2006-01-11  Bruno Haible  <bruno@clisp.org>
48445
48446         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48447         overridable by the user.
48448         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48449
48450 2006-01-10  Simon Josefsson  <jas@extundo.com>
48451
48452         * modules/sys_socket: New file.
48453
48454 2006-01-10  Simon Josefsson  <jas@extundo.com>
48455
48456         * m4/sys_socket_h.m4: New file.
48457
48458 2006-01-10  Simon Josefsson  <jas@extundo.com>
48459
48460         * lib/socket_.h: New file.
48461
48462 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48463
48464         * modules/readutmp (Maintainer): Add myself.
48465
48466 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48467
48468         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48469         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48470         People who are still concerned with buggy memcmp implementations
48471         can invoke gl_FUNC_MEMCMP themselves.
48472
48473 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * lib/regex_internal.h (BITSET_WORD_BITS):
48476         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48477         preprocessor mishandles large unsigned values as if they were signed.
48478         Problem reported by Claudio Fontana in
48479         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48480
48481 2006-01-10  Jim Meyering  <jim@meyering.net>
48482
48483         Avoid the double-free (first in fts_read, second in fts_close) that
48484         would occur when an `active' directory is made inaccessible (e.g.,
48485         via chmod a-x) during a traversal.
48486         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48487         before returning.  Reproduce this failure by
48488         mkdir -p a/b; cd a; chmod a-x . b
48489         Reported by Stavros Passas.
48490
48491         Sync from coreutils.
48492         * lib/sha1.c: Tweak grammar in a comment.
48493
48494 2006-01-10  Jim Meyering  <jim@meyering.net>
48495
48496         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48497         Patch by Joerg Sonnenberger.
48498
48499 2006-01-10  Bruno Haible  <bruno@clisp.org>
48500
48501         * modules/readutmp: Depend on module free.
48502         * modules/strtok_r: Depend on module restrict.
48503
48504 2006-01-10  Bruno Haible  <bruno@clisp.org>
48505
48506         * modules/gettext (configure.ac): Add an invocation of
48507         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48508
48509 2006-01-10  Bruno Haible  <bruno@clisp.org>
48510
48511         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48512         Reported by Werner Lemberg <wl@gnu.org>.
48513
48514 2006-01-10  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/localcharset.c: Update from GNU gettext.
48517
48518 2006-01-10  Bruno Haible  <bruno@clisp.org>
48519
48520         * lib/argp.h (__const): Remove macro. Use const instead.
48521         * lib/argp-fmtstream.h (__const): Likewise.
48522         * lib/glob_.h (__const): Remove macro.
48523         * lib/glob-libc.h: Use const instead of __const.
48524
48525 2006-01-10  Bruno Haible  <bruno@clisp.org>
48526
48527         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48528         variable.
48529         Needed to avoid an automake error regarding the 'gettext' module.
48530
48531 2006-01-09  Simon Josefsson  <jas@extundo.com>
48532
48533         * modules/inet_ntop (Depends-on): Add restrict.
48534
48535 2006-01-09  Simon Josefsson  <jas@extundo.com>
48536
48537         * modules/gc-rijndael-tests (License): Put under LGPL.
48538
48539         * modules/gc-des-tests (License): Likewise.
48540
48541         * modules/gc-arcfour-tests (License): Likewise.
48542
48543         * modules/gc-arctwo-tests (License): Likewise.
48544
48545         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48546
48547         * modules/gc-hmac-sha1-tests (Files): Likewise.
48548
48549         * modules/gc-hmac-md5-tests (License): Likewise.
48550
48551         * modules/gc-sha1-tests (License): Likewise.
48552
48553         * modules/gc-md5-tests (License): Likewise.
48554
48555         * modules/gc-md4-tests (License): Likewise.
48556
48557         * modules/gc-md2-tests (License): Likewise.
48558
48559         * modules/gc-tests (License): Likewise.
48560
48561         * modules/des-tests (License): Likewise.
48562
48563         * modules/md4-tests (License): Likewise.
48564
48565         * modules/md2-tests (License): Likewise.
48566
48567 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48568
48569         Sync from coreutils:
48570
48571         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48572         * modules/lib-ignore: New file.
48573         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48574         chdir-safer.m4, lchmod.m4.
48575         * modules/openat: Add mkdirat.c, openat-priv.h.
48576
48577 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48578
48579         Sync from coreutils.
48580         * m4/lib-ignore.m4: New file.
48581         * m4/lchmod.m4: New file.
48582
48583 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48584
48585         Sync from coreutils.
48586         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48587         for write access: POSIX says that must fail.
48588         * lib/fts.c (diropen): Likewise.
48589         * lib/save-cwd.c (save_cwd): Likewise.
48590         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48591         well, for minor improvements on hosts that lack O_DIRECTORY.
48592         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48593         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48594         Fall back on chown if open failed with EACCES.
48595
48596         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48597         Report an error at compile-time if only a 1-second nominal clock
48598         resolution is found.
48599
48600         * lib/lchmod.h: New file.
48601         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48602         (make_dir_parents): Use lchown rather than chown, and
48603         lchmod rather than chmod.
48604
48605         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48606         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48607         "proc" reported by n0dalus.
48608
48609         * lib/mountlist.c: Include <limits.h>.
48610         (dev_from_mount_options)
48611         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48612         New function.  It no longer assumes "dev=" has the System V meaning
48613         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48614         (read_file_system_list)
48615         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48616         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48617         dev= in that case.
48618
48619         * lib/posixtm.h (PDS_PRE_2000): New macro.
48620         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48621         allow_century.  All usages changed.  Reject dates outside the range
48622         1969-1999 if PDS_PRE_2000 is used.
48623
48624 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48625
48626         Sync from coreutils.
48627         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48628         (Time of day items): Mention the possibility of leap seconds.
48629         Problem reported by Dr. David Alan Gilbert.
48630
48631 2006-01-09  Jim Meyering  <jim@meyering.net>
48632
48633         Sync from coreutils.
48634
48635         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48636
48637         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48638
48639         * lib/modechange.c (mode_compile): Reject an invalid mode string
48640         that starts with an octal digit.  From Andreas Gruenbacher.
48641
48642         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48643         and dup to open_safer and dup_safer, respectively.
48644         (openat_permissive): Fix typo in comment.
48645
48646         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48647         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48648         (_): Remove; no longer needed.
48649         (openat): Renamed from rpl_openat; no need for rpl_openat
48650         since openat.h renames openat for us.
48651         Replace most of the body with a call to openat_permissive,
48652         to avoid duplicate code.
48653         Port to (probably hypothetical) environments were mode_t is
48654         wider than int.
48655         (openat_permissive): Require mode arg, so that we can check
48656         types better.  Put it just after flags.  Change cwd failure
48657         indicator from pointer-to-bool to pointer-to-errno-value.
48658         All callers changed.
48659         Invoke openat_save_fail and/or openat_restore_fail if
48660         cwd_errno is null, so that openat can call us.
48661         (openat_permissive, fdopendir, fstatat, unlinkat):
48662         Simplify errno handling to avoid some duplicate code,
48663         as it's OK to set errno on success.
48664         * lib/openat.h: Revamp code so that function macros depend on
48665         __OPENAT_PREFIX only, not also on AT_FDCWD.
48666         (openat_ro): Remove.  Caller changed to use openat_permissive.
48667         (openat_permissive): Now a macro, if not a function.
48668         (openat_restore_fail, openat_save_fail): Now always functions,
48669         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48670
48671         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48672         and openat.c.
48673         * lib/mkdirat.c: Include openat-priv.h.
48674         Remove definitions of macros defined therein.
48675         * lib/openat.c: Likewise.
48676
48677         * lib/mkdirat.c (mkdirat): New file and function.
48678         * lib/openat.h (mkdirat): Declare.
48679
48680         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48681
48682         * lib/openat.h (openat_permissive): Declare.
48683         (openat_ro): Define.
48684
48685         * lib/openat.c (EXPECTED_ERRNO): New macro.
48686         (openat_permissive): New function -- used in remove.c rewrite.
48687         (all functions): Set errno just before returning, only if there
48688         was an actual failure.
48689         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48690
48691         Emulate openat-family functions using Linux's procfs, if possible.
48692         Idea and some code based on Ulrich Drepper's glibc changes.
48693
48694         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48695         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48696         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48697         before falling back on save_cwd and restore_cwd.
48698         (fdopendir, fstatat, unlinkat): Likewise.
48699
48700         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48701         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48702
48703         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48704         as second argument to va_arg.  Otherwise, some versions of gcc
48705         warn that `if this code is reached, the program will abort'.
48706
48707 2006-01-09  Jim Meyering  <jim@meyering.net>
48708
48709         Sync from coreutils.
48710         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48711         Require openat-priv.h.
48712
48713 2006-01-09  Bruno Haible  <bruno@clisp.org>
48714
48715         * modules/strnlen (Include): Use strnlen.h.
48716
48717 2006-01-09  Bruno Haible  <bruno@clisp.org>
48718
48719         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48720
48721 2006-01-09  Bruno Haible  <bruno@clisp.org>
48722
48723         * lib/sysexit_.h (EX_OK): New macro.
48724         Suggested by Martin Lambers <marlam@marlam.de>.
48725
48726 2006-01-09  Bruno Haible  <bruno@clisp.org>
48727
48728         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48729         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48730
48731 2006-01-09  Bruno Haible  <bruno@clisp.org>
48732
48733         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48734         numbers.
48735
48736 2006-01-09  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48739         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48740         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48741         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48742
48743 2006-01-09  Bruno Haible  <bruno@clisp.org>
48744
48745         * build-aux/javacomp.sh.in: New file, moved from lib/.
48746         * modules/javacomp-script (Files): Update.
48747         (configure.ac): Add AC_CONFIG_FILES invocation.
48748         (EXTRA_DIST): Remove variable.
48749
48750         * build-aux/javaexec.sh.in: New file, moved from lib/.
48751         * modules/javaexec (Files): Update.
48752         (configure.ac): Add AC_CONFIG_FILES invocation.
48753         (EXTRA_DIST): Remove javaexec.sh.in.
48754
48755         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48756         * modules/csharpcomp-script (Files): Update.
48757         (configure.ac): Add AC_CONFIG_FILES invocation.
48758         (EXTRA_DIST): Remove variable.
48759
48760         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48761         * modules/csharpexec (Files): Update.
48762         (configure.ac): Add AC_CONFIG_FILES invocation.
48763         (EXTRA_DIST): Remove csharpexec.sh.in.
48764
48765 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48766
48767         Sync from coreutils.
48768
48769         Add POSIX ACL support
48770         * lib/acl.h (copy_acl, set_acl): Add declarations.
48771         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48772         systems other than Linux.
48773         (chmod_or_fchmod): New function: use fchmod when possible,
48774         and chmod otherwise.
48775         (file_has_acl): Add a POSIX ACL implementation, with a
48776         Linux-specific subcase.
48777         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48778         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48779         acls are unsupported.
48780         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48781         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48782         are unsupported.
48783
48784 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48785
48786         Sync from coreutils.
48787         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48788
48789 2006-01-07  Bruno Haible  <bruno@clisp.org>
48790
48791         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48792         gl_EARLY.
48793
48794 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48795
48796         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48797         Problem reported for Mingw by Mark Junker.
48798
48799 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48800
48801         * README: Gnulib normally doesn't generate a tarball.
48802
48803 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48804
48805         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48806         long int, not int, for nanosecond counts, so that people who are
48807         used to POSIX struct timespec won't be surprised.  Reported by Jim
48808         Meyering.
48809
48810 2005-12-28  Bruno Haible  <bruno@clisp.org>
48811
48812         * build-aux/config.rpath: Update from GNU gettext.
48813
48814 2005-12-16  Jim Meyering  <jim@meyering.net>
48815
48816         * modules/fprintftime: New module.
48817         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48818
48819 2005-12-16  Jim Meyering  <jim@meyering.net>
48820
48821         * m4/fprintftime.m4: New file.
48822
48823 2005-12-16  Jim Meyering  <jim@meyering.net>
48824
48825         * lib/fprintftime.c, lib/fprintftime.h: New files.
48826
48827 2005-12-15  Simon Josefsson  <jas@extundo.com>
48828
48829         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48830         new m4/socklen.m4.
48831
48832 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48833
48834         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48835         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48836
48837 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48838
48839         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48840         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48841         struct uparams is valid. Fall back to the default values if it is
48842         not.
48843
48844 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48845
48846         * modules/argp (Files): Add argp-pin.c
48847         (Depends-on): dirname
48848         (lib_SOURCES): Add argp-pin.c
48849
48850 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48851
48852         * m4/argp.m4:  Check if program_invocation_name and
48853         program_invocation_short_name are declared and define appropriate
48854         macros if they are not.
48855
48856 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48857
48858         * lib/argp-help.c (__argp_base_name): New function
48859         (__argp_short_program_name): Rewrite using __argp_base_name
48860         * lib/argp-namefrob.h: Define program_invocation_name and
48861         program_invocation_short_name if requested
48862         (__argp_base_name): Add prototype
48863         * lib/argp-parse.c (argp_def): Use gettext wrappers
48864         (argp_default_parser): Use __argp_base_name
48865         * lib/argp-pin.c: New file. Defines program_invocation_name and
48866         program_invocation_short_name on systems that lack them.
48867
48868 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48869
48870         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48871         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48872         porting problem reported by Georg Schwarz in
48873         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48874
48875 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48876
48877         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48878         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48879         porting problem reported by Georg Schwarz in
48880         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48881
48882 2005-12-05  Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48885         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48886         Reported by Mark Junker <mjscod@gmx.de>.
48887
48888 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48889
48890         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48891         Use implementation from Albert Chin, with some
48892         comments/corrections by Stepan Kasal and myself.
48893
48894 2005-12-02  Bruno Haible  <bruno@clisp.org>
48895
48896         * gnulib-tool (func_import): Accept GPLed build tool modules when
48897         --lgpl is given.
48898         * modules/csharpcomp-script: New file.
48899         * modules/csharpcomp: Depend on it.
48900         * modules/javacomp-script: New file.
48901         * modules/javacomp: Depend on it.
48902         Suggested by Simon Josefsson.
48903
48904 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48905
48906         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48907         statement, to work around an HP-UX 10.20 compiler bug reported by
48908         Peter O'Gorman.
48909
48910 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48911
48912         * modules/savedir (Depends-on): Add openat.
48913
48914 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48915
48916         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48917         (uintmax_t) [defined uintmax_t]: Do not declare.
48918         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48919         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48920         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48921         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48922         sake of portability to weird hosts that C allows (though we don't
48923         know of any practical examples).
48924
48925         * lib/savedir.h (fdsavedir): New decl.
48926         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48927         contains most of the former guts of savedir.
48928         (savedir): Use savedirstream.
48929         Include "openat.h".
48930
48931 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48932
48933         * modules/obstack (Files): Add m4/ulonglong.m4.
48934         Problem reported by Davide Angelocola.
48935
48936 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48937
48938         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48939         coreutils no longer futzes with rounding modes.
48940
48941 2005-11-14  Jim Meyering  <jim@meyering.net>
48942
48943         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48944         replacement of mkstemp.
48945
48946 2005-11-10  Simon Josefsson  <jas@extundo.com>
48947
48948         * lib/readline.c: Remove EOL.
48949
48950 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48951
48952         * modules/gethrxtime (Depends-on): Add gettime.
48953
48954 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48955
48956         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48957         or gettimeofday; no longer needed.
48958
48959 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48960
48961         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48962         time business.
48963         (gethrxtime) [! (HAVE_NANOUPTIME
48964         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48965         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48966         our own approximation.
48967
48968 2005-11-08  Eric Blake  <ebb9@byu.net>
48969
48970         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48971
48972 2005-11-08  Eric Blake  <ebb9@byu.net>
48973
48974         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48975
48976 2005-11-04  Bruno Haible  <bruno@clisp.org>
48977
48978         * gnulib-tool: Implement --update mode.
48979
48980 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48981
48982         Fix porting problem reported by Theodoros V. Kalamatianos.
48983         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48984         Don't assume that futimes failing means we must fail.
48985
48986 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48987
48988         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48989         variables to suggest the intended function of the PATH_MAX check.
48990
48991 2005-10-30  Kean Johnston  <jkj@sco.com>
48992
48993         Trivial changes to support SCO systems.
48994         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48995         as PATH_MAX.
48996         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48997         where __ptr is null when no I/O is pending.
48998
48999 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49000
49001         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49002         leave errno alone.  Problem reported by Dmitry V. Levin.
49003
49004 2005-10-28  Simon Josefsson  <jas@extundo.com>
49005
49006         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49007         Test more.
49008
49009         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49010
49011         * modules/md2, modules/md2-tests: New files.
49012
49013 2005-10-28  Simon Josefsson  <jas@extundo.com>
49014
49015         * m4/inet_ntop.m4: More tests.
49016
49017         * m4/gc-md2.m4, md2.m4: New file.
49018
49019 2005-10-28  Simon Josefsson  <jas@extundo.com>
49020
49021         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49022         "restrict" keywords, as per POSIX.  Protect the function
49023         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49024         Don't use K&R prototypes.  Check the sprintf return values.
49025         Re-define EAFNOSUPPORT if not present.  Indent.
49026
49027         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49028         suggested by Bruno Haible <bruno@clisp.org>.
49029
49030         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49031
49032         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49033
49034         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49035         libgcrypt).
49036
49037         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49038
49039         * lib/md2.h, lib/md2.c: New files.
49040
49041 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49042
49043         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49044         errno alone.  Problem reported by Frederic Jolliton.
49045
49046 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49047
49048         * modules/verify (License): Change from GPL to LGPL.  This is a
49049         tiny module and there are apparently near-equivalents that are
49050         under the BSD license.
49051
49052 2005-10-24  Simon Josefsson  <jas@extundo.com>
49053
49054         * modules/sha1: Relicense to LGPL.
49055
49056 2005-10-24  Simon Josefsson  <jas@extundo.com>
49057
49058         * lib/md4.h: Shrink buffer size, now that we changed the type.
49059
49060 2005-10-23  Simon Josefsson  <jas@extundo.com>
49061
49062         * gnulib-tool (func_import): Fix --tests-base.
49063
49064 2005-10-22  Simon Josefsson  <jas@extundo.com>
49065
49066         * modules/arcfour (Depends-on): Need stdint.
49067
49068 2005-10-22  Simon Josefsson  <jas@extundo.com>
49069
49070         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49071         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49072
49073 2005-10-22  Simon Josefsson  <jas@extundo.com>
49074
49075         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49076         suggested by Bruno Haible <bruno@clisp.org>.
49077
49078 2005-10-22  Simon Josefsson  <jas@extundo.com>
49079
49080         * lib/crc.h: Include stddef.h, for size_t.
49081
49082 2005-10-22  Simon Josefsson  <jas@extundo.com>
49083
49084         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49085         arcfour_context struct (simplify test vector testing in GNU
49086         Shishi).
49087
49088 2005-10-21  Simon Josefsson  <jas@extundo.com>
49089
49090         * modules/des, modules/des-tests: New files.
49091
49092         * modules/gc-des, modules/gc-des-tests: New files.
49093
49094         * tests/test-des.c, tests/test-gc-des.c: New file.
49095
49096 2005-10-21  Simon Josefsson  <jas@extundo.com>
49097
49098         * modules/arctwo, modules/arctwo-tests: New files.
49099
49100         * tests/test-arctwo.c: New file.
49101
49102         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49103
49104         * tests/test-gc-arctwo.c: New file.
49105
49106 2005-10-21  Simon Josefsson  <jas@extundo.com>
49107
49108         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49109         Bruno Haible <bruno@clisp.org>.
49110
49111         * m4/gc-des.m4: New file.
49112
49113 2005-10-21  Simon Josefsson  <jas@extundo.com>
49114
49115         * m4/arctwo.m4: New file.
49116
49117         * m4/gc-arctwo.m4: New file.
49118
49119 2005-10-21  Simon Josefsson  <jas@extundo.com>
49120
49121         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49122         block.
49123
49124 2005-10-21  Simon Josefsson  <jas@extundo.com>
49125
49126         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49127         <bruno@clisp.org>.
49128
49129         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49130
49131         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49132         Bruno Haible <bruno@clisp.org>.
49133
49134         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49135         <bruno@clisp.org>.
49136
49137 2005-10-21  Simon Josefsson  <jas@extundo.com>
49138
49139         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49140
49141 2005-10-21  Simon Josefsson  <jas@extundo.com>
49142
49143         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49144
49145 2005-10-21  Simon Josefsson  <jas@extundo.com>
49146
49147         * lib/des.h, lib/des.c: New files.
49148
49149         * lib/gc-gnulib.c: Support DES.c
49150
49151 2005-10-21  Simon Josefsson  <jas@extundo.com>
49152
49153         * lib/arctwo.h, lib/arctwo.c: New files.
49154
49155         * lib/gc-gnulib.c: Support ARCTWO.
49156
49157 2005-10-21  Simon Josefsson  <jas@extundo.com>
49158
49159         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49160         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49161
49162 2005-10-21  Simon Josefsson  <jas@extundo.com>
49163
49164         * gnulib-tool (func_import, func_create_testdir): Define automake
49165         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49166         Makefile.am snippet),
49167         suggested by Bruno Haible <bruno@clisp.org>.
49168
49169         * modules/gc (Makefile.am): Use it.
49170
49171 2005-10-21  Bruno Haible  <bruno@clisp.org>
49172
49173         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49174         patch.
49175
49176 2005-10-19  Simon Josefsson  <jas@extundo.com>
49177
49178         * tests/test-gc-rijndael.c: New file.
49179
49180         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49181
49182 2005-10-19  Simon Josefsson  <jas@extundo.com>
49183
49184         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49185         interface too.
49186
49187 2005-10-19  Simon Josefsson  <jas@extundo.com>
49188
49189         * tests/test-gc-arcfour.c: New file.
49190
49191         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49192
49193 2005-10-19  Simon Josefsson  <jas@extundo.com>
49194
49195         * modules/gc-md4, modules/gc-md4-tests: New file.
49196
49197         * tests/test-gc-md4.c: New file.
49198
49199 2005-10-19  Simon Josefsson  <jas@extundo.com>
49200
49201         * m4/gc-md4.m4: New file.
49202
49203 2005-10-19  Simon Josefsson  <jas@extundo.com>
49204
49205         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49206         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49207         <kasal@ucw.cz>.
49208
49209 2005-10-19  Simon Josefsson  <jas@extundo.com>
49210
49211         * m4/gc-arcfour.m4: New file.
49212
49213         * m4/gc-rijndael.m4: New file.
49214
49215 2005-10-19  Simon Josefsson  <jas@extundo.com>
49216
49217         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49218
49219 2005-10-19  Simon Josefsson  <jas@extundo.com>
49220
49221         * lib/gc-gnulib.c: Support ARCFOUR.
49222
49223 2005-10-19  Simon Josefsson  <jas@extundo.com>
49224
49225         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49226         support.
49227
49228         * lib/gc.h: Add ECB enum type.
49229
49230         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49231
49232 2005-10-18  Simon Josefsson  <jas@extundo.com>
49233
49234         * tests/test-md5.c: New file.
49235
49236         * modules/md5-tests: New file.
49237
49238 2005-10-18  Simon Josefsson  <jas@extundo.com>
49239
49240         * tests/test-md4.c: New file.
49241
49242         * modules/md4, modules/md4-tests: New files.
49243
49244 2005-10-18  Simon Josefsson  <jas@extundo.com>
49245
49246         * m4/md4.m4: New file.
49247
49248 2005-10-18  Simon Josefsson  <jas@extundo.com>
49249
49250         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49251
49252 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49253
49254         * gnulib-tool (func_create_testdir): Omit the second check whether
49255         BUILT_SOURCES in nonempty.
49256
49257 2005-10-17  Simon Josefsson  <jas@extundo.com>
49258
49259         * tests/test-rijndael.c: New file.
49260
49261 2005-10-17  Simon Josefsson  <jas@extundo.com>
49262
49263         * modules/sha1: Depend on stdint instead of md5.
49264
49265         * modules/md5: Depend on stdint, remove uint32_t.
49266
49267 2005-10-17  Simon Josefsson  <jas@extundo.com>
49268
49269         * modules/gc-sha1-tests: New file.
49270
49271         * tests/test-gc-sha1.c: New file.
49272
49273 2005-10-17  Simon Josefsson  <jas@extundo.com>
49274
49275         * m4/md5.m4: Remove call to uint32_t.m4.
49276
49277 2005-10-17  Simon Josefsson  <jas@extundo.com>
49278
49279         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49280
49281         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49282         md5.h.
49283
49284         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49285
49286         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49287
49288 2005-10-17  Simon Josefsson  <jas@extundo.com>
49289
49290         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49291
49292 2005-10-17  Simon Josefsson  <jas@extundo.com>
49293
49294         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49295
49296 2005-10-17  Simon Josefsson  <jas@extundo.com>
49297
49298         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49299
49300         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49301
49302 2005-10-17  Bruno Haible  <bruno@clisp.org>
49303
49304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49305         that it can also be used in a test.
49306
49307 2005-10-16  Bruno Haible  <bruno@clisp.org>
49308
49309         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49310         TESTS_ENVIRONMENT, so that individual tests can augment it.
49311
49312         * gnulib-tool (func_create_testdir): Use an intermediate target for
49313         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49314         macros, like $(ALLOCA_H), which cannot be passed through the command
49315         line.
49316
49317 2005-10-15  Simon Josefsson  <jas@extundo.com>
49318
49319         * modules/rijndael-tests: New file.
49320
49321         * modules/rijndael: New file.
49322
49323 2005-10-15  Simon Josefsson  <jas@extundo.com>
49324
49325         * m4/rijndael.m4: New file.
49326
49327 2005-10-15  Simon Josefsson  <jas@extundo.com>
49328
49329         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49330
49331         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49332
49333 2005-10-14  Simon Josefsson  <jas@extundo.com>
49334
49335         * tests/test-arcfour.c: New file.
49336
49337         * modules/arcfour, modules/arcfour-tests: New files.
49338
49339 2005-10-14  Simon Josefsson  <jas@extundo.com>
49340
49341         * m4/arcfour.m4: New file.
49342
49343 2005-10-14  Simon Josefsson  <jas@extundo.com>
49344
49345         * lib/arcfour.h, lib/arcfour.c: New files.
49346
49347 2005-10-14  Roland McGrath  <roland@redhat.com>
49348
49349         Import from libc.  [BZ #1331]
49350         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49351         macro argument.
49352         Reported by Matej Vela <vela@debian.org>.
49353
49354 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49355
49356         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49357         include <wchar.h>; no longer needed.
49358
49359 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49360
49361         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49362
49363 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49364         and  Ulrich Drepper  <drepper@redhat.com>
49365
49366         Import from libc.
49367         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49368         instead of inline stream orientation test and two separate
49369         function calls.  Pay no attention to USE_IN_LIBIO.
49370
49371 2005-10-13  Simon Josefsson  <jas@extundo.com>
49372
49373         * modules/gc-hmac-md5-tests: New file.
49374
49375         * tests/test-gc-hmac-sha1.c: New file.
49376
49377         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49378
49379         * modules/gc-hmac-md5-tests: New file.
49380
49381         * tests/test-gc-md5.c: New file.
49382
49383         * modules/gc-md5-tests: New file.
49384
49385 2005-10-13  Simon Josefsson  <jas@extundo.com>
49386
49387         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49388         Move memory allocation outside of loop.
49389
49390 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49391
49392         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49393         intermediate directory is in a read-only file system.  Problem
49394         reported by Eric Blake.
49395
49396 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49397
49398         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49399
49400 2005-10-12  Simon Josefsson  <jas@extundo.com>
49401
49402         * tests/test-hmac-sha1.c: New file.
49403
49404         * modules/hmac-sha1-tests: New file.
49405
49406         * modules/hmac-sha1: New file.
49407
49408 2005-10-12  Simon Josefsson  <jas@extundo.com>
49409
49410         * modules/gc-sha1: New file.
49411
49412 2005-10-12  Simon Josefsson  <jas@extundo.com>
49413
49414         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49415
49416         * tests/test-gc-pbkdf2-sha1.c: New file.
49417
49418 2005-10-12  Simon Josefsson  <jas@extundo.com>
49419
49420         * modules/gc-md5, modules/gc-hmac-md5: New files.
49421
49422         * modules/gc (Files): Remove md5, memxor and hmac files.
49423
49424 2005-10-12  Simon Josefsson  <jas@extundo.com>
49425
49426         * m4/gc-pbkdf2-sha1.m4: New file.
49427
49428         * m4/gc-hmac-sha1.m4: New file.
49429
49430         * m4/gc-sha1: New file.
49431
49432         * m4/hmac-sha1.m4: New file.
49433
49434 2005-10-12  Simon Josefsson  <jas@extundo.com>
49435
49436         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49437
49438         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49439
49440 2005-10-12  Simon Josefsson  <jas@extundo.com>
49441
49442         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49443         suggested by Bruno Haible <bruno@clisp.org>.
49444
49445 2005-10-12  Simon Josefsson  <jas@extundo.com>
49446
49447         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49448
49449 2005-10-12  Simon Josefsson  <jas@extundo.com>
49450
49451         * lib/gc-pbkdf2-sha1.c: New file.
49452
49453         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49454
49455 2005-10-12  Simon Josefsson  <jas@extundo.com>
49456
49457         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49458
49459         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49460
49461 2005-10-12  Simon Josefsson  <jas@extundo.com>
49462
49463         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49464         GC_USE_HMAC_MD5, respectively.
49465
49466         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49467         (gc_md5): Fix typo.
49468
49469         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49470
49471         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49472
49473         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49474
49475 2005-10-12  Bruno Haible  <bruno@clisp.org>
49476
49477         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49478         Reported by Stepan Kasal <kasal@ucw.cz>.
49479
49480 2005-10-11  Simon Josefsson  <jas@extundo.com>
49481
49482         * tests/test-crc.c: New file.
49483
49484         * modules/crc, modules/crc-tests: New files.
49485
49486 2005-10-11  Simon Josefsson  <jas@extundo.com>
49487
49488         * m4/crc.m4: New file.
49489
49490 2005-10-11  Simon Josefsson  <jas@extundo.com>
49491
49492         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49493
49494         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49495
49496         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49497
49498 2005-10-11  Simon Josefsson  <jas@extundo.com>
49499
49500         * lib/crc.h, lib/crc.c: New files.
49501
49502         * lib/gc.h (gc_hash_buffer): Add doc.
49503
49504 2005-10-11  Bruno Haible  <bruno@clisp.org>
49505
49506         * modules/c-strcasestr: New file.
49507         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49508
49509 2005-10-11  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/c-strcase: New file.
49512         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49513
49514 2005-10-11  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/strcasecmp.c: Include limits.h.
49517         (strcasecmp): Avoid integer overflow on exotic platforms.
49518         * lib/strncasecmp.c: Include limits.h.
49519         (strncasecmp): Avoid integer overflow on exotic platforms.
49520         Reported by Paul Eggert.
49521
49522 2005-10-11  Bruno Haible  <bruno@clisp.org>
49523
49524         * lib/c-strcasestr.h: New file, from GNU gettext.
49525         * lib/c-strcasestr.c: New file, from GNU gettext.
49526
49527 2005-10-11  Bruno Haible  <bruno@clisp.org>
49528
49529         * lib/c-strcase.h: New file, from GNU gettext.
49530         * lib/c-strcasecmp.c: New file, from GNU gettext.
49531         * lib/c-strncasecmp.c: New file, from GNU gettext.
49532
49533 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49534
49535         * modules/mempcpy (License): GPL -> LGPL.
49536         * modules/strchrnul (License): Likewise.
49537         * modules/sysexits (License): Likewise.
49538
49539 2005-10-08  Simon Josefsson  <jas@extundo.com>
49540
49541         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49542
49543 2005-10-07  Simon Josefsson  <jas@extundo.com>
49544
49545         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49546
49547 2005-10-06  Simon Josefsson  <jas@extundo.com>
49548
49549         * tests/test-hmac-md5.c: New file.
49550
49551         * modules/hmac-md5-tests: New file.
49552
49553         * modules/hmac-md5: New file.
49554
49555 2005-10-06  Simon Josefsson  <jas@extundo.com>
49556
49557         * m4/hmac-md5.m4: New file.
49558
49559         * m4/memxor.m4: Require gl_C_RESTRICT.
49560
49561 2005-10-06  Simon Josefsson  <jas@extundo.com>
49562
49563         * lib/memxor.c (memxor): Avoid casts and warnings.
49564
49565 2005-10-06  Simon Josefsson  <jas@extundo.com>
49566
49567         * lib/hmac-md5.c: New file.
49568
49569         * lib/hmac.h: New file.
49570
49571 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49572
49573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49574         promotes to int, not unsigned int, to catch the AIX 5.3
49575         compiler bug.
49576
49577 2005-10-05  Simon Josefsson  <jas@extundo.com>
49578
49579         * modules/memxor: New file.
49580
49581         * modules/iconv (Files): Move config.rpath to havelib, it is used
49582         there.
49583
49584         * modules/havelib (Files): Add config.rpath.
49585
49586 2005-10-05  Simon Josefsson  <jas@extundo.com>
49587
49588         * m4/memxor.m4: New file.
49589
49590 2005-10-05  Simon Josefsson  <jas@extundo.com>
49591
49592         * lib/memxor.c (memxor): Fix compiler error.
49593
49594         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49595         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49596
49597         * lib/memxor.h, lib/memxor.c: New files.
49598
49599         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49600         we assume all systems have it, suggested by Jim Meyering
49601         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49602         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49603         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49604         same reasons.
49605
49606 2005-10-05  Simon Josefsson  <jas@extundo.com>
49607
49608         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49609
49610 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49611
49612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49613         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49614         needed, since the source code now assumes these .h files.
49615
49616 2005-10-05  Derek Price  <derek@ximbiot.com>
49617
49618         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49619
49620 2005-10-05  Bruno Haible  <bruno@clisp.org>
49621
49622         * modules/stdint (License): Change to LGPL.
49623
49624 2005-10-04  Simon Josefsson  <jas@extundo.com>
49625
49626         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49627         D. Baushke" <mdb@gnu.org>.
49628
49629 2005-10-04  Bruno Haible  <bruno@clisp.org>
49630
49631         * lib/verify.h (verify_true): Provide alternative definition for C++.
49632
49633 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49636         (SSIZE_MAX): New macro, if not already defined.
49637         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49638         than 2 GiB.
49639
49640 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49641
49642         Sync from coreutils.
49643         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49644         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49645         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49646         ULLONG_MAX doesn't work with 2.7.2.1.
49647
49648 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49649
49650         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49651         From Ben Pfaff.
49652
49653         * modules/exclude (Depends-on): Depend on verify.
49654         * modules/strtoimax (Depends-on): Likewise.
49655         * modules/utimecmp (Depends-on): Likewise.
49656
49657 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * lib/exclude.c: Include verify.h.
49660         (verify): Remove.  All callers changed to use verify.h's version.
49661         * lib/strtoimax.c: Likewise.
49662         * lib/utimecmp.c: Likewis.e
49663
49664         Sync from coreutils.
49665         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49666         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49667         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49668         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49669         bother returning ENOSYS if settimeofday or stime fails; just let
49670         them return whatever errno they want to return.
49671         * lib/utimens.c: Include unistd.h, for dup2.
49672         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49673         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49674
49675 2005-10-02  Jim Meyering  <jim@meyering.net>
49676
49677         Sync from coreutils.
49678         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49679         from glibc-2.2.5 that fails for read-only files.
49680
49681 2005-10-02  Jim Meyering  <jim@meyering.net>
49682
49683         Sync from coreutils.
49684         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49685         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49686         `#if HAVE_CONFIG_H'.
49687         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49688         Remove AT_FDCWD test.
49689         Do not consume the fd unless successful.
49690         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49691         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49692         block, so that we don't even try to compile it if settimeofday is
49693         available.  This works around a compilation failure on OSF1 V5.1,
49694         due to stime requiring a `long int*' while tv_sec is `int'.
49695
49696 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49697
49698         Sync from coreutils.
49699         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49700         against `yes', rather than just testing for nonempty.
49701
49702 2005-10-01  Simon Josefsson  <jas@extundo.com>
49703
49704         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49705         and Darwin.
49706
49707         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49708         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49709         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49710         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49711         Check if struct addrinfo is declared.
49712
49713 2005-10-01  Simon Josefsson  <jas@extundo.com>
49714
49715         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49716         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49717         AI_* and EAI_* definitions.  Protect function declarations.
49718
49719 2005-10-01  Jim Meyering  <jim@meyering.net>
49720
49721         Sync from coreutils.
49722
49723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49724         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49725         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49726         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49727         in the inet and nsl libraries.  Required on Solaris 5.7.
49728
49729 2005-10-01  Jim Meyering  <jim@meyering.net>
49730
49731         Sync from coreutils.
49732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49733         in the inet and nsl libraries.  Required on Solaris 5.7.
49734
49735 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49736
49737         * lib/getdelim.c (getdelim): Remove unused variables.
49738
49739 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49740
49741         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49742         so that the code works even with ancient cpp.  Portability problem
49743         with GCC 2.7.2.1 reported by Thomas M.Ott.
49744
49745 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         * modules/regex (Depends-on): Add strcase.
49748
49749         * modules/gethostname (Licence): Change from GPL to LGPL, since
49750         gethostname.c is a trivial implementation of a standard library
49751         function.
49752         * modules/poll (License): Change from GPL to LGPL, since it's
49753         derived from LGPL code.
49754
49755 2005-09-27  Jim Meyering  <jim@meyering.net>
49756
49757         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49758         HAVE_CONFIG_H.
49759
49760         * lib/intprops.h (signed_type_or_expr__): Define.
49761         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49762         for unsigned types.
49763
49764 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49765
49766         * lib/verify.h (verify_expr): Remove, replacing with:
49767         (verify_true): New macro that returns true instead of void.
49768         (verify_type__): Remove.
49769         (verify): Use verify_true rather than verify_type__.
49770
49771 2005-09-26  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49774         is necessary.
49775         (lib_SOURCES): Remove mbchar.c.
49776         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49777         (Files): Add m4/mbrtowc.m4.
49778         * modules/mbiter: Likewise.
49779         * modules/mbuiter: Likewise.
49780
49781 2005-09-26  Bruno Haible  <bruno@clisp.org>
49782
49783         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49784         compile mbchar.c if they are not both present.
49785         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49786         * m4/mbiter.m4 (gl_MBITER): Likewise.
49787         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49788         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49789         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49790
49791 2005-09-25  Jim Meyering  <jim@meyering.net>
49792
49793         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49794         also uses socklen_t.
49795
49796 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49797
49798         * lib/utimens.c (ENOSYS): Define if not already defined.
49799         (futimens): Support having a null PATH if the file descriptor
49800         is nonnegative.
49801
49802         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49803         Remove.
49804         (__attribute): Define to empty unless GCC 3.1 or later.
49805         This works around a core dump on OpenBSD 3.4, which has GCC
49806         2.95.3, which dumps core when given __attribute__(()).  It also
49807         simplifies other tests, since we really don't want to bother with
49808         worrying about which ancient version of GCC supported what.
49809         Original problem reported by Yoann Vandoorselaere, with part of
49810         the fix suggested by Derek Price.
49811
49812 2005-09-24  Jim Meyering  <jim@meyering.net>
49813
49814         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49815         so we can once again use a positive bitfield width of 1 -- now we
49816         don't have to explain why we were using a bitfield width of 2.
49817
49818 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49819
49820         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49821         and similarly for the other external symbols.  Problem reported
49822         by James Gallager.
49823
49824         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49825         bug reported by Jim Meyering.
49826
49827         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49829         not needed, since socklen is a prerequisite module.
49830
49831 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49832
49833         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49834         Problem reported by Eric Blake.
49835         (getaddrinfo): Initialize se so that it's not garbage.
49836         Redo internal storage allocation so that it doesn't make unportable
49837         assumptions about alignment.
49838         Fix a memory leak.
49839
49840         * lib/utimens.c (futimens): Use futimesat if available.
49841         Prefer it to futimes since it doesn't have the futimes bug.
49842
49843         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49844         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49845         Instead, declare a function that returns a pointer to an array,
49846         and use verify_type__ to declare the size of the array.
49847         Problem and germ of a solution reported by Bruno Haible.
49848         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49849         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49850
49851 2005-09-23  Jim Meyering  <jim@meyering.net>
49852
49853         Sync from coreutils.
49854         Correct build failure (socklen_t not defined) on at least
49855         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49857
49858 2005-09-23  Jim Meyering  <jim@meyering.net>
49859
49860         * modules/getaddrinfo (Depends-on): Add socklen.
49861
49862 2005-09-23  Bruno Haible  <bruno@clisp.org>
49863
49864         * tests/test-verify.c: New file.
49865
49866 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         Sync from coreutils.
49869
49870         * modules/argmatch (Depends-on): Add verify.
49871         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49872         unistd-safer.
49873         * modules/save-cwd (Depends-on): Likewise.
49874
49875         * modules/openat (Files): Add lib/openat-die.c.
49876         (Depends-on): Remove error, exitfail.
49877         Add dirname.
49878
49879         * modules/verify: New file.
49880         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49881         with "verify" module.
49882
49883 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49884
49885         Sync from coreutils.
49886
49887         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49888         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49889         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49890         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49891         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49892         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49893         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49894         Don't bother checking for string.h, stdlib.h, unistd.h.
49895         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49896         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49897         module's job.
49898         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49899         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49900
49901         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49902         (gl_GETDATE): Use it.
49903
49904         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49905
49906 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         Sync from coreutils.
49909
49910         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49911         stat-time.h.
49912         * lib/argmatch.h: Include verify.h
49913         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49914         (ARGMATCH_ASSERT): Remove; unused.
49915         * lib/canonicalize.c: Assume STDC_HEADERS.
49916         * lib/exclude.c: Include "strcase.h".
49917         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49918         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49919         and stdio-safer.h.
49920         (getusershell): Call fopen, not fopen_safer.
49921         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49922         Do not include unistd-safer.h.
49923         (save_cwd): Don't call fd_safer; no longer needed
49924         now that we include fcntl--.h.
49925
49926         * lib/getdate.y (relative_time): New type.
49927         (RELATIVE_TIME_0): New constant.
49928         (parser_control): Use relative_time instead of doing it ourselves.
49929         (%union): Add new relative_time rel member.
49930         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49931         Now typeless.
49932         (relunit, relunit_snumber): Now of type rel.
49933         (zone, rel, relunit, get_date): Adjust to above changes.
49934
49935         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49936         Do not include unistd-safer.h.
49937         (getloadavg): Don't call fd_safer; no longer needed
49938         now that we include fcntl--.h.
49939
49940         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49941         (make_dir_parents): Treat ENOSYS like EEXIST.
49942
49943         Improve quality of diagnostics on restore_cwd failure.
49944         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49945         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49946         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49947         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49948         each time through the loop.  Do not diagnose restore_cwd failure;
49949         that is the caller's job (and perhaps the caller does not care).
49950
49951         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49952         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49953         If the file already exists but is not a directory, don't bother
49954         to try to make its parents.
49955         Close potential file descriptor leak if we can't chdir("/") (!).
49956         Don't always return true if chdir($PWD) fails; return true only
49957         if the requested action was done successfully (except for the
49958         chdir($PWD)).
49959         Don't log final directory unless we actually made it.
49960         Refactor to avoid duplicate code to fix up permissions.
49961         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49962
49963         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49964         to make it a bit faster and (I hope) clearer.
49965         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49966         Fix bug in formats like %2N.
49967
49968         * lib/verify.h: New file.
49969
49970 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49971
49972         Sync from coreutils.
49973         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49974
49975 2005-09-22  Jim Meyering  <jim@meyering.net>
49976
49977         Sync from coreutils.
49978
49979         * m4/lstat.m4 (gl_FUNC_LSTAT):
49980         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49981         Remove obsolete comment.
49982         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49983         * m4/xstrtod.m4: Likewise.
49984
49985         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49986
49987 2005-09-22  Jim Meyering  <jim@meyering.net>
49988
49989         Sync from coreutils.
49990
49991         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49992
49993         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49994         the .tm_year member, since otherwise gcc-4.0 would now warn about
49995         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49996
49997         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49998         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49999
50000         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50001         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50002         when run in a time zone for which daylight savings time is in effect
50003         for the starting date.
50004
50005         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50006         stop us from restricting permissions of just-created absolute-named
50007         directories.
50008         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50009         to restore initial working directory.
50010         * lib/mkdir-p.c (make_dir_parents): New parameter:
50011         different_working_dir, to tell caller if/when we change the working
50012         directory and are unable to return to the initial one.
50013         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50014         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50015         `return false'.  This fixes a bug introduced on 2004-07-30.
50016
50017         * lib/openat.c (fdopendir): Be sure to close the supplied
50018         file descriptor before returning.  This makes our replacement
50019         implementation a little closer to Solaris's, where fdopendir
50020         ties the file descriptor to the returned DIR* pointer.
50021         * lib/openat.c (unlinkat): New function.
50022         * lib/openat.h (unlinkat): Add prototype.
50023         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50024         (openat_restore_fail): Rename from openat_restore_die.
50025         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50026
50027         Provide an alternative to exiting immediately upon save_cwd or
50028         restore_cwd failure.  Now, an application can arrange e.g.,
50029         to perform a longjump in that case.
50030         * lib/openat.c: Include dirname.h.
50031         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50032         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50033         and openat_restore_die rather than calling error directly.
50034         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50035
50036         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50037         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50038         define.
50039
50040         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50041         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50042                             int utc, int nanoseconds);
50043         Background:
50044         date should not have to allocate a megabyte of virtual memory to
50045         handle a format argument like +%1048575T.  When implemented with
50046         strftime, it must allocate such a buffer, use strftime to fill it
50047         in, print it, then free it.
50048         With fprintftime, it simply prints everything and exits.
50049         With no need for memory allocation, that's one fewer way to fail.
50050         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50051         optional field width, not before, so we accept %9:z, not %:9z.
50052         (my_strftime): Be sure to use L_('x') for literals.
50053
50054         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50055         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50056         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50057         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50058         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50059         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50060         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50061         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50062         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50063         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50064         * lib/xgethostname.c, lib/xreadlink.c:
50065         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50066
50067         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50068         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50069         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50070         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50071         and don't include <sys/file.h>).
50072
50073 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50074
50075         Sync from coreutils.
50076
50077         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50078         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50079         [!LDAV_DONE]: Avoid unused variable warning.
50080
50081 2005-09-21  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/unicodeio.h (unicode_to_mb): New declaration.
50084
50085 2005-09-20  Derek Price  <derek@ximbiot.com>
50086
50087         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50088         getaddrinfo.h.
50089
50090 2005-09-20  Bruno Haible  <bruno@clisp.org>
50091
50092         * gnulib-tool: Remove trailing slashes from the values specified for
50093         --source-base, --m4-base, --tests-base, --aux-dir.
50094         Suggested by Simon Josefsson <jas@extundo.com>.
50095
50096 2005-09-20  Bruno Haible  <bruno@clisp.org>
50097
50098         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50099         func_modules_to_filelist, func_import, func_create_testdir): Make all
50100         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50101         change when gnulib-tool is invoked in a different locale.
50102
50103 2005-09-19  Simon Josefsson  <jas@extundo.com>
50104
50105         * m4/socklen.m4: Fix typo.
50106
50107 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50108
50109         Use a consistent style for including <config.h>.
50110         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50111         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50112         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50113         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50114         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50115         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50116         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50117         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50118         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50119         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50120         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50121         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50122         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50123         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50124         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50125         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50126         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50127         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50128         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50129         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50130         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50131         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50132         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50133         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50134         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50135         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50136         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50137         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50138         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50139         lib/xstrtoumax.c, lib/yesno.c:
50140         Standardize inclusion of config.h.
50141         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50142         lib/inttostr.h:  Removed inclusion of config.h from header files.
50143         * lib/inttostr.c:  Adjusted in-tree users.
50144         * lib/timespec.h: Remove superfluous warning to include config.h.
50145         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50146         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50147         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50148         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50149         config.h with HAVE_CONFIG_H.
50150
50151 2005-09-19  Jim Meyering  <jim@meyering.net>
50152
50153         * modules/pathmax (License): Change to LGPL.
50154
50155 2005-09-19  Derek Price  <derek@ximbiot.com>
50156
50157         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50158
50159 2005-09-19  Bruno Haible  <bruno@clisp.org>
50160
50161         * gnulib-tool (import): Provide default for --tests-base.
50162
50163 2005-09-19  Bruno Haible  <bruno@clisp.org>
50164
50165         * doc/quote.texi: New file, extracted from gnulib.texi.
50166         * doc/ctime.texi: New file, extracted from gnulib.texi.
50167         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50168         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50169         * doc/gnulib.texi: Include them.
50170
50171 2005-09-18  Bruno Haible  <bruno@clisp.org>
50172
50173         Portability fix.
50174         * gnulib-tool (func_readlink): New function.
50175         (func_ln_if_changed): Use it.
50176
50177 2005-09-18  Bruno Haible  <bruno@clisp.org>
50178
50179         * gnulib-tool: Support --with-tests also with --import.
50180         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50181         (func_import): Use variables $testsbase and $inctests. Emit a
50182         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50183         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50184         SUBDIRS += $testsdir.
50185         (func_create_testdir): Update.
50186
50187 2005-09-18  Bruno Haible  <bruno@clisp.org>
50188
50189         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50190         instead of $dry_run.
50191         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50192         (func_ln_if_changed): Don't handle dry-run here.
50193         (func_import): In dry-run mode, detect more precisely which actions
50194         would be performed, and don't use "...ing" verbs.
50195
50196 2005-09-18  Bruno Haible  <bruno@clisp.org>
50197
50198         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50199         (func_import): Use join on two temporary files instead of three nested
50200         loops, in order to determine which files are new or old.
50201
50202 2005-09-18  Bruno Haible  <bruno@clisp.org>
50203
50204         * gnulib-tool (func_import): Comment out code that spits out the
50205         new files with --dry-run.
50206
50207 2005-09-18  Bruno Haible  <bruno@clisp.org>
50208
50209         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50210
50211 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * lib/stat-time.h: New file.
50214         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50215         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50216         in a different way.
50217         (timespec_cmp): New function.
50218         * lib/utimecmp.c: Include stat-time.h.
50219         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50220         members exist, not on the obsolescent ST_MTIM_NSEC.
50221         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50222
50223 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50224
50225         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50226
50227 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50228
50229         * MODULES.html.sh (File system functions): Add stat-time.
50230         * modules/stat-time: New file.
50231         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50232         is now done in a different way, by the stat-time module.
50233         * modules/utimecmp (Depends-on): Add stat-time.
50234
50235 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50236
50237         * m4/st_mtim.m4: Remove.  Superseded by...
50238         * m4/stat-time.m4: New file.
50239         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50240         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50241
50242 2005-09-15  Derek Price  <derek@ximbiot.com>
50243
50244         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50245
50246 2005-09-15  Derek Price  <derek@ximbiot.com>
50247
50248         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50249         * lib/regex_internal.c: Ditto, using this...
50250         (__GNUC_PREREQ): ...new macro.
50251         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50252         using...
50253         (__GNUC_PREREQ): ...this new macro.
50254
50255         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50256
50257 2005-09-15  Derek Price  <derek@ximbiot.com>
50258             Paul Eggert  <eggert@cs.ucla.edu>
50259
50260         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50261         changes, consolidating in...
50262         * lib/regex_internal.h: ...this file.
50263
50264 2005-09-13  Jim Meyering  <jim@meyering.net>
50265
50266         * lib/canon-host.c: Filter through gnu indent and reword comments
50267         slightly.
50268         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50269
50270 2005-09-13  Derek Price  <derek@ximbiot.com>
50271
50272         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50273         failure.
50274         Reported by Jim Meyering  <jim@meyering.net>.
50275
50276 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50277
50278         * lib/base64.c: Typo.
50279         (base64_encode): Put b64str in initialized data section.
50280
50281 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50282
50283         Merge glibc and coreutils changes into gnulib, plus a few
50284         extra fixes.
50285         * lib/md5.c: Use #error rather than a string.
50286         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50287         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50288         (__attribute__): Define to empty for non recent-GCC.
50289         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50290         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50291         Renamed from their non-__ counterparts, with new macros replacing
50292         them if not _LIBC.  Add __THROW attribute.
50293         (rol): Remove.
50294         (struct md5_ctx): Align buffer if using GCC.
50295         * lib/sha1.h (struct sha1_ctx): Likewise.
50296         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50297         The old name was backwards.
50298         (NOTSWAP): Remove; not used.
50299         (rol): New macro, moved here from md5.h.
50300         (sha1_process_block): Remove a FIXME that doesn't make sense.
50301
50302 2005-09-12  Derek Price  <derek@ximbiot.com>
50303
50304         Return usable errors from canon-host.
50305         * lib/canon-host.h: New file.
50306         * lib/canon-host.c (canon_host): Wrap...
50307         (canon_host_r): ...this new function, which now relies exclusively on
50308         getaddrinfo.
50309         (ch_strerror): New function.
50310         (last_cherror): New global.
50311         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50312         interface.
50313         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50314         void *.
50315         (freeaddrinfo): Free ai->ai_canonname when set.
50316
50317 2005-09-12  Derek Price  <derek@ximbiot.com>
50318
50319         Make canon-host require getaddrinfo.
50320         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50321         AC_LIBSOURCE canon-host.h.  Call...
50322         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50323         gl_GETADDRINFO.
50324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50325
50326 2005-09-12  Derek Price  <derek@ximbiot.com>
50327
50328         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50329         LGPL.
50330         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50331
50332 2005-09-12  Derek Price  <derek@ximbiot.com>
50333
50334         * lib/gai_strerror.c: Include config.h when available.  Include
50335         getaddrinfo.h before other headers to test interface.
50336         Reported by Larry Jones <lawrence.jones@ugs.com>.
50337
50338 2005-09-12  Derek Price  <derek@ximbiot.com>
50339             Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         * modules/glob (Files): Add glob-libc.h.
50342
50343 2005-09-12  Derek Price  <derek@ximbiot.com>
50344             Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50347         glob_.h, glob-libc.h.
50348         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50349
50350 2005-09-12  Derek Price  <derek@ximbiot.com>
50351             Paul Eggert  <eggert@cs.ucla.edu>
50352
50353         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50354         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50355         protecting things that should be done only in gnulib contexts.
50356         * lib/glob_.h: New file, containing only the glob things needed for
50357         gnulib.
50358         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50359         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50360         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50361         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50362         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50363         and to respect the namespace rules better.
50364
50365 2005-09-08  Simon Josefsson  <jas@extundo.com>
50366
50367         * modules/socklen: New file.
50368
50369 2005-09-08  Simon Josefsson  <jas@extundo.com>
50370
50371         * m4/socklen.m4: New file.
50372
50373 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50374
50375         * modules/utimens (Files): Add m4/utimbuf.m4, since
50376         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50377         Reported by Sergey Poznyakoff.
50378
50379 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50380
50381         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50382         definitions, since that's the preferred style in glibc.
50383         Fix a minor spacing issue, and update copyright notice to match
50384         glibc's.
50385
50386 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50387
50388         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50389
50390 2005-09-06  Simon Josefsson  <jas@extundo.com>
50391
50392         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50393         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50394
50395 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50396
50397         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50398         warning.
50399
50400 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50401
50402         * config/srclist.txt: Add glibc bug 1302.
50403
50404 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         Change bitset word type from unsigned int to unsigned long int,
50407         as this has better performance on typical 64-bit hosts.
50408         Port bitset code to hosts with unusual word sizes.
50409         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50410         (build_collating_symbol):
50411         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50412         argument is a bitset.  This is merely a style issue, but it makes
50413         it clearer that an entire array is expected.
50414         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50415         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50416         Port to the case where bitset_word is not the same as unsigned int.
50417         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50418         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50419         Likewise.
50420         * lib/regexec.c (check_dst_limits_calc_pos_1,
50421         check_subexp_matching_top):
50422         (build_trtable, group_nodes_into_DFAstates):
50423         Likewise.
50424         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50425         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50426         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50427         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50428         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50429         * lib/regcomp.c (optimize_subexps, lower_subexp):
50430         Work even if bitset_word has holes in its bitwise representation.
50431         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50432         * lib/regexec.c (check_dst_limits_calc_pos_1,
50433         check_subexp_matching_top):
50434         Likewise.
50435         * lib/regex_internal.c (re_string_reconstruct):
50436         Don't assume UCHAR_MAX == 255.
50437         * lib/regex_internal.h (bitset_set_all): Likewise.
50438         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50439         All uses changed.
50440         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50441         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50442         All uses changed.
50443         (BITSET_WORD_MAX): New macro.
50444         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50445         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50446         (bitset_empty, bitset_copy):
50447         Prefer sizeof (bitset) to multiplying it out ourselves.
50448         (bitset_not_merge): Remove; unused.
50449         (bitset_contain): Return bool, not unsigned int with one bit on.
50450         All callers changed.
50451         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50452         alignment than re_node_set; do this by defining a new internal
50453         type struct dests_alloc and using it to allocate memory.
50454
50455 2005-09-05  Bruno Haible  <bruno@clisp.org>
50456
50457         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50458         links.
50459
50460 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50461
50462         * modules/size_max (Makefile.am): Add size_max.h
50463
50464 2005-09-04  Derek Price  <derek@ximbiot.com>
50465
50466         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50467
50468 2005-09-03  Simon Josefsson  <jas@extundo.com>
50469
50470         * gnulib-tool: Fix typo.
50471
50472 2005-09-03  Simon Josefsson  <jas@extundo.com>
50473
50474         * config/srclist.txt: Add glibc bug 1293.
50475
50476 2005-09-03  Derek Price  <derek@ximbiot.com>
50477
50478         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50479         From Larry Jones <lawrence.jones@ugs.com>.
50480
50481 2005-09-02  Simon Josefsson  <jas@extundo.com>
50482
50483         * modules/socklen: New file.
50484
50485 2005-09-02  Simon Josefsson  <jas@extundo.com>
50486
50487         * modules/havelib: New module.
50488
50489         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50490         Use havelib.
50491
50492 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         Check for arithmetic overflow when calculating sizes, to prevent
50495         some buffer-overflow issues.  These patches are conservative, in the
50496         sense that when I couldn't determine whether an overflow was possible,
50497         I inserted a run-time check.
50498         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50499         macros.
50500         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50501         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50502         (re_xnrealloc, re_x2nrealloc): New inline functions.
50503         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50504         parse_bracket_exp):
50505         (build_equiv_class, build_charclass): Check for arithmetic overflow
50506         in size expression calculations.
50507         * lib/regex_internal.c (re_string_realloc_buffers):
50508         (build_wcs_upper_buffer, re_node_set_add_intersect):
50509         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50510         (re_dfa_add_node, register_state): Likewise.
50511         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50512         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50513         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50514         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50515
50516 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50517
50518         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50519         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50520
50521 2005-09-02  Bruno Haible  <bruno@clisp.org>
50522
50523         Support for lib vs. lib64 distinction on biarch platforms.
50524         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50525         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50527
50528 2005-09-02  Bruno Haible  <bruno@clisp.org>
50529
50530         * gnulib-tool (import): In the other first-use case, provide defaults
50531         as well.
50532
50533 2005-09-02  Bruno Haible  <bruno@clisp.org>
50534
50535         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50536         patches not yet found in the latest gettext release.
50537
50538 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50539
50540         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50541         to avoid a collision with bits/local_lim.h in glibc.
50542         All uses changed.  Problem reported by Dmitry V. Levin in
50543         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50544
50545         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50546         bugs in int versus size_t comparisons.
50547         (re_string_context_at): Fix bug where the code assumed that
50548         Idx is signed.
50549
50550         Use bool where appropriate.
50551         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50552         All callers changed.
50553         (calc_eclosure_iter): Likewise, for ROOT arg.
50554         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50555         (build_charclass_op): Likewise, for NON_MATCH arg.
50556         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50557         (re_string_construct_common): Likewise, for ICASE arg.
50558         * lib/regexec.c (re_search_2_stub, re_search_stub):
50559         Likewise, for RET_LEN arg.
50560         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50561         (set_regs): Likewise, for FL_BACKTRACK arg.
50562         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50563         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50564         (calc_eclosure_iter, parse_bracket_exp):
50565         Use bool for internal variables that are booleans.
50566         * lib/regexec.c (re_search_internal, check_matching,
50567         proceed_next_node):
50568         (set_regs, build_sifted_states, sift_states_bkref):
50569         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50570         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50571         (find_collation_sequence_value):
50572         Likewise.
50573         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50574         (re_node_set_compare):
50575         Return bool, not int. All callers changed.
50576         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50577         (build_trtable, check_node_accept): Likewise.
50578         * lib/regex_internal.h: Include stdbool.h.
50579
50580         Fix bugs uncovered when converting to bool.
50581         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50582         failure instead of charging ahead blindly.
50583         * lib/regex_internal.c (register_state): Likewise.
50584         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50585         for freeing internal storage.
50586         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50587         bitset pieces used as boolean, to avoid undefined behavior
50588         on hosts that do int overflow checking.
50589
50590 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50591
50592         * config/srclist.txt: Add glibc bugs 1285-1287.
50593
50594 2005-09-01  Jim Meyering  <jim@meyering.net>
50595
50596         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50597         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50598         Require gl_STAT_MACROS, too.
50599
50600 2005-09-01  Bruno Haible  <bruno@clisp.org>
50601
50602         * gnulib-tool (import): In the first-use case, provide defaults.
50603
50604 2005-09-01  Bruno Haible  <bruno@clisp.org>
50605
50606         * gnulib-tool (func_import): Remove the .tmp files.
50607
50608 2005-09-01  Bruno Haible  <bruno@clisp.org>
50609
50610         * gnulib-tool (func_import): Fix handling of symbolic links.
50611
50612 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50613
50614         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50615         old glibc regex code mishandles strings longer than 2**31 bytes.
50616         This patch fixes this when the regex code is used in gnulib
50617         (i.e., outside glibc).
50618
50619         This patch should not affect the use of the regex code inside
50620         glibc.  No doubt this problem also needs to be handled for glibc
50621         as well, but the result will be an incompatible change to the
50622         glibc ABI, and the old ABI will have to be supported too.  That
50623         can be the the subject for another patch.
50624
50625         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50626         governing whether the rest of this patch is active.  By default,
50627         the macro is disabled and the patch has no effect.
50628         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50629         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50630         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50631         (re_match_2, re_set_registers): Use the new types.
50632         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50633         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50634         New macros.
50635         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50636         (re_string_context_at, bin_tree_t, re_dfastate_t):
50637         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50638         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50639         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50640         (re_string_char_size_at, re_string_wchar_at):
50641         (re_string_elem_size_at):
50642         Use the new types and macros to port to 64-bit hosts.
50643         Use unsigned types for internal values, so that the code
50644         mostly works even for arrays larger than SSIZE_MAX.
50645         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50646         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50647         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50648         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50649         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50650         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50651         (calc_inveclosure, parse_dup_op, build_range_exp):
50652         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50653         (fetch_number, create_token_tree, mark_opt_subexp):
50654         Likewise.
50655         * lib/regex_internal.c (re_string_construct_common,
50656         create_ci_newstate):
50657         (create_cd_newstate, re_string_allocate, re_string_construct):
50658         (re_string_realloc_buffers, build_wcs_upper_buffer):
50659         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50660         (re_string_reconstruct, re_string_peek_byte_case):
50661         (re_string_fetch_byte_case, re_string_context_at):
50662         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50663         (re_node_set_init_copy, re_node_set_add_intersect):
50664         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50665         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50666         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50667         (re_acquire_state, re_acquire_state_context, register_state):
50668         Likewise.
50669         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50670         search_cur_bkref_entry):
50671         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50672         (re_search_internal, re_search_2_stub, re_search_stub)
50673         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50674         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50675         (update_cur_sifted_state, check_dst_limits):
50676         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50677         (check_subexp_limits, sift_states_bkref, merge_state_array):
50678         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50679         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50680         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50681         (expand_bkref_cache, check_node_accept_bytes):
50682         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50683         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50684         (acquire_init_state_context, check_halt_node_context):
50685         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50686         (sift_states_backward, clean_state_log_if_needed):
50687         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50688         (find_recover_state, transit_state_sb, transit_state_mb):
50689         (transit_state_bkref, build_trtable, match_ctx_clean):
50690         Likewise.
50691         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50692         to work around an assumption that REG_MISSING is negative.
50693
50694         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50695         (seek_collating_symbol_entry) [defined _LIBC]:
50696         (lookup_collation_sequence_value) [defined _LIBC]:
50697         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50698         Use prototypes rather than old-style function definitions.
50699         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50700         (transit_state_sb) [0]:
50701         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50702
50703         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50704         rm_eo.
50705
50706         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50707         (optimize_subexps, lower_subexp):
50708         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50709         since the signed shift might overflow.  Use 1u<<31 instead.
50710         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50711         Likewise.
50712         * lib/regexec.c (check_dst_limits_calc_pos_1,
50713         check_subexp_matching_top): Likewise.
50714
50715         * lib/regcomp.c (optimize_subexps, lower_subexp):
50716         Use CHAR_BIT rather than 8, for clarity.
50717         * lib/regexec.c (check_dst_limits_calc_pos_1):
50718         (check_subexp_matching_top): Likewise.
50719         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50720         have to worry about portability issues when shifting it left.
50721         Remove no-longer-needed test for table_size > 0.
50722         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50723         in a word, as the resulting behavior is undefined.
50724         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50725         in one case, a <= should have been an <, and in another case the
50726         whole test was missing.
50727         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50728         the standard name CHAR_BIT.
50729         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50730         this is not true on one's complement and signed-magnitude hosts.
50731
50732         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50733         next_last_offset.
50734         (struct re_dfa_t): Remove unused member states_alloc.
50735         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50736
50737 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50740         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50741         and large-file glibc and in 32-bit large-file Solaris.
50742
50743 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50746         lengths fit in regoff_t; this isn't true if regoff_t is the same
50747         width as size_t.
50748         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50749         (= START + RANGE) instead of RANGE.  This avoids overflow
50750         problems when regoff_t is the same width as size_t.
50751         All callers changed.
50752         (re_search_2_stub): Check for overflow when adding the
50753         sizes of the two strings.
50754         (re_search_stub): Check for overflow when adding START
50755         to RANGE; if it occurs, substitute the extreme value.
50756
50757 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50758
50759         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50760
50761 2005-08-31  Jim Meyering  <jim@meyering.net>
50762
50763         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50764         a pointer-to-const.
50765         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50766         (register_state): Likewise.
50767         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50768         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50769         (group_nodes_into_DFAstates): Likewise.
50770
50771 2005-08-31  Jim Meyering  <jim@meyering.net>
50772
50773         * check-module: Add a FIXME comment.
50774
50775 2005-08-31  Eric Blake  <ebb9@byu.net>
50776
50777         * modules/unistd-safer (Files): Add unistd--.h.
50778         * modules/stdio-safer (Files): Add stdio--.h.
50779
50780 2005-08-31  Derek Price  <derek@ximbiot.com>
50781
50782         * lib/getdelim.c (getdelim): Return EOF on EOF.
50783         Reported by Larry Jones <lawrence.jones@ugs.com>.
50784
50785 2005-08-31  Bruno Haible  <bruno@clisp.org>
50786
50787         Avoid unnecessary diffs in the generated lib/Makefile.am.
50788         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50789         the generated files.
50790         (func_import): Don't set cmd.
50791
50792 2005-08-31  Bruno Haible  <bruno@clisp.org>
50793
50794         * lib/strstr.c: Include <stddef.h>, for NULL.
50795         * lib/strcasestr.c: Likewise.
50796         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50797
50798 2005-08-31  Bruno Haible  <bruno@clisp.org>
50799
50800         * gnulib-tool: New option --macro-prefix.
50801         (func_import): Use macro_prefix.
50802         (import): Handle option --macro-prefix.
50803
50804 2005-08-31  Bruno Haible  <bruno@clisp.org>
50805
50806         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50807         Also use new variables cached_lgpl, cached_libtool.
50808
50809 2005-08-31  Bruno Haible  <bruno@clisp.org>
50810
50811         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50812         always instantiating them.
50813
50814 2005-08-31  Bruno Haible  <bruno@clisp.org>
50815
50816         * gnulib-tool (func_import): Read the previous cached settings
50817         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50818         earlier added by gnulib but are now dropped. Warn when a gnulib file
50819         overwrites a non-gnulib file.
50820
50821 2005-08-31  Bruno Haible  <bruno@clisp.org>
50822
50823         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50824         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50825         projects that don't keep autogenerated files in CVS. Put into
50826         actioncmd only the specified modules, not the transitive closure.
50827
50828 2005-08-31  Bruno Haible  <bruno@clisp.org>
50829
50830         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50831         Create directories that shall be filled.
50832         (import): Don't look for gl_* macros in configure.ac. Recurse across
50833         all directories containing a gnulib-cache.m4 files, if meaningful.
50834
50835 2005-08-31  Bruno Haible  <bruno@clisp.org>
50836
50837         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50838         (import): Set seen_libtool when we see gl_LIBTOOL.
50839
50840 2005-08-31  Bruno Haible  <bruno@clisp.org>
50841
50842         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50843         declaration macro definitions from generated gnulib.m4.
50844
50845 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50846
50847         * lib/iconvme.h: Add prototype for iconv_alloc.
50848
50849 2005-08-29  Simon Josefsson  <jas@extundo.com>
50850
50851         * lib/iconvme.c: Fix errno.
50852
50853 2005-08-29  Bruno Haible  <bruno@clisp.org>
50854
50855         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50856         that it works when the directory contains spaces.
50857
50858 2005-08-29  Bruno Haible  <bruno@clisp.org>
50859
50860         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50861
50862 2005-08-29  Bruno Haible  <bruno@clisp.org>
50863
50864         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50865         Emit more advice.
50866
50867 2005-08-29  Bruno Haible  <bruno@clisp.org>
50868         and Stepan Kasal  <kasal@ucw.cz>
50869
50870         * check-module: If more parameters are given, check each of them
50871         separately; add more exceptions, as noted by Jim Meyering.
50872         (check_module): New procedure.
50873         (%exempt_header): Now contains all exceptions.
50874
50875 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50876
50877         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50878
50879 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50880
50881         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50882
50883 2005-08-28  Bruno Haible  <bruno@clisp.org>
50884
50885         * m4/gnulib-tool.m4: New file.
50886
50887 2005-08-27  Jim Meyering  <jim@meyering.net>
50888
50889         * modules/unistd-safer (Files): Add pipe-safer.c.
50890         * modules/fcntl-safer (Files): Add creat-safer.c.
50891
50892 2005-08-27  Jim Meyering  <jim@meyering.net>
50893
50894         * m4/stdlib-safer.m4: New file.  From coreutils.
50895         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50897         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50898         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50899         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50900
50901 2005-08-27  Jim Meyering  <jim@meyering.net>
50902
50903         * lib/fopen-safer.c: Merge minor changes from coreutils.
50904         * lib/dup-safer.c: Likewise.
50905         * lib/fd-safer.c: Likewise.
50906
50907         Merge from coreutils.
50908         * lib/stdio--.h: New file.
50909         * lib/stdlib--.h: New file.
50910         * lib/mkstemp-safer.c: New file.
50911
50912         GNU tar needs these.
50913         * lib/pipe-safer.c: New file.
50914         * lib/creat-safer.c: New file.
50915         * lib/fcntl--.h (creat): Define to creat_safer.
50916         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50917         * lib/unistd--.h (pipe): Define to pipe_safer.
50918         * lib/unistd-safer.h: Declare pipe_safer.
50919
50920 2005-08-26  Simon Josefsson  <jas@extundo.com>
50921
50922         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50923         Haible <bruno@clisp.org>.
50924
50925 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50926
50927         * lib/regex_internal.h: Remove all references to
50928         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50929         or better.
50930         (bitset_not, bitset_merge, bitset_not_merge):
50931         (bitset_mask, re_string_allocate, re_string_construct):
50932         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50933         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50934         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50935         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50936         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50937         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50938         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50939         (re_acquire_state_context):
50940         Remove unnecessary forward decls.
50941         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50942         Put __attribute at function definition,
50943         now that the function decl has been removed.
50944         * lib/regex_internal.c (re_string_peek_byte_case):
50945         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50946         Likewise.
50947
50948 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50949
50950         * m4/regex.m4: Add AC_PREREQ(2.50).
50951         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50952
50953 2005-08-25  Simon Josefsson  <jas@extundo.com>
50954
50955         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50956         __fsetlocking.
50957
50958 2005-08-25  Simon Josefsson  <jas@extundo.com>
50959
50960         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50961         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50962         GLIBC specific code.
50963
50964 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50965
50966         Make regex safe for g++.  This fixes one real bug (an "err"
50967         that should have been "*err").  g++ problem reported by
50968         Sam Steingold.
50969         * lib/regex_internal.h (re_calloc): New macro, consistent with
50970         re_malloc etc.  All callers of calloc changed to use re_calloc.
50971         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50972         not int.  All callers changed.
50973         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50974         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50975         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50976         (find_recover_state): Change "err" to "*err"; this fixes what
50977         appears to be a real bug.
50978         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50979         versus int.
50980
50981 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50982
50983         * modules/regex (Depends-on): Add malloc, since the code
50984         assumes that !malloc(0) means failure.
50985
50986 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50987
50988         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50989
50990         alloca modernization/simplification for regex.
50991         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50992         needs to be at the start of the file, and can be moved into
50993         regex_internal.h and simplified.
50994         * lib/regex_internal.h: Include <alloca.h>.
50995         (__libc_use_alloca) [!defined _LIBC]: New macro.
50996         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50997         now works outside glibc.
50998
50999 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         * config/srclist.txt: Add glibc bugs 1241, 1245.
51002
51003 2005-08-25  Jim Meyering  <jim@meyering.net>
51004
51005         * lib/open-safer.c: Include <config.h>.
51006         Otherwise, we'd lose LARGEFILE support in any file using
51007         e.g. "fcntl--.h"
51008
51009 2005-08-25  Bruno Haible  <bruno@clisp.org>
51010
51011         * m4/minmax.m4: Require autoconf 2.52.
51012         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51013         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51014         alternatives of translit over the alphabet.
51015         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51016
51017 2005-08-24  Simon Josefsson  <jas@extundo.com>
51018
51019         * tests/test-getpass.c: New file.
51020
51021 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51024         for GNU regex features.
51025
51026 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51027
51028         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51029         * lib/regex.h (regerror): Likewise.
51030
51031         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51032         requires this.  (The code never needed it.)
51033
51034         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51035         All uses of recently-renamed identifiers changed to use the new,
51036         POSIX-compliant names.  The code will build and run just fine
51037         without these changes, but it's better to eat our own dog food
51038         and use the standard-conforming names.
51039
51040         * lib/regex.h: Fix a multitude of POSIX name space violations.
51041         These changes have an effect only for programs that define
51042         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51043         do not change anything for programs compiled in the normal way.
51044         Also, there is no effect on the ABI.
51045
51046         (_REGEX_SOURCE): New macro.
51047         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51048         defined and _GNU_SOURCE is not; this fixes a name space violation.
51049
51050         Rename the following macros to obey POSIX requirements.
51051         The old names are still visible as macros if _REGEX_SOURCE is defined.
51052         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51053         RE_BACKSLASH_ESCAPE_IN_LISTS.
51054         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51055         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51056         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51057         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51058         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51059         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51060         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51061         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51062         (REG_INTERVALS): renamed from RE_INTERVALS.
51063         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51064         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51065         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51066         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51067         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51068         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51069         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51070         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51071         RE_UNMATCHED_RIGHT_PAREN_ORD.
51072         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51073         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51074         (REG_DEBUG): renamed from RE_DEBUG.
51075         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51076         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51077         unusual, since we can't clash with the POSIX REG_ICASE.
51078         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51079         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51080         (REG_NO_SUB): renamed from RE_NO_SUB.
51081         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51082         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51083         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51084         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51085         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51086         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51087         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51088         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51089         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51090         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51091         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51092         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51093         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51094         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51095         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51096         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51097         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51098         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51099         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51100         (REG_FIXED): Renamed from REGS_FIXED.
51101         (REG_NREGS): Renamed from RE_NREGS.
51102
51103         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51104         of other REG_* macros, since POSIX says the user is allowed to
51105         #undef these macros selectively.
51106
51107         (reg_errcode_t): Update comment stating what other tables need
51108         to be consistent.
51109
51110         Rename the following enum values to obey POSIX requirements.
51111         The old names are still visible as macros.
51112         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51113         is not defined, since GNU is supposed to be a superset of POSIX as
51114         much as possible, and since we want reg_errcode_t to be a signed
51115         type for implementation consistency.
51116         (_REG_NOERROR): Renamed from REG_NOERROR.
51117         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51118         (_REG_BADPAT): Renamed from REG_BADPAT.
51119         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51120         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51121         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51122         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51123         (_REG_EBRACK): Renamed from REG_EBRACK.
51124         (_REG_EPAREN): Renamed from REG_EPAREN.
51125         (_REG_EBRACE): Renamed from REG_EBRACE.
51126         (_REG_BADBR): Renamed from REG_BADBR.
51127         (_REG_ERANGE): Renamed from REG_ERANGE.
51128         (_REG_ESPACE): Renamed from REG_ESPACE.
51129         (_REG_BADRPT): Renamed from REG_BADRPT.
51130         (_REG_EEND): Renamed from REG_EEND.
51131         (_REG_ESIZE): Renamed from REG_ESIZE.
51132         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51133         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51134         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51135         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51136         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51137
51138         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51139         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51140         changed.  But support the old name if the new one is not defined
51141         and if _REGEX_SOURCE.
51142
51143         Change the following member names in struct re_pattern_buffer.
51144         The old names are still supported if !_REGEX_SOURCE.
51145         The new names are always supported, regardless of _REGEX_SOURCE.
51146         (re_buffer): Renamed from buffer.
51147         (re_allocated): Renamed from allocated.
51148         (re_used): Renamed from used.
51149         (re_syntax): Renamed from syntax.
51150         (re_fastmap): Renamed from fastmap.
51151         (re_translate): Renamed from translate.
51152         (re_can_be_null): Renamed from can_be_null.
51153         (re_regs_allocated): Renamed from regs_allocated.
51154         (re_fastmap_accurate): Renamed from fastmap_accurate.
51155         (re_no_sub): Renamed from no_sub.
51156         (re_not_bol): Renamed from not_bol.
51157         (re_not_eol): Renamed from not_eol.
51158         (re_newline_anchor): Renamed from newline_anchor.
51159
51160         Change the following member names in struct re_registers.
51161         The old names are still supported if !_REGEX_SOURCE.
51162         The new names are always supported, regardless of _REGEX_SOURCE.
51163         (rm_num_regs): Renamed from num_regs.
51164         (rm_start): Renamed from start.
51165         (rm_end): Renamed from end.
51166
51167         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51168         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51169         Prepend __ to parameter names.
51170
51171         Undo yesterday's changes.
51172
51173 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51174
51175         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51176         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51177         lib/regex.c.
51178
51179 2005-08-24  Jim Meyering  <jim@meyering.net>
51180
51181         Sync from coreutils.
51182         * m4/fcntl-safer.m4: New file.
51183
51184         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51185         and object files for this module.
51186
51187 2005-08-24  Jim Meyering  <jim@meyering.net>
51188
51189         Sync from coreutils.
51190         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51191
51192 2005-08-24  Jim Meyering  <jim@meyering.net>
51193
51194         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51195         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51196
51197 2005-08-24  Jim Meyering  <jim@meyering.net>
51198
51199         * modules/fcntl-safer: New module.
51200         * modules/fts (Depends-on): Add fcntl-safer.
51201         * MODULES.html.sh (File descriptor based Input/Output):
51202         Add fcntl-safer.
51203
51204 2005-08-24  Bruno Haible  <bruno@clisp.org>
51205
51206         Support for unit test modules.
51207         * modules/README: Mention tests modules.
51208         * modules/TEMPLATE-TESTS: New file.
51209         * gnulib-tool: New options --extract-tests-module, --with-tests and
51210         --tests-base (unused for the moment).
51211         (testsbase, inctests): New variables.
51212         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51213         (func_verify_module): Exclude TEMPLATE-TESTS.
51214         (func_verify_nontests_module, func_verify_tests_module): New functions.
51215         (func_get_dependencies): Add implicit dependency for tests modules.
51216         (func_get_tests_module): New function.
51217         (func_modules_transitive_closure): When --with-tests was specified,
51218         include the unit tests as well, unless explicitly avoided.
51219         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51220         (func_emit_tests_Makefile_am): New function.
51221         (func_create_testdir): When --with-tests was specified, emit a
51222         tests/ directory.
51223         * MODULES.html.sh (Future developments): Update.
51224
51225 2005-08-24  Bruno Haible  <bruno@clisp.org>
51226
51227         * modules/tls-tests: New file.
51228         * tests/test-tls.c: New file, from GNU gettext.
51229
51230 2005-08-24  Bruno Haible  <bruno@clisp.org>
51231
51232         * modules/lock-tests: New file.
51233         * tests/test-lock.c: New file, from GNU gettext.
51234
51235 2005-08-24  Bruno Haible  <bruno@clisp.org>
51236
51237         * lib/lock.h: Add multiple inclusion guard.
51238         * lib/tls.h: Add multiple inclusion guard.
51239
51240 2005-08-24  Bruno Haible  <bruno@clisp.org>
51241
51242         * gnulib-tool: Add support for the --aux-dir option to
51243         --create-testdir, --create-megatestdir, --test, --megatest.
51244         (func_create_testdir, func_create_megatestdir): Optionally emit a
51245         AC_CONFIG_AUX_DIR directive.
51246         (create-testdir, create-megatestdir, test, megatest): Provide a
51247         default value for $auxdir.
51248
51249 2005-08-24  Bruno Haible  <bruno@clisp.org>
51250
51251         * gnulib-tool (import): Use compound statement instead of subshell
51252         where possible.
51253
51254 2005-08-24  Bruno Haible  <bruno@clisp.org>
51255
51256         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51257
51258 2005-08-24  Bruno Haible  <bruno@clisp.org>
51259
51260         * gnulib-tool (func_version): Update.
51261
51262 2005-08-24  Bruno Haible  <bruno@clisp.org>
51263
51264         * gnulib-tool (func_import, func_create_testdir,
51265         func_create_megatestdir): Quote all autoconf macro arguments.
51266
51267 2005-08-24  Bruno Haible  <bruno@clisp.org>
51268
51269         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51270         option --force, because --force causes the aclocal.m4 of each
51271         subdirectory to be newer than the corresponding config.h.in.
51272
51273 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51274
51275         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51276         All contents moved to gl_REGEX.
51277         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51278         assume that it does.
51279
51280 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51281
51282         * lib/regex.h (REG_NOSYS)
51283         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51284         Define, since POSIX requires it as of 2001.
51285         (_REG_ENOSYS)
51286         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51287         New private symbol, used to keep the enum signed in all cases.
51288         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51289         Youngman in
51290         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51291
51292         * lib/regex_internal.c (re_string_skip_chars, register_state):
51293         (calc_state_hash):
51294         Remove forward decls; no longer needed now that we use prototypes.
51295         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51296         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51297         (clean_state_log_if_needed): Likewise.
51298
51299 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * config/srclist.txt: Add glibc bugs 1231-1233.
51302
51303 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51304
51305         Fix problems reported by Sam Steingold in
51306         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51307         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51308         assumed that reg_errcode_t is a signed type, which is not
51309         necessarily true if _XOPEN_SOURCE is not defined.
51310         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51311         since some compilers warn about it otherwise.
51312
51313 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51314
51315         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51316         (init_word_char, create_initial_state, duplicate_node_closure):
51317         (fetch_token, peek_token_bracket, build_range_exp):
51318         (build_collating_symbol): Remove forward decls; no longer needed
51319         now that we use prototypes.
51320
51321         * lib/regcomp.c:
51322         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51323         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51324         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51325         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51326         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51327         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51328         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51329         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51330         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51331         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51332         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51333         (build_charclass, build_charclass_op, fetch_number, create_tree):
51334         (create_token_tree, mark_opt_subexp, duplicate_tree):
51335         Use prototypes rather than old-style definitions.
51336
51337         * lib/regex_internal.c:
51338         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51339         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51340         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51341         (re_string_reconstruct, re_string_peek_byte_case):
51342         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51343         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51344         (re_node_set_init_copy, re_node_set_add_intersect):
51345         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51346         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51347         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51348         (re_acquire_state, re_acquire_state_context, register_state):
51349         (create_ci_newstate, create_cd_newstate, free_state):
51350         Likewise.
51351         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51352         re_search_2):
51353         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51354         (re_search_internal, prune_impossible_nodes):
51355         (acquire_init_state_context, check_matching, static):
51356         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51357         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51358         (update_regs, sift_states_backward, build_sifted_states):
51359         (clean_state_log_if_needed, merge_state_array):
51360         (update_cur_sifted_state, add_epsilon_src_nodes):
51361         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51362         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51363         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51364         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51365         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51366         (check_arrival, check_arrival_add_next_nodes):
51367         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51368         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51369         (check_node_accept_bytes, check_node_accept, extend_buffers):
51370         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51371         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51372         (sift_ctx_init):
51373         Likewise.
51374
51375         * lib/regex_internal.h:
51376         (re_string_allocate, re_string_construct, re_string_reconstruct):
51377         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51378         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51379         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51380         (re_string_context_at, re_string_peek_byte_case):
51381         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51382         is defined, since we now use prototypes always.
51383
51384         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51385         C89 or better.  All uses removed.
51386
51387 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51388
51389         * config/srclist.txt: Add glibc bugs 1220-1227.
51390
51391 2005-08-20  Jim Meyering  <jim@meyering.net>
51392
51393         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51394         of unused local, dfa.
51395
51396 2005-08-20  Bruno Haible  <bruno@clisp.org>
51397
51398         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51399
51400 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51401
51402         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51403         (re_node_set_insert_last, re_dfa_add_node):
51404         Rename local variables to avoid GCC shadowing warnings.
51405
51406 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51407
51408         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51409         [defined lint]: Suppress bogus uninitialized-variable warnings.
51410
51411         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51412         and let the caller return REG_ESPACE if out of space.  This
51413         removes an uninitialied-variable warning with GCC 4.0.1, and also
51414         avoids taking the address of a local variable.  All callers
51415         changed.
51416
51417 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51420         $LIBCSRC/posix/regexec.c.
51421         Add glibc bug 1217 for regcomp.c.
51422
51423 2005-08-19  Jim Meyering  <jim@meyering.net>
51424
51425         * lib/regexec.c (proceed_next_node): Redo local variables to
51426         avoid GCC shadowing warnings.
51427
51428 2005-08-18  Bruno Haible  <bruno@clisp.org>
51429
51430         * lib/strstr.c (strstr): Fix return value in multibyte case.
51431         * lib/strcasestr.c (strcasestr): Likewise.
51432
51433 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51436
51437 2005-08-17  Jim Meyering  <jim@meyering.net>
51438
51439         Make the %s format (seconds since the epoch) work for a negative
51440         number and when used with a zero-padded field width, e.g. %015s.
51441
51442         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51443         label so that it precedes the code to set `digits'.  Otherwise,
51444         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51445         print `00-22'.  Now, it prints `-0022', as it should.
51446
51447 2005-08-17  Bruno Haible  <bruno@clisp.org>
51448
51449         * modules/strstr (Files): Add m4/mbrtowc.m4.
51450         (Depends-on): Add mbuiter.
51451
51452 2005-08-17  Bruno Haible  <bruno@clisp.org>
51453
51454         * modules/strcasestr: New file.
51455         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51456         strcasestr.
51457
51458 2005-08-17  Bruno Haible  <bruno@clisp.org>
51459
51460         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51461
51462 2005-08-17  Bruno Haible  <bruno@clisp.org>
51463
51464         * modules/mbuiter: New file.
51465         * MODULES.html.sh (Extended multibyte and wide character utilities):
51466         Add mbuiter.
51467
51468 2005-08-17  Bruno Haible  <bruno@clisp.org>
51469
51470         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51471         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51472
51473 2005-08-17  Bruno Haible  <bruno@clisp.org>
51474
51475         * m4/strcasestr.m4: New file.
51476
51477 2005-08-17  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51480         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51481
51482 2005-08-17  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/strcasestr.h: New file.
51485         * lib/strcasestr.c: New file.
51486
51487 2005-08-17  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/strcasecmp.c: Use mbuiter.h.
51490
51491 2005-08-17  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/mbuiter.h: New file.
51494
51495 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51496
51497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51498         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51499         and gl_GETOPT are both invoked via different paths (as happens
51500         with GNU tar CVS because it uses both argp and getopt), the former
51501         wins.
51502
51503 2005-08-16  Bruno Haible  <bruno@clisp.org>
51504
51505         * modules/tls: New file.
51506         * MODULES.html.sh (Multithreading): Add tls.
51507
51508 2005-08-16  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/strnlen1: New file.
51511         * MODULES.html.sh (String handling): Add strnlen1.
51512
51513 2005-08-16  Bruno Haible  <bruno@clisp.org>
51514
51515         * modules/strcase (Files): Add m4/mbrtowc.m4.
51516         (Depends-on): Add strnlen1, mbchar.
51517
51518 2005-08-16  Bruno Haible  <bruno@clisp.org>
51519
51520         * modules/mbiter: New file.
51521         * MODULES.html.sh (Extended multibyte and wide character utilities):
51522         Add mbiter.
51523
51524 2005-08-16  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/mbfile: New file.
51527         * MODULES.html.sh (Extended multibyte and wide character utilities):
51528         Add mbfile.
51529
51530 2005-08-16  Bruno Haible  <bruno@clisp.org>
51531
51532         * modules/mbchar: New file.
51533         * MODULES.html.sh (Extended multibyte and wide character utilities):
51534         New section.
51535
51536 2005-08-16  Bruno Haible  <bruno@clisp.org>
51537
51538         * m4/tls.m4: New file, from GNU gettext.
51539
51540 2005-08-16  Bruno Haible  <bruno@clisp.org>
51541
51542         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51543         always.
51544         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51545
51546 2005-08-16  Bruno Haible  <bruno@clisp.org>
51547
51548         * m4/mbiter.m4: New file.
51549
51550 2005-08-16  Bruno Haible  <bruno@clisp.org>
51551
51552         * m4/mbfile.m4: New file.
51553
51554 2005-08-16  Bruno Haible  <bruno@clisp.org>
51555
51556         * m4/mbchar.m4: New file.
51557
51558 2005-08-16  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/tls.h: New file, from GNU gettext.
51561         * lib/tls.c: New file, from GNU gettext.
51562
51563 2005-08-16  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/strnlen1.h: New file.
51566         * lib/strnlen1.c: New file.
51567
51568 2005-08-16  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51571         (mbi_init): Update.
51572         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51573         NUL byte, not after it.
51574
51575 2005-08-16  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/strcase.h (strcasecmp): Add note in comments.
51578         * lib/strncasecmp.c: Use code from strcasecmp.c.
51579         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51580         (strcasecmp): Work correctly in multibyte locales.
51581
51582 2005-08-16  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/mbiter.h: New file.
51585
51586 2005-08-16  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/mbfile.h: New file.
51589
51590 2005-08-16  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/mbchar.h: New file.
51593         * lib/mbchar.c: New file.
51594
51595 2005-08-16  Bruno Haible  <bruno@clisp.org>
51596
51597         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51598         the valid ones. Makes the comparison operations transitive:
51599         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51600         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51601
51602 2005-08-15  Simon Josefsson  <jas@extundo.com>
51603
51604         * modules/ssize_t (License): Change to 'unlimited'.
51605
51606         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51607
51608 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51609
51610         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51611         Add comments for each pending glibc patch.
51612
51613 2005-08-15  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51616         __cplusplus is defined.
51617
51618 2005-08-14  Jim Meyering  <jim@meyering.net>
51619
51620         Sync from coreutils.
51621
51622         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51623         Use the hash-table-based cycle-detection code not just when
51624         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51625         Reported by James Youngman in
51626         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51627         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51628         FTS_TIGHT_CYCLE_CHECK.
51629         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51630         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51631         once again.
51632         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51633         * lib/fts.c (fd_safer): Remove decl.
51634         Include fcntl--.h rather than unistd-safer.h
51635         (fts_safe_changedir): Don't call fd_safer; no longer needed
51636         now that we include fcntl--.h.
51637
51638 2005-08-12  Simon Josefsson  <jas@extundo.com>
51639
51640         * modules/getndelim2: Use ssize_t module.
51641         * modules/getnline: Likewise.
51642         * modules/safe-read: Likewise.
51643         * modules/xreadlink: Likewise.
51644
51645         * modules/ssize_t: New file.
51646
51647 2005-08-12  Simon Josefsson  <jas@extundo.com>
51648
51649         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51650
51651 2005-08-12  Simon Josefsson  <jas@extundo.com>
51652
51653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51654         ssize_t.
51655
51656 2005-08-12  Simon Josefsson  <jas@extundo.com>
51657
51658         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51659         readline, getdelim and check_version.
51660         (Support for systems lacking ISO C 99: Sizes of integer types):
51661         Add size_max.
51662
51663 2005-08-12  Bruno Haible  <bruno@clisp.org>
51664
51665         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51666
51667 2005-08-11  Simon Josefsson  <jas@extundo.com>
51668
51669         * modules/readline: New file.
51670
51671         * modules/strnlen (Files): Add strnlen.h.
51672
51673 2005-08-11  Simon Josefsson  <jas@extundo.com>
51674
51675         * m4/readline.m4: New file.
51676
51677 2005-08-11  Simon Josefsson  <jas@extundo.com>
51678
51679         * lib/readline.h, readline.c: New file.
51680
51681 2005-08-11  Simon Josefsson  <jas@extundo.com>
51682
51683         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51684         gl_AVOID.
51685
51686 2005-08-11  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51689
51690 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51691
51692         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51693
51694 2005-08-10  Simon Josefsson  <jas@extundo.com>
51695
51696         * tests/test-iconvme.c: New file.
51697
51698 2005-08-10  Simon Josefsson  <jas@extundo.com>
51699
51700         * m4/strnlen.m4: New file.
51701
51702         * m4/strndup.m4: Don't check for strnlen declaration, done in
51703         strnlen.m4.
51704
51705 2005-08-10  Simon Josefsson  <jas@extundo.com>
51706
51707         * lib/strndup.c: Use strnlen.h.
51708
51709         * lib/strnlen.h: New file.
51710
51711 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51712
51713         * README: Typos.
51714
51715 2005-08-02  Simon Josefsson  <jas@extundo.com>
51716
51717         * modules/readline: New file.
51718
51719 2005-08-02  Simon Josefsson  <jas@extundo.com>
51720
51721         * modules/getdelim: New file.
51722
51723         * modules/getline: Rewrite, don't use getndelim2.
51724
51725 2005-08-02  Simon Josefsson  <jas@extundo.com>
51726
51727         * m4/getline.m4: Separate out getdelim stuff into separate module.
51728
51729         * m4/getdelim.m4: New file.
51730
51731 2005-08-02  Simon Josefsson  <jas@extundo.com>
51732
51733         * lib/getline.h, getline.c: Rewrite.
51734
51735         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51736
51737 2005-07-31  Bruno Haible  <bruno@clisp.org>
51738
51739         * lib/lock.h (gl_lock_initializer): New macro.
51740         (gl_lock_define_initialized): Use it.
51741         (gl_rwlock_initializer): New macro.
51742         (gl_rwlock_define_initialized): Use it.
51743         (gl_recursive_lock_initializer): New macro.
51744         (gl_recursive_lock_define_initialized): Use it.
51745
51746 2005-07-30  Karl Berry  <karl@gnu.org>
51747
51748         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51749         Report from Ben Pfaff, regarding getopt.
51750
51751 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51752
51753         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51754         normal way.
51755         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51756         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51757         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51758         (gl_GETOPT): Use the new macros.  Most of the implementation
51759         is moved to the new macros.  This is for programs like Emacs
51760         that don't want all the functionality of gl_GETOPT.
51761
51762 2005-07-26  Bruno Haible  <bruno@clisp.org>
51763
51764         * m4/lock.m4: Update from GNU gettext.
51765
51766 2005-07-26  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/lock.h: Update from GNU gettext.
51769         * lib/lock.c: Update from GNU gettext.
51770
51771 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51772
51773         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51774         obsolescent AC_TRY_RUN.  Include the default includes files, for
51775         'exit'.
51776
51777 2005-07-24  Bruno Haible  <bruno@clisp.org>
51778
51779         * modules/visibility: New file.
51780         * MODULES.html.sh (Misc): Add visibility.
51781
51782 2005-07-24  Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/visibility.m4: New file.
51785
51786 2005-07-24  Bruno Haible  <bruno@clisp.org>
51787
51788         * doc/visibility.texi: New file.
51789
51790 2005-07-22  Bruno Haible  <bruno@clisp.org>
51791
51792         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51793         $(ALLOCA_H), redundant through BUILT_SOURCES.
51794         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51795         redundant through BUILT_SOURCES.
51796         * modules/byteswap (Makefile.am): Remove explicit dependency on
51797         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51798         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51799         $(FNMATCH_H), redundant through BUILT_SOURCES.
51800         * modules/getopt (Makefile.am): Remove explicit dependency on
51801         $(GETOPT_H), redundant through BUILT_SOURCES.
51802         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51803         redundant through BUILT_SOURCES.
51804         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51805         redundant through BUILT_SOURCES.
51806         * modules/stdbool (Makefile.am): Remove explicit dependency on
51807         $(STDBOOL_H), redundant through BUILT_SOURCES.
51808         * modules/stdint (Makefile.am): Remove explicit dependency on
51809         $(STDINT_H), redundant through BUILT_SOURCES.
51810         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51811         Remove explicit dependency on $(SYSEXITS_H).
51812         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51813
51814 2005-07-18  Simon Josefsson  <jas@extundo.com>
51815
51816         * lib/check-version.c (check_version): Accept identical versions too.
51817
51818 2005-07-18  Bruno Haible  <bruno@clisp.org>
51819
51820         * modules/lock: New file.
51821         * MODULES.html.sh (Multithreading): New section.
51822
51823 2005-07-18  Bruno Haible  <bruno@clisp.org>
51824
51825         * m4/lock.m4: New file, from GNU gettext.
51826
51827 2005-07-18  Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/lock.h: New file, from GNU gettext.
51830         * lib/lock.c: New file, from GNU gettext.
51831
51832 2005-07-18  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/lock.h (gl_once_t): New type.
51835         (gl_once_define, gl_once): New macros.
51836         * lib/lock.c (fresh_once): New variable.
51837         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51838         functions.
51839
51840 2005-07-16  Simon Josefsson  <jas@extundo.com>
51841
51842         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51843         workaround, suggested by Bruno.
51844
51845 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * modules/xalloc (Depends-on): Add xalloc-die.
51848         * modules/xvasprintf (Depends-on): Add xalloc-die.
51849
51850 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51851
51852         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51853         with a minor change.
51854
51855 2005-07-15  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51858         When using lib/poll.c, define poll as rpl_poll.
51859
51860 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51861
51862         * modules/argp (Depends-on): Remove unlocked-io.
51863
51864 2005-07-14  Derek Price  <derek@ximbiot.com>
51865
51866         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51867         for glob symlink bug.
51868
51869 2005-07-14  Bruno Haible  <bruno@clisp.org>
51870
51871         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51872         Instead, test for *_unlocked function declarations directly.
51873
51874 2005-07-11  Simon Josefsson  <jas@extundo.com>
51875
51876         * modules/size_max: New file.
51877
51878         * modules/xsize: Depend on size_max module for size_max.m4.
51879
51880 2005-07-11  Simon Josefsson  <jas@extundo.com>
51881
51882         * lib/size_max.h: New file.
51883
51884 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51887         copyright symbol and the year.
51888         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51889         (version_etc_va): Use parameterized copyright notice.
51890         Reword to conform to the current GNU coding standards.
51891
51892 2005-07-11  Karl Berry  <karl@gnu.org>
51893
51894         * doc/gnulib.texi (Quoting): new node.
51895         (Initial import): more info, from Patrice.
51896
51897 2005-07-11  Bruno Haible  <bruno@clisp.org>
51898
51899         * gnulib-tool (func_usage): Document option --avoid.
51900         (Command line options): Handle --avoid.
51901         (func_acceptable): New function.
51902         (func_modules_transitive_closure): Use it.
51903
51904 2005-07-11  Bruno Haible  <bruno@clisp.org>
51905
51906         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51907         Reported by Jim Meyering.
51908
51909 2005-07-10  Bruno Haible  <bruno@clisp.org>
51910
51911         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51912         Needed when size_t is smaller than 'unsigned int'.
51913         Reported by Paul Eggert.
51914
51915 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51916
51917         * modules/argp (Depends-on): Add unlocked-io
51918
51919 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51920
51921         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51922         block of defines.
51923
51924 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51927         fix now.
51928
51929 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51930         and Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51933         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51934
51935 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         * modules/regex (Files): Add lib/regex_internal.c,
51938         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51939         (Depends-on): Add extensions.
51940         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51941
51942 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51943
51944         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51945         pathconf.
51946         * m4/same.m4 (gl_SAME): Likewise.
51947         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51948
51949         * m4/regex.m4: Adjust to new libc regex implementation.
51950         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51951         all the .c and .h parts of (the new) regex.
51952         Quote the m4 stuff better.
51953         Check for RE_ICASE bug of old gnulib.
51954         Check for REG_STARTEND of recent libc.
51955         Rename local variables from jm_* to gl_*.
51956         Quote operand of "test -f".
51957         Say "recent enough" version of libc, not "version 2".
51958         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51959         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51960         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51961         Remove check for btowc, isascii.
51962         Require AM_LANGINFO_CODESET.
51963
51964 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51965
51966         * lib/regex.c, regex.h: Sync from libc.
51967         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51968         * lib/regexec.c:
51969         New files, synced from libc, except that regex_internal.h
51970         currently has a small porting fix.
51971
51972 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51973
51974         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51975         regex_internal.c, regexec.c.
51976         Add regex_internal.h too, but as a comment, since the libc version
51977         is currently broken in gnulib mode.
51978
51979 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         Support programs like Emacs that use gnulib but not gettext.
51982         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51983         * modules/gettext-h: New file.
51984         * modules/gettext (Files): Remove lib/gettext.h.
51985         (Depends-on): Add gettext-h.
51986         (Makefile.am): Remove lib_SOURCES.
51987         * modules/argmatch, modules/c-stack, modules/closeout:
51988         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51989         * modules/execute, modules/file-type, modules/getaddrinfo:
51990         * modules/getopt, modules/human, modules/javacomp:
51991         * modules/javaexec, modules/mkdir-p, modules/obstack:
51992         * modules/openat, modules/pagealign_alloc, modules/pipe:
51993         * modules/quotearg, modules/regex, modules/rpmatch:
51994         * modules/unicodeio, modules/userspec, modules/version-etc:
51995         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51996         * modules/xsetenv:
51997         Depend on gettext-h, not gettext.
51998
51999 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52000
52001         * gnulib-tool (func_import): Add support for 'public domain' license.
52002         * modules/alloca, modules/atexit, modules/memmove:
52003         Now public domain, not GPL.
52004         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52005         * modules/realloc, modules/strerror, modules/strtod:
52006         Now LGPL, not GPL.
52007
52008 2005-07-05  Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52011         autoconf CVS. Needed for mingw.
52012
52013 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         Remove the dependency of the strftime module on the tzset module.
52016         * modules/strftime (Depends-on): Remove dependency on tzset.
52017
52018 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52019
52020         Remove the dependency of the strftime module on the tzset module.
52021         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52022         gl_FUNC_TZSET_CLOBBER.
52023
52024 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52025
52026         Remove the dependency of the strftime module on the tzset module.
52027         * lib/strftime.c (my_strftime)
52028         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52029         Copy the input structure, to work around some of the bug with
52030         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52031         Solaris releases, you should also use the tzset module, but we won't
52032         require it as a dependency any more since we don't want LGPLed code
52033         to depend on GPLed code.
52034
52035 2005-07-02  Jim Meyering  <jim@meyering.net>
52036
52037         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52038         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52039         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52040         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52041
52042 2005-07-02  Jim Meyering  <jim@meyering.net>
52043
52044         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52045
52046 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52047
52048         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52049         declares only 'struct timespec;' (!).
52050
52051 2005-07-01  Jim Meyering  <jim@meyering.net>
52052
52053         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52054         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52055         * lib/save-cwd.c, tempname.c:
52056         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52057         and don't include <sys/file.h>).
52058
52059 2005-06-29  Jim Meyering  <jim@meyering.net>
52060
52061         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52062         type name.  Use the variable name instead.
52063         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52064         Likewise.
52065
52066 2005-06-28  Simon Josefsson  <jas@extundo.com>
52067
52068         * modules/check-version (Files): Add check-version.m4.
52069
52070 2005-06-28  Simon Josefsson  <jas@extundo.com>
52071
52072         * m4/check-version.m4: New file, suggested by Jim Meyering
52073         <jim@meyering.net>.
52074
52075 2005-06-28  Simon Josefsson  <jas@extundo.com>
52076
52077         * lib/check-version.h, lib/check-version.c: New files.
52078
52079 2005-06-28  Simon Josefsson  <jas@extundo.com>
52080
52081         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52082         collision with global variable.  Better indentation.  Don't
52083         increment buffer pointer beyond buffer end.  Based on comments
52084         from Paul Eggert <eggert@cs.ucla.edu>.
52085
52086         * lib/base64.h: Indent.
52087
52088 2005-06-28  Simon Josefsson  <jas@extundo.com>
52089
52090         * doc/gnulib.texi (Library version handling): New section.
52091
52092 2005-06-28  Jim Meyering  <jim@meyering.net>
52093
52094         * check-module (find_included_lib_files): Hard-code another
52095         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52096         but modules/fts-lgpl (correctly) does not list those files.
52097
52098         * modules/canonicalize (Files): Add lib/pathmax.h.
52099
52100 2005-06-25  Simon Josefsson  <jas@extundo.com>
52101
52102         * modules/check-version: New file.
52103
52104 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52107         initializer of struct addrinfo, as an indication that we don't
52108         care how many members the structure has.
52109
52110 2005-06-24  Derek Price  <derek@ximbiot.com>
52111         and Bruno Haible  <bruno@clisp.org>
52112
52113         Remove stat module & update lstat.
52114         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52115         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52116         * m4/stat.m4: Remove this file.
52117
52118 2005-06-24  Derek Price  <derek@ximbiot.com>
52119         and Bruno Haible  <bruno@clisp.org>
52120
52121         Remove stat module & update lstat.
52122         * lib/stat.c: Remove this file...
52123         (slash_aware_lstat): ...moving this content and its support...
52124         * lib/lstat.c (rpl_lstat): ...into here.
52125         * lib/lstat.h: New file.
52126
52127 2005-06-24  Derek Price  <derek@ximbiot.com>
52128         and Bruno Haible  <bruno@clisp.org>
52129
52130         Remove stat module & update lstat.
52131         * config/srclist.txt (libc sources): Remove stat.
52132
52133 2005-06-24  Derek Price  <derek@ximbiot.com>
52134         and Bruno Haible  <bruno@clisp.org>
52135
52136         Remove stat module & update lstat.
52137         * MODULES.html.sh (stat): Remove.
52138         * MODULES.html: Regenerated.
52139         * modules/lstat (Description): Correct function name.
52140         (Files): Add "lstat.h".
52141         (Depends-on): Remove stat, add xalloc, stat-macros.
52142         * modules/stat: Remove this file.
52143         (Include): Add "lstat.h", remove <sys/stat.h>.
52144
52145 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52146
52147         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52148         (ranged_convert): Don't save conversion in a temporary struct.
52149         This causes a warning with GCC 4.0.0, and anyway in the typical
52150         case it's not worth the extra 100 bytes or so of code.
52151         (ranged_convert, __mktime_internal): When calling a function via a
52152         pointer P, use P () rather than (*P) (), as we now assume C89 or
52153         better.
52154
52155 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52158         "who -r" failed to give output.  Problem reported by Tim Waugh.
52159
52160         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52161         (xcalloc): Use it to avoid needless tests.
52162         Problem reported by Jim Meyering.
52163
52164 2005-06-20  Derek Price  <derek@ximbiot.com>
52165
52166         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52167         unnecessary for Autoconfs > 2.59c.
52168
52169 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52170
52171         * lib/argp.h (__option_is_short): Check upper limit of
52172         __key. Isprint() requires its argument to have the value
52173         of an unsigned char or EOF.
52174
52175 2005-06-16  Jim Meyering  <jim@meyering.net>
52176
52177         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52178         when either N or S is zero.
52179
52180 2005-06-16  Derek Price  <derek@ximbiot.com>
52181
52182         * m4/bison.m4: Declare YACC & YFLAGS precious.
52183
52184 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52185
52186         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52187         multibyte string or pattern, fall back on unibyte matching.
52188         Problem reported by James Youngman.
52189
52190 2005-06-08  Bruno Haible  <bruno@clisp.org>
52191
52192         * modules/csharpcomp: New file.
52193         * MODULES.html.sh (C#): Add csharpcomp.
52194
52195 2005-06-08  Bruno Haible  <bruno@clisp.org>
52196
52197         * m4/csharpcomp.m4: New file, from GNU gettext.
52198
52199 2005-06-08  Bruno Haible  <bruno@clisp.org>
52200
52201         * lib/csharpcomp.h: New file, from GNU gettext.
52202         * lib/csharpcomp.c: New file, from GNU gettext.
52203         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52204
52205 2005-06-08  Bruno Haible  <bruno@clisp.org>
52206
52207         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52208         warning on mingw.
52209
52210 2005-06-07  Derek Price  <derek@ximbiot.com>
52211
52212         Sync from CVS.
52213         * lib/glob_.h: Indent nested #ifdef.
52214
52215 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52216
52217         Sync from coreutils.
52218         Use "file name" when talking about file names, instead of "filename"
52219         or "path", as per the GNU coding standards.
52220         * lib/mkdir-p.c: Renamed from makepath.c.
52221         (make_dir_parents): Renamed from make_path.  All callers changed.
52222         * lib/mkdir-p.h: Likewise.  All includers changed.
52223         * lib/filenamecat.c: Renamed from path-concat.c.
52224         (file_name_concat): Renamed from path_concat.  All callers changed.
52225         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52226         * lib/filenamecat.h: Likewise.  All includers changed.
52227         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52228         in comments or local variable names.
52229         * lib/basename.c: Likewise.
52230         * lib/canonicalize.c, canonicalize.h: Likewise.
52231         * lib/dirname.c, dirname.h: Likewise.
52232         * lib/euidaccess.c: Likewise.
52233         * lib/exclude.c: Likewise
52234         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52235         * lib/fsusage.c, fsuage.h: Likewise.
52236         * lib/fts.c, fts_.h: Likewise.
52237         * lib/getcwd.c: Likewise.
52238         * lib/getloadavg.c: Likewise.
52239         * lib/mkstemp.c: Likewise.
52240         * lib/mountlist.c, mountlist.h: Likewise.
52241         * lib/openat.c, openat.h: Likewise.
52242         * lib/readlink-stub.c: Likewise.
52243         * lib/readutmp.c, readutmp.h: Likewise.
52244         * lib/rename.c: Likewise.
52245         * lib/rmdir.c: Likewise.
52246         * lib/same.c: Likewise.
52247         * lib/savedir.c: Likewise.
52248         * lib/stripslash.c: Likewise.
52249         * lib/tempname.c: Likewise.
52250         * lib/xreadlink.c: Likewise.
52251         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52252         All uses changed.
52253         * lib/exclude.h: Likewise.
52254
52255         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52256         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52257         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52258         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52259         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52260         files have been getting away with it for years (MORE/BSD 4.3
52261         is extinct now).
52262         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52263         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52264
52265         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52266         Define to 256, not 255, as per modern POSIX.
52267
52268 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52269
52270         Sync from coreutils.
52271         Use "file name" when talking about file names, instead of "filename"
52272         or "path", as per the GNU coding standards.
52273         * MODULES.html.sh: mkdir-p renamed from makepath.
52274         filenamecat renamed from path-concat.
52275         * modules/filenamecat: Renamed from modules/path-concat.
52276         (Files): filenamecat.h and filenamecat.c renamed from
52277         path-concat.h and path-concat.c.
52278         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52279         (Include): filenamecat.h, not path-concat.h.
52280         * modules/mkdir-p: Renamed from modules/makepath.
52281         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52282         makepath.c.
52283         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52284         (Include): mkdir-p.h, not makepath.h.
52285
52286 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         Sync from coreutils.
52289         * m4/mkdir-p.m4: Renamed from makepath.m4.
52290         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52291         Rename files from makepath.c to mkdir-p.c, and from
52292         makepath.h to mkdir-p.h.
52293         * m4/filenamecat.m4: Renamed from path-concat.m4.
52294         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52295         Rename files from path-concat.c to filenamecat.c,
52296         and from path-concat.h to filenamecat.h.
52297         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52298         "file name" in local variables or comments.
52299         * m4/rename.m4: Likewise.
52300
52301 2005-06-01  Bruno Haible  <bruno@clisp.org>
52302
52303         * modules/csharpexec: New file.
52304         * MODULES.html.sh (C#): New section.
52305
52306 2005-06-01  Bruno Haible  <bruno@clisp.org>
52307
52308         * m4/csharp.m4: New file, from GNU gettext.
52309         * m4/csharpexec.m4: New file, from GNU gettext.
52310
52311 2005-06-01  Bruno Haible  <bruno@clisp.org>
52312
52313         * lib/csharpexec.h: New file, from GNU gettext.
52314         * lib/csharpexec.c: New file, from GNU gettext.
52315         * lib/csharpexec.sh.in: New file, from GNU gettext.
52316
52317 2005-05-31  Derek Price  <derek@ximbiot.com>
52318             Paul Eggert  <eggert@cs.ucla.edu>
52319
52320         Sync from cvs.
52321         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52322
52323 2005-05-31  Derek Price  <derek@ximbiot.com>
52324             Paul Eggert  <eggert@cs.ucla.edu>
52325
52326         Sync from cvs.
52327         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52328
52329 2005-05-29  Derek Price  <derek@ximbiot.com>
52330
52331         * config/srclist.txt (glob_.h, glob.c): Add these files.
52332
52333 2005-05-29  Derek Price  <derek@ximbiot.com>
52334
52335         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52336         * modules/glob: New file.
52337         * modules/getlogin_r: Add link to POSIX spec in description.
52338
52339 2005-05-29  Derek Price  <derek@ximbiot.com>
52340             Paul Eggert  <eggert@cs.ucla.edu>
52341
52342         * m4/glob.m4: New file.
52343
52344 2005-05-29  Derek Price  <derek@ximbiot.com>
52345             Paul Eggert  <eggert@cs.ucla.edu>
52346
52347         * lib/glob_.h, lib/glob.c: New files.
52348
52349 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52350
52351         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52352         * modules/fts-lgpl (Depends-on): Remove gettext.
52353
52354 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52355
52356         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52357         and don't require gt_INTTYPES_PRI.
52358
52359 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52362
52363         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52364         the configuration hassle isn't worth it.
52365         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52366         (LONGEST_MODIFIER, PRIuMAX): Remove.
52367
52368 2005-05-27  Bruno Haible  <bruno@clisp.org>
52369
52370         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52371
52372 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52373
52374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52375         _POSIX_PTHREAD_SEMANTICS for Solaris.
52376
52377 2005-05-25  Derek Price  <derek@ximbiot.com>
52378
52379         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52380
52381 2005-05-25  Derek Price  <derek@ximbiot.com>
52382             Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52385         * lib/getlogin_r.c, getlogin_r.h: New files.
52386
52387 2005-05-25  Bruno Haible  <bruno@clisp.org>
52388             Derek Price  <derek@ximbiot.com>
52389
52390         * lib/getlogin_r.h: Simplify API documentation.
52391
52392 2005-05-23  Derek Price  <derek@ximbiot.com>
52393
52394         * modules/minmax (Files): Add m4/minmax.m4.
52395         (configure.ac): Add gl_MINMAX.
52396
52397 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52398
52399         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52400         so that unistd-safer.h (GPL'ed code) need not be included.
52401
52402 2005-05-22  Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/minmax.m4: New file.
52405         Based on a patch by Derek Price <derek@ximbiot.com>.
52406
52407 2005-05-22  Bruno Haible  <bruno@clisp.org>
52408
52409         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52410         (INT64_MIN): Fix definition.
52411         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52412
52413         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52414         NEED_SIGNED_INT_TYPES.
52415
52416         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52417         HAVE_SYSTEM_INTTYPES.
52418
52419 2005-05-22  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52422         Also include <sys/param.h> if it defines MIN, MAX.
52423         Based on a patch by Derek Price <derek@ximbiot.com>.
52424
52425 2005-05-21  Jim Meyering  <jim@meyering.net>
52426
52427         * modules/fts (Files): Add m4/inttypes-pri.m4.
52428         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52429
52430 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52431
52432         New fts module.
52433         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52434         (setup_dir, free_dir): New functions.
52435         (enter_dir, leave_dir): Define trivial
52436         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52437         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52438         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52439         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52440         Move to fts-cycle.c.
52441         (fts_open): Use setup_dir.
52442         (fts_close): Use free_dir.
52443         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52444         This adds a label and some gotos, but the alternatives were messier.
52445         Check for memory allocation failure when entering a dir.
52446         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52447         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52448         (FTS): New member fts_cycle, that is a union that contains the
52449         old active_dir_ht and cycle_state.  All uses changed to mention
52450         fts_cycle.ht and fts_cycle.state.
52451         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52452         fts.c, with the following changes:
52453         (setup_dir, free_dir): New functions.
52454         (enter_dir): Now returns bool.  Return true if successful, false
52455         if memory exhausted.  All callers changed.
52456         Do not bother partly cleaning up on
52457         memory allocation failure; that is free_dir's job.
52458         However, free ad if hash_insert fails, to avoid memory leak.
52459         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52460         fts->fts_options to see which union member to use.
52461
52462 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52465         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52466
52467 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52468
52469         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52470
52471 2005-05-20  Jim Meyering  <jim@meyering.net>
52472
52473         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52474         Now a macro, to pacify GCC.
52475
52476 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52477
52478         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52479         of -1.
52480
52481 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52482
52483         * lib/chown.c (rpl_chown): Return -1 on failure.
52484
52485 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52488         Don't check for stddef.h.
52489         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52490         don't use its results.
52491         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52492         since we include them unconditionally.  Don't require
52493         AM_STDBOOL_H, since stdbool is a prerequisite.
52494         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52495         since we assume C89 or better.
52496         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52497         as we don't use their results.
52498         Don't check for fchdir, memmove, memset, strrchr, as we use
52499         them unconditionally.
52500         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52501         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52502
52503 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52504
52505         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52506         Include <stddef.h> unconditionally, since we assume C89 now.
52507         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52508         * lib/fts.c: Include fts_.h first, to check interface.
52509         Do not include intprops.h; no longer needed.
52510         Include cycle-check.h and hash.h, since fts_.h no longer does.
52511         Remove unnecessary casts of closedir to void.
52512         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52513         decide whether to decrement nlinks.
52514         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52515         (FTS): Use struct hash_table * instead of Hash_table, so that
52516         we no longer need to include hash.h here.
52517
52518 2005-05-18  Jim Meyering  <jim@meyering.net>
52519
52520         * modules/dirfd (License): Change to LGPL.  Most of the code
52521         is already in the public domain.
52522
52523 2005-05-18  Jim Meyering  <jim@meyering.net>
52524
52525         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52526         Reported by Yoann Vandoorselaere.
52527
52528 2005-05-17  Jim Meyering  <jim@meyering.net>
52529
52530         * m4/fts.m4: New file, from coreutils.
52531
52532 2005-05-17  Jim Meyering  <jim@meyering.net>
52533
52534         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52535
52536 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52537
52538         Sync from coreutils.
52539         * m4/unlinkdir.m4: New file.
52540
52541 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         Sync from coreutils.
52544         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52545         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52546         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52547         White space changes only.
52548         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52549         special.
52550         * lib/yesno.c: Include getline.h, not ctype.h.
52551         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52552         Use getline to remove arbitrary restriction on response length.
52553
52554 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         * config/srclist-update: Spell out "Street" in FSF postal
52557         mail address; this is the style the FSF seems to prefer.
52558
52559         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52560         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52561         this updates FSF postal mail address.
52562
52563         Sync from coreutils.
52564         * modules/unlinkdir: New file.
52565         * modules/yesno (Depends-on): Add getline.
52566         * MODULES.html.sh (File system functions): Add unlinkdir.
52567
52568 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52571         lib/strsep.h:
52572         Change the initial comment to refer to GPL, not LGPL.
52573         gnulib-tool will change it to LGPL as needed.
52574
52575         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52576         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52577         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52578         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52579         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52580         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52581         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52582         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52583         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52584         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52585         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52586         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52587         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52588         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52589         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52590         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52591         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52592         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52593         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52594         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52595         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52596         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52597         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52598         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52599         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52600         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52601         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52602         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52603         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52604         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52605         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52606         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52607         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52608         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52609         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52610         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52611         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52612         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52613         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52614         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52615         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52616         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52617         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52618         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52619         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52620         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52621         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52622         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52623         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52624         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52625         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52626         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52627         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52628         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52629         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52630         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52631         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52632         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52633         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52634         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52635         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52636         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52637         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52638         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52639         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52640         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52641         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52642         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52643         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52644         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52645         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52646         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52647         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52648         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52649         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52650         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52651         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52652         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52653         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52654         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52655         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52656         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52657         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52658         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52659         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52660         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52661         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52662         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52663         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52664         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52665         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52666         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52667         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52668         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52669         lib/yesno.c, lib/yesno.h:
52670         Update FSF postal mail address.
52671
52672 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52675         tests/test-memmem.c, tests/test-stpncpy.c:
52676         Update FSF postal mail address.
52677
52678 2005-05-13  Bruno Haible  <bruno@clisp.org>
52679
52680         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52681         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52682         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52683         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52684         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52685         Add support for 64-bit integers in the MSVC compiler.
52686
52687 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52688
52689         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52690
52691 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52692
52693         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52694
52695 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52696
52697         * doc/getdate.texi (General date syntax): Don't say that date
52698         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52699         Problem reported by Nic Ferrier.
52700
52701 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52702
52703         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52704         specified in ai_socktype. Fix invalid ai_protocol
52705         check. ai_protocol is usually set to 0 or depending on
52706         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52707         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52708         ai_socktype / ai_protocol in the returned addrinfo structure.
52709
52710 2005-05-10  Simon Josefsson  <jas@extundo.com>
52711
52712         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52713         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52714
52715 2005-05-10  Karl Berry  <karl@gnu.org>
52716
52717         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52718         (from http://www.gnu.org/licenses).
52719         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52720         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52721         fdl.texi suffices.
52722
52723 2005-05-10  Karl Berry  <karl@gnu.org>
52724
52725         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52726         (COPYING.DOC): remove.
52727
52728         * config/srclist-update: new FSF address.
52729
52730 2005-05-10  Derek Price  <derek@ximbiot.com>
52731
52732         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52733         possible.
52734
52735 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52736             Bruno Haible  <bruno@clisp.org>
52737
52738         * modules/inet_ntop: New file.
52739         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52740         inet_ntop.
52741
52742 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52743             Bruno Haible  <bruno@clisp.org>
52744
52745         * m4/inet_ntop.m4: New file.
52746
52747 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52748             Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/inet_ntop.h: New file.
52751         * lib/inet_ntop.c: New file, from glibc with modifications.
52752
52753 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52754
52755         * modules/time_r (License): Change to LGPL.
52756         * modules/extensions (License): Change to LGPL.  Actually,
52757         the license is more permissive than that, but currently gnulib-tool
52758         doesn't know how to handle more-permissive licenses.
52759
52760         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52761         Problem reported by Dave Love.
52762
52763 2005-05-08  Jim Meyering  <jim@meyering.net>
52764
52765         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52766         blank.
52767
52768 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * modules/argmatch (Depends-on): Add stdbool.
52771         * modules/backupfile (Depends-on): Likewise.
52772         * modules/chdir-long (Depends-on): Likewise.
52773         * modules/closeout (Depends-on): Likewise.
52774         * modules/cycle-check (Depends-on): Likewise.
52775         * modules/dirname (Depends-on): Likewise.
52776         * modules/fnmatch (Depends-on): Likewise.
52777         * modules/fsusage (Depends-on): Likewise.
52778         * modules/fwriteerror (Depends-on): Likewise.
52779         * modules/getcwd (Depends-on): Likewise.
52780         * modules/getloadavg (Depends-on): Likewise.
52781         * modules/hard-locale (Depends-on): Likewise.
52782         * modules/makepath (Depends-on): Likewise.
52783         * modules/mountlist (Depends-on): Likewise.
52784         * modules/nanosleep (Depends-on): Likewise.
52785         * modules/posixtm (Depends-on): Likewise.
52786         * modules/quotearg (Depends-on): Likewise.
52787         * modules/readtokens (Depends-on): Likewise.
52788         * modules/readtokens0 (Depends-on): Likewise.
52789         * modules/readutmp (Depends-on): Likewise.
52790         * modules/save-cwd (Depends-on): Likewise.
52791         * modules/strftime (Depends-on): Likewise.
52792         * modules/userspec (Depends-on): Likewise.
52793         * modules/utimecmp (Depends-on): Likewise.
52794         * modules/xgetcwd (Depends-on): Likewise.
52795         * modules/xnanosleep (Depends-on): Likewise.
52796         * modules/xstrtod (Depends-on): Likewise.
52797         * modules/yesno (Depends-on): Likewise.
52798
52799 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52802         needless checks.
52803
52804 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         Merge from coreutils.  Among other things,
52807         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52808         * lib/fd-safer.c: New file.
52809         * lib/fcntl-safer.h, open-safer.c: Remove.
52810         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52811         * lib/dup-safer.c: Include unistd-safer.h first.
52812         Don't include errno.h.
52813         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52814         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52815         * lib/file-type.c: Rely on file-type.h change.
52816         * lib/getloadavg.c: Include unistd-safer.h.
52817         (getloadavg): Use safer open.
52818         * lib/getusershell.c: Include "stdio-safer.h".
52819         (getusershell): Use safer fopen.
52820         * lib/long-options.c (long_options): Use NULL rather than 0.
52821         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52822         'free'.
52823         * lib/modechange.c: Likewise.
52824         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52825         (MODE_DONE): New constant.
52826         (struct mode_change): Remove 'next' member.
52827         (make_node_op_equals): New function; like the old one of the
52828         same name, except it allocates an array.
52829         (mode_compile, mode_create_from_ref): Use it.
52830         (mode_compile): Allocate result as an array, not a linked list.
52831         Parse octal string ourself, so that we catch mistakes like "+0".
52832         (mode_adjust): Arg is an array, not a linked list.
52833         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52834         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52835         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52836         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52837         Remove.  This is now stat-macros.h's job.
52838         (talloc): Remove.  All callers replaced by xalloc, so that
52839         our invokers don't have to worry about reporting memory failures.
52840         (make_node_op_equals): Remove.
52841         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52842         New constants.
52843         (struct mode_change): Moved here from modechange.h.
52844         (mode_append_entry): Remove.
52845         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52846         apps to have incorrect behavior.  Use simpler algorithm for head
52847         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52848         Detect more invalid usages rather than having somewhat-random behavior.
52849         Don't insert an "a=" action, as that leads to incorrect behavior.
52850         (mode_compile, mode_create_from_ref): Return NULL on error instead
52851         of an enum, since now there's only one way to have an error.  All
52852         callers changed.
52853         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52854         at the correct time.  Simplify calculation of "+u" and its ilk.
52855         Don't mishandle "+X".
52856         (mode_free): Remove "register" and localize decls.
52857         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52858         (struct mode_change): Move to modechange.c; callers don't
52859         need to see this stuff.
52860         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52861         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52862         (mode_change, mode_adjust): Reflect the new signatures noted above.
52863         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52864         that might redefine system include files.
52865         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52866         (my_usleep): Use NULL rather than (void *) 0.
52867         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52868         Use siginterrupt to specify that system calls should be interrupted.
52869         (rpl_nanosleep): Move initialization of suspended closer to call of
52870         my_usleep.
52871         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52872         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52873         (desirable_utmp_entry): New function.
52874         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52875         using x2nrealloc, to simplify logic.
52876         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52877         size calculation.  Do not assume utmp file is a regular file.
52878         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52879         (READ_UTMP_CHECK_PIDS): New constant.
52880         * lib/save-cwd.c: Include unistd-safer.h.
52881         (save_cwd): Use fd_safer.
52882         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52883         [!_LIBC] Include "stat-macros.h" instead.
52884         * lib/unistd-safer.h (fd_safer): New decl.
52885
52886 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52887
52888         * modules/getloadavg (Depends-on): Add unistd-safer.
52889         * modules/getusershell (Depends-on): Add stdio-safer.
52890         * modules/lstat (Depends-on): Remove xalloc.
52891         * modules/mkstemp (Depends-on): Add stat-macros.
52892         * modules/modechange (Depends-on): Remove xstrtol.
52893         Add stat-macros, xalloc.
52894         * modules/save-cwd (Depends-on): Add unistd-safer.
52895         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52896         * modules/unistd-safer (Files): Add lib/fd-safer.c
52897         (Makefile.am): Remove lib_SOURCES.
52898
52899         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52900         Remove fcntl-safer; unistd-safer supersedes it.
52901
52902 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52903
52904         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52905         AC_HEADER_STAT.
52906         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52907         (gl_PREREQ_CHOWN): Remove.
52908         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52909         it.  Don't require AC_HEADER_STAT.
52910         (gl_PREREQ_LSTAT): Remove.
52911         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52912         Don't require AC_HEADER_STAT.
52913         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52914         (gl_PREREQ_RMDIR): Remove.
52915         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52916         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52917         the stat-macros module a prerequisite.
52918         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52919         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52920         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52921         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52922         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52923         variable names.
52924         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52925         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52926         variable prefixes.
52927         * m4/fcntl-safer.m4: Remove.
52928         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52930         Invoke gl_PREREQ_FD_SAFER.
52931         (gl_PREREQ_FD_SAFER): New macro.
52932         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52933         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52934         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52935         Remove duplicate call to AC_LIBOBJ(readutmp).
52936         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52937
52938         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52939         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52940
52941 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52942
52943         * MODULES.html.sh (Misc): Add byteswap.
52944
52945 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52946
52947         * modules/getcwd (Depends-on): Add extensions.
52948         * modules/openat (Depends-on): Likewise.
52949
52950 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52951
52952         * modules/byteswap: New file.
52953
52954 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52955
52956         * m4/byteswap.m4: New file.
52957
52958 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52959
52960         * lib/byteswap_.h: New file.
52961
52962 2005-04-25  Karl Berry  <karl@gnu.org>
52963
52964         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52965
52966 2005-04-25  Albert Chin  <china@thewrittenword.com>
52967
52968         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52969         Toolkit C bug.
52970
52971 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52972
52973         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52974         (func_ln_if_changed) Remove forcibly for no error message
52975         in case file does not exist.
52976
52977 2005-04-19  Simon Josefsson  <jas@extundo.com>
52978
52979         * gnulib-tool (Options): Make --symlink mean --symbolic.
52980
52981 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52982
52983         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52984
52985 2005-04-16  Simon Josefsson  <jas@extundo.com>
52986
52987         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52988
52989 2005-04-15  Simon Josefsson  <jas@extundo.com>
52990
52991         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52992
52993 2005-04-15  Simon Josefsson  <jas@extundo.com>
52994
52995         * gnulib-tool: Rename --symlink to --symbolic.
52996
52997 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52998
52999         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53000         symbolic links to files instead of copying/moving.  Add --aux-dir,
53001         specifying directory relative --dir where auxiliary build tools
53002         are placed.
53003
53004 2005-04-14  Bruno Haible  <bruno@clisp.org>
53005
53006         * modules/allocsa (License): Change to LGPL.
53007         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53008
53009 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53010
53011         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53012         that "UTC +1 second" continues to work.  Problem reported
53013         by Dmitry V. Levin.
53014         (relunit_snumber): New rule.
53015         (relunit): Use it.
53016
53017 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53018
53019         * lib/getdate.y (universal_time_zone_table): New constant.
53020         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53021         universal_time_zone_table.
53022         (lookup_zone): Prefer universal_time_zone_table to
53023         local_time_zone_table, so that "GMT" time stamps are allowed in
53024         London during the summer.  Problem reported by Ian Abbott.
53025
53026 2005-04-12  Jim Meyering  <jim@meyering.net>
53027
53028         * lib/human.c (humblock): Set *options even when returning due to
53029         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53030         warning from gcc-4.
53031
53032 2005-04-09  Jim Meyering  <jim@meyering.net>
53033
53034         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53035         -Wuninitialized: initialize tm0.tm_year.
53036
53037 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53040         count, since there's no maximum.  All uses changed.
53041         Add member dsts_seen.
53042         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53043         not being INT_MAX.
53044         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53045         Use pc_rels_seen to decide whther a date is absolute.
53046
53047         * lib/getdate.y (number): Don't overwrite year.
53048         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53049         check.
53050
53051 2005-04-02  Simon Josefsson  <jas@extundo.com>
53052
53053         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53054         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53055
53056 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53057
53058         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53059         where no absolute path name can be longer than PATH_MAX.
53060
53061 2005-03-27  Jim Meyering  <jim@meyering.net>
53062
53063         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53064
53065 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53066
53067         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53068         "one's complement" -> "ones' complement" in comment, as per Knuth.
53069         "value of type" -> "type or expression" in comment.
53070         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53071
53072 2005-03-26  Jim Meyering  <jim@meyering.net>
53073
53074         Comment nits.
53075         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53076         Correct typos: s/or/of/.
53077
53078 2005-03-26  Jim Meyering  <jim@meyering.net>
53079
53080         * modules/check-include-files: Move to ../ and rename to...
53081         * check-module: ...this.
53082
53083 2005-03-25  Jim Meyering  <jim@meyering.net>
53084
53085         * modules/xvasprintf (Files): Add xalloc.h.
53086
53087 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53088
53089         * modules/gettext (Files): config/config.rpath ->
53090         build-aux/config.rpath
53091         * modules/iconv (Files): Likewise.
53092         Problem reported by Oskar Liljeblad.
53093
53094 2005-03-23  Jim Meyering  <jim@meyering.net>
53095
53096         * modules/check-include-files: New script to check for
53097         missing dependencies, multiple includes, etc.
53098
53099         * modules/c-strtold (Depends-on): Add xalloc.
53100         * modules/c-strtod (Depends-on): Add xalloc.
53101         * modules/hash (Depends-on): Add xalloc.
53102         (Files): Remove lib/xalloc.h.
53103
53104         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53105         * modules/userspec (Files): Add lib/inttostr.h.
53106
53107 2005-03-23  Jim Meyering  <jim@meyering.net>
53108
53109         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53110
53111 2005-03-22  Jim Meyering  <jim@meyering.net>
53112
53113         * modules/stat-macros: New module.
53114         * modules/canonicalize, modules/euidaccess, modules/file-type,
53115         * modules/filemode, modules/lchown, modules/makepath,
53116         * modules/rmdir, modules/stat: Depend on new stat-macros module
53117         rather than listing lib/stat-macros.h manually.
53118         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53119
53120 2005-03-22  Jim Meyering  <jim@meyering.net>
53121
53122         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53123
53124 2005-03-22  Bruno Haible  <bruno@clisp.org>
53125
53126         * config/srclist.txt: Replace target directory 'config' with
53127         'build-aux'.
53128         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53129         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53130         ../build-aux/.
53131
53132 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         * modules/chdir-long (Depends-on): Add mempcpy.
53135
53136         * modules/acl, modules/backupfile, modules/c-strtod,
53137         modules/c-strtold, modules/canon-host, modules/canonicalize,
53138         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53139         modules/exclude, modules/exitfail, modules/file-type,
53140         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53141         modules/getdate, modules/getline, modules/getpagesize,
53142         modules/getpass, modules/getugroups, modules/group-member,
53143         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53144         modules/inttostr, modules/long-options, modules/makepath,
53145         modules/md5, modules/memcasecmp, modules/memcoll,
53146         modules/modechange, modules/mountlist, modules/path-concat,
53147         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53148         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53149         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53150         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53151         modules/strftime, modules/strndup, modules/strverscmp,
53152         modules/timespec, modules/unlocked-io, modules/userspec,
53153         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53154         modules/yesno:
53155         Remove lib_SOURCES line from Makefile.am section, as this is now
53156         done automatically by the corresponding Autoconf macro.
53157
53158 2005-03-21  Jim Meyering  <jim@meyering.net>
53159
53160         Changes imported from coreutils.
53161
53162         * lib/cycle-check.c: Don't include xalloc.h.
53163
53164         * lib/path-concat.c: Don't include assert.h.
53165         (path_concat): Remove assertion that would have triggered
53166         for ABASE starting with more than one slash.
53167         Reported by Andreas Schwab.
53168
53169         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53170         properly when ABASE is an absolute file name.
53171         Correct the description of this function.
53172         Include <assert.h>.
53173         Add an assertion and a test driver.
53174         This fixes a bug introduced on 2004-07-02.
53175         Andreas Schwab reported the resulting failure of cp --parents:
53176         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53177
53178 2005-03-21  Jim Meyering  <jim@meyering.net>
53179
53180         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53181         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53182
53183 2005-03-21  Jim Meyering  <jim@meyering.net>
53184         and  Paul Eggert  <eggert@cs.ucla.edu>
53185
53186         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53187         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53188         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53189         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53190         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53191         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53192         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53193         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53194         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53195         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53196         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53197         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53198         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53199         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53200         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53201         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53202         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53203         for these modules.
53204
53205 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53206
53207         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53208         (which shouldn't happen), generate nothing instead of returning 0
53209         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53210
53211 2005-03-16  Bruno Haible  <bruno@clisp.org>
53212
53213         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53214         HAVE_LONGLONG_64BIT.
53215
53216 2005-03-16  Bruno Haible  <bruno@clisp.org>
53217
53218         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53219         HAVE_LONGLONG_64BIT.
53220
53221 2005-03-16  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53224         HAVE_LONGLONG_64BIT.
53225
53226 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53227
53228         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53229         reliably distinguish strftime failure from empty output on POSIX
53230         hosts.
53231
53232 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53233
53234         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53235         (iconv_string): Don't guess a size-zero buffer, as that might cause
53236         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53237         result would be 'too large', where 'too large' is (heuristically)
53238         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53239         overflow concerns.  This will prevent some unwanted malloc failures
53240         when the inputs are very large.
53241
53242 2005-03-15  Karl Berry  <karl@gnu.org>
53243
53244         * config/srclist.txt (config.rpath): from gettext.
53245         * config/config.rpath: update.
53246
53247 2005-03-15  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53250         to 'negate'.
53251
53252         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53253         variable.
53254
53255         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53256         results.
53257
53258 2005-03-14  Simon Josefsson  <jas@extundo.com>
53259
53260         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53261         <fx@gnu.org>.
53262
53263 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53264
53265         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53266         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53267         intprops.h.
53268         * lib/strtol.c: Likewise.
53269
53270 2005-03-14  Jim Meyering  <jim@meyering.net>
53271
53272         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53273         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53274         to be nonzero so that we (and caller) can detect the difference
53275         between a valid zero-length expansion and an error return, even
53276         when the underlying strftime fails before writing anything into
53277         that location.
53278
53279 2005-03-14  Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53282         Update from GNU gettext 0.14.3.
53283
53284 2005-03-10  Jim Meyering  <jim@meyering.net>
53285
53286         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53287
53288 2005-03-10  Jim Meyering  <jim@meyering.net>
53289
53290         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53291         so that this module works on systems without fchdir.
53292
53293 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         Factor int-properties macros into a single file, except for
53296         glibc-related files.
53297         * lib/intprops.h: New file.
53298         * lib/getloadavg.c: Include it instead of limits.h.
53299         (INT_STRLEN_BOUND): Remove.
53300         * lib/human.c: Include intprops.h.
53301         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53302         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53303         302/1000.
53304         * lib/inttostr.h: Include intprops.h instead of limits.h.
53305         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53306         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53307         for consistency with intprops.h.
53308         (time_t_is_integer, twos_complement_arithmetic): Use them.
53309         * lib/sig2str.h: Include <signal.h>, intprops.h.
53310         (INT_STRLEN_BOUND): Remove.
53311         * lib/strftime.c (TYPE_SIGNED): Remove.
53312         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53313         * lib/strtol.c: Adjust comments to match intprops.h.
53314         * lib/userspec.c: Include intprops.h.
53315         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53316         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53317         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53318         instead of rolling our own expressions.
53319         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53320
53321         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53322         instead of int.
53323         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53324         the right thing even if adding 1900 would overflow.  Similarly
53325         for tm_mon + 1 and tm_yday + 1.
53326         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53327         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53328         (DO_SIGNED_NUMBER): New macro.
53329         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53330
53331 2005-03-07  Bruno Haible  <bruno@clisp.org>
53332
53333         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53334
53335 2005-03-07  Bruno Haible  <bruno@clisp.org>
53336
53337         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53338
53339 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53340
53341         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53342         (func_import): Only replace files via --import when they have actually
53343         changed.
53344
53345 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53346
53347         * m4/mmap-anon.m4: New file.
53348         * m4/pagealign_alloc.m4: New file.
53349
53350 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53351             Bruno Haible  <bruno@clisp.org>
53352
53353         * modules/pagealign_alloc: New file.
53354         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53355
53356 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53357             Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/pagealign_alloc.h: New file.
53360         * lib/pagealign_alloc.c: New file.
53361
53362 2005-03-03  Bruno Haible  <bruno@clisp.org>
53363
53364         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53365         Use an all-permissive copyright notice, recommended by RMS.
53366
53367 2005-03-02  Bruno Haible  <bruno@clisp.org>
53368
53369         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53370         of AIX, the replacement has to be done only after <string.h> is
53371         included, therefore not in config.h. stpncpy.h does the replacement,
53372         and stpncpy.c uses it.
53373
53374 2005-03-02  Bruno Haible  <bruno@clisp.org>
53375
53376         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53377         stpncpy.c uses it.
53378
53379 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53382         The workaround isn't strictly needed for POSIX conformance, and
53383         it's too much of a pain to configure and maintain.  We'll ask
53384         people to fix their kernels instead.
53385         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53386         (NANOSLEEP_BUG_WORKAROUND): Remove.
53387         (xnanosleep): Remove the workaround.
53388
53389 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53390
53391         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53392         Reported by Derek Price.
53393         (Include): Add "timespec.h".
53394
53395         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53396
53397 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53400         to detect nanosleep bug.
53401
53402 2005-03-01  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53405
53406 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53407
53408         * modules/gethrxtime: New file.
53409         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53410         (Depends-on): Add gethrxtime.
53411         (configure.ac): Add gl_XNANOSLEEP.
53412         (Makefile.am): Remove lib_SOURCES line.
53413
53414 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53415
53416         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53417         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53418
53419 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53420
53421         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53422         * lib/timespec.h (gettime): Return void, since it always
53423         succeeds now.  All uses changed.
53424         * lib/gettime.c (gettime) Likewise.
53425         [HAVE_NANOTIME]: Prefer nanotime.
53426         Assume gettimeofday succeeds, as POSIX requires.
53427         Assime time () succeeds, since other code already does.
53428         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53429         (timespec_subtract): Remove.
53430         (NANOSLEEP_BUG_WORKAROUND): New constant.
53431         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53432         things considerably.  Use it only on GNU/Linux hosts, since the
53433         workaround shouldn't be needed elsewhere.
53434
53435 2005-02-24  Bruno Haible  <bruno@clisp.org>
53436
53437         * modules/gettext (Files): Add m4/glibc2.m4.
53438
53439 2005-02-24  Bruno Haible  <bruno@clisp.org>
53440
53441         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53442         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53443         * m4/progtest.m4:
53444         Update from GNU gettext 0.14.2.
53445         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53446
53447 2005-02-24  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53450         * lib/config.charset: Update from GNU gettext 0.14.2.
53451
53452 2005-02-24  Bruno Haible  <bruno@clisp.org>
53453
53454         * lib/gettext.h: Update from GNU gettext 0.14.2.
53455
53456 2005-02-23  Simon Josefsson  <jas@extundo.com>
53457
53458         * m4/iconvme.m4: New file.
53459
53460 2005-02-23  Jim Meyering  <jim@meyering.net>
53461
53462         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53463         change.
53464         Thanks to Bruno Haible for catching it.
53465
53466 2005-02-22  Simon Josefsson  <jas@extundo.com>
53467
53468         * modules/iconvme: New file.
53469
53470         * MODULES.html.sh: Add iconvme.
53471
53472 2005-02-22  Simon Josefsson  <jas@extundo.com>
53473
53474         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53475
53476 2005-02-22  Simon Josefsson  <jas@extundo.com>
53477
53478         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53479
53480 2005-02-22  Jim Meyering  <jim@meyering.net>
53481
53482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53483         s/ifndef/ifdef/.
53484
53485 2005-02-20  Neil Conway  <neilc@samurai.com>
53486
53487         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53488         returned by OSX/Darwin if the specified buffer is not large
53489         enough for the hostname.
53490
53491 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53492
53493         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53494         pass it to _help, otherwise the latter coredumps trying to
53495         dereference state.root_argp.
53496
53497 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53498
53499         * modules/chdir-long (Depends-on): Add memrchr.
53500         * modules/memrchr (Files): Add lib/memrchr.h.
53501         (Include): "memrchr.h".
53502
53503 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53504
53505         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53506
53507 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * lib/memrchr.h: New file.
53510         * lib/chdir-long.c: Include it.
53511         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53512         Don't bother including stddef.h.
53513
53514 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53517         inclusion.
53518         Include <sys/types.h>, for dev_t.
53519         (ME_DUMMY, ME_REMOTE): Move from here....
53520         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53521         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53522         Dmitry V. Levin.
53523         Include mountlist.h first, to test the interface.
53524
53525 2005-01-29  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/progname.c (program_name): Initialize.
53528         Needed when linking statically on MacOS X.
53529
53530 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53531
53532         Sync from coreutils.
53533         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53534         (Depends-on): Add c-strtod.
53535         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53536
53537 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         Sync from coreutils.
53540         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53541
53542         Remove files that are specific to coreutils.
53543         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53544
53545 2005-01-28  Bruno Haible  <bruno@clisp.org>
53546
53547         * modules/javacomp: New file.
53548         * MODULES.html.sh (Java): Add javacomp.
53549
53550 2005-01-28  Bruno Haible  <bruno@clisp.org>
53551
53552         * m4/javacomp.m4: New file, from GNU gettext.
53553
53554 2005-01-28  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/javacomp.sh.in: New file, from GNU gettext.
53557         * lib/javacomp.h: New file, from GNU gettext.
53558         * lib/javacomp.c: New file, from GNU gettext.
53559
53560 2005-01-26  Simon Josefsson  <jas@extundo.com>
53561
53562         * lib/gai_strerror.c: Use GPL in header.
53563
53564 2005-01-26  Bruno Haible  <bruno@clisp.org>
53565
53566         * modules/javaexec: New file.
53567         * MODULES.html.sh (Java): Add javaexec.
53568
53569 2005-01-26  Bruno Haible  <bruno@clisp.org>
53570
53571         * m4/javaexec.m4: New file, from GNU gettext.
53572
53573 2005-01-26  Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/javaexec.sh.in: New file, from GNU gettext.
53576         * lib/javaexec.h: New file, from GNU gettext.
53577         * lib/javaexec.c: New file, from GNU gettext.
53578
53579 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53580
53581         * modules/lchown (Depends-on): Remove lchown.h
53582
53583 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53584
53585         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53586         must be defined if the header file was not found, in order
53587         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53588
53589 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53590
53591         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53592         initializers for struct pentry_state.
53593         (__argp_error): Check return value of __asprintf
53594         (__argp_failure): Translate error message
53595
53596         * lib/argp-parse.c: Removed braces around the expansion of N_()
53597
53598 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53601         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53602         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53603         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53604         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53605         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53606         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53607         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53608         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53609         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53610         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53611         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53612         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53613         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53614         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53615         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53616         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53617         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53618         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53619         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53620         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53621         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53622         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53623         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53624         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53625         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53626         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53627         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53628         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53629         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53630         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53631         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53632         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53633         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53634         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53635         Use an all-permissive copyright notice, recommended by RMS.
53636
53637 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * modules/chdir-long (Depends-on): Remove mempcpy.
53640
53641 2005-01-21  Jim Meyering  <jim@meyering.net>
53642
53643         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53644         same value as for Solaris 9.
53645
53646         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53647         component length.  This included changing the parameter to be
53648         of type `char *' rather than `char const *'.
53649         * lib/chdir-long.h (chdir_long): Update prototype.
53650
53651         * lib/openat.c (fdopendir, fstatat): New functions.
53652         * lib/openat.h: Include headers required for use of DIR and struct
53653         stat.
53654         [AT_SYMLINK_NOFOLLOW]: Define.
53655         (fdopendir, fstatat): Add prototypes.
53656
53657 2005-01-21  Bruno Haible  <bruno@clisp.org>
53658
53659         * modules/classpath: New file.
53660         * MODULES.html.sh (Java): Add classpath.
53661
53662 2005-01-21  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/classpath.h: New file, from GNU gettext.
53665         * lib/classpath.c: New file, from GNU gettext.
53666
53667 2005-01-20  Simon Josefsson  <jas@extundo.com>
53668
53669         * modules/version-etc-fsf: New file.
53670
53671 2005-01-20  Simon Josefsson  <jas@extundo.com>
53672
53673         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53674         * lib/version-etc.c: Remove version_etc_copyright.
53675         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53676         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53677
53678 2005-01-20  Simon Josefsson  <jas@extundo.com>
53679
53680         * lib/base64.h (isbase64): Add.
53681
53682         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53683         using a unsigned prototype, don't inline.
53684         (base64_decode): Use it.
53685
53686 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53687
53688         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53689         it.
53690
53691 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * lib/save-cwd.c (save_cwd): Remove code to support the case
53694         where fchdir is missing or flaky.
53695
53696 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53699
53700 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53703         AC_LIBSOURCES now does this.
53704         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53705         with new ullong_max module.
53706
53707 2005-01-19  Bruno Haible  <bruno@clisp.org>
53708
53709         * modules/sh-quote: New file.
53710         * MODULES.html.sh (Executing programs): Add sh-quote.
53711
53712 2005-01-19  Bruno Haible  <bruno@clisp.org>
53713
53714         * lib/sh-quote.h: New file, from GNU gettext.
53715         * lib/sh-quote.c: New file, from GNU gettext.
53716
53717 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53718
53719         Merge from coreutils.
53720         * m4/ullong_max.m4: New file.
53721         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53722         (gl_MACROS): Assume localeconv exists.
53723
53724 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         Merge changes from coreutils, as described below in several
53727         changelogs dated today.
53728
53729         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53730         (O_DIRECTORY): Remove; not needed here, since "." must be
53731         a directory.  All uses removed.
53732         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53733         universal on Suns, and we also need to test for IRIX.
53734         Revamp code to use 'if' rather than '#if'.
53735         Avoid unnecessary comparison of cwd->desc to 0.
53736
53737         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53738         for known valid error numbers rather than observed invalid ones.
53739
53740 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53741
53742         * modules/ullong_max: New file.
53743
53744         * modules/chdir-long, modules/openat: New files.
53745         * modules/save-cwd (Depends-on): Depend on chdir-long.
53746         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53747
53748 2005-01-18  Jim Meyering  <jim@meyering.net>
53749
53750         Merge from coreutils.
53751         * m4/chdir-long.m4, m4/openat.m4: New files.
53752         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53753         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53754         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53755         is sane and DOES follow symlinks.  Besides, testing 20 different
53756         systems found no broken chown implementations.
53757         Prompted by a change in rsync's copy of this macro.
53758         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53759
53760         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53761
53762         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53763         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53764         NULL-means-set-to-current-time semantics.
53765         Remove temporary file immediately, rather than waiting
53766         for configure's at-exit trap code to do it.
53767
53768 2005-01-18  Jim Meyering  <jim@meyering.net>
53769
53770         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53771
53772         * lib/utimens.c (futimens): Account for the fact that futimes
53773         can also fail with errno == ENOSYS or errno == ENOENT.
53774         Patch from Dmitry V. Levin.
53775
53776         Change the name of the robust chdir function from chdir to chdir_long.
53777         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53778         (restore_cwd): Use chdir_long, not chdir.
53779         * lib/chdir-long.c: Renamed from chdir.c.
53780         * lib/chdir-long.h: Renamed from chdir.h.
53781         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53782         Hurd.
53783
53784 2005-01-18  Bruno Haible  <bruno@clisp.org>
53785
53786         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53787         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53788         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53789         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53790         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53791         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53792         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53793         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53794         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53795         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53796         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53797         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53798         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53799         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53800         Use an all-permissive copyright notice, recommended by RMS.
53801
53802 2005-01-18  Bob Proulx  <bob@proulx.com>
53803
53804         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53805         simplify offsetof() macro construct to avoid compile failure with
53806         native HP-UX 11.0 ANSI C compiler.
53807
53808 2005-01-17  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53811         redundant because stpncpy.m4 takes care of it.
53812
53813 2005-01-17  Bruno Haible  <bruno@clisp.org>
53814
53815         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53816
53817 2005-01-17  Bruno Haible  <bruno@clisp.org>
53818
53819         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53820         used.
53821
53822 2005-01-17  Bruno Haible  <bruno@clisp.org>
53823
53824         * lib/fwriteerror.h (fwriteerror): Change specification to include
53825         fclose.
53826         * lib/fwriteerror.c: Include <stdbool.h>.
53827         (fwriteerror): At the end, close the file stream. Record whether
53828         stdout was already closed.
53829
53830 2005-01-17  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/execute.c (environ): Declare if needed.
53833         * lib/pipe.c (environ): Likewise.
53834         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53835
53836 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53837
53838         * modules/argp: Depend on vsnprintf
53839
53840 2005-01-10  Jim Meyering  <jim@meyering.net>
53841
53842         * modules/closeout (Depends-on): Add atexit.
53843
53844 2005-01-06  Bruno Haible  <bruno@clisp.org>
53845
53846         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53847
53848 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53851         definitions to be after all include files, to avoid collisions.
53852         Problem reported by Bob Proulx.
53853
53854 2005-01-04  Jim Meyering  <jim@meyering.net>
53855
53856         Changes imported from coreutils.
53857         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53858         as the mkstemp template, use a temporary directory and an
53859         8.3-friendly template to avoid trouble on systems like DJGPP.
53860         Reported by Juan M. Guerrero via Stepan Kasal.
53861         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53862         close. Remove the temporary directory right away, rather than waiting
53863         for configure's at-exit trap code to do it.
53864         Suggestion from Stepan Kasal.
53865
53866 2005-01-01  Simon Josefsson  <jas@extundo.com>
53867
53868         * gnulib-tool: Print #include directives when --import'ing.
53869
53870 2004-12-28  Simon Josefsson  <jas@extundo.com>
53871
53872         * tests/test-base64.c: Include required header files.  Remove
53873         unused variables.
53874
53875 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53876
53877         * modules/error (Depends-on): Remove gettext.
53878
53879 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53882         not needed.  This removes a dependency on the gettext module.
53883         [defined _LIBC]: Do not include <libintl.h>; not needed.
53884
53885 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53886
53887         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53888         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53889
53890 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53893         HAVE_DECL_STRTOLD.
53894
53895 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53896
53897         * modules/getdate (Depends-on): Remove alloca-opt.
53898
53899 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53900
53901         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53902
53903 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53904
53905         * lib/argp-parse.c: Include <stddef.h>.
53906         (alignof, alignto): New macros.
53907         (parser_init): Don't assume that void * is aligned sufficiently
53908         for struct option.
53909
53910         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53911         need to extend the stack.
53912         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53913         large.
53914
53915 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53916
53917         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53918
53919 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53920
53921         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53922         (2004-10-24) change.  Apparently this was a false alarm.
53923
53924         * modules/getdate: Depend on alloca-opt, not alloca.
53925
53926 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53927
53928         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53929         Remove now-obsolete comment about AIX.
53930         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53931         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53932         (YYMAXDEPTH): New macro.
53933
53934 2004-12-18  Simon Josefsson  <jas@extundo.com>
53935
53936         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53937
53938 2004-12-18  Bruno Haible  <bruno@clisp.org>
53939
53940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53941
53942 2004-12-18  Bruno Haible  <bruno@clisp.org>
53943
53944         * lib/fatal-signal.c (fatal_signals): Make non-const.
53945         (init_fatal_signals): New function.
53946         (uninstall_handlers, install_handlers): Ignore signals that were set to
53947         SIG_IGN.
53948         (at_fatal_signal): Call init_fatal_signals.
53949         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53950         SIG_IGN.
53951         Reported by Paul Eggert.
53952
53953 2004-12-18  Bruno Haible  <bruno@clisp.org>
53954
53955         * doc/alloca.texi: New file.
53956         * doc/alloca-opt.texi: New file.
53957
53958 2004-12-17  Jim Meyering  <jim@meyering.net>
53959
53960         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53961         Otherwise, install-sh could exit with improper exit status when
53962         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53963
53964 2004-12-16  Simon Josefsson  <jas@extundo.com>
53965
53966         * tests/test-base64.c: Add license.
53967
53968 2004-12-15  Stepan Kasal  <address@hidden>
53969
53970         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53971
53972 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53973
53974         * modules/getcwd (Files): Add m4/d-ino.m4.
53975         Suggested by Mark D. Baushke.
53976
53977 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * lib/getdate.y (textint): New member "negative".
53980         (time_zone_hhmm): New function.
53981         Expect 14 shift-reduce conflicts, not 13.
53982         (o_colon_minutes): New rule.
53983         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53984         (yylex): Set the "negative" member of signed numbers.
53985
53986 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * doc/getdate.texi (Time of day items, Time zone items):
53989         Describe new formats +00:00, UTC+00:00.
53990
53991 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53992
53993         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53994         spurious "-l"s.  Problem reported by Stepan Kasal.
53995
53996 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53999         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54000
54001 2004-12-04  Simon Josefsson  <jas@extundo.com>
54002
54003         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54004         Vandoorselaere <yoann@prelude-ids.org>.
54005
54006 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54007
54008         Changes imported from coreutils.
54009         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54010         exist.
54011         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54012
54013 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         Changes imported from coreutils.
54016         * lib/hard-locale.c: Assume <locale.h> exists.
54017         Include "strdup.h".
54018         (GLIBC_VERSION): New macro.
54019         (hard_locale): Assume setlocale exists.
54020         Rewrite to avoid #ifdef.
54021         Use strdup rather than malloc + strcpy.
54022         * lib/human.c: Assume <locale.h> exists.
54023         (human_readable): Assume localeconv exists.
54024
54025 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * modules/hard-locale (Depends-on): Add strdup.
54028
54029 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54030
54031         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54032         convert T2, not T.  (Imported from libc.)
54033
54034 2004-11-30  Simon Josefsson  <jas@extundo.com>
54035
54036         * modules/restrict (License): Change to LGPL.
54037
54038 2004-11-30  Simon Josefsson  <jas@extundo.com>
54039
54040         * m4/restrict.m4: Add copyright and copying conditions.
54041
54042 2004-11-30  Simon Josefsson  <jas@extundo.com>
54043
54044         * m4/base64.m4: New file.
54045
54046 2004-11-30  Simon Josefsson  <jas@extundo.com>
54047
54048         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54049         base64.
54050
54051         * tests/test-base64.c: New file.
54052
54053         * modules/base64: New file.
54054
54055 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54058         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54059
54060         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54061
54062 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54063
54064         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54065         (__getcwd.c): Don't restore errno; glibc doesn't.
54066         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54067         first, falling back to our code only if its results look suspicious.
54068         Ensure that the resulting buffer is only as large as necessary.
54069
54070         * lib/readutmp.c: Include readutmp.h first.
54071         Include <errno.h>, since readutmp.h no longer does that.
54072         * lib/readutmp.h: Don't include <errno.h>,
54073         <sys/param.h>, <time.h>; not needed to establish interface.
54074         (errno): Remove decl.
54075         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54076         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54077         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54078
54079 2004-11-28  Simon Josefsson  <jas@extundo.com>
54080
54081         * lib/base64.h, base64.c: New file.
54082
54083 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54084
54085         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54086
54087 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54088
54089         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54090         (Depends-on): Remove pathmax, same.  Add mempcpy.
54091         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54092         (Makefile.am): Append getcwd.h to lib_SOURCES.
54093         (Include): Add getcwd.h.
54094         (Maintainer): Change from Jim Meyering to "all, glibc",
54095         since getdate now uses intended-for-glibc code.
54096         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54097         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54098
54099 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54100
54101         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54102         HP's ANSI C compiler.
54103         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54104         Declaring int functions causes warnings on some modern systems and
54105         shouldn't be needed to compile on ancient ones.
54106         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54107         defined.
54108
54109         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54110         with the following changes.
54111         (__set_errno): Parenthesize properly.
54112         Include <stdbool.h>.
54113         (MIN, MAX, MATCHING_INO): New macros.
54114         (__getcwd): Define with prototype, not K&R form.
54115         Use heuristics to allocate default buffer on stack if possible.
54116         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54117         behavior, and to avoid the PATH_MAX limit when computing
54118         ../../../../...
54119         Use MATCHING_INO to compare inode number to file.
54120         Check for arithmetic overflow in size calculations.
54121         Fix bug in reallocation of dot array that caused getcwd to fail
54122         on directories nested deeper than 75.
54123         Be more careful about saving errno on error.
54124         Do not use realloc; use only free+malloc, as this is a bit
54125         more flexible and avoids a needless copy operation.
54126         Do not inspect st_dev and st_ino for symbolic links; POSIX
54127         doesn't specify the latter.
54128         Check for closedir errors.
54129         Avoid needless casts.
54130         Use "#ifdef weak_alias" around weak_alias, to be like other
54131         glibc code.
54132         The following changes to getcwd.c have effect only when used in
54133         gnulib; they have no effect inside glibc proper.
54134         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54135         as alloca isn't used.
54136         (alloca, __alloca): Likewise.
54137         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54138         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54139         unconditionally, as gnulib assumes C89 or better.
54140         Do not include <sys/param.h>.
54141         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54142         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54143         better.
54144         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54145         Include <dirent.h> in a way that is compatible with modern Autoconf.
54146         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54147         New macros, if not already defined.
54148         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54149         Use "_LIBC", not "defined _LIBC", for consistency.
54150         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54151         a mempcpy module.
54152         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54153         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54154         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54155         credit only to Jim Meyering and adjust the copyright dates.
54156         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54157         <stdlib.h>, <unistd.h>, "pathmax.h".
54158         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54159         (INITIAL_BUFFER_SIZE): Remove.
54160         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54161
54162 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54165         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54166         Use the _ONCE methods, for efficiency.
54167         Check for fcntl.h.  In test program, include <errno.h>
54168         and <fcntl.h> if available.  Remove old K&R cruft from
54169         test program.  Check for common errors in GNU/Linux,
54170         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54171         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54172         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54173         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54174         name accordingly.
54175         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54176         accommodate new getcwd.c.
54177         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54178         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54179         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54180         that's all we need now.
54181
54182 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54183
54184         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54185         argp-parse.c depends on getopt internals, that means we should
54186         always use our getopt, to be on the safe side.
54187         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54188         order not to spoil the result of an eventual previous invocation
54189         of gl_GETOPT_SUBSTITUTE.
54190
54191 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54192
54193         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54194         redefinition warnings. To avoid them, include the defines
54195         in `#if !defined __need_getopt ... #endif'. The only place
54196         where __getopt_argv_const is used is in definitions
54197         of getopt_long and getopt_long_only below, which are as well
54198         protected by `#ifndef __need_getopt'.
54199         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54200         __need_getopt after including <stdio.h> and <unistd.h> These
54201         headers might have defined it.
54202
54203 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54204
54205         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54206
54207 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54210         (futimens): New function, which uses futimes if available.
54211         (futimens, utimens): Support timespec==NULL, with same semantics
54212         as utime and utimens.
54213         * lib/utimens.h (futimens): New decl.
54214
54215 2004-11-23  Jim Meyering  <jim@meyering.net>
54216
54217         * lib/getopt_.h: Remove trailing blanks.
54218
54219 2004-11-23  Jim Meyering  <jim@meyering.net>
54220
54221         * lib/__fpending.c: Add comment.
54222
54223 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54224
54225         * modules/canonicalize (Depends-on): Add xreadlink.
54226         Problem reported by James Youngman.
54227
54228 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54231         New macros.
54232         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54233         optopt): Use them instead of invoking ## directly; otherwise, the
54234         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54235
54236 2004-11-19  Bruno Haible  <bruno@clisp.org>
54237
54238         * lib/strtok_r.c: Move comments from here...
54239         * lib/strtok_r.h: ... to here.
54240
54241 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54242
54243         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54244         implementations that mishandle size_t overflow.
54245
54246 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54249         might fail.  Problem reported by Yoann Vandoorselaere.
54250         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54251         implementations that mishandle size_t overflow.
54252
54253 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54254
54255         * modules/canon-host (Depends-on): Add strdup.
54256
54257 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54260
54261 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * lib/canon-host.c: Include "strdup.h".
54264         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54265         Use strdup instead of malloc/strcpy to duplicate strings.
54266
54267         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54268         (human_space_before_unit): New constant.
54269         * lib/human.c (human_readable): Support it.
54270
54271         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54272         (xgetcwd): Set errno correctly when failing.
54273         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54274         the failure is actually due to a PATH_MAX problem.
54275
54276         Further getopt changes to make it more likely that glibc will
54277         buy the changes back.
54278         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54279         (getopt): Use it, so to preserve glibc semantic
54280         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54281         when compiling for libc.
54282         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54283         (getopt_long, getopt_long_only): Use it.
54284
54285         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54286         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54287         (getopt): Argv is now char * const *, as per standard.
54288         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54289         not char *__getopt_argv_const *.
54290         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54291         _getopt_long_only_r): Likewise.
54292         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54293         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54294         _getopt_long_r, _getopt_long_only_r): Likewise.
54295         * lib/getopt_.h (__getopt_argv_const): Remove.
54296         (getopt): Argv is now char * const *, as per standard.
54297
54298         * lib/getdate.y (tORDINAL): New token.
54299         (day, relunit): Allow it for relative times.
54300         (relative_time_table): Use tORDINAL for ordinals.
54301
54302 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54303
54304         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54305         Document that "second" isn't allowed as an ordinal number.
54306
54307 2004-11-16  Jim Meyering  <jim@meyering.net>
54308
54309         * modules/closeout (Depends-on): Add fpending.
54310
54311 2004-11-15  Jim Meyering  <jim@meyering.net>
54312
54313         * lib/closeout.c: Include "__fpending.h" once again.
54314         Include <stdbool.h>.
54315         (close_stdout): Don't fail just because stdout was closed initially,
54316         since some programs don't write to stdout in the normal course of
54317         operation (other than --version and --help), and we don't want this
54318         function to make e.g. `touch file >&-' fail.
54319         But do fail if it was closed and someone has tried to write to it.
54320         E.g., `printf foo >&-' must fail.
54321
54322 2004-11-13  Jim Meyering  <jim@meyering.net>
54323
54324         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54325
54326 2004-11-12  Simon Josefsson  <jas@extundo.com>
54327
54328         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54329         small doc fix is still pending.
54330
54331 2004-11-11  Simon Josefsson  <jas@extundo.com>
54332
54333         * modules/strtok_r: New file.
54334
54335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54336         strtok_r.
54337
54338 2004-11-11  Simon Josefsson  <jas@extundo.com>
54339
54340         * m4/strtok_r.m4: New file.
54341
54342         * m4/getopt.m4: Replace opterr.
54343
54344 2004-11-11  Simon Josefsson  <jas@extundo.com>
54345
54346         * lib/strtok_r.h, strtok_r.c: New file.
54347
54348 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54351         of replacing opterr, getopt, etc.  This should handle the
54352         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54353
54354 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54357         we can stop lying to compilers about the constness of argv when we
54358         are compiled outside glibc.
54359         (getopt, getopt_long, getopt_long_only): Use it.
54360         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54361         _getopt_internal, getopt): Likewise.
54362         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54363         _getopt_long_only_r): Likewise.
54364         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54365         _getopt_long_r, _getopt_long_only_r): Likewise.
54366
54367         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54368         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54369         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54370         the other external symbols.
54371         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54372         declaration, since the above renaming now works around collisions.
54373
54374 2004-11-11  Jim Meyering  <jim@meyering.net>
54375
54376         * lib/linebreak.c: Remove trailing blanks.
54377         * lib/alloca_.h: Likewise.
54378         * lib/acosl.c: Likewise.
54379         * lib/euidaccess.c: Likewise.
54380         * lib/allocsa.h: Likewise.
54381
54382 2004-11-10  Simon Josefsson  <jas@extundo.com>
54383
54384         * m4/getaddrinfo.m4: New file.
54385
54386 2004-11-10  Simon Josefsson  <jas@extundo.com>
54387
54388         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54389
54390 2004-11-10  Simon Josefsson  <jas@extundo.com>
54391
54392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54393         getaddrinfo.
54394
54395         * modules/getaddrinfo: New file.
54396
54397 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54400
54401 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54402
54403         * lib/mktime.c (SHR): New macro, which is a portable
54404         substitute for >> that should work even on Crays.
54405         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54406         Problem reported by Mark D. Baushke in
54407         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54408         * lib/getdate.y (SHR): Likewise.
54409         (tm_diff): Use it.
54410         * lib/strftime.c (SHR): Likewise.
54411         (tm_diff): Use it.
54412         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54413         quote_these_too, so that right shifts are well defined.  All uses
54414         changed.
54415
54416 2004-11-10  Jim Meyering  <jim@meyering.net>
54417
54418         Ensure that no close failure goes unreported.
54419         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54420         return early when it seems there's nothing to flush.
54421         Don't include __fpending.h.
54422
54423 2004-11-10  Jim Meyering  <jim@meyering.net>
54424
54425         * modules/closeout (Depends-on): Remove fpending.
54426
54427 2004-11-10  Jim Meyering  <jim@meyering.net>
54428
54429         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54430
54431 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54434         gl_FUNC_STRFTIME.
54435         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54436         and AC_REQUIRE when possible, to avoid duplicate checks.
54437         Check for <wchar.h>.
54438
54439 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54442
54443 2004-11-09  Bruno Haible  <bruno@clisp.org>
54444
54445         * m4/sockpfaf.m4: New file.
54446
54447 2004-11-05  Bruno Haible  <bruno@clisp.org>
54448
54449         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54450         Reported by Mark D. Baushke <mdb@cvshome.org>.
54451
54452 2004-11-04  Bruno Haible  <bruno@clisp.org>
54453
54454         2004-09-11  Bruno Haible  <bruno@clisp.org>
54455                 * allocsa.valgrind: New file.
54456         2004-02-06  Bruno Haible  <bruno@clisp.org>
54457                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54458                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54459                 Reported by Christopher Seip <chris.seip@hp.com>.
54460
54461 2004-11-04  Bruno Haible  <bruno@clisp.org>
54462
54463         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54464         (Makefile.am): Distribute it.
54465
54466 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54469         with errno == ERANGE if the buffer is too small.
54470         Problem reported by Mark D. Baushke.
54471
54472 2004-11-03  Albert Chin  <china@thewrittenword.com>
54473             Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54476         equivalent, substitute $ac_type for equivalent type rather than
54477         blindly using uint32_t *always* which won't work if uint32_t is not
54478         available.  Define _UINT32_T to work around typedef of uint32_t if
54479         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54480         2.5.1.
54481
54482 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * m4/jm-macros.m4: Sync from coreutils.
54485         (gl_MACROS): Check for mbrlen, for pathchk.
54486         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54487
54488 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         * lib/xreadlink.c (MAXSIZE): New macro.
54491         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54492         size does not exceed MAXSIZE.  Avoid cast.
54493         As suggested by Mark D. Baushke in
54494         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54495         if readlink fails with buffer size just under MAXSIZE, try again
54496         with MAXSIZE.
54497
54498 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54501
54502 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54503         and  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54506         (get_date): Overparenthesize to avoid GCC warning.
54507
54508 2004-11-02  Bruno Haible  <bruno@clisp.org>
54509
54510         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54511         returns void.
54512
54513 2004-11-02  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54516         function returns void.
54517
54518 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54519
54520         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54521         fflush_unlocked, flockfile, funlockfile, funlockfile,
54522         fputs_unlocked, putc_unlocked.
54523
54524 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54527         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54528         already declared.
54529
54530 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54531
54532         * modules/getdate (Files): Add doc/getdate.texi.
54533         (Depends-on): Add setenv, xalloc.
54534
54535 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * lib/getdate.y: Add support for TZ="foo" within a date string.
54538         Fix some bugs near time_t boundaries.  Reject dates with
54539         out-of-range components, e.g., "Sept 31".
54540         Include <stdlib.h>, "setenv.h", "xalloc.h".
54541         (ISDIGIT_LOCALE): Remove; unused.
54542         Note that the TZ and time functions used here are not reentrant.
54543         (mktime_ok, get_tz): New functions.
54544         (TZBUFSIZE): New constant.
54545         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54546         This requires that we sometimes generate our own TZ="XXX..." setting.
54547
54548 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         * doc/getdate.texi: New file, from coreutils with modifications for
54551         the new TZ parsing.
54552
54553 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54554
54555         * lib/mktime.c (not_equal_tm): Remove redundant check.
54556
54557 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * modules/regex (lib_SOURCES): Add regex.c.
54560         Reported by James Youngman in
54561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54562
54563 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/getdate.y: Use Bison 1.875 features, and some minor
54566         code cleanups.  This change does not affect semantics.
54567         Don't include <stdlib.h>; no longer needed.
54568         Don't include unlocked-io.h; only the "#if TEST" code uses
54569         stdio, and performance isn't crucial there.
54570         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54571         Bison 1.875 features as described below.
54572         All uses of "PC." replaced by "pc->".
54573         (YYSTYPE): Add a forward declaration.
54574         (yylex, yyerror): Use full prototypes in forward decls.
54575         Use "%pure-parser" rather than obsolescent "%pure_parser".
54576         Use %parse-param and %lex-param instead of obsolescent
54577         YYPARSE_PARAM and YYLEX_PARAM.
54578         (meridian_table, month_and_day_table, time_units_table,
54579         relative_time_table, time_zone_table, military_table,
54580         lookup_zone, lookup_word, get_date):
54581         Use NULL instead of 0 where appropriate.
54582         (to_hour): Avoid abort (), to avoid a dependency on
54583         stdlib.h.
54584         (yyerror, yylex): Now accepts parser_control * arg.
54585         (main) [TEST]: Use '\0' rather than 0 for char.
54586
54587 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54590
54591 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54594         It's now the caller's responsibility to handle the case where
54595         !HAVE_GETPAGESIZE && !defined getpagesize.
54596
54597         * lib/mktime.c (leapyear): Arg is long int, not int.
54598
54599 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54602
54603 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54606         missing.  Problem reported by James Youngman.
54607
54608 2004-10-16  Simon Josefsson  <jas@extundo.com>
54609
54610         * gnulib-tool: Fix comments.  Fix parse problem.
54611         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54612
54613 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54616         implementation of getopt_long.  Problem reported by Alexander Taler in:
54617         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54618
54619 2004-10-15  Bruno Haible  <bruno@clisp.org>
54620
54621         * gnulib-tool: Untabify. Initialize supplied_libname.
54622         (func_usage): More homogenous output.
54623         (func_modules_transitive_closure, func_modules_to_filelist,
54624         func_emit_lib_Makefile_am): New functions.
54625         (func_import): New function, extracted from big case statement. Use
54626         func_get_license, func_modules_transitive_closure,
54627         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54628         opt_lgpl. Don't use test -a, as it's not portable.
54629         (func_create_testdir): Use func_modules_transitive_closure,
54630         func_modules_to_filelist, func_emit_lib_Makefile_am.
54631
54632 2004-10-15  Bruno Haible  <bruno@clisp.org>
54633
54634         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54635
54636 2004-10-15  Bruno Haible  <bruno@clisp.org>
54637
54638         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54639         the portions belonging to each module.
54640         Suggested by Derek Robert Price <derek@ximbiot.com>.
54641
54642 2004-10-12  Simon Josefsson  <jas@extundo.com>
54643
54644         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54645         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54646         to real functions.
54647
54648 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54649
54650         * modules/vsnprintf: New file.
54651
54652 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54653
54654         * m4/vsnprintf.m4: New file.
54655
54656 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54657
54658         * lib/vsnprintf.h: New file.
54659         * lib/vsnprintf.c: New file.
54660
54661 2004-10-11  Bruno Haible  <bruno@clisp.org>
54662
54663         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54664         vsnprintf.
54665
54666 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54669
54670 2004-10-07  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54673         fits into the provided buffer.
54674
54675 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54676
54677         * lib/diacrit.c, diacrit.h: Add GPL notice.
54678
54679         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54680         notice.
54681         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54682         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54683         This avoids a potential constant-folding bug.
54684
54685 2004-10-05  Bruno Haible  <bruno@clisp.org>
54686
54687         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54688         for the declaration of strsep.
54689
54690 2004-10-05  Bruno Haible  <bruno@clisp.org>
54691
54692         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54693
54694 2004-10-04  Simon Josefsson  <jas@extundo.com>
54695
54696         * modules/memmem: New file.
54697         * tests/test-memmem.c: New file.
54698         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54699
54700 2004-10-04  Simon Josefsson  <jas@extundo.com>
54701
54702         * m4/memmem.m4: New file.
54703
54704 2004-10-04  Simon Josefsson  <jas@extundo.com>
54705
54706         * lib/memmem.h: New file.
54707         * lib/memmem.c: New file, taken from glibc.
54708
54709 2004-10-04  Simon Josefsson  <jas@extundo.com>
54710
54711         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54712         '#ifdef USE_UNLOCKED_IO'.
54713
54714 2004-10-04  Simon Josefsson  <jas@extundo.com>
54715
54716         * config/srclist.txt: Add memmem from glibc.
54717
54718 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54721
54722         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54723         modules/exclude, modules/getdate, modules/getline,
54724         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54725         modules/getusershell, modules/linebuffer, modules/md5,
54726         modules/mountlist, modules/posixtm, modules/readtokens,
54727         modules/readutmp, modules/regex, modules/sha1,
54728         modules/version-etc, modules/yesno:
54729         Remove dependency on unlocked-io.
54730
54731 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54734
54735         * m4/unlocked-io.m4: Add copyright notice.
54736         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54737
54738 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54739
54740         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54741         * lib/xmalloc.c (xmemdup): Likewise.
54742         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54743         XFREE): Remove these long-obsolescent macros.
54744         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54745         * lib/xstrdup.c: Remove.
54746
54747         * lib/regex.c (re_comp): Cast gettext return value to char *,
54748         Problem reported by Martin Neitzel via Mark D. Baushke.
54749
54750 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54753         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54754         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54755         regex.c, sha1.c, version-etc.c, yesno.c:
54756         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54757         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54758         the includer's responsibility.
54759
54760         Sync from coreutils.
54761
54762         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54763         points to the start of a string, as the C Standard says the
54764         resulting behavior is undefined.
54765
54766         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54767         simple -> simple_backups, numbered_existing ->
54768         numbered_existing_backups, numbered -> numbered_backups
54769         to avoid shadowing problems.  All uses changed.
54770         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54771         * lib/backupfile.c (check_extension, numbered_backup):
54772         Rename locals to avoid shadowing 'basename'.
54773         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54774         once.
54775
54776         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54777         * lib/.cvsignore: Add getopt.h.
54778
54779 2004-10-04  Bruno Haible  <bruno@clisp.org>
54780
54781         * modules/README: New file.
54782         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54783         not a module.
54784
54785 2004-10-02  Jim Meyering  <jim@meyering.net>
54786
54787         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54788
54789 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54790
54791         * modules/strsep: New file.
54792
54793 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54794
54795         * m4/strsep.m4: New file.
54796
54797 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54798
54799         * lib/strsep.h: New file.
54800         * lib/strsep.c: New file.
54801
54802 2004-10-01  Simon Josefsson  <jas@extundo.com>
54803
54804         * lib/snprintf.c (snprintf): Handle size==0.
54805
54806 2004-10-01  Simon Josefsson  <jas@extundo.com>
54807             Bruno Haible  <bruno@clisp.org>
54808
54809         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54810         (snprintf): Declare 'args'.
54811
54812 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * lib/snprintf.c: Remove comments as to why each header is needed.
54815
54816 2004-10-01  Bruno Haible  <bruno@clisp.org>
54817
54818         * MODULES.html.sh: Add strsep.
54819
54820 2004-09-30  Simon Josefsson  <jas@extundo.com>
54821
54822         * modules/snprintf: New file.
54823
54824 2004-09-30  Simon Josefsson  <jas@extundo.com>
54825
54826         * m4/snprintf.m4: New file.
54827
54828 2004-09-30  Simon Josefsson  <jas@extundo.com>
54829
54830         * lib/snprintf.h, lib/snprintf.c: New files.
54831
54832 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54833
54834         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54835         (hol_entry_help): Never translate an empty string.
54836         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54837         * lib/argp.h (OPTION_NO_TRANS): New option.
54838
54839 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * modules/argp (Maintainer): Replace Simon Josefsson
54842         by Sergey Poznyakoff.
54843
54844 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54847         changes merged back into glibc.
54848
54849 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54850
54851         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54852
54853 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54854
54855         * lib/xvasprintf.c: Include xalloc.h.
54856         (xvasprintf): Use xalloc_die, not xmalloc_die.
54857
54858 2004-09-29  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/alloca-opt: New file, derived from modules/alloca.
54861         * modules/allocsa: Depend on alloca-opt instead of alloca.
54862         * modules/setenv: Likewise.
54863         * modules/vasnprintf: Likewise.
54864         * MODULES.html.sh: Add alloca-opt.
54865
54866 2004-09-28  Simon Josefsson  <jas@extundo.com>
54867
54868         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54869         LGPL, and to replace license template from GPL to LGPL.
54870
54871 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54872
54873         * modules/dummy: Change license to LGPL.
54874
54875 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54876
54877         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54878
54879 2004-09-24  Simon Josefsson  <jas@extundo.com>
54880
54881         * modules/minmax (License): Change from GPL to LGPL.
54882
54883 2004-09-23  Simon Josefsson  <jas@extundo.com>
54884
54885         * gnulib-tool (--import): Typo.
54886
54887 2004-09-23  Simon Josefsson  <jas@extundo.com>
54888
54889         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54890
54891 2004-09-22  Bruno Haible  <bruno@clisp.org>
54892
54893         * modules/*: Add 'License' field.
54894         * gnulib-tool: Accept --extract-license option.
54895         (func_get_license): New function.
54896
54897 2004-09-21  Bruno Haible  <bruno@clisp.org>
54898
54899         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54900         Reported by Simon Josefsson.
54901
54902 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54903
54904         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54905         gl_AC_TYPE_LONG_LONG.
54906
54907 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54908
54909         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54910
54911 2004-09-18  Simon Josefsson  <jas@extundo.com>
54912         and  Paul Eggert  <eggert@cs.ucla.edu>
54913
54914         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54915         calls with autoreconf.  Define GL_LIB.
54916
54917 2004-09-14  Karl Berry  <karl@gnu.org>
54918
54919         * config/srclist.txt: unsync setenv.c, sigh.
54920
54921 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54924         Problem reported by Bruno Haible in:
54925         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54926
54927 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54928
54929         * config/srclist.txt: Comment out argp-pvh.c.
54930
54931 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54932
54933         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54934         in case some system header has #define'd it.  Problem reported by
54935         Soeren D. Schulze in
54936         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54937
54938 2004-09-09  Karl Berry  <karl@gnu.org>
54939
54940         * regex.[ch]: delete from the root.  These were supposed to be
54941                 synced with emacs cvs, but this has not happened for about
54942                 a year, and anyway nothing else uses emacs regex.[ch].
54943                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54944                 lib/regex[.ch] is untouched.
54945
54946 2004-09-09  Bruno Haible  <bruno@clisp.org>
54947
54948         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54949
54950 2004-09-09  Bruno Haible  <bruno@clisp.org>
54951
54952         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54953         modifications.
54954         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54955
54956 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54957
54958         * modules/xvasprintf: New file.
54959         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54960
54961 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54962
54963         * lib/xvasprintf.h: New file.
54964         * lib/xvasprintf.c: New file.
54965         * lib/xasprintf.c: New file.
54966
54967 2004-09-08  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54970
54971 2004-09-08  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54974         length is > INT_MAX.
54975         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54976         more.
54977
54978 2004-09-08  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/stdint_.h: New file, taken from GNU clisp.
54981
54982 2004-09-08  Bruno Haible  <bruno@clisp.org>
54983             Oskar Liljeblad  <oskar@osk.mine.nu>
54984
54985         * modules/stdint: New file.
54986         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54987
54988 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54989
54990         Import from coreutils.
54991         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54992         strings on unbounded length.  alloca's performance benefits aren't
54993         that important here.
54994         (V_STRDUP): Remove.
54995         (parse_with_separator): New function, with most of the internals
54996         of the old parse_user_spec.  Allow user to omit both user and group,
54997         for compatibility with FreeBSD.
54998         Clone only the user name, not the entire spec.
54999         Do not set *uid, *gid unless entirely successful.
55000         Avoid memory leak in some failing cases.
55001         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55002         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55003         (parse_user_spec): Rewrite to use parse_with_separator.
55004
55005 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         * modules/userspec: Don't depend on alloca.
55008
55009 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55012
55013 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55016         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55017         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55018
55019 2004-08-16  Simon Josefsson  <jas@extundo.com>
55020
55021         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55022         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55023         Add --dry-run for --import.
55024         Let user provided command line parameters override configure.ac
55025         settings.
55026
55027 2004-08-12  Simon Josefsson  <jas@extundo.com>
55028
55029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55030         as discussed with Paul Eggert in threads rooted at
55031         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55032         and
55033         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55034         Before, the test was empty, and relied on ELIDE_CODE in source
55035         code.)
55036         (gl_PREREQ_GETOPT): New macro.
55037         (gl_GETOPT): Use them.
55038
55039 2004-08-12  Simon Josefsson  <jas@extundo.com>
55040
55041         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55042         * lib/getopt_.h: Renamed from getopt.h.
55043
55044 2004-08-12  Simon Josefsson  <jas@extundo.com>
55045
55046         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55047         Change default library name from libfoo to libgnu.
55048         Now, if you have a configure.ac that says:
55049                 gl_SOURCE_BASE(gl)
55050                 gl_M4_BASE(gl/m4)
55051                 gl_MODULES(error getopt etcetera)
55052                 gl_INIT
55053         you can import all you need by running:
55054                 ../gnulib/gnulib-tool --import
55055
55056         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55057         (Makefile.am): Rewrite, use logic from argz.
55058         (Include): Use <getopt.h> instead of "getopt.h".
55059
55060 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * modules/argp (Files): Add m4/unlocked-io.m4.
55063         (Depends-on): Add extensions.
55064
55065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55068         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55069         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55070         Check for program_invocation_name, program_invocation_short_name,
55071         flockfile, funlockfile, features.h, _getopt_long_only_r.
55072
55073 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55076         its complicated substitute.
55077         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55078         and program_invocation_name.
55079         (__argp_basename) [!_LIBC]: Remove; the only use was
55080         replaced by its body.
55081         (__argp_short_program_name): Change condition from
55082         !defined __argp_short_program_name to
55083         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55084         to match argp-namefrob.h.
55085         (__argp_failure): Don't assume strerror_r returns char *.
55086         * lib/argp-parse.c (N_): Define unconditionally.
55087         (argp_default_options): Fill out initializers with 0 to avoid
55088         gcc warnings.
55089
55090 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55091
55092         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55093         getopt1.c.
55094
55095 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         Merge from coreutils.
55098
55099         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55100
55101         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55102         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55103
55104 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         Merge from coreutils.
55107
55108         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55109         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55110         for Reliant Unix 5.43.
55111
55112         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55113         (union fooround): Use uintmax_t, not long int.
55114         The rest is a merge from libc:
55115         [defined _LIBC]: Include <shlib-compat.h>.
55116         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55117
55118         * lib/settime.c (settime): Recode to avoid warning with
55119         Sun Forte C 6U2.
55120
55121         * lib/strverscmp.c: Convert to UTF-8.
55122
55123 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55126         m4/uintmax_t.m4.
55127
55128 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55129
55130         * modules/xalloc-die: New file.
55131         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55132
55133         * modules/md5 (Files): Add m4/uint32_t.m4.
55134         * modules/sha1: Renamed from modules/sha.
55135         (Files):
55136         Rename lib/sha.h to lib/sha1.h.
55137         Rename lib/sha.c to lib/sha1.c.
55138         Rename m4/sha.m4 to m4/sha1.m4.
55139         (lib_SOURCES): Likewise.
55140         (configure.ac): Rename gl_SHA to gl_SHA1.
55141         (Include): sha.h -> sha1.h.
55142
55143 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55146         * m4/sha1.m4: Renamed from sha.m4.
55147         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55148
55149 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55150
55151         * lib/obstack.h (obstack_empty_p):
55152         Don't assume that chunk->contents is suitably aligned.
55153         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55154         Likewise. Problem reported by Benno in
55155         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55156
55157         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55158         readable.  This could be improved further but it'd take some work.
55159
55160 2004-08-08  Simon Josefsson  <jas@extundo.com>
55161
55162         * modules/xgethostname (Depends-on): Remove exit and error (not
55163         used).
55164
55165         * modules/getpass-gnu: Add getpass.h.
55166         (Depends-on): Add stdbool.
55167         * modules/getpass: Add getpass.h.
55168
55169 2004-08-08  Simon Josefsson  <jas@extundo.com>
55170
55171         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55172         Check getpass declaration.
55173
55174 2004-08-08  Simon Josefsson  <jas@extundo.com>
55175
55176         * lib/xgethostname.c: Don't include error.h (not used).
55177
55178         * lib/getpass.h: Add.
55179         * lib/getpass.c: Include getpass.h first.
55180
55181 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         * lib/xalloc-die.c: New file.
55184         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55185         All uses removed.
55186         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55187         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55188         xalloc-die.c.
55189         (_, N_, xalloc_die): Move to xalloc-die.c.
55190         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55191         so that we needn't mess with xalloc_msg_memory_exhausted.
55192
55193         * lib/sha1.h: Renamed from sha.h.
55194         (SHA1_H): Renamed from _SHA_H.
55195         (sha1_ctx): Renamed from sha_ctx.
55196         (sha1_init_ctx): Renamed from sha_init_ctx.
55197         (sha1_process_block): Renamed from sha_process_block.
55198         (sha1_process_bytes): Renamed from sha_process_bytes.
55199         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55200         (sha1_read_ctx): Renamed from sha_read_ctx.
55201         (sha1_stream): Renamed from sha_stream.
55202         (sha1_buffer): Renamed from sha_buffer.
55203         * lib/sha1.c: Likewise; renamed from sha.c.
55204         Do not include <sys/types.h>.
55205         Include <stddef.h> rather than <stdlib.h>.
55206
55207 2004-08-08  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55210         FILESYSTEM_PREFIX_LEN.
55211         * lib/progreloc.c: Likewise.
55212         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55213
55214 2004-08-06  Simon Josefsson  <jas@extundo.com>
55215
55216         * modules/progname (Depends-on): Don't depend on stdbool.
55217
55218 2004-08-06  Simon Josefsson  <jas@extundo.com>
55219
55220         * modules/getsubopt: New file.
55221         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55222         getsubopt.
55223
55224 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         More merge from coreutils.
55227
55228         * m4/utimens.m4, m4/utimecmp.m4: New files.
55229         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55230         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55231         prereq.m4, sha.m4: Import changes from coreutils.
55232
55233 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55234
55235         More merge from coreutils.
55236         * modules/raise, modules/readtokens0, modules/utimens:
55237         * modules/utimecmp, module/xnanosleep: New files.
55238         * modules/strftime: Add lib/strftime.h.
55239         Change include from <time.h> to "strftime.h".
55240         * modules/yesno: Add lib/yesno.h.
55241         * modules/backupfile: Remove lib/addext.c.
55242         * modules/euidaccess: Add stat-macros.h.
55243         * modules/canonicalize, modules/euidaccess,
55244         modules/filemode, modules/lchown, modules/makepath,
55245         modules/rmdir, modules/stat: Likewise.
55246
55247 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55248
55249         Merge from tar.
55250         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55251         SIZE_MAX is a valid preprocessor constant.
55252         (__argp_basename): Change from "#ifndef _LIBC"
55253         to "#ifndef __argp_short_program_name", so that
55254         we don't compile these functions for tar.
55255
55256         More merges from coreutils.
55257         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55258         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55259         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55260         * lib/addext.c: Remove; no longer needed.
55261         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55262         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55263         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55264         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55265         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55266         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55267         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55268         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55269         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55270         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55271         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55272         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55273         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55274         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55275         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55276         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55277         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55278         Import changes from coreutils.
55279
55280 2004-08-05  Simon Josefsson  <jas@extundo.com>
55281
55282         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55283
55284 2004-08-05  Simon Josefsson  <jas@extundo.com>
55285
55286         * m4/getsubopt.m4: New file.
55287
55288 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         Merge from coreutils.
55291
55292         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55293         * m4/getcwd-path-max.m4: New files.
55294
55295         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55296         FILESYSTEM_PREFIX_LEN ->
55297         FILE_SYSTEM_PREFIX_LEN.
55298         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55299         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55300         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55301         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55302
55303         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55304         prerequisite modules now handle the DOS stuff.
55305         Don't check for unistd.h.
55306
55307 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55308
55309         Merge from coreutils.
55310
55311         * lib/.gdb-history: Remove; this doesn't belong here.
55312
55313         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55314         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55315         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55316         * lib/getcwd.c: New files.
55317
55318         * lib/dirname.h: Include <stdbool.h>.
55319         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55320         for consistency with POSIX terminology.  All uses changed.
55321         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55322         (strip_trailing_slashes): Use bool for booleans.
55323         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55324
55325         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55326         sometimes returns a positive errno value even when it succeeds.
55327         (print_errno_message) [!LIBC]: Fall back on strerror if
55328         __strerror_r fails.
55329
55330         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55331         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55332         (longest_relative_suffix): New function.
55333         (path_concat): Use it.  Assume first argument is not NULL.
55334         Port to DOS.  Omit redundant separators.
55335         Report an error instead of returning NULL.
55336         Use mempcpy instead of memcpy.
55337         (xpath_concat): Remove: not declared or used.
55338
55339         * lib/same.h: Include <stdbool.h>
55340         (same_name): Return bool, not int.
55341         * lib/same.c (same_name): Likewise.
55342         (errno): Don't declare; we assume C89 or better now.
55343
55344         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55345         if not already defined.
55346
55347         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55348         * lib/dup-safer.c (errno): Likewise.
55349
55350 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55351
55352         Merge from coreutils.
55353         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55354         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55355         * modules/path-concat: Don't depend on strdup.
55356
55357 2004-08-03  Simon Josefsson  <jas@extundo.com>
55358
55359         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55360         * lib/progname.h: Don't include stdbool.h.
55361
55362 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55365         * MODULES.html.sh (func_all_modules): Remove fatal.
55366
55367 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55368
55369         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55370
55371 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55374         working.
55375
55376 2004-08-02  Simon Josefsson  <jas@extundo.com>
55377
55378         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55379         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55380         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55381
55382 2004-08-01  Simon Josefsson  <jas@extundo.com>
55383
55384         * lib/xgetdomainname.c: Include stdlib.h, for free().
55385
55386 2004-07-19  Bruno Haible  <bruno@clisp.org>
55387
55388         * MODULES.html.sh (func_all_modules): Add dummy.
55389
55390 2004-07-16  Simon Josefsson  <jas@extundo.com>
55391
55392         * modules/dummy: New file.
55393
55394 2004-07-16  Simon Josefsson  <jas@extundo.com>
55395
55396         * lib/dummy.c: New file.
55397
55398 2004-07-16  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/backupfile.h: Add extern "C" for C++.
55401         * lib/closeout.h: Likewise.
55402         * lib/copy-file.h: Likewise.
55403         * lib/findprog.h: Likewise.
55404         * lib/full-write.h: Likewise.
55405         * lib/pathname.h: Likewise.
55406         * lib/progname.h: Likewise.
55407         * lib/stpcpy.h: Likewise.
55408         * lib/stpncpy.h: Likewise.
55409         * lib/strcase.h: Likewise.
55410         * lib/strstr.h: Likewise.
55411         * lib/xalloc.h: Likewise.
55412
55413         * lib/mbswidth.h: Add extern "C" for C++.
55414         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55415
55416 2004-07-13  Robert Millan  <robertmh@gnu.org>
55417
55418         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55419
55420 2004-07-09  Simon Josefsson  <jas@extundo.com>
55421
55422         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55423         failed without this.)
55424
55425 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         * modules/chown (Files): Add lib/fchown-stub.c, since
55428         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55429
55430 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55431
55432         * lib/fchown-stub.c: New file.
55433
55434 2004-06-24  Jim Meyering  <jim@meyering.net>
55435
55436         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55437
55438 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55439
55440         * modules/argz: Omit "#include".
55441
55442         * MODULES.html.sh (func_all_modules): Add calloc, to match
55443         2004-06-01 addition of calloc module.
55444
55445 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55446
55447         * m4/argz.m4: New file, which is autoupdated from libtool.
55448
55449 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55452         libtool.
55453
55454 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55455
55456         * config/srclist-update: Don't insist on "USA." before the
55457         close-comment, as libtool omits the period and puts the */ on a
55458         separate line.
55459         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55460         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55461
55462 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55463
55464         * modules/argz: New file.
55465         * MODULES.html.sh (func_all_modules): Add argz.
55466
55467 2004-06-12  Jim Meyering  <jim@meyering.net>
55468         and  Paul Eggert  <eggert@cs.ucla.edu>
55469
55470         * modules/hash (Files): Add lib/xalloc.h.
55471         * modules/pipe (Depends-on): Add wait-process.
55472         * modules/stat (Depends-on): Add xalloc.
55473         * modules/userspec (Files): Add lib/userspec.h.
55474         * modules/xstrto
55475
55476         Upgrade from gettext-0.13.
55477         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55478         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55479         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55480
55481 2004-06-10  Jim Meyering  <jim@meyering.net>
55482
55483         * lib/calloc.c: New file.
55484
55485 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55486
55487         * lib/getdate.y (yylex): Allow space between sign and number.
55488         Problem reported by Dan Jacobson.
55489
55490 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55491
55492         Merge from coreutils CVS.
55493
55494         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55495         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55496         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55497         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55498         xstrtol.m4: Fix copyright date and/or serial number.
55499
55500         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55501         See if we need an fchown replacement.
55502         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55503         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55504         and use the replacement function if we detect either defect.
55505
55506         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55507         gl_UTIMECMP.
55508
55509 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55510         and  Jim Meyering  <jim@meyering.net>
55511
55512         Merge from coreutils CVS.
55513
55514         * lib/stat-macros.h: New file, with contents from file-type.h
55515         and coreutils' system.h.
55516         * lib/file-type.c: Include "stat-macros.h".
55517         * lib/file-type.h (file_type): Move all macro definitions to new file,
55518         stat-macros.h.
55519
55520         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55521         Wrap old code with this conditional.
55522         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55523         function that does not dereference symlinks.
55524         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55525
55526         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55527         dependency problems.
55528         (xreadlink): Accept new arg SIZE, for efficiency.
55529         All decls and uses changed.
55530         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55531
55532         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55533         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55534
55535         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55536         sysexits.h.
55537
55538 2004-06-01  Jim Meyering  <jim@meyering.net>
55539
55540         * m4/calloc.m4: New file.
55541
55542 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55543
55544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55545         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55546         Also, fix a typo in a diagnostic.
55547
55548 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55549
55550         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55551         or AC_FUNC_REALLOC.
55552
55553 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55554
55555         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55556         macros to be defined.
55557         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55558         the allocator returns NULL because the requested size is zero.
55559
55560 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55561
55562         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55563         var.  Add comment explaining why libc still defines it.  This
55564         merges the following patch from glibc:
55565         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55566
55567 2004-05-20  Andreas Schwab  <schwab@suse.de>
55568
55569         * m4/free.m4: Replace free if it not known to work, not the other
55570         way round.
55571
55572 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55575         present in glibc since revision 1.1 of this file.
55576         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55577         obstack_alignment_mask, obstack_alloc, obstack_base,
55578         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55579         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55580         obstack_grow0, obstack_init, obstack_int_grow,
55581         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55582         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55583         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55584         nonexistent functions.
55585
55586 2004-05-18  Karl Berry  <karl@gnu.org>
55587
55588         * config/srclist.txt: break link for vasnprintf.c.
55589
55590 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55591
55592         Port obstack to the AS/400, where pointers are 16 bytes wide and
55593         you cannot cast an integer to a valid pointer.  This patch is
55594         currently waiting to be integrated into glibc; see
55595         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55596
55597         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55598         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55599         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55600         (struct obstack): temp member is now a union of a pointer and
55601         an integer, instead of an integer.  All integer uses changed.
55602         This does not affect the physical layout of struct obstack,
55603         except on hosts (like the AS/400) where the size or alignment of
55604         void * is greater than that of ptrdiff_t.
55605         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55606         __STDC__)]: Store temporary in pointer member of union, not
55607         integer member.
55608         * lib/obstack.c: Include <stddef.h>, for offsetof.
55609         (struct fooalign): Remove; it doesn't need a name.
55610         (union fooround): Change double to long double, and add void *.
55611         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55612         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55613         not a macro.  Hence the values are always int; so remove all
55614         casts-to-int in uses.
55615
55616 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55617
55618         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55619         we can get this patch merged into glibc.
55620
55621 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55622             Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * m4/argp: Depend on alloca.
55625
55626 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55627             Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55630         freecoding.
55631
55632 2004-05-17  Bruno Haible  <bruno@clisp.org>
55633
55634         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55635         precision that consists of a '.' followed by an empty digit string.
55636         Patch by Tor Lillqvist <tml@iki.fi>.
55637
55638 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55641         for backward compatibility with older code.  We need our own
55642         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55643         it under some other name, and our alloca.h will define it.
55644
55645 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55646             Derek Price  <derek@ximbiot.com>
55647
55648         * lib/alloca.c: Include <alloca.h>, to get our interface.
55649         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55650         include <alloca.h> first.  Use C89 prototype for alloca; this
55651         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55652         Use #elif for simplicity, since we can assume C89 now.
55653         Don't try to source the system alloca.h since it will not be found
55654         and to prevent recursively including its replacement.
55655         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55656         * lib/regex.c: Likewise.
55657
55658 2004-05-16  Derek Price  <derek@ximbiot.com>
55659             Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         getline cleanup.  This changes the getndelim2 API: both order of
55662         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55663         no delimiter).
55664
55665         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55666         interface does that.
55667         (getline): Always use getdelim, so that we don't have two
55668         copies of this code.
55669         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55670         if available.
55671         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55672         (GETNDELIM2_MAXIMUM): New macro.
55673         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55674         instead of the old practice of delim2==0.  All callers changed.
55675         Return -1 on overflow, instead of returning junk.
55676         Do not set *linesize unless allocation succeeds.
55677         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55678         that we include sys/types.h.
55679         * lib/getnline.h: Likewise.
55680         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55681         (getndelim2): Reorder arguments.
55682         * lib/getnline.c (getnline, getndelim):
55683         Don't discard the NMAX argument.
55684         (getnline): Invoke getndelim, to avoid code duplication.
55685         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55686         of (size_t) -1 by callers of the getnline family.
55687
55688 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55689
55690         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55691         Check for gettimeofday.
55692         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55693         Check for settimeofday, stime.
55694
55695 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55696
55697         * lib/nanosleep.c (suspended): Change its type from int to
55698         sig_atomic_t volatile.
55699         (first_call): Make it private to rpl_nanosleep, and have it
55700         be zero initially as that's a bit faster.
55701         (my_usleep): Round up fractional times instead of truncating them,
55702         as this is the usual meaning for 'sleep'.
55703
55704         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55705         doesn't work.
55706         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55707         (ENOSYS): Define if not defined.
55708         (settime): Fall back on stime if it exists and settimeofday fails.
55709         But don't bother with fallbacks if a method fails with errno == EPERM.
55710
55711 2004-05-11  Jim Meyering  <jim@meyering.net>
55712
55713         Prior to this change, the save_cwd caller required read access to the
55714         current directory on most systems (ones with the fchdir function).
55715
55716         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55717         fails, try write-only, and finally, resort to using xgetcwd.
55718
55719 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55720
55721         * lib/obstack.c, obstack.h: Import changes from libc.
55722
55723 2004-04-28  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55726         also implicitly appends .exe to executables.
55727         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55728         accepts Windows pathnames.
55729         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55730         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55731         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55732         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55733         Reported by Derek Robert Price <derek@ximbiot.com>.
55734
55735 2004-04-21  Karl Berry  <karl@gnu.org>
55736
55737         * config/srclist.txt (localcharset.c): break sync.
55738
55739 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55740
55741         * m4/host-os.m4: Add a copyright notice.
55742
55743 2004-04-20  Jim Meyering  <jim@meyering.net>
55744
55745         Change UTILS_ to gl_ in AC_DEFINE'd names.
55746         Change utils_- and jm_-prefixed variables, too.
55747         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55748         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55750
55751         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55752         Don't emit trailing blanks.
55753         Also rename jm_-prefixed variables to have gl_ prefix.
55754
55755         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55756         Also rename jm_-prefixed variables to have gl_ prefix.
55757
55758         * m4/jm-macros.m4: Reflect the renamings.
55759         * m4/prereq.m4: Likewise.
55760
55761 2004-04-20  Jim Meyering  <jim@meyering.net>
55762
55763         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55764         memory.
55765
55766 2004-04-20  Jim Meyering  <jim@meyering.net>
55767             Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55770         memory when realloc fails.
55771
55772 2004-04-19  Jim Meyering  <jim@meyering.net>
55773
55774         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55775         now that readutmp.c may call `free (0)'.
55776
55777 2004-04-19  Bruno Haible  <bruno@clisp.org>
55778
55779         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55780         * m4/inttypes_h.m4: Likewise.
55781         * m4/stdint_h.m4: Likewise.
55782         * m4/intmax_t.m4: Likewise.
55783         * m4/uintmax_t.m4: Likewise.
55784
55785 2004-04-18  Jim Meyering  <jim@meyering.net>
55786
55787         * m4/prereq.m4: Don't forbid jm_ prefix.
55788
55789         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55790         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55791         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55792         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55793         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55794         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55795         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55796         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55797         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55798         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55799         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55800         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55801         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55802         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55803         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55804         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55805         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55806         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55807         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55808
55809 2004-04-18  Jim Meyering  <jim@meyering.net>
55810
55811         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55812         failure, don't leak memory and do call END_UTMP_ENT.
55813
55814 2004-04-16  Jim Meyering  <jim@meyering.net>
55815
55816         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55817         coreutils' stat program.
55818         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55819
55820 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55821
55822         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55823         C89.
55824         (CHAR_BIT): Remove, since we assume C89.
55825         Include <stdint.h> if available, as per current Autoconf CVS advice.
55826
55827 2004-03-31  Jim Meyering  <jim@meyering.net>
55828
55829         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55830         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55831         * m4/xalloc.m4: Likewise.
55832
55833 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55834
55835         Merge from coreutils.
55836
55837         * m4/inttostr.m4: New file.
55838         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55839         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55840         Require gl_CLOCK_TIME.
55841         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55842
55843 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55844
55845         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55846         not bool, to be more consistent with Unix conventions.
55847         Suggested by Bruno Haible.
55848
55849         Merge from coreutils.
55850
55851         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55852         * lib/umaxtostr.c: New files.
55853
55854         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55855         the usual <time.h> dance.
55856         (get_date): Change signature to support fractional time stamps.
55857         All callers changed.
55858         * lib/getdate.y: Include "getdate.h" first, as we can now
55859         assume C89 and don't need to worry about 'const'.
55860         Similarly, include "unlocked-io.h" near start, not in middle.
55861         Include <limits.h>.
55862         (textint.value): Use long int rather than int.
55863         (textint.digits): Use size_t rather than int.
55864         (BILLION, LOG10_BILLION): New constants.
55865         (parser_control): New member rel_ns.  Members day_ordinal,
55866         time_zone, month, day, hour, minutes, rel_year, rel_month,
55867         rel_day, rel_hour, rel_minutes, rel_seconds
55868         are now long int, not int.  Member seconds is now struct timespec,
55869         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55870         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55871         not int.
55872         (%union.intval): Now long int, not int.
55873         New member timespec.
55874         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55875         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55876         (spec): Now is a timespec or an item list.
55877         (timespec, items): New nonterminals.
55878         (time, rel, relunit, number, get_date):
55879         Add support for fractional seconds.
55880         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55881         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55882         (to_hour): First arg is now long int, not int.
55883         (to_year): Returns long int, not int.
55884         Don't treat year -70 like 70.
55885         (tm_diff): Returns long int, not int.
55886         (lookup_word): Use bool instead of int when appropriate.
55887         (yylex): Use size_t for count, not int.
55888         Detect overflow when parsing large integer constants.
55889         Add support for fractions.
55890         (get_date): Make pointers 'const' if possible.
55891         Use more-portable code to detect integer overflow.
55892         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55893         Don't use ctime; it's not reliable if the year has >4 digits.
55894
55895         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55896         This is for compatibility with BSD.
55897
55898         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55899         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55900         From coreutils' system.h.
55901
55902         * lib/userspec.c: Don't include "posixver.h".
55903         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55904         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55905         compatible extension.  Simplify code by removing a boolean int
55906         that was always nonzero if a string was nonnull.
55907
55908 2004-03-30  Jim Meyering  <jim@meyering.net>
55909
55910         Merge from coreutils.
55911
55912         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55913         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55914         on some systems one must include <grp.h> before it.
55915         Reported by Christian Krackowizer.
55916
55917 2004-03-30  Jim Meyering  <jim@meyering.net>
55918
55919         Merge from coreutils.
55920
55921         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55922
55923         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55924         an empty input stream.
55925
55926         * lib/readtokens.c: Include <stdbool.h>.
55927         (readtoken): Use `size_t' rather than int/long.
55928         All callers adjusted.
55929         Use `bool' rather than `int' where appropriate.
55930         Use memset rather than an explicit loop.
55931         Use x2nrealloc rather than xrealloc.
55932         Allow the use of `\0' as a delimiter.
55933         (readtokens): Likewise.
55934         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55935
55936 2004-03-30  Jim Meyering  <jim@meyering.net>
55937
55938         * m4/realloc.m4: Remove file, since now it does no more than
55939         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55940         the `configure.ac' section of module/realloc.
55941         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55942
55943 2004-03-30  Bruno Haible  <bruno@clisp.org>
55944
55945         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55946         nonnull.
55947
55948 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55949
55950         Merge changes to getloadavg.c from coreutils and Emacs.
55951
55952         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55953         Define to an expression, not to the empty string.
55954         Include cloexec.h and xalloc.h.
55955         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55956         Use set_cloexec_flag rather than rolling our own.
55957         * lib/cloexec.c, lib/cloexec.h: New files.
55958
55959 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55960
55961         * m4/cloexec.m4: New file.
55962
55963 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55964
55965         * lib/getopt.h: Sync with libc CVS.
55966
55967 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55968             Bruno Haible  <bruno@clisp.org>
55969
55970         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55971         mbswidth.
55972
55973 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55974             Bruno Haible  <bruno@clisp.org>
55975
55976         * lib/mbswidth.h: Include <wchar.h> only if
55977         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55978         <wchar.h>.
55979         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55980
55981 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55982
55983         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55984         Sync with libc CVS.
55985         * lib/getopt_int.h: New file, also synced from libc.
55986
55987 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55988
55989         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55990         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55991         Bring back getopt.c, getopt.h, getopt1.c.
55992
55993 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55994
55995         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55996         All uses changed.  Check for sa_sigaction member; this fixes
55997         a bug first reported by Jason Andrade in
55998         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55999
56000 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56001
56002         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56003         '#if' expressions.  Unlike the code it replaces, it does not
56004         depend on (defined _SC_PAGESIZE).  However, it does depend on
56005         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56006         first reported by Jason Andrade in
56007         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56008
56009 2004-02-25  Simon Josefsson  <jas@extundo.com>
56010
56011         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56012
56013 2004-02-25  Simon Josefsson  <jas@extundo.com>
56014
56015         * lib/strdup.h: New file.
56016         * lib/strdup.c: Include it.
56017         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56018         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56019
56020 2004-02-23  Karl Berry  <karl@gnu.org>
56021
56022         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56023         (from fencepost.gnu.org:/gd/gnuorg).
56024
56025 2004-02-23  Karl Berry  <karl@gnu.org>
56026
56027         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56028         * config/srclist.txt: add maintain/standards documents.
56029
56030 2004-02-18  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56033         Reported by Derek Robert Price <derek@ximbiot.com>.
56034
56035 2004-02-16  Karl Berry  <karl@gnu.org>
56036
56037         * config/mkinstalldirs, install-sh: update from automake.
56038
56039 2004-02-06  Karl Berry  <karl@gnu.org>
56040
56041         * m4/po.m4: update from gettext 0.14.1.
56042
56043 2004-02-06  Karl Berry  <karl@gnu.org>
56044
56045         * lib/config.charset: update from gettext 0.14.1.
56046
56047 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56048
56049         Add comments and code, prompted by suggestions from Bruno Haible
56050         for sh-quote.
56051         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56052         describing the enum quoting_style values.
56053         * lib/quotearg.c (quotearg_alloc): New function.
56054         (quotearg_buffer_restyled): Treat lone { and } as special.
56055         Treat = as special.  Work around bug with older shells
56056         that "see" a '\' that is really the 2nd byte of a multibyte char.
56057         Quote empty string with shell_quoting_style.
56058
56059 2004-02-03  Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/pipe.m4: New file, from GNU gettext.
56062
56063 2004-02-03  Bruno Haible  <bruno@clisp.org>
56064
56065         * lib/pipe.h: New file, from GNU gettext.
56066         * lib/pipe.c: New file, from GNU gettext.
56067
56068 2004-01-27  Bruno Haible  <bruno@clisp.org>
56069
56070         * m4/execute.m4: New file, from GNU gettext.
56071
56072 2004-01-27  Bruno Haible  <bruno@clisp.org>
56073
56074         * lib/execute.h: New file, from GNU gettext.
56075         * lib/execute.c: New file, from GNU gettext.
56076         * lib/w32spawn.h: New file, from GNU gettext.
56077
56078 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56079
56080         Merge from diffutils.
56081
56082         * lib/file-type.c (file_type): Add typed memory objects.
56083         * lib/file-type.h (S_TYPEISTMO): New macro.
56084
56085         * lib/c-stack.h (c_stack_action): Remove argv argument.
56086         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56087         (die): Don't calculate message unless segv_action returns.
56088         (get_stack_location, min_address_from_argv, max_address_from_argv,
56089         volatile stack_base, volatile_stack_size): Remove.
56090         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56091         that every segmentation violation is a stack overflow.  (Ouch!)
56092         See Debian bug 136249 (still outstanding) for more info about why
56093         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56094
56095 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56096
56097         Exit-status fix from coreutils.
56098
56099         Use exit_failure consistently in place of EXIT_FAILURE,
56100         so that program exit statuses are consistent on failure.
56101
56102         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56103         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56104         * lib/argmatch.h: Comment fix to match the above.
56105         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56106         Now a macro referring to exit_failure, instead of a separate
56107         variable.  Include "exitfail.h" to get it.
56108         * lib/xstrtol.h: Include "exitfail.h".
56109         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56110
56111         * lib/long-options.c (parse_long_options): Use prototype
56112         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56113         for clarity.
56114
56115 2004-01-21  Jim Meyering  <jim@meyering.net>
56116
56117         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56118         so as not to conflict with a different-sized __mktime_internal
56119         function in GNU libc.
56120         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56121         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56122
56123 2004-01-20  Karl Berry  <karl@gnu.org>
56124
56125         * config/config.guess: update from config.
56126
56127         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56128
56129 2004-01-20  Bruno Haible  <bruno@clisp.org>
56130
56131         Safer stack allocation.
56132         * lib/setenv.c: Include allocsa.h.
56133         (alloca): Remove fallback definition.
56134         (freea): Remove macro.
56135         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56136         instead of freea.
56137
56138 2004-01-20  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/eealloc.m4: New file, from GNU gettext.
56141
56142 2004-01-20  Bruno Haible  <bruno@clisp.org>
56143
56144         * m4/allocsa.m4: New file, from GNU gettext.
56145
56146 2004-01-20  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/xallocsa.h: New file, from GNU gettext.
56149         * lib/xallocsa.c: New file, from GNU gettext.
56150
56151 2004-01-20  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56154
56155 2004-01-20  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56158         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56159         specially.
56160
56161 2004-01-20  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56164         patch.
56165
56166 2004-01-20  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56169
56170 2004-01-20  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/eealloc.h: New file.
56173
56174 2004-01-20  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/binary-io.h: Avoid warnings on Cygwin.
56177
56178 2004-01-20  Bruno Haible  <bruno@clisp.org>
56179
56180         * lib/allocsa.h: New file, from GNU gettext.
56181         * lib/allocsa.c: New file, from GNU gettext.
56182
56183 2004-01-18  Karl Berry  <karl@gnu.org>
56184
56185         * doc/gpl.texi, doc/lgpl.texi: new files.
56186
56187 2004-01-18  Karl Berry  <karl@gnu.org>
56188
56189         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56190         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56191
56192 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56193
56194         Merge from coreutils.
56195
56196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56197         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56198         (gl_DEFAULT_POSIX2_VERSION): Move
56199         the documentation from 'configure' into 'config.hin',
56200         so that 'configure --help' isn't burdened by it and
56201         we don't have to worry about its formatting there.
56202         Reword the documentation so that it's more succinct
56203         and can be run together into a single paragraph.
56204         * m4/same.m4 (gl_SAME): Check for pathconf.
56205
56206 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56207
56208         Merge from coreutils.
56209
56210         * lib/posixver.c: Include posixver.h.
56211
56212         * lib/same.c: Include <stdbool.h>, <limits.h>.
56213         (_POSIX_NAME_MAX): Define if not defined.
56214         (MIN): New macro.
56215         (same_name): If file names are silently truncated, report
56216         that the file names are the same if they are the same after
56217         the silent truncation.
56218
56219         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56220         conversion function.
56221         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56222         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56223         longer needed.
56224
56225 2004-01-15  Jim Meyering  <jim@meyering.net>
56226
56227         Merge from coreutils.
56228
56229         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56230         if no library is required.
56231         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56232         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56233         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56234         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56235         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56236         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56237         value, $ac_cv_search_crypt, if it's "none required".
56238         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56239         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56240         not gl_FUNC_GETLOADAVG.
56241         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56242         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56243
56244 2004-01-15  Jim Meyering  <jim@meyering.net>
56245
56246         Merge from coreutils.
56247
56248         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56249         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56250         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56251
56252         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56253         optional configure-time default.
56254
56255         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56256
56257         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56258
56259 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56260
56261         Merge from coreutils.
56262
56263         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56264         value, $ac_cv_search_nanosleep, if it's "none required".
56265
56266 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56267
56268         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56269         with like-named macro in fnmatch.c.
56270         (EXT): Use an internal constant instead.
56271
56272         Merge fnmatch patches from glibc.
56273         * lib/fnmatch.c (mbsinit): Remove define.
56274         Add libc_hidden_ver (__fnmatch, fnmatch).
56275         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56276         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56277
56278 2004-01-14  Karl Berry  <karl@gnu.org>
56279
56280         * config/install-sh: update from automake.
56281
56282 2004-01-13  Karl Berry  <karl@gnu.org>
56283
56284         * config/install-sh: update from automake.
56285
56286 2004-01-09  Karl Berry  <karl@gnu.org>
56287
56288         * config/install-sh: update from automake.
56289
56290 2004-01-05  Karl Berry  <karl@gnu.org>
56291
56292         * config/config.{sub,guess}: update from config.
56293
56294 2003-12-31  Karl Berry  <karl@gnu.org>
56295
56296         * config/depcomp: update from automake.
56297
56298 2003-12-14  Karl Berry  <karl@gnu.org>
56299
56300         * lib/config.charset: update from gettext-runtime.
56301
56302 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56303
56304         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56305         Bug reported by Alfred M. Szmidt.
56306
56307 2003-12-03  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/gettext.m4: Upgrade from gettext-0.13.
56310         * m4/po.m4: Upgrade from gettext-0.13.
56311         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56312         * m4/intmax.m4: New file, from gettext-0.13.
56313         * m4/printf-posix.m4: New file, from gettext-0.13.
56314
56315 2003-11-29  Karl Berry  <karl@gnu.org>
56316
56317         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56318
56319 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56320             Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/printf-parse.h: Don't include sys/types.h.
56323         (ARG_NONE): New macro.
56324         (char_directive): Change type of *arg_index fields to size_t.
56325         * lib/printf-parse.c: Don't include sys/types.h.
56326         (SSIZE_MAX): Remove macro.
56327         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56328         Remove unnecessary overflow check.
56329         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56330         fields.
56331
56332 2003-11-25  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56335
56336 2003-11-25  Bruno Haible  <bruno@clisp.org>
56337
56338         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56339         gt_TYPE_SSIZE_T.
56340
56341 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56342
56343         * modules/alloca: Remove dependency on xalloc.
56344
56345 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56346
56347         * lib/alloca.c: Remove dependency on xalloc module.
56348         (xalloc_die): Remove.
56349         (memory_full) [!defined emacs]: New macro.
56350         [!defined emacs]: Don't include xalloc.h.
56351         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56352         address arithmetic overflows.  Change datatypes a bit to avoid
56353         unnecessary casts.
56354
56355 2003-11-22  Jim Meyering  <jim@meyering.net>
56356
56357         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56358         s/size/size_t/.
56359
56360 2003-11-21  Karl Berry  <karl@gnu.org>
56361
56362         * config/config.{sub,guess}: update from config.
56363
56364 2003-11-18  Karl Berry  <karl@gnu.org>
56365
56366         * config/config.{sub,guess}: update from config.
56367
56368         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56369
56370 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56371
56372         * README: Mention that S+T cannot overflow if S is the size of
56373         an existing object and T is sufficiently small.
56374
56375 2003-11-17  Jim Meyering  <jim@meyering.net>
56376
56377         On systems without utime and without a utimes function capable of
56378         dealing with a NULL struct utimbuf* argument, this utime replacement
56379         could -- in unusual circumstances -- leak a file descriptor.
56380         * lib/utime.c: Include <unistd.h> and <errno.h>.
56381         (utime_null): Be sure to close `fd' and to preserve errno.
56382         Reported by Geoff Collyer via Arnold Robbins.
56383
56384 2003-11-17  Bruno Haible  <bruno@clisp.org>
56385
56386         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56387         (Depends-on): Add xsize.
56388
56389 2003-11-17  Bruno Haible  <bruno@clisp.org>
56390
56391         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56392
56393 2003-11-17  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/vasnprintf.c (alloca): Remove fallback definition.
56396         (freea): Remove definition.
56397         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56398         Reported by Paul Eggert.
56399
56400 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56401             Bruno Haible  <bruno@clisp.org>
56402
56403         Protect against address arithmetic overflow.
56404         * lib/printf-args.h: Include stddef.h.
56405         (arguments): Change type of field 'count' to size_t.
56406         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56407         'unsigned int' where appropriate.
56408         * lib/printf-parse.h: Include sys/types.h.
56409         (char_directive): Change type of *arg_index fields to ssize_t.
56410         (char_directives): Change type of fields 'count', max_*_length to
56411         size_t.
56412         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56413         (SSIZE_MAX): Define fallback value.
56414         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56415         instead of 'int' where appropriate. Check a_allocated, d_allocated
56416         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56417         * lib/vasnprintf.c: Include xsize.h.
56418         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56419         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56420         overflow. Avoid wraparound when converting a width or precision from
56421         decimal to binary.
56422
56423 2003-11-16  Bruno Haible  <bruno@clisp.org>
56424
56425         Update from GNU gettext.
56426         * lib/printf-parse.c: Generalize to it can be compiled for wide
56427         strings.
56428         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56429         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56430         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56431         SNPRINTF): New macros.
56432         Don't include <alloca.h> if the file is used inside libintl.
56433         (local_wcslen): New function, for Solaris 2.5.1.
56434         (VASNPRINTF): Use it instead of wcslen.
56435
56436 2003-11-16  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/xsize.h (xmax): New function.
56439         (xsum, xsum3, xsum4): Declare as "pure" functions.
56440
56441 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56442
56443         * modules/xalloc (Files): Undo latest change, since xalloc.h
56444         no longer needs SIZE_MAX or PTRDIFF_MAX.
56445
56446 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56447
56448         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56449         gl_PTRDIFF_MAX.
56450
56451 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56452
56453         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56454         "return", to pacify some unknown compiler.  Problem reported
56455         by Joerg Schilling.
56456
56457 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56458
56459         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56460         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56461         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56462         heuristic is just as accurate as far as we know, and it removes a
56463         dependency on size_max.m4 and ptrdiff_max.m4.
56464
56465 2003-11-11  Bruno Haible  <bruno@clisp.org>
56466
56467         * modules/xsize (Files): Add m4/size_max.m4.
56468         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56469
56470 2003-11-11  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/size_max.m4: New file.
56473         * m4/ptrdiff_max.m4: New file.
56474         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56475         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56476         (gl_XALLOC): Invoke it.
56477
56478 2003-11-11  Bruno Haible  <bruno@clisp.org>
56479
56480         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56481         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56482         defined.
56483
56484 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56485
56486         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56487         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56488         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56489         From Bruno Haible.
56490         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56491         not (size_t) -1, since it's defined here.
56492
56493 2003-11-09  Karl Berry  <karl@gnu.org>
56494
56495         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56496
56497 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56498
56499         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56500         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56501         Reject sizes of exactly SIZE_MAX bytes.
56502         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56503         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56504
56505 2003-11-05  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56508         SIZE_MAX defined in <limits.h> on Solaris.
56509
56510 2003-11-04  Jim Meyering  <jim@meyering.net>
56511
56512         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56513         variable names, rather than @VAR@.
56514         * modules/poll: Likewise.
56515
56516 2003-11-04  Bruno Haible  <bruno@clisp.org>
56517
56518         * modules/xsize: New file.
56519         * modules/linebreak: Depend on xsize.
56520         * MODULES.html.sh (func_all_modules): Add xsize.
56521
56522 2003-11-04  Bruno Haible  <bruno@clisp.org>
56523
56524         * m4/xsize.m4: New file.
56525
56526 2003-11-04  Bruno Haible  <bruno@clisp.org>
56527
56528         * lib/xsize.h: New file.
56529         * lib/linebreak.c: Include xsize.h.
56530         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56531         argument for overflow.
56532         Suggested by Paul Eggert.
56533
56534 2003-11-03  Karl Berry  <karl@gnu.org>
56535
56536         * config/config.{guess,sub}: update from config.
56537
56538 2003-11-03  Jim Meyering  <jim@meyering.net>
56539
56540         * modules/userspec (lib_SOURCES): Add userspec.h.
56541         (Include): Add "userspec.h".
56542         Improve description.
56543
56544 2003-11-03  Jim Meyering  <jim@meyering.net>
56545
56546         * lib/userspec.c: Include "userspec.h".
56547         * lib/userspec.h: New file.
56548
56549 2003-11-03  Bruno Haible  <bruno@clisp.org>
56550
56551         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56552
56553 2003-11-03  Bruno Haible  <bruno@clisp.org>
56554
56555         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56556         available, to avoid (extremely rare) race condition.
56557         Suggested by Paul Eggert.
56558
56559 2003-11-02  Karl Berry  <karl@gnu.org>
56560
56561         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56562
56563 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56564
56565         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56566         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56567         (read_filesystem_list): Set and use me_type_malloced.
56568         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56569         whatever the type happens to be), for brevity and consistency.
56570         Check for size calculation overflow on Alphas running OSF/1.
56571
56572 2003-10-31  Jim Meyering  <jim@meyering.net>
56573
56574         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56575
56576         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56577
56578 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56579             Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56582         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56583
56584 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56587         netbsd*-gnu*.  Suggested by Robert Millan.
56588
56589 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56590
56591         * modules/group-member: Depend on stdbool.
56592
56593 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56594
56595         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56596
56597 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56598
56599         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56600         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56601         after the 'gnu' in these cases.  This fixes some bugs in the
56602         previous change, and is based on suggestions by Robert Millan.
56603
56604 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56605
56606         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56607         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56608         no longer needed.
56609         * lib/quotearg.c (quotearg_n_options): Use it.
56610         * lib/group-member.c: Include <stdbool.h>.
56611         (free_group_info): Arg is now const *; don't free arg.
56612         (get_group_info): Now returns bool and accepts struct group_info *,
56613         rather than returning a malloc'ed struct group_info *.
56614         All uses changed.  Check for overflow in internal size calculation.
56615
56616         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56617         rather than xmalloc/xrealloc.
56618         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56619         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56620         conformance bug: the old code used a pointer after freeing the
56621         storage that it addressed.
56622         * lib/hash.c (hash_initialize): Simplify the code by using
56623         xalloc_oversized rather than doing it by hand.
56624         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56625         the buffer preserved.  Use free and xmalloc instead.
56626         * lib/quotearg.c (quotearg_n_options): Likewise.
56627         Use a simpler test for size overflow.  Don't use xalloc_oversized
56628         because unsigned int might be wider than size_t (!); this suggests
56629         that we should switch from unsigned int to size_t for slot numbers.
56630
56631 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56632
56633         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56634         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56635         NetBSD kernels.  Requested by Richard Stallman.
56636
56637 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56638
56639         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56640         to allocate the returned structure.  Do not allocate a subarray,
56641         as x2nrealloc will do that.
56642         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56643         instead of xnrealloc.
56644         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56645
56646 2003-10-27  Bruno Haible  <bruno@clisp.org>
56647
56648         * lib/stdbool_.h: Better support for BeOS.
56649
56650 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56651
56652         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56653         now uses inline.
56654
56655 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56656
56657         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56658         callers that want to do their own size-overflow checking.  Include
56659         <stdbool.h>, since xalloc_oversized returns bool.
56660         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56661         to use xalloc_oversized.
56662
56663         Add two functions x2realloc, x2nrealloc, for programs that grow
56664         arrays dynamically by doubling their sizes.
56665         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56666         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56667         New functions.
56668
56669         Port to C99 semantics for 'inline' of external functions.
56670         Bug reported by Bruno Haible.
56671         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56672         with the old contents of xnmalloc.
56673         (xnmalloc, xmalloc): Use it.
56674         (xnrealloc_inline): New static inline function,
56675         with the old contents of xnrealloc.
56676         (xnrealloc, xrealloc): Use it.
56677
56678         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56679         that.
56680
56681 2003-10-26  Karl Berry  <karl@gnu.org>
56682
56683         * config/srclist.txt (COPYING.DOC): no longer available from
56684         /gd/gnuorg; don't know where the ultimate source is.
56685
56686 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56687
56688         Fix several address-calculation bugs in the hash modules,
56689         plus some minor code cleanup.
56690
56691         * lib/hash.h: Include <stdbool.h>, for bool.
56692         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56693         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56694         hash_get_n_entries, hash_get_max_bucket_length,
56695         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56696         hash_rehash): Use size_t rather than unsigned.
56697         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56698         hash_get_n_buckets_used, hash_get_n_entries,
56699         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56700         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56701         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56702         Likewise.
56703         (SIZE_MAX): Define if not defined.
56704         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56705         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56706         hash_print):
56707         Use const * when possible.
56708         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56709         (check_tuning): Fix bug: if tuning parameters were very close to
56710         0 or 1, rounding errors could have caused subscript violations.
56711         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56712         (hash_initialize): Add 'fail:' label
56713         to free table and return NULL, and use it to simplify code.
56714         Use calloc rather than clearing the storage ourself.
56715         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56716         buffer size calculations.
56717         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56718         Include <stddef.h>, for size_t.
56719         * lib/hash-pjw.c (hash_pjw): Likewise.
56720         Switch to method described by Bruno Haible.
56721         Include <limits.h>, for CHAR_BIT.
56722         (SIZE_BITS): New macro.
56723
56724 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56725
56726         * m4/getline.m4 (AM_FUNC_GETLINE):
56727         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56728         hosts.  Problem reported by Derek Robert Price in
56729         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56730         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56731         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56732
56733 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56734
56735         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56736         ceiling the allocation at NMAX bytes rather than silently
56737         discarding input bytes before NMAX is reached.  This makes
56738         a difference only if NMAX exceeds SIZE_MAX / 2.
56739
56740         * lib/obstack.c: Merge from glibc.
56741         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56742         Add libc_hidden_def (_obstack_newchunk).
56743         (_obstack_free) [! defined _LIBC]: Remove.
56744         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56745         a clone of the function body.
56746         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56747         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56748
56749         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56750         glibc.
56751         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56752         arg to memcpy.
56753
56754         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56755         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56756         Don't use lvalue casts, as GCC plans to remove support for them
56757         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56758         was also present in the non-GCC version, indicating that this
56759         code had always been buggy and had never been widely used.
56760         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56761         Use the fast variant of each macro, rather than copying the
56762         definiens of the fast variant; that way, we'll be more likely to
56763         catch future bugs in the fast variants.
56764
56765 2003-10-20  Bruno Haible  <bruno@clisp.org>
56766
56767         * modules/wait-process: New file.
56768         * MODULES.html.sh (func_all_modules): Add wait-process.
56769
56770 2003-10-20  Bruno Haible  <bruno@clisp.org>
56771
56772         * m4/wait-process.m4: New file.
56773
56774 2003-10-20  Bruno Haible  <bruno@clisp.org>
56775
56776         * lib/wait-process.h: New file, from GNU gettext.
56777         * lib/wait-process.c: New file, from GNU gettext.
56778
56779 2003-10-19  Jim Meyering  <jim@meyering.net>
56780
56781         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56782         HPUX 10.20.
56783
56784 2003-10-18  Karl Berry  <karl@gnu.org>
56785
56786         * config/config.guess: update from config.
56787
56788 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56789
56790         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56791         (getgroups): First arg is int, not size_t.
56792         Don't let 'free' mangle errno.
56793
56794 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56795
56796         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56797
56798 2003-10-16  Karl Berry  <karl@gnu.org>
56799
56800         * config/config.{guess,sub}: update from config.
56801
56802 2003-10-16  Jim Meyering  <jim@meyering.net>
56803
56804         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56805         memcpy.
56806
56807 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56808
56809         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56810         (SIZE_MAX): Remove.
56811         (new_exclude, add_exclude_file): Initial size no longer needs to
56812         be a power of 2.
56813         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56814         our own address arithmetic overflow checking.
56815
56816         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56817         (fnmatch): Do not alloca more than 2000 wide characters;
56818         instead, use malloc for large buffers.
56819         Check for address arithmetic overflow, and return -1
56820         with errno set to ENOMEM in that case.
56821         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56822         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56823         instead, return -1.  Check for address arithmetic overflow.
56824
56825 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56826
56827         Handle invalid suffixes and overflow independently, so that
56828         callers can treat them independently as needed.  Fix some bugs in
56829         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56830         suffix for a human-readable blocksize.  The major caller-visible
56831         change is the addition of a new
56832         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56833         that both overflow and suffix chars were found.
56834
56835         * lib/human.c (humblock): Don't check separately for invalid suffix
56836         char; that is xstrtoumax's job (now that its bug is fixed).
56837         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56838         INTMAX_MAX]: New macros.
56839         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56840         TYPE_MAXIMUM): New macros.
56841         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56842         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56843         if overflow occurs, as it's what __strtol does and it's more useful
56844         in practice.
56845         (__xstrtol): If __strtol reports some error other than ERANGE,
56846         reflect it to the caller as LONGINT_INVALID.  If it reports
56847         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56848         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56849         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56850         value.
56851         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56852         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56853         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56854         [defined UINTMAX_MAX]: New macros.
56855
56856 2003-10-14  Bruno Haible  <bruno@clisp.org>
56857
56858         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56859
56860 2003-10-14  Bruno Haible  <bruno@clisp.org>
56861
56862         * m4/sig_atomic_t: New file, from GNU gettext.
56863         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56864
56865 2003-10-14  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56868         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56869         Also use volatile where needed.
56870
56871 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56872
56873         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56874         Change maintainer from Bruno Haible to 'all'.
56875
56876 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56877
56878         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56879
56880 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56881
56882         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56883         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56884         and define in terms of the other primitives.
56885         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56886         (SIZE_MAX): Define if not already defined.
56887         (array_size_overflow): New function.
56888         (xalloc_die): Abort instead of exiting if 'error' returns.
56889         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56890         (xmalloc, xrealloc): Use them.
56891         (xcalloc): Check for address arithmetic overflow.
56892         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56893         a bit faster than strcpy.
56894
56895 2003-10-10  Simon Josefsson  <jas@extundo.com>
56896
56897         * modules/argp (Depends-on): Add restrict and strcase.
56898
56899 2003-10-10  Simon Josefsson  <jas@extundo.com>
56900
56901         * m4/argp.m4: Add AC_C_INLINE.
56902
56903 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56904
56905         Merge getpass from libc, plus a few fixes.
56906
56907         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56908         Include <stdbool.h>.
56909         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56910         __fsetlocking to empty.
56911         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56912         do include <bits/libc-lock.h>.
56913         Do not include <fcntl.h>; not needed.
56914         [_LIBC]: Include <wchar.h>.
56915         (NOTCANCEL_MODE): New macro.
56916         (flockfile, funlockfile) [_LIBC]: New macros.
56917         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56918         [!_LIBC]: New macros.
56919         (call_fclose): New function.
56920         (getpass): Use it.  Save tty stream separately; this simplifies the
56921         code and makes it more reliable if stdin happens to equal stdout.
56922         Invoke __fsetlocking on tty.
56923         Handle thread cancellation if needed.
56924         Namespace cleanup (use __tcgetattr, __getline).
56925         Use bool for Booleans.
56926         [USE_IN_LIBIO]: Handle wide streams.
56927         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56928         stream might go where.
56929
56930         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56931         doesn't have to include <stdio.h> before us.
56932         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56933         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56934         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56935         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56936         if not declared, so that we can use getpass.c code from libc without
56937         rewriting it.
56938         (flockfile, ftrylockfile, funlockfile): New macros.
56939
56940 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56941
56942         * modules/getpass: Depend on stdbool.
56943
56944 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56945
56946         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56947
56948 2003-10-07  Karl Berry  <karl@gnu.org>
56949
56950         * config/config.{guess,sub}: update from config.
56951
56952 2003-10-06  Jim Meyering  <jim@meyering.net>
56953             Bruno Haible  <bruno@clisp.org>
56954
56955         This lets translators provide better translations for the
56956         "Written by ..." part of --version output.
56957         * lib/version-etc.h: Include stdarg.h.
56958         (version_etc_copyright): Declare as readonly.
56959         (version_etc): Make this function variadic with a NULL-terminated list
56960         of author name strings.
56961         (version_etc_va): New declaration.
56962         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56963         (version_etc_copyright): Declare as readonly.
56964         (version_etc_va): New function. Provide a different translatable string
56965         for each possible number of authors < 10. Abbreviate when there are 10
56966         authors or more.
56967         (version_etc): Make this function variadic. Call version_etc_va.
56968         Suggestion from Gary V. Vaughan.
56969
56970         * lib/long-options.h (parse_long_options): Change prototype: the
56971         authors string is moved to the end and becomes variadic.
56972         * lib/long-options.c: Include stdarg.h.
56973         (parse_long_options): Make this function variadic, too.
56974         Call version_etc_va, not version_etc.
56975
56976 2003-10-06  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/version-etc-2: Remove file.
56979         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56980
56981 2003-10-06  Bruno Haible  <bruno@clisp.org>
56982
56983         * modules/fatal-signal: New file.
56984         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56985
56986 2003-10-06  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/fatal-signal.m4: New file.
56989         * m4/signalblocking.m4: New file, from GNU gettext.
56990
56991 2003-10-06  Bruno Haible  <bruno@clisp.org>
56992
56993         * lib/version-etc-2.h: Remove file.
56994         * lib/version-etc-2.c: Remove file.
56995
56996 2003-10-06  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/fatal-signal.h: New file, from GNU gettext.
56999         * lib/fatal-signal.c: New file, from GNU gettext.
57000
57001 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57002
57003         * README: Rework advice for preventing empty .o files.
57004         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57005         not <sys/types.h>.
57006
57007 2003-10-04  Karl Berry  <karl@gnu.org>
57008
57009         * lib/argp*: update from libc.
57010
57011 2003-10-04  Karl Berry  <karl@gnu.org>
57012
57013         * config/config.{guess,sub}: update from config.
57014
57015 2003-10-02  Bruno Haible  <bruno@clisp.org>
57016
57017         * modules/lchown (Include): Add lchown.h.
57018         * modules/time_r (Include): Use "..." syntax.
57019         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57020
57021 2003-10-01  Simon Josefsson  <jas@extundo.com>
57022
57023         * MODULES.html.sh (func_all_modules): Move gethostname from section
57024         'based on' to section 'lacking' POSIX:2001.
57025
57026 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57027
57028         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57029         to output mode on the same stream.
57030
57031 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57032
57033         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57034         Fix arg typo in previous patch.
57035
57036 2003-09-28  Jim Meyering  <jim@meyering.net>
57037
57038         * lib/error.c: Correct cpp indentation.
57039
57040 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57041
57042         * modules/free: New file.
57043
57044 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57045
57046         * m4/free.m4: New file.
57047
57048 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57049
57050         * lib/minmax.h (MIN, MAX)
57051         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57052         Omit the special code that used __typeof__, since we worry that
57053         it could be more trouble than it's worth.  See:
57054         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57055         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57056
57057         * lib/free.c: New file.
57058
57059 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57060
57061         Trivial fixes to Makefile.am parts of module listings.
57062         * modules/strstr: Append strstr.h to lib_SOURCES.
57063         * modules/strcase: Likewise, for strcase.h.
57064
57065 2003-09-27  Karl Berry  <karl@gnu.org>
57066
57067         * config/mkinstalldirs: update from automake.
57068
57069 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57070
57071         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57072         (error_tail): Do not loop, reallocating temporary buffer, since
57073         the output cannot contain more wide characters than the input
57074         contains bytes, the size must be big enough already.  This avoids
57075         one potential size overflow calculation.  Check for size overflow
57076         when calculating temporary buffer size.  Free temporary buffer
57077         when done, if it was allocated with malloc; this plugs a memory
57078         leak.  Remove casts from void * to pointers, that are no longer
57079         needed now that we're assuming C89 or better.
57080
57081         Merge error changes from glibc.
57082
57083         * lib/error.c, error.h: Update copyright notice header to match glibc.
57084         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57085         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57086         Disable cancellation while printing error.
57087         * lib/error.h: Prepend __ to parameter names.
57088
57089 2003-09-26  Jim Meyering  <jim@meyering.net>
57090
57091         * lib/error.c (error_tail): Move some declarations
57092         into inner scope where the local variables are used.
57093
57094 2003-09-26  Bruno Haible  <bruno@clisp.org>
57095
57096         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57097         stpncpy().
57098         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57099
57100 2003-09-26  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57103         (stpncpy): Define as alias for gnu_stpncpy.
57104         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57105
57106 2003-09-25  Simon Josefsson  <jas@extundo.com>
57107
57108         * lib/xgetdomainname.h: New file.
57109         * lib/xgetdomainname.c: New file.
57110
57111 2003-09-25  Simon Josefsson  <jas@extundo.com>
57112             Bruno Haible  <bruno@clisp.org>
57113
57114         * modules/getdomainname: New file.
57115         * modules/xgetdomainname: New file.
57116         * MODULES.html.sh (func_all_modules): Add getdomainname,
57117         xgetdomainname.
57118
57119 2003-09-25  Simon Josefsson  <jas@extundo.com>
57120             Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/getdomainname.m4: New file.
57123
57124 2003-09-25  Simon Josefsson  <jas@extundo.com>
57125             Bruno Haible  <bruno@clisp.org>
57126
57127         * lib/getdomainname.h: New file.
57128         * lib/getdomainname.c: New file.
57129
57130 2003-09-25  Karl Berry  <karl@gnu.org>
57131
57132         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57133
57134 2003-09-25  Karl Berry  <karl@gnu.org>
57135
57136         * config/install-sh: update from automake.
57137
57138 2003-09-25  Bruno Haible  <bruno@clisp.org>
57139
57140         * modules/version-etc-2: New file, from modules/version-etc with
57141         modifications.
57142         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57143
57144 2003-09-25  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57147         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57148
57149 2003-09-24  Simon Josefsson  <jas@extundo.com>
57150
57151         * modules/xgethostname: Add xgethostname.h.
57152
57153 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57154
57155         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57156         the buffer associated with the argument.  Bug reported by
57157         Simon Josefsson.
57158
57159 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57160
57161         * README: Document assumptions that 'int' is at least 32 bits
57162         wide, that integer arithmetic is 2's complement without overflow,
57163         that there are no holes in integer values, that adding sizes of
57164         two nonoverlapping objects can't overflow, and that all-bits-zero
57165         yields scalar zero.  Fix spelling and capitalization typos.
57166
57167 2003-09-19  Karl Berry  <karl@gnu.org>
57168
57169         * lib/argp.h: update from libc.
57170
57171 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57172
57173         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57174         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57175         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57176
57177 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57178
57179         * gnulib-tool: Use "test -h", not "test -L", for portability
57180         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57181         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57182         (sed_extract_prog): Issue s commands one-by-one, rather than
57183         using \| in one s command.
57184
57185 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57186
57187         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57188         input error, instead of returning NULL the next time we are called
57189         (and therefore losing track of errno).
57190
57191 2003-09-16  Bruno Haible  <bruno@clisp.org>
57192
57193         * gnulib-tool (func_create_testdir): Warn about duplicated
57194         dependencies.
57195
57196 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57197
57198         * modules/argmatch, modules/fatal, modules/obstack,
57199         modules/xalloc, modules/xgethostname: Sort dependencies by
57200         importance, not alphabetically.
57201
57202 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57203
57204         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57205         fails, so that the caller gets the proper errno.
57206
57207         * lib/readutmp.c (read_utmp): Likewise.
57208         Check for fstat error.  Close stream and free storage
57209         when failing.
57210
57211 2003-09-14  Karl Berry  <karl@gnu.org>
57212
57213         * config/srclist.txt (strdup.c): disable for c89 changes.
57214
57215 2003-09-14  Jim Meyering  <jim@meyering.net>
57216
57217         * lib/getloadavg.c: Correct cpp indentation.
57218         * lib/strdup.c: Likewise.
57219         * lib/vasnprintf.c: Likewise.
57220
57221 2003-09-14  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/fwriteerror: New file.
57224         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57225
57226 2003-09-14  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/fwriteerror.h: New file.
57229         * lib/fwriteerror.c: New file.
57230
57231 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57232
57233         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57234         modules/xgethostname, modules/xalloc: Depend on exit.
57235
57236 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57237
57238         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57239
57240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57241         and AC_MINIX, too, so that their extensions are available.
57242
57243         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57244         This macro has been superseded by gl_BACKUPFILE.
57245
57246         More patches to assume C89 or better.
57247
57248         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57249
57250         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57251         unconditionally.
57252         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57253         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57254         Include <string.h>, <stdlib.h> unconditionally.
57255         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57256         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57257         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57258         headers or for string.h.
57259         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57260         or strtoul.
57261
57262         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57263         headers.
57264         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57265         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57266         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57267         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57269         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57270         memcpy, memset.
57271         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57272         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57273         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57274         strtol.
57275         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57276         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57277         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57278         strtoul.
57279
57280 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57281
57282         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57283         * lib/obstack.c [!defined _LIBC]: Likewise.
57284         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57285         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57286         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57287
57288         More changes to assume C89 or better.
57289
57290         * lib/error.c (error_tail): Assume vprintf.
57291
57292         * lib/argmatch.c (getenv): Remove decl.
57293         * lib/progreloc.c (get_full_program_name): Define via prototype.
57294         * lib/setenv.c (clearenv): Likewise.
57295         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57296         needed.
57297         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57298         (malloc, memcpy): Remove decls.
57299         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57300         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57301         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57302         (memcpy): Remove macro.
57303         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57304         (__P): Remove.  All uses removed.
57305         (PTR): Remove.  All uses changed to void *.
57306         (CHAR_BIT, NULL): Remove.
57307         (spaces, zeros, memset_space, memset_zero)
57308         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57309         Remove.
57310         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57311         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57312         Define with prototype.
57313         Remove now-unnecessary prototype decl.
57314         (extra_args_spec): Assume ANSI C.  All uses changed.
57315         (extra_args_spec_iso): Remove.
57316         (my_strftime, emacs_strftimeu): Define via prototype.
57317         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57318         unconditionally.
57319         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57320         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57321         (strtoul, strtol): Remove decls.
57322         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57323         LONG_MAX): Remove.
57324         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57325         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57326         (LOCALE_PARAM_PROTO): New macro.
57327         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57328         (INTERNAL (strtol), strtol): Define with a prototype.
57329         (PARAMS): Remove.  All uses removed.
57330         * lib/tempname.c: Include <string.h> unconditionally.
57331         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57332         * lib/xgethostname.c (main): Define with a prototype.
57333         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57334         Include <stdlib.h> unconditionally.
57335         (calloc, malloc, realloc, free): Remove decls.
57336         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57337         Include <stdlib.h> unconditionally.  Sort include file names.
57338         (strtod): Remove.
57339         (xstrtod): Define with a prototype.
57340         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57341         (strtol, strtoul): Remove decls.
57342
57343 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57344
57345         More patches to assume C89 or better.
57346         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57347         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57348         string.h, memchr, STDC_HEADERS.
57349
57350 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57351
57352         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57353         Include <stdlib.h>, <string.h> unconditionally.
57354         Remove now-unnecessary cast to char *.
57355         * lib/strnlen.c: Include <string.h> unconditionally.
57356         * lib/yesno.c (yesno): Define with a prototype.
57357
57358 2003-09-11  Bruno Haible  <bruno@clisp.org>
57359
57360         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57361
57362 2003-09-10  Jim Meyering  <jim@meyering.net>
57363
57364         * lib/error.c: Correct indentation of cpp directives.
57365
57366 2003-09-10  Bruno Haible  <bruno@clisp.org>
57367
57368         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57369         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57370         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57371         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57372         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57373         <stdlib.h> and <string.h> checks.
57374         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57375         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57376
57377 2003-09-10  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/strcspn.c: Include <string.h> unconditionally.
57380         * lib/strpbrk.c: Include <string.h> unconditionally.
57381         * lib/strstr.c: Include <string.h> unconditionally.
57382         * lib/unicodeio.c: Include <string.h> unconditionally.
57383         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57384         * lib/unsetenv.c: Likewise.
57385         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57386         * lib/yesno.c: Include <stdlib.h> unconditionally.
57387         (rpmatch): Add prototype.
57388
57389 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57390
57391         More patches to assume C89 or better.
57392         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57393         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57394         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57395         or for string.h.
57396         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57397         stdlib.h.
57398         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57399         C headers.
57400         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57401         string.h.
57402         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57403         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57404         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57405         or for string.h.
57406         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57407         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57408         C headers.
57409         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57410         memcpy.
57411         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57412         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57413         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57414         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57415         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57416         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57417         string.h, free.
57418         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57419         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57420         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57421         C headers, or for string.h.
57422         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57423         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57424         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57425         headers, memory.h, stdlib.h, string.h, strings.h.
57426         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57427         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57428         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57429         strchr.
57430         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57431         headers, memory.h, string.h.
57432         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57433         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57434         free.
57435         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57436         headers.
57437         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57438         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57439         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57440         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57441         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57442
57443 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57444
57445         More K&R removal.
57446
57447         * lib/acosl.c (main): Use a prototype.
57448         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57449         tanl.c: Likewise.
57450
57451         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57452
57453         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57454         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57455         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57456         with a prototype.
57457         * lib/getopt.c (const): Remove macro.
57458         Include <string.h> unconditionally.
57459         (my_index): Remove; all uses changed to strchr.
57460         (strlen): Remove decl.
57461         (exchange): Remove forward decl; no longer needed.
57462         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57463         Define with prototype.
57464         * lib/getopt1.c (const): Remove macro.
57465         (getopt_long, getopt_long_only, main): Define with prototype.
57466
57467         * lib/getugroups.c: Include <string.h> unconditionally.
57468
57469         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57470         (getusershell, setusershell, endusershell, readname, main):
57471         Define with prototypes.
57472
57473         * lib/group-member.c: Include group-member.h first.
57474         Include <stdlib.h> unconditionally.
57475
57476         * lib/hard-locale.c: Include hard-locale.h first.
57477         Include <stdlib.h>, <string.h> unconditionally.
57478
57479         * lib/hash.c (free, malloc): Remove decls.
57480         Include <stdlib.h> unconditionally.
57481
57482         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57483         (getenv): Do not declare.
57484
57485         * lib/idcache.c: Include <string.h> unconditionally.
57486
57487         * lib/long-options.c: Include long-options.h first, to test interface.
57488         Include <stdlib.h> unconditionally.
57489
57490         * lib/makepath.c: Include makepath.h first, to test interface.
57491         Include <stdlib.h> and <string.h> unconditionally.
57492
57493         * lib/linebuffer.c: Include <stdlib.h>.
57494         (free): Remove decl.
57495
57496         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57497         stddef.h. rpl_malloc returns void *, not char *.
57498         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57499         prototype.
57500
57501         * lib/md5.h: Include <limits.h> unconditionally.
57502         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57503         (__P): Remove; all uses removed.
57504         * lib/md5.c: Include "md5.h" first.
57505         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57506         md5_buffer, md5_process_bytes, md5_process_block):
57507         Define with prototypes.
57508         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57509         * lib/sha.c: Include "sha.h" first.
57510         Include <stdlib.h>, <string.h> unconditionally.
57511
57512         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57513         * lib/memcmp.c (__ptr_t): Likewise.
57514         * lib/memrchr.c (__ptr_t): Likewise.
57515         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57516         Include <string.h> unconditionally.
57517         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57518         * lib/memchr.c: Include <stdlib.h> unconditionally.
57519         * lib/memchr.c (LONG_MAX): Remove.
57520         * lib/memrchr.c (LONG_MAX): Likewise.
57521         * lib/memchr.c (__memchr): Define via a prototype.
57522         * lib/memrchr.c (__memrchr): Likewise.
57523         * lib/memcmp.c (__P): Remove, and remove all uses.
57524         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57525         Remove forward decls; no longer needed.
57526         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57527         Use types required by C89 in prototype.
57528
57529         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57530         * lib/savedir.c: Likewise.
57531         * lib/mkdir.c (free): Remove decl.
57532         * lib/rmdir.c (rmdir): Define with a prototype.
57533         * lib/savedir.c: Include savedir.h first, to test interface.
57534
57535         * lib/mktime.c (STDC_HEADERS): Remove.
57536         Include <stdlib.h>, <string.h> unconditionally.
57537
57538         * lib/modechange.c: Include <stdlib.h> unconditionally.
57539         (malloc): Remove decl.
57540
57541         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57542         (free): Remove decl.
57543
57544         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57545         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57546         (This type really should be intptr_t, but that's a C99ism.)
57547         (_obstack_memcpy): Remove: all uses changed to memcpy.
57548         Include <string.h> unconditionally.
57549         (struct obstack): Assume __STDC__ for types of members
57550         chunkfun, freefun, extra_arg.
57551         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57552         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57553         obstack_begin, obstack_specify_allocation,
57554         obstack_specify_allocation_with_arg, obstack_chunkfun,
57555         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57556         Remove unprototyped decls and the macros that use them.
57557         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57558         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57559         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57560         (defined __STDC__ && __STDC__)]:
57561         Remove nonprototyped code.
57562         Include <stdlib.h> unconditionally.
57563         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57564         _obstack_allocated_p, _obstack_free, obstack_free,
57565         _obstack_memory_used, print_and_abort):
57566         Define using prototypes.
57567         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57568         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57569         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57570         obstack_next_free, obstack_object_size, obstack_room) [0]:
57571         Remove unused, unprototyped code.
57572
57573         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57574
57575         * lib/physmem.c (physmem_total, physmem_available, main): Define
57576         with prototypes.
57577
57578         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57579         (main): Define with a prototype.
57580
57581         * lib/posixver.c (getenv): Remove decl.
57582
57583         * lib/putenv.c (malloc): Returns void *, not char *.
57584         Include <string.h> unconditionally.
57585         (strchr, memcpy, NULL): Do not define.
57586
57587         * lib/readtokens.c: Include readtokens.h first, to test interface.
57588         Include <stdlib.h>, <string.h> unconditionally.
57589         (init_tokenbuffer): Define with a prototype.
57590
57591         * lib/regex.c (PARAMS): Remove.  All uses removed.
57592         All uses of _RE_ARGS removed, too.
57593         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57594         unconditionally.
57595         (bzero): Assume memset exists.
57596         (memcmp, memcpy, NULL): Remove.
57597         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57598         char, or assignments to local vars of type signed char.
57599         (init_syntax_once, PREFIX(extract_number_and_incr),
57600         PREFIX(print_partial_compiled_pattern),
57601         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57602         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57603         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57604         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57605         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57606         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57607         wcs_compile_range, byte_compile_range, truncate_wchar,
57608         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57609         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57610         count_mbs_length, wcs_re_match_2_internal,
57611         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57612         PREFIX(alt_match_null_string_p),
57613         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57614         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57615         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57616         now-unnecessary declaration, if any.
57617         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57618         regcomp, regexec):
57619         Remove now-unnecessary casts among pointer types.
57620         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57621
57622         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57623         (free): Remove decl.
57624
57625         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57626
57627         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57628         (free): Remove decl.
57629
57630         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57631         * lib/xgetcwd.c: Likewise.
57632
57633         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57634         (free): Remove decl.
57635
57636         * lib/strchrnul.c (strchrnul): Define with a prototype.
57637         Fix bug: c_in was not converted to char before searching.
57638
57639         The following changes are not K&R related:
57640
57641         * lib/group-member.h: Include <sys/types.h>, so that this file is
57642         self-contained.
57643         * lib/makepath.h: Likewise.
57644
57645         * lib/getusershell.c (readname, default_index, line_size, readname):
57646         Use size_t, not int, for sizes.
57647         (readname): If the size overflows, report an error instead of
57648         looping forever.
57649
57650 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57651
57652         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57653         libc.
57654
57655 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57656
57657         * README: New section: portability guidelines.
57658
57659 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57660
57661         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57662         C89 spec.
57663
57664 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57665
57666         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57667
57668 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57669
57670         Assume C89 or better; remove K&R cruft.
57671         A few of these changes were first proposed by Derek Robert Price
57672         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57673
57674         * lib/addext.c: Include <string.h> unconditionally.
57675         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57676         Don't declare getenv or malloc.
57677
57678         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57679         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57680         (NULL): Remove.
57681         (find_stack_direction, alloca): Use prototypes.
57682
57683         * lib/atexit.c (atexit): Define using a prototype.
57684
57685         * lib/basename.c, dirname.c, stripslash.c:
57686         Include <string.h> unconditionally.
57687
57688         * lib/bcopy.c: Include <stddef.h>.
57689         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57690
57691         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57692
57693         * lib/error.h (error, error_at_line, error_print_progname)
57694         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57695         * lib/error.c: Include error.h first, to check interface.
57696         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57697         (VA_START): Remove; all uses changeed to va_start.
57698         (exit, strerror): Remove decls.
57699         (error_print_progname): Prototype uncondionally.
57700         Don't include <errno.h>; no longer needed.
57701         (private_strerror): Remove.
57702         (error_tail): Always define.
57703         (error, error_at_line): Assume C89 or better; always use prototypes.
57704         * lib/fatal.c: Include "fatal.h" first, to test interface.
57705         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57706         (VA_START): Remove; all uses changed to va_start.
57707         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57708         this case.
57709         (exit): Remove decl.
57710         (fatal): Prototype unconditionally.  Assume va_start works.
57711         Abort at end, to pacify gcc.
57712
57713         * lib/euidaccess.c (main): Define with a prototype.
57714
57715         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57716
57717         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57718
57719         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57720         prototypes.
57721         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57722         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57723         (getenv): Remove decl.
57724         (fnmatch): Define using a prototype.
57725         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57726         (FCT): Define using a prototype.
57727
57728         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57729
57730         * lib/gethostname.c: Include <stddef.h>.
57731         (gethostname): Define with prototype.  Length is size_t, not int.
57732
57733 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57734
57735         Assume C89 or better; remove K&R cruft.
57736         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57737         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57738         string.h, getenv, malloc.
57739         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57740         headers.
57741         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57742         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57743         do not check for strerror.
57744         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57745         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57746         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57747         do not check for doprnt or vprintf.
57748         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57749         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57750
57751 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57752
57753         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57754         getversion.c should have been removed then, but was accidentally
57755         preserved.
57756
57757         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57758         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57759
57760 2003-09-08  Karl Berry  <karl@gnu.org>
57761
57762         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57763                 config, forget about prep.
57764
57765         * config/depcomp, missing: update from automake.
57766
57767 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57768
57769         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57770         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57771
57772 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57773
57774         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57775         copy_tm_result.  Bug reported by Simon Josefsson in
57776         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57777
57778 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57779
57780         * m4/time_r.m4: New file.
57781         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57782         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57783         is. Check for timegm declaration.
57784         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57785         Do not check for gmtime_r.
57786         Replace mktime if __mktime_internal does not exist and if mktime
57787         hasn't been replaced already.
57788
57789 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57790
57791         * lib/time_r.c, lib/time_r.h: New files.
57792
57793         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57794         __localtime_r.
57795         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57796         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57797
57798         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57799         __gmtime_r.
57800         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57801         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57802         Include <time_r.h>.
57803
57804         * lib/timegm.c: Switch to glibc implementation, with the following
57805         changes:
57806         [defined HAVE_CONFIG_H]: Include <config.h>.
57807         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57808         (__mktime_internal) [!defined _LIBC]: New decl.
57809         (__gmtime_r) [!defined _LIBC]: New macro and function.
57810         (timegm): Use a prototype, since gnulib assumes C89.
57811         Do not bother declaring tmp to be const, as it's not really usefu.
57812         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57813         (timegm): Declare only if HAVE_DECL_TIMEGM.
57814
57815 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57816
57817         * MODULES.html.sh (func_all_modules): Add time_r.
57818         * modules/time_r: New file.
57819         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57820         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57821
57822 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57823
57824         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57825         Bug reported by Lute Kamstra in
57826         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57827
57828         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57829         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57830         course with correspondingly smaller numbers for tomorrow and
57831         yesterday.  From Tadayoshi Funaba.  Originally installed into
57832         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57833         coreutils merge?).
57834
57835 2003-08-31  Simon Josefsson  <jas@extundo.com>
57836
57837         * modules/timegm: New file.
57838         * MODULES.html.sh (func_all_modules): Add timegm.
57839
57840 2003-08-31  Simon Josefsson  <jas@extundo.com>
57841
57842         * m4/timegm.m4: New file.
57843
57844 2003-08-31  Simon Josefsson  <jas@extundo.com>
57845
57846         * lib/timegm.h: New file.
57847         * lib/timegm.c: New file.  Based on
57848         wget-1.8.2/src/http.c:mktime_from_utc.
57849
57850 2003-08-31  Karl Berry  <karl@gnu.org>
57851
57852         * lib/argp.h: update from libc.
57853
57854 2003-08-28  Bruno Haible  <bruno@clisp.org>
57855
57856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57857         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57858         followed by '#define fnmatch fnmatch_posix' gives an error.
57859
57860 2003-08-28  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57863         warning on QNX, which defines O_BINARY to 000000.
57864
57865 2003-08-27  Jim Meyering  <jim@meyering.net>
57866
57867         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57868         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57869         would fail after 32.  Reported by Danny Levinson.  Details here:
57870         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57871
57872 2003-08-24  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57875         MSVC7 <stdio.h> is included later.
57876
57877 2003-08-22  Simon Josefsson  <jas@extundo.com>
57878
57879         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57880
57881 2003-08-20  Karl Berry  <karl@gnu.org>
57882
57883         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57884
57885 2003-08-20  Bruno Haible  <bruno@clisp.org>
57886
57887         * modules/progname: New file.
57888         * MODULES.html.sh (func_all_modules): Add progname.
57889
57890 2003-08-20  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/progname.h: New file, from GNU gettext.
57893         * lib/progname.c: New file, from GNU gettext.
57894         * lib/progreloc.c: New file, from GNU gettext.
57895
57896 2003-08-19  Jim Meyering  <jim@meyering.net>
57897
57898         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57899         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57900
57901 2003-08-19  Bruno Haible  <bruno@clisp.org>
57902
57903         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57904         more.
57905
57906 2003-08-19  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/xstrdup.c: Assume <string.h> exists.
57909
57910 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57911
57912         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57913         in makefile rules.
57914
57915 2003-08-18  Jim Meyering  <jim@meyering.net>
57916
57917         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57918         * m4/lib-ld.m4: Likewise.
57919
57920 2003-08-18  Jim Meyering  <jim@meyering.net>
57921
57922         * lib/setenv.h: Indent nested cpp directive.
57923         * lib/vasnprintf.c: Remove trailing blanks.
57924
57925 2003-08-17  Simon Josefsson  <jas@extundo.com>
57926
57927         * modules/xstrndup: New file.
57928         * MODULES.html.sh (func_all_modules): Add xstrndup.
57929
57930 2003-08-17  Simon Josefsson  <jas@extundo.com>
57931
57932         * modules/argp: Fix autoconf macro name. Add more dependencies.
57933
57934 2003-08-17  Simon Josefsson  <jas@extundo.com>
57935
57936         * m4/xstrndup.m4: New file.
57937
57938 2003-08-17  Simon Josefsson  <jas@extundo.com>
57939
57940         * m4/argp.m4: New file.
57941
57942 2003-08-17  Simon Josefsson  <jas@extundo.com>
57943             Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/xstrndup.h: New file.
57946         * lib/xstrndup.c: New file.
57947
57948 2003-08-17  Bruno Haible  <bruno@clisp.org>
57949
57950         * modules/strndup (Files, Include): Add lib/strndup.h.
57951
57952 2003-08-17  Bruno Haible  <bruno@clisp.org>
57953
57954         * modules/euidaccess (Files): Add lib/euidaccess.h.
57955
57956 2003-08-17  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/strndup.h: New file.
57959
57960 2003-08-17  Bruno Haible  <bruno@clisp.org>
57961
57962         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57963         like AC_GNU_SOURCE.
57964         * modules/extensions (configure.ac): Comment out the invocation of
57965         gl_USE_SYSTEM_EXTENSIONS.
57966
57967 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57968
57969         Merges from coreutils, etc.
57970         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57971         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57972         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57973         fixing a typo.
57974         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57975         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57976
57977 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57978
57979         Document merge from coreutils.
57980         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57981         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57982         * modules/utime: Add m4/utimes-null.m4.
57983
57984 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57985
57986         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57987         space, undoing this 2003-08-12 change:
57988         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57989
57990 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57991
57992         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57993         strtoul.c from libc, undoing this 2003-08-12 change:
57994         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57995
57996 2003-08-16  Jim Meyering  <jim@meyering.net>
57997
57998         Merges from coreutils.
57999         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58000         prefix.  Adjust cache variables similarly.  Create 500 rather than
58001         just 300 files, to exercise bug on Darwin6.5, too.
58002         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58003         $missing_dir.
58004         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58005         AM_SYS_POSIX_TERMIOS.
58006         Reported by mkc@mathdogs.com.
58007         Also change use of $am_cv_sys_posix_termios
58008         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58009         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58010         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58011         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58012         in /proc/mounts until it finds one with matching device number.  This
58013         is unnecessary when the FILE argument *is* a mount point.  No stat call
58014         is necessary in that case.  So, disable the statvfs-testing code on
58015         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58016         as RedHat bug# 84846.
58017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58018         to 1MB, so as not to render systems with no stack size limit (e.g.,
58019         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58020         Include <unistd.h>.  On some systems,
58021         it is required for the definition of _SC_PAGESIZE.
58022
58023 2003-08-16  Jim Meyering  <jim@meyering.net>
58024
58025         Merge from coreutils.
58026         * lib/xstrtoimax.c: #else #if -> #elif.
58027         * lib/xstrtoumax.c: Likewise.
58028
58029 2003-08-16  Jim Meyering  <jim@meyering.net>
58030
58031         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58032         * m4/utimes.m4: Removed.
58033         * m4/utimes-null.m4: Renamed from utimes.m4.
58034
58035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58036         to 1MB, so as not to render systems with no stack size limit (e.g.,
58037         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58038         Include <unistd.h>.  On some systems,
58039         it is required for the definition of _SC_PAGESIZE.
58040
58041 2003-08-16  Jim Meyering  <jim@meyering.net>
58042         and Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         Merges from coreutils, etc.
58045
58046         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58047         using the latest version from cvs.  This avoids problems with #line
58048         directives using a vendor (Sun) compiler.
58049         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58050         Don't set GETGROUPS_LIB here; now it's
58051         done via getgroups.m4's wrapper function.
58052         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58053         rather than just in sh-util/configure.in, so that the
58054         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58055         same.
58056         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58057         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58058         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58059         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58060         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58061         Remove code that is now done by the newly-required macros.
58062         Append $(EXEEXT) to DF_PROG.
58063         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58064         Do not invoke or require the following here,
58065         since prereq.m4 or some gnulib .m4 now does this for us:
58066         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58067         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58068         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58069         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58070         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58071         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58072         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58073         AC_FUNC_OBSTACK.
58074         Do not replace the following functions, as this is now the job
58075         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58076         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58077         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58078         atexit getpass, strdup, getpagesize.
58079         Replace 'raise'.
58080         Do not check for the following functions, as this is now the job
58081         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58082         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58083         setregid.
58084         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58085         Check for sys/sysctl.h.
58086         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58087         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58088         of checking for ssize_t ourselves.
58089
58090         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58091         Require every macro that gnulib/modules/* suggests for us.
58092         (jm_PREREQ_ADDEXT): New macro.
58093         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58094         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58095
58096         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58097         (gl_PHYSMEM): Use it.
58098         Also check for `table' function.
58099         Check for new headers and functions.
58100         Add check for sys/sysmp.h.
58101         With suggestions from Kaveh Ghazi.
58102         Ignore headers that are present but cannot be compiled.  This
58103         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58104         C 5.4.
58105
58106 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58107
58108         Document merge from coreutils.
58109         * modules/userspec: Depend on posixver.
58110         * modules/strftime: Depend on tzset.
58111
58112 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58113
58114         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58115         rather than tab, after '#' in shell-script copyright notices.
58116         Suggested by Bruno Haible.
58117
58118 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58119
58120         * config/srclist-update: Use three spaces, rather than tab, after '#'
58121         in shell-script copyright notices.  Suggested by Bruno Haible.
58122         Remove unnecessary parenthesization in regular expression.
58123
58124 2003-08-15  Jim Meyering  <jim@meyering.net>
58125
58126         Merge from coreutils.
58127         * lib/xgethostname.c: Include <stdlib.h>.
58128         (xghostname): Don't exit for anything other than memory-related
58129         failure; just return NULL.
58130         * lib/userspec.c: Include "posixver.h".
58131         (parse_user_spec): Accept `.' as a separator only
58132         in pre-POSIX-200112 mode.
58133         * lib/strtoimax.c: Use #elif rather than #else #if.
58134         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58135         Remove function, now that we can rely on a working tzset function.
58136         [!_LIBC]: Ensure that the required autoconf test has been run.
58137         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58138         Use underlying_strftime for %r.
58139         * lib/sha.c: Merge in some clean-up and optimization changes from
58140         glibc.
58141         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58142         Ensure that it is a multiple of 64.
58143         Rearrange loop exit tests so as to avoid performing an
58144         additional fread after encountering an error or EOF.
58145         * lib/realloc.c: Update copyright date.
58146
58147 2003-08-15  Jim Meyering  <jim@meyering.net>
58148         and Paul Eggert  <eggert@twinsun.com>
58149
58150         Merge from coreutils.
58151         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58152         member but strut utmpx does not.  Needed for AIX 4.3.3.
58153         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58154
58155 2003-08-15  Jim Meyering  <jim@meyering.net>
58156         and Paul Eggert  <eggert@cs.ucla.edu>
58157
58158         Merges from coreutils, etc.
58159         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58160         Require gl_FUNC_TZSET_CLOBBER.
58161         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58162         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58163         members.
58164
58165 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58166
58167         Help the merge from coreutils.
58168         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58169         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58170         * m4/tzset.m4: Use it too.
58171
58172 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58173
58174         * modules/tzset: New file.
58175
58176 2003-08-14  Jim Meyering  <jim@meyering.net>
58177
58178         Merges from coreutils.
58179         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58180         variable names, rather than @FNMATCH_H@.
58181         * modules/alloca: Likewise for $(ALLOCA_H).
58182
58183         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58184         the three copies of the literal target, `fnmatch.h'.
58185         * modules/alloca (alloca.h): Likewise.
58186
58187 2003-08-14  Jim Meyering  <jim@meyering.net>
58188
58189         Merge from coreutils.
58190         * m4/tzset.m4: New file.
58191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58192         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58193         otherwise, AIX 5.1 systems would end up using the latter.
58194         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58195         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58196         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58197         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58198
58199 2003-08-14  Jim Meyering  <jim@meyering.net>
58200
58201         Merge from coreutils.
58202         * lib/obstack.h: Whitespace changes.
58203         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58204         and xcalloc return values.
58205         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58206         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58207         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58208         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58209         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58210         error from mntctl.
58211         Use mntctl's return value to drive the entry-processing loop, since
58212         we can't rely on the value of the vmt_length member in the last
58213         entry.  On some systems doing so could result in exhausting
58214         virtual memory.  Based in part on a patch from Mike Jetzer.
58215
58216 2003-08-14  Jim Meyering  <jim@meyering.net>
58217         and Paul Eggert  <eggert@twinsun.com>
58218
58219         Merges from coreutils, plus other fixes.
58220         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58221         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58222         for credits and details.  Thanks to Kaveh Ghazi for helping
58223         to keep these files in sync.
58224         (ARRAY_SIZE): Define it.
58225         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58226         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58227         (memcasecmp): Don't assume size_t fits in unsigned int.
58228         Remove casts and duplicate code.
58229         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58230         (memcpy): Remove definition.
58231         Merge in some clean-up and optimization changes from glibc.
58232         [BLOCKSIZE]: Move definition to top of file.
58233         Ensure that it is a multiple of 64.
58234         Rearrange loop exit tests so as to avoid performing an
58235         additional fread after encountering an error or EOF.
58236         * lib/md5.h (md5_uintptr): Define.
58237         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58238         return to the initial working directory.  Preserve errno
58239         for caller.
58240         * lib/idcache.c: Include "xalloc.h".
58241         (xmalloc, xrealloc): Remove decls.
58242         (getuser): Remove casts no longer required in C89.
58243         * lib/human.c: Include stdio.h, for sprintf.
58244         * lib/group-member.c: Include "xalloc.h".
58245         (xmalloc, xrealloc): Remove decls.
58246         (get_group_info): Remove casts no longer required in C89.
58247         * lib/getusershell.c (readname): Remove casts no longer required in
58248         C89.
58249         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58250         * lib/getline.c: Whitespace fix, from coreutils.
58251
58252 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58253
58254         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58255         Check for isascii.
58256
58257         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58258         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58259         Undo previous (whitespace-only) change.
58260
58261 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58262
58263         * lib/exclude.c: Include <ctype.h>
58264         (IN_CTYPE_DOMAIN): New macro.
58265         (is_space): New fn.
58266         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58267         and empty lines.
58268
58269         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58270         Undo previous (whitespace-only) change.
58271
58272 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58273
58274         * config/srclist-update: Change update back to the old behavior,
58275         leaving whitespace alone.  Use one 'sed' command rather than a
58276         pipeline.
58277         (fixlicense): Now a variable, not a function.
58278         (remove_trailing_blanks): Remove.
58279         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58280         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58281         Undo previous (whitespace-only) change.
58282
58283 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58284
58285         Merge from coreutils.
58286         * modules/euidaccess: Add lib_SOURCES, include for new
58287         file euidaccess.h
58288
58289 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58290
58291         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58292         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58293         Normalize leading white space and remove trailing white space.
58294
58295         Merge from coreutils
58296         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58297
58298         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58299         0.12.1.  These files are now being upgraded automatically by
58300         ../config/srclist-update.
58301
58302 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58303
58304         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58305         Normalize leading white space and remove trailing white space.
58306         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58307         notice, as per ../config/srclist-update.
58308
58309         Merge from coreutils.
58310         * lib/euidaccess.h: New file.
58311         * lib/euidaccess.c: Include it.
58312         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58313         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58314         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58315
58316 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58317
58318         * config/srclist-update: Add copyright notice.
58319         (remove_id_lines, remove_trailing_blanks): New constants.
58320         (fixfile): Use them to normalize spacing a bit in copied files.
58321         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58322         Normalize leading white space and remove trailing white space.
58323
58324         * config/texinfo.tex: Sync with texinfo.
58325
58326         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58327         strtoul.c from libc, to merge coreutils whitespace changes.
58328
58329         * config/srclist.txt: Get the following m4 files from gettext:
58330         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58331         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58332         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58333         wint_t.m4.
58334
58335 2003-08-12  Karl Berry  <karl@gnu.org>
58336
58337         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58338         been made.
58339
58340 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58341
58342         * modules/gnu-source, m4/gnu-source.m4:
58343         Remove; we're assuming Autoconf 2.54 or later now.
58344         Suggested by Bruno Haible.
58345         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58346
58347 2003-08-11  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58350
58351 2003-08-11  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58354         (vasnprintf): Use it instead of wcslen.
58355
58356 2003-08-11  Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58359         value to ensure that _Bool promotes to int. Use #define for _Bool when
58360         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58361
58362 2003-08-10  Karl Berry  <karl@gnu.org>
58363
58364         * lib/regex.h: update from libc (whitespace fix).
58365
58366 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58367
58368         Merge some files from coreutils.  These changes were
58369         originally made by Jim Meyering.
58370         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58371         many older Unixes require this.
58372         * lib/alloca.c (alloca): Remove cast to argument of free;
58373         no longer needed in C89.
58374         * lib/alloca_.h, regex.h: Fix white space to match
58375         what GNU indent does.
58376
58377 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58378
58379         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58380         apparently Emacs's Unicode mode got confused before my 2003-08-05
58381         checkin.
58382
58383 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58384
58385         * m4/extensions.m4: New file.
58386         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58387         Require gl_USE_SYSTEM_EXTENSIONS.
58388         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58389         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58390
58391 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58392
58393         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58394         * modules/extensions, modules/gnu-source: New files.
58395         * modules/timespec, modules/unlocked-io: Depend on extensions.
58396
58397 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58398
58399         * modules/restrict: New file.
58400         * MODULES.html.sh (func_all_modules): Add restrict.
58401         * modules/regex: Depend on restrict.
58402
58403 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58404
58405         * m4/restrict.m4: New file.
58406         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58407
58408 2003-08-07  Bruno Haible  <bruno@clisp.org>
58409
58410         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58411         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58412
58413 2003-08-07  Bruno Haible  <bruno@clisp.org>
58414
58415         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58416         makes the module 'getndelim2' compatible with the module 'getline'.
58417
58418 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58419
58420         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58421         byte with "\201" to avoid glitches when editing that source file
58422         with multi-gnome-terminal.
58423
58424 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58425
58426         * lib/bumpalloc.h: Remove.
58427
58428 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58429
58430         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58431         * modules/bumpalloc: Remove.
58432
58433 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58434
58435         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58436         GNU coding style.
58437
58438         Merge from coreutils.
58439         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58440         1. From glibc.
58441         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58442         from Karl Berry, implemented by Jim Meyering.
58443         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58444         from Dmitry V. Levin.
58445         Remove anachronistic cast of xrealloc.
58446         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58447         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58448         type. Otherwise, it wouldn't compile with at least /bin/cc on
58449         ymp-cray-unicos9.0.2.X.
58450         Combine two mostly-identical uses of alloca into one.
58451         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58452
58453 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58454
58455         [From Emacs.]
58456
58457         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58458         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58459         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58460         obsolete NLIST_NAME_UNION.
58461         [__GNU__]: Undef BSD and FSCALE.
58462         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58463
58464 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58465
58466         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58467         an enum type, so that it's guaranteed to promote to int.  See:
58468         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58469
58470 2003-08-03  Karl Berry  <karl@gnu.org>
58471
58472         * config/depcomp: update from automake.
58473
58474 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58475
58476         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58477         (strerror): Don't assume that a printable int fits in 14 bytes.
58478
58479 2003-07-31  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/getpass-gnu: New file.
58482         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58483
58484 2003-07-31  Bruno Haible  <bruno@clisp.org>
58485
58486         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58487
58488 2003-07-24  Karl Berry  <karl@gnu.org>
58489
58490         * config/missing: update from automake.
58491
58492 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58493             Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58496         * lib/getline.c (getline, getdelim): Likewise.
58497         Remove _GNU_SOURCE define; now it's defined in config.h through
58498         m4/getline.m4.
58499
58500 2003-07-23  Karl Berry  <karl@gnu.org>
58501
58502         * config/config.sub: update from prep.
58503
58504 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58505
58506         * modules/xalloc (Depends-on): Add exitfail.
58507         * modules/xmemcoll: Likewise.
58508
58509 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58510
58511         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58512         over-parenthesization in macros.
58513
58514         Sync with coreutils.
58515
58516         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58517         required by C99.
58518
58519         Use `exit_failure' for xalloc and xmemcoll instead of their own
58520         private exit-failure variables.
58521         * lib/xalloc.h (xalloc_exit_failure): Remove.
58522         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58523         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58524         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58525         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58526         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58527
58528 2003-07-20  Jim Meyering  <jim@meyering.net>
58529
58530         * modules/closeout (Depends-on): Add exitfail.
58531         Suggestion from Bruno Haible.
58532
58533 2003-07-19  Karl Berry  <karl@gnu.org>
58534
58535         * config/config.sub: update from prep.
58536
58537 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58538
58539         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58540         Remove.
58541         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58542         to test that it can stand by itself.  Include "exitfail.h".
58543         Clients should set exit_failure instead.
58544         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58545
58546 2003-07-18  Bruno Haible  <bruno@clisp.org>
58547
58548         * modules/getndelim2: New file.
58549         * modules/getline: Share files with module getndelim2.
58550         * modules/getnline: Depend on getndelim2 instead of sharing files with
58551         it. Add getnline.c to lib_SOURCES.
58552         * MODULES.html.sh (func_all_modules): Add getndelim2.
58553
58554 2003-07-18  Bruno Haible  <bruno@clisp.org>
58555
58556         * m4/getndelim2.m4: New file.
58557         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58558         invoke gl_PREREQ_GETNDELIM2.
58559         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58560         gl_PREREQ_GETNDELIM2.
58561         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58562         gl_GETNDELIM2.
58563
58564 2003-07-18  Bruno Haible  <bruno@clisp.org>
58565
58566         * lib/getndelim2.h: New file.
58567         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58568         getndelim2.h.
58569         (getndelim2): Make non-static. Change return type to ssize_t.
58570         * lib/getline.h: Change argument names.
58571         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58572         * lib/getnline.c: Include getndelim2.h.
58573
58574 2003-07-18  Andreas Schwab  <schwab@suse.de>
58575
58576         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58577
58578 2003-07-17  Karl Berry  <karl@gnu.org>
58579
58580         * config/config.sub: update from prep.
58581
58582 2003-07-17  Bruno Haible  <bruno@clisp.org>
58583
58584         * modules/getnline: New file.
58585         * modules/getline: Add lib/getndelim2.c to source file list.
58586         * MODULES.html.sh (func_all_modules): Add getnline.
58587
58588 2003-07-17  Bruno Haible  <bruno@clisp.org>
58589
58590         * m4/getnline.m4: New file.
58591
58592 2003-07-17  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/Makefile.am.in: Remove file.
58595         * m4/Makefile.am: Remove file.
58596         * m4/Makefile.in: Remove file.
58597
58598 2003-07-17  Bruno Haible  <bruno@clisp.org>
58599
58600         * lib/getnline.h: New file.
58601         * lib/getnline.c: New file.
58602         * lib/getndelim2.c: New file, extracted from getline.c.
58603         (getndelim2): Renamed from getdelim2, with added nmax argument.
58604         * lib/getline.c: Include getndelim2.c.
58605         (getdelim2): Moved out to getndelim2.c.
58606         (getline, getdelim): Update.
58607
58608 2003-07-17  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/Makefile.am: Remove file.
58611         * lib/Makefile.in: Remove file.
58612
58613 2003-07-17  Bruno Haible  <bruno@clisp.org>
58614
58615         * configure.in: Remove file.
58616         * Makefile.in: Remove file.
58617
58618 2003-07-17  Bruno Haible  <bruno@clisp.org>
58619
58620         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58621
58622 2003-07-16  Karl Berry  <karl@gnu.org>
58623
58624         * config/srclist-update: was running fixlicense twice, which caused
58625                 texinfo.tex to be nullified for some reason.  Simplify,
58626                 $gplsrc is no longer needed as far as I can see?
58627
58628 2003-07-16  Jim Meyering  <jim@meyering.net>
58629
58630         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58631
58632 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58633
58634         * config/srclist.txt: Get the following files from gettext-runtime/intl
58635         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58636         ref-del.sin.  From Bruno Haible.
58637         * config/srclist-update (fixfile): Change grep pattern again, since the
58638         previous fix didn't work (there was another trailing $).  Use
58639         '[$]' to escape the $s.
58640
58641 2003-07-15  Karl Berry  <karl@gnu.org>
58642
58643         * lib/vasnprintf.c: update from gettext.
58644
58645 2003-07-15  Karl Berry  <karl@gnu.org>
58646
58647         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58648         gets expanded when surrounded by '$'.
58649
58650 2003-07-15  Jim Meyering  <jim@meyering.net>
58651
58652         * modules/save-cwd: Don't depend on error.  From Derek Price.
58653
58654 2003-07-15  Jim Meyering  <jim@meyering.net>
58655
58656         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58657
58658 2003-07-14  Simon Josefsson  <jas@extundo.com>
58659
58660         * modules/mempcpy: New file.
58661         * MODULES.html.sh (func_all_modules): Add mempcpy.
58662
58663 2003-07-14  Simon Josefsson  <jas@extundo.com>
58664
58665         * m4/mempcpy.m4: New file.
58666
58667 2003-07-14  Simon Josefsson  <jas@extundo.com>
58668
58669         * lib/mempcpy.h: New file.
58670         * lib/mempcpy.c: New file.
58671
58672 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58673
58674         * modules/getdate, modules/posixtm: Depend on mktime.
58675
58676 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58677
58678         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58679         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58680         unicodeio.c, unicodeio.h, unlocked-io.h:
58681         Switch from LGPL to GPL.
58682
58683 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58684
58685         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58686         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58687         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58688         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58689         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58690         updated automatically by ../config/srclist-update.  This changes
58691         their license from LPGL to GPL.
58692
58693 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58694
58695         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58696         assumed to refer to the root of the most recent stable gettext version.
58697         * config/srclistvars.sh: Add defaults for eggert.
58698         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58699         Match "This program" as well as "The program".  This is needed
58700         for gettext.
58701
58702 2003-07-14  Jim Meyering  <jim@meyering.net>
58703
58704         Don't emit diagnostics.  Let callers do that.
58705         * lib/save-cwd.c: Don't include "error.h".
58706         (save_cwd): Don't call error.  Ensure that errno is valid
58707         when returning nonzero.
58708
58709         * lib/save-cwd.h (restore_cwd): Update prototype.
58710         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58711         Simplify.  Don't call error upon failure.  Let callers do that.
58712         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58713         when auditing is enabled.  But don't bother updating the #if.
58714
58715 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58716
58717         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58718         it breaks C++ compilation.
58719         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58720
58721 2003-07-10  Simon Josefsson  <jas@extundo.com>
58722
58723         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58724
58725 2003-07-10  Jim Meyering  <jim@meyering.net>
58726
58727         * m4/clock_time.m4: Remove trailing blank.
58728         * m4/intmax_t.m4: Likewise.
58729
58730 2003-07-10  Jim Meyering  <jim@meyering.net>
58731
58732         * lib/vasnprintf.c: Remove trailing blanks.
58733         Make cpp indentation consistent.
58734
58735 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58736
58737         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58738         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58739         Switch from LGPL to GPL.
58740
58741 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58742
58743         * config/srclist.txt: Sort sublists.  Add
58744         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58745         that differ from gnulib for one reason or another; we'd like this list
58746         to be smaller but for now let's document what we have.
58747
58748 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58749
58750         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58751         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58752         and sweeter "eval x=$x".
58753         * config/srclist.txt: Get lib/argp* from glibc.
58754
58755 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58756
58757         * lib/mktime.c: Fix some boundary cases and remove need for floating
58758         point.
58759
58760         Issue a compile-time diagnostic if time_t is floating point, or if
58761         two's complement arithmetic is not in effect, or if arithmetic
58762         right shift does not propagate the sign.  These assumptions were
58763         all in the original code but they weren't checked.
58764
58765         (TIME_T_MIDPOINT, verify): New macros.
58766         (__isleap): Remove; it has integer overflow problems.
58767         (leapyear): New function, without those problems.
58768         (ydhms_tm_diff): Remove; splitting into two parts.
58769         (ydhms_diff): New function, containing the arithmetic part of
58770         the old ydhms_tm_diff function.  Issue a compile-time
58771         diagnostic if we are not using C99 integer division.
58772         Avoid casts when possible.
58773         (guess_time_tm): New function, containing the checking part of
58774         the old ydhms_tm_diff function.  Return the new value, rather than
58775         the difference between it and the old.  Accept a new argument T
58776         so that *T specifies the old value.  Check for overflow in the result.
58777
58778         (__mktime_internal): Use a time_t offset, not a long int offset.
58779         This undoes the 2003-06-04 change, which is no longer needed now
58780         that we have better overflow checking.
58781         (localtime_offset): Likewise.
58782
58783         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58784         and long are 64-bit but int is only 32-bit.
58785         (ydhms_diff): Use long int to store year1 and yday1.
58786         Issue a compile-time diagnostic if long int is not wide enough.
58787
58788         (__mktime_internal): Use long int to store adjusted year and yday.
58789         Use plain C rather than preprocessor commands, if that doesn't
58790         affect efficiency.
58791         Check for overflow (and try to repair) after each probe
58792         rather than checking only at the very end.  This avoids some bugs
58793         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58794         does not equal GMT offset at maximum time).
58795         Use integer to check for overflow rather than floating point; this
58796         is more portable to non-IEEE hosts, and is a tad faster.
58797         When we detect that we are oscillating between two values,
58798         don't check whether tm_isdst has the requested value, since
58799         we already know the answer.  When tm_isdst has the wrong value,
58800         use a different heuristic to find the right one, based on the
58801         extreme values actually observed in practice in tz2003a,
58802         rather than the (overly optimistic) "previous 3 calendar quarters".
58803
58804         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58805         "T const" to accommodate glibc style.
58806         (check_result): Use less-confusing report format.  "long" -> "long int.
58807         (main): Likewise.
58808         Don't loop if the iteration overflows time_t.
58809         Allow a negative step in the iteration.
58810
58811 2003-07-06  Karl Berry  <karl@gnu.org>
58812
58813         * config/depcomp: update from automake.
58814         * config/config.sub: update from prep.
58815
58816 2003-07-03  Karl Berry  <karl@gnu.org>
58817
58818         * config/config.guess: update from prep.
58819
58820 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58821
58822         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58823         xreadlink.c now includes it unconditionally.
58824
58825 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58826
58827         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58828         having it depend on HAVE_SYS_TYPES_H.
58829
58830 2003-07-01  Bruno Haible  <bruno@clisp.org>
58831
58832         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58833         <sys/types.h> should be sufficient.
58834         Reported by Paul Eggert.
58835
58836 2003-06-26  Karl Berry  <karl@gnu.org>
58837
58838         * config/depcomp: update from automake.
58839
58840 2003-06-26  Bruno Haible  <bruno@clisp.org>
58841
58842         * modules/human: Depend on module stdbool.
58843
58844 2003-06-25  Bruno Haible  <bruno@clisp.org>
58845
58846         * modules/readlink: New file.
58847         * modules/xreadlink: Depend on it.
58848         * MODULES.html.sh (func_all_modules): Add readlink.
58849
58850 2003-06-25  Bruno Haible  <bruno@clisp.org>
58851
58852         * m4/readlink.m4: New file.
58853
58854 2003-06-25  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/readlink.c: New file.
58857
58858 2003-06-22  Karl Berry  <karl@gnu.org>
58859
58860         * config/srclist.txt: update mkinstalldirs from automake.
58861         * config/mkinstalldirs: update.
58862
58863 2003-06-22  Bruno Haible  <bruno@clisp.org>
58864
58865         Portability to mingw32.
58866         * m4/ssize_t.m4: New file, from GNU gettext.
58867         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58868         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58869
58870 2003-06-22  Bruno Haible  <bruno@clisp.org>
58871
58872         * modules/safe-read: Add m4/ssize_t.m4.
58873         * modules/xreadlink: Add m4/ssize_t.m4.
58874
58875 2003-06-20  Bruno Haible  <bruno@clisp.org>
58876
58877         Assume C89, so PARAMS isn't needed.
58878         * lib/unicodeio.h (PARAMS): Remove.
58879         * lib/unicodeio.c: Don't use PARAMS.
58880
58881 2003-06-18  Karl Berry  <karl@gnu.org>
58882
58883         * config/config.{guess,sub}: update from prep.
58884
58885 2003-06-18  Jim Meyering  <jim@meyering.net>
58886
58887         Merge changes from coreutils.
58888         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58889         Remove explicit declarations of xmalloc and realloc.
58890         Include xalloc.h.
58891         (read_utmp): Remove anachronistic cast of xmalloc.
58892
58893 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58894
58895         Assume C89, so PARAMS isn't needed.
58896         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58897         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58898         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58899         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58900         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58901         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58902         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58903         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58904         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58905         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58906         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58907         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58908         no longer needed. Anyway, config.h should always be included before any
58909         other file.
58910
58911 2003-06-11  Simon Josefsson  <jas@extundo.com>
58912
58913         * modules/sysexits: New file.
58914         * MODULES.html.sh (func_all_modules): Add sysexits.
58915
58916 2003-06-11  Simon Josefsson  <jas@extundo.com>
58917
58918         * lib/sysexit_.h: New file.
58919
58920 2003-06-11  Derek Price  <derek@ximbiot.com>
58921
58922         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58923         necessary.
58924
58925 2003-06-11  Bruno Haible  <bruno@clisp.org>
58926
58927         * m4/sysexits.m4: New file.
58928
58929 2003-06-10  Simon Josefsson  <jas@extundo.com>
58930
58931         * lib/argp.h: New file, from glibc.
58932         * lib/argp-ba.c: New file, from glibc.
58933         * lib/argp-eexst.c: New file, from glibc.
58934         * lib/argp-fmtstream.c: New file, from glibc.
58935         * lib/argp-fmtstream.h: New file, from glibc.
58936         * lib/argp-fs-xinl.c: New file, from glibc.
58937         * lib/argp-help.c: New file, from glibc.
58938         * lib/argp-namefrob.h: New file, from glibc.
58939         * lib/argp-parse.c: New file, from glibc.
58940         * lib/argp-pv.c: New file, from glibc.
58941         * lib/argp-pvh.c: New file, from glibc.
58942         * lib/argp-xinl.c: New file, from glibc.
58943
58944 2003-06-10  Simon Josefsson  <jas@extundo.com>
58945
58946         * modules/strchrnul: New file.
58947
58948 2003-06-10  Simon Josefsson  <jas@extundo.com>
58949
58950         * modules/argp: New file.
58951
58952 2003-06-10  Simon Josefsson  <jas@extundo.com>
58953
58954         * m4/strchrnul.m4: New file.
58955
58956 2003-06-10  Simon Josefsson  <jas@extundo.com>
58957
58958         * lib/strchrnul.h: New file.
58959         * lib/strchrnul.c: New file.
58960
58961 2003-06-10  Bruno Haible  <bruno@clisp.org>
58962
58963         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58964
58965 2003-06-07  Karl Berry  <karl@gnu.org>
58966
58967         * config/config.{guess,sub}: update from prep.
58968
58969 2003-06-07  Jim Meyering  <jim@meyering.net>
58970
58971         * modules/strtod: Use $(...) notation, not @...@ for
58972         AC_REPLACE'd variables.
58973         * modules/localcharset: Likewise.
58974
58975 2003-06-07  Jim Meyering  <jim@meyering.net>
58976
58977         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58978         in place of my name in the copyright comment.
58979         Remove definition and uses of __P.
58980
58981         From coreutils.
58982         * lib/stat.c: Don't declare xmalloc explicitly.
58983         Instead, include "xalloc.h".
58984         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58985         xrealloc, and xcalloc return values.
58986         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58987         Improve comment.
58988         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58989
58990 2003-06-07  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58993         avoid AC_CONFIG_LINKS.
58994         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58995         fnmatch.h, to avoid AC_CONFIG_LINKS.
58996         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58997
58998 2003-06-07  Bruno Haible  <bruno@clisp.org>
58999
59000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59001         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59002         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59003         directory.
59004         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59005         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59006         directory.
59007
59008 2003-06-06  Jim Meyering  <jim@meyering.net>
59009
59010         Merge from coreutils.
59011         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59012         Consolidate declarations and initializations of *_base* locals.
59013
59014         Merge from coreutils.
59015         This avoids a core dump on systems without GNU putenv,
59016         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59017         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59018         (unsetenv): New static function, from GNU libc.
59019         (rpl_putenv): Use it.
59020
59021         * lib/modechange.c: Remove trailing blanks.
59022
59023         Merge from coreutils.
59024         * lib/fsusage.c: Remove declaration of statfs.
59025         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59026
59027         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59028
59029 2003-06-06  Jim Meyering  <jim@meyering.net>
59030
59031         * lib/stdbool_.h: Renamed from stdbool.h.in.
59032
59033 2003-06-06  Jim Meyering  <jim@meyering.net>
59034             Bruno Haible  <bruno@clisp.org>
59035
59036         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59037         Adjust Makefile.am snippet not to redirect directly to target.
59038         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59039
59040 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59041
59042         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59043         mismatch, look in future quarters as well as past.  This fixes a
59044         bug when processing fall-backwards gaps immediately after a long
59045         period of daylight-saving time.
59046
59047         * lib/mktime.c: Assume freestanding C89 or better.
59048         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59049         (__P): Remove; not used.
59050         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59051         (mktime, not_equal_tm, print_tm, check_result,
59052         main): Use prototypes.  Use const * where appropriate.
59053         (main): Fix typo in testing code that uncovered by above changes.
59054         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59055
59056 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59057
59058         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59059         locale.h, localeconv.  This merges changes from coreutils.
59060
59061         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59062         It can be removed after the next Autoconf is released.
59063         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59064         needed.
59065
59066 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59067
59068         * lib/mktime.c: Fix Debian bug 177940
59069         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59070         (localtime_offset): Now long int, not time_t, because we want it
59071         to be guaranteed to be signed.  All uses changed.
59072         (__mktime_internal): If overflow would occur when adding offset,
59073         don't add it.
59074
59075         Merge 'human' changes from coreutils.  Rewrite to support
59076         locale-specific notations like thousands separators.
59077         * lib/human.c: Simplify authorship notice.
59078         Include human.h immediately after config.h.
59079         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59080         <limits.h>: Do not include, since human.h does.
59081         (SIZE_MAX, UINTMAX_MAX): New macros.
59082         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59083         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59084         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59085         (power_letter): Renamed from suffixes.
59086         (generate_suffix_backwards): Remove.
59087         (adjust_value): Now takes int style (because of human.h changes)
59088         and long double value (for greater precision on some platforms).
59089         (group_number): New function.
59090         (human_readable): Use it.  Use integer options, not enum.
59091         Put the options before the sizes in the arg list.
59092         Support all the new options.
59093         The old human_readable function has been removed;
59094         use inttostr.h instead.
59095         (human_readable, default_block_size, humblock):
59096         Use uintmax_t, not int, for block sizes.
59097         (human_readable_inexact, block_size_types): Remove.
59098         (block_size_opts): New constant.
59099         (human_options): Renamed from human_block_size, with new signature
59100         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59101         * lib/human.h: Add copyright and authorship notice.
59102         Include <limits.h> and <stdbool.h> unconditionally.
59103         (PARAMS): Remove.  All uses removed.
59104         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59105         (enum human_inexact_style): Remove tag; now a nameless enum.
59106         (human_floor, human_ceiling, human_round_to_even): Now have
59107         values 2, 0, 1 rather than -1, 1, 0.
59108         (human_group_digits, human_suppress_point_zero, human_autoscale,
59109         human_base_1024, human_SI, human_B): New constants.
59110         (human_readable_inexact, human_block_size): Remove.
59111         (human_readable): Size args are now uintmax_t, not int.
59112         (human_options): New decl.
59113
59114         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59115         unnecessary now that we assume C89 or better.  This change
59116         imported from coreutils.
59117
59118         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59119         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59120         in the 2003-05-30 sync from glibc.
59121
59122         .h files should stand alone, but we shouldn't include <sys/types.h>
59123         if we can get away with just <stddef.h>.
59124
59125         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59126         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59127         rather than <sys/types.h>, as we merely need size_t.
59128         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59129         to get size_t.
59130         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59131         Include <stdio.h>, to get FILE.
59132         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59133         memcasecmp.h has included <stddef.h> and all we need is size_t.
59134         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59135         our interface, instead of including <sys/types.h>
59136
59137 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59138
59139         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59140         now, as glibc mktime is buggy on non-glibc systems.
59141
59142 2003-06-03  Karl Berry  <karl@gnu.org>
59143
59144         * config/config.sub: update from prep.
59145
59146 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59147
59148         [from coreutils]
59149         Fix some minor time-related bugs with POSIX time arguments.
59150         Some valid time stamps were being rejected (notably -1, and
59151         time stamps before 1900 on 64-bit hosts).  And some invalid
59152         time stamps were being accepted, e.g. September 31.
59153
59154         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59155         that we can return (time_t) -1 successfully.
59156         * lib/posixtm.c: Likewise.
59157         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59158         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59159         (t): Remove static var.
59160         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59161         of static var.  All uses changed.
59162         (year): Do not reject years before 1900; they can occur with
59163         64-bit time_t.
59164         (posix_time_parse): Do not check for out-of-range components;
59165         that is now the caller's responsibility, since our checks were
59166         only approximations.
59167         (posixtime): Use mktime to check for out-of-range components,
59168         since it knows them exactly.
59169         If mktime returns (time_t) -1, check whether an error actually occurred
59170         by invoking localtime on -1.
59171         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59172         posixtime failures better.
59173         Improve the test data (in comments only).
59174
59175 2003-06-02  Karl Berry  <karl@gnu.org>
59176
59177         * config/mkinstalldirs (version): new variable.
59178         (--version): new option.
59179         (usage): improve message.
59180
59181 2003-05-30  Karl Berry  <karl@gnu.org>
59182
59183         * lib/mktime.c: update from libc.
59184
59185 2003-05-30  Bruno Haible  <bruno@clisp.org>
59186
59187         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59188         * config/config.rpath: Upgrade to gettext-0.12.1.
59189
59190 2003-05-30  Bruno Haible  <bruno@clisp.org>
59191
59192         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59193         * m4/nls.m4: New file, from gettext-0.12.1.
59194         * m4/po.m4: New file, from gettext-0.12.1.
59195         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59196
59197 2003-05-30  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59200         * lib/localcharset.h: Likewise.
59201         * lib/localcharset.c: Likewise.
59202
59203 2003-05-29  Karl Berry  <karl@gnu.org>
59204
59205         * config/config.rpath: update from gettext.
59206
59207 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59208
59209         Assume the headers required for C89 freestanding compilers.
59210         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59211         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59212         * m4/human.m4 (gl_HUMAN): Likewise.
59213         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59214         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59215         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59216         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59217         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59218         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59219
59220 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59221
59222         Assume the headers required for C89 freestanding compilers.
59223         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59224         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59225         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59226         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59227         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59228         define, since <limits.h> is guaranteed to do that.
59229         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59230         * lib/exclude.c: Include <stdbool.h> unconditionally.
59231         * lib/tempname.c: Include <stddef.h> unconditionally.
59232         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59233         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59234         <stddef.h> does that.
59235         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59236         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59237         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59238         needed.
59239         * lib/xstrtol.c: Likewise.
59240         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59241         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59242
59243         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59244         warnings on some platforms.
59245
59246         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59247         arbitrarily.
59248
59249 2003-05-26  Jim Meyering  <jim@meyering.net>
59250
59251         Merge in a change from coreutils:
59252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59253         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59254         that condition, rather than `-1' which is slightly misleading.
59255         Change the name of the cache variable to have the gl_ prefix.
59256         Prompted by a patch from Richard Dawe for DJGPP.
59257
59258 2003-05-24  Karl Berry  <karl@gnu.org>
59259
59260         * config/config.guess: update from prep.
59261
59262 2003-05-22  Karl Berry  <karl@gnu.org>
59263
59264         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59265
59266 2003-05-20  Karl Berry  <karl@gnu.org>
59267
59268         * config/config.guess: update from prep.
59269
59270 2003-05-18  Karl Berry  <karl@gnu.org>
59271
59272         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59273         might actually be set by the user.
59274
59275         * config/depcomp, install-sh, mdate-sh: update from automake.
59276
59277 2003-05-17  Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59280         invalid expansion for AC_EGREP_CPP.
59281         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59282         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59283         Suggested by Akim Demaille <akim@epita.fr> in
59284         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59285
59286 2003-05-12  Jim Meyering  <jim@meyering.net>
59287
59288         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59289         the space-padded-by-default conversion specifiers, %e, %k, %l.
59290
59291 2003-05-12  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59294         the string is longer than 4 KB.
59295
59296 2003-05-11  Karl Berry  <karl@gnu.org>
59297
59298         * config/config.{guess,sub}: update from prep.
59299
59300 2003-05-09  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/error: Add m4/strerror_r.m4 to file list.
59303
59304 2003-05-03  Bruno Haible  <bruno@clisp.org>
59305
59306         Upgrade to Unicode-4.0.
59307         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59308         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59309         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59310         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59311         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59312         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59313         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59314         Change width of U+E0100..U+E01EF from 1 to 0.
59315
59316 2003-04-25  Jim Meyering  <jim@meyering.net>
59317
59318         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59319         of type size_t, not int.
59320
59321 2003-04-25  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/copy-file.c: Include <stddef.h>, for size_t.
59324
59325 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59326
59327         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59328         code which expansion is under static control.  Patch imported from
59329         Akim Demaille's patch to Bison; see
59330         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59331
59332 2003-04-14  Bruno Haible  <bruno@clisp.org>
59333
59334         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59335
59336 2003-04-11  Jim Meyering  <jim@meyering.net>
59337
59338         Merge changes from Coreutils.
59339
59340         2003-03-22  Jim Meyering  <jim@meyering.net>
59341
59342         * lib/strftime.c (widen): Cast alloca return value to proper type.
59343
59344         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59345
59346         From GNU libc.
59347         * lib/strftime.c (my_strftime): Handle very large width
59348         specifications for numeric values correctly.  Improve checks for
59349         overflow.
59350
59351         2003-01-19  Jim Meyering  <jim@meyering.net>
59352
59353         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59354         definitions.
59355         (nl_get_alt_digit) [! defined my_strftime]: Define.
59356         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59357         _nl_get_alt_digit and _nl_get_walt_digit.
59358
59359         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59360         libc. These changes have no effect outside of _LIBC.
59361
59362 2003-04-10  Bruno Haible  <bruno@clisp.org>
59363
59364         * modules/findprog: New file.
59365         * MODULES.html.sh (func_all_modules): Add it.
59366
59367 2003-04-10  Bruno Haible  <bruno@clisp.org>
59368
59369         * m4/findprog.m4: New file.
59370         * m4/eaccess.m4: New file.
59371
59372 2003-04-10  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/findprog.h: New file, from GNU gettext.
59375         * lib/findprog.c: New file, from GNU gettext.
59376
59377 2003-04-05  Jim Meyering  <jim@meyering.net>
59378
59379         Merge changes from Coreutils.
59380
59381         * lib/exclude.h (PARAMS): Remove definition and uses.
59382         * lib/exclude.c: Remove uses of `PARAMS'.
59383
59384         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59385         Add test-cases for DOS filenames. Declare program_name.
59386         (main): Set up program_name.  Patch by Rich Dawe.
59387
59388         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59389         error from mntctl.
59390         Use mntctl's return value to drive the entry-processing loop, since
59391         we can't rely on the value of the vmt_length member in the last
59392         entry.  On some systems doing so could result in exhausting
59393         virtual memory.  Based in part on a patch from Mike Jetzer.
59394
59395 2003-04-04  Bruno Haible  <bruno@clisp.org>
59396
59397         * modules/linebreak: New file.
59398         * MODULES.html.sh (func_all_modules): Add it.
59399
59400 2003-04-04  Bruno Haible  <bruno@clisp.org>
59401
59402         * m4/linebreak.m4: New file.
59403
59404 2003-04-04  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/linebreak.h: New file, from GNU gettext.
59407         * lib/linebreak.c: New file, from GNU gettext with slight
59408         modifications.
59409         * lib/lbrkprop.h: New file, from GNU gettext.
59410
59411 2003-04-03  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/utf8-ucs4: New file.
59414         * modules/utf16-ucs4: New file.
59415         * modules/ucs4-utf8: New file.
59416         * modules/ucs4-utf16: New file.
59417         * MODULES.html.sh (func_all_modules): Add them.
59418
59419 2003-04-03  Bruno Haible  <bruno@clisp.org>
59420
59421         * m4/utf-ucs4.m4: New file.
59422         * m4/ucs4-utf.m4: New file.
59423
59424 2003-04-03  Bruno Haible  <bruno@clisp.org>
59425
59426         * lib/utf8-ucs4.h: New file, from GNU gettext.
59427         * lib/utf16-ucs4.h: New file, from GNU gettext.
59428         * lib/ucs4-utf8.h: New file, from GNU gettext.
59429         * lib/ucs4-utf16.h: New file, from GNU gettext.
59430
59431 2003-04-02  Bruno Haible  <bruno@clisp.org>
59432
59433         * modules/binary-io: New file.
59434         * MODULES.html.sh (func_all_modules): Add it.
59435
59436 2003-04-02  Bruno Haible  <bruno@clisp.org>
59437
59438         * lib/binary-io.h: New file, from GNU gettext.
59439
59440 2003-04-01  Bruno Haible  <bruno@clisp.org>
59441
59442         * modules/pathname: New file.
59443         * MODULES.html.sh (func_all_modules): Add it.
59444
59445 2003-04-01  Bruno Haible  <bruno@clisp.org>
59446
59447         * lib/pathname.h: New file, from GNU gettext.
59448         * lib/concatpath.c: New file, from GNU gettext.
59449
59450 2003-03-30  Bruno Haible  <bruno@clisp.org>
59451
59452         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59453
59454 2003-03-30  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59457         function chown() doesn't exist.
59458
59459 2003-03-28  Bruno Haible  <bruno@clisp.org>
59460
59461         * modules/copy-file: New file.
59462         * MODULES.html.sh (func_all_modules): Add it.
59463
59464 2003-03-28  Bruno Haible  <bruno@clisp.org>
59465
59466         * m4/copy-file.m4: New file.
59467
59468 2003-03-28  Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/copy-file.h: New file, from GNU gettext.
59471         * lib/copy-file.c: New file, from GNU gettext.
59472
59473 2003-03-18  Jim Meyering  <jim@meyering.net>
59474
59475         * lib/quote.c (quote_n): Fix typo in comment.
59476
59477 2003-03-18  Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59480         checking.
59481         * m4/onceonly_2_57.m4: Likewise.
59482
59483 2003-03-17  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59486         (m4_quote): Remove macro.
59487         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59488
59489 2003-03-14  Jim Meyering  <jim@meyering.net>
59490
59491         Merge changes from Coreutils.
59492         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59493         to be const, in order to avoid warnings.
59494         (obstack_room): Likewise.
59495         (obstack_empty_p): Likewise.
59496
59497 2003-03-14  Bruno Haible  <bruno@clisp.org>
59498
59499         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59500         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59501
59502 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59503
59504         Merge changes from Bison.
59505         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59506         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59507         when compiling Bison 1.875's `bitset bset = obstack_alloc
59508         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59509         * lib/hash.c: Include <stdbool.h> unconditionally.
59510
59511 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59512
59513         * m4/onceonly.m4 (m4_quote): New macro.
59514         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59515         Quote AC_FOREACH variable-expansions properly.
59516
59517 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59518
59519         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59520
59521 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59522
59523         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59524         Reported by Bruce Becker; see:
59525         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59526
59527 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59528             Bruno Haible  <bruno@clisp.org>
59529
59530         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59531         Reported by John Hughes, see
59532         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59533
59534 2003-02-20  Bruno Haible  <bruno@clisp.org>
59535
59536         * MODULES.html.sh (func_all_modules): Add poll.
59537
59538 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59539
59540         * modules/poll: New file.
59541
59542 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59543
59544         * lib/poll_.h: New file.
59545         * lib/poll.c: New file.
59546
59547 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59548
59549         * m4/poll.m4: New file.
59550
59551 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59552
59553         * modules/mathl: New file.
59554
59555 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59556
59557         * lib/mathl.h: New file.
59558         * lib/acosl.c: New file.
59559         * lib/asinl.c: New file.
59560         * lib/atanl.c: New file.
59561         * lib/ceill.c: New file.
59562         * lib/cosl.c: New file.
59563         * lib/expl.c: New file.
59564         * lib/floorl.c: New file.
59565         * lib/frexpl.c: New file.
59566         * lib/ldexpl.c: New file.
59567         * lib/logl.c: New file.
59568         * lib/sincosl.c: New file.
59569         * lib/sinl.c: New file.
59570         * lib/sqrtl.c: New file.
59571         * lib/tanl.c: New file.
59572         * lib/trigl.c: New file.
59573         * lib/trigl.h: New file.
59574
59575 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59576
59577         * m4/mathl.m4: New file.
59578
59579 2003-02-18  Bruno Haible  <bruno@clisp.org>
59580
59581         * MODULES.html.sh (func_all_modules): Add mathl.
59582
59583 2003-02-17  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/mkdtemp: New module.
59586         * MODULES.html.sh (func_all_modules): Add it.
59587
59588 2003-02-17  Bruno Haible  <bruno@clisp.org>
59589
59590         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59591
59592 2003-02-17  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/mkdtemp.h: New file, from GNU gettext.
59595         * lib/mkdtemp.c: New file, from GNU gettext.
59596
59597 2003-02-02  Jim Meyering  <jim@meyering.net>
59598
59599         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59600         e.g. glibc-2.2.93.
59601
59602 2003-01-31  Bruno Haible  <bruno@clisp.org>
59603
59604         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59605         'rpl_rename'.
59606         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59607         'rpl_strnlen'.
59608         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59609         'rpl_strtod'.
59610         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59611         'rpl_utime'.
59612
59613 2003-01-31  Bruno Haible  <bruno@clisp.org>
59614
59615         * lib/rename.c: #undef rename before defining rpl_rename.
59616         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59617
59618 2003-01-30  Bruno Haible  <bruno@clisp.org>
59619
59620         * modules/vasnprintf, modules/vasprintf: New modules.
59621         * MODULES.html.sh (func_all_modules): Add them.
59622
59623 2003-01-30  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/signed.m4: New file, from GNU gettext.
59626         * m4/longdouble.m4: New file, from GNU gettext.
59627         * m4/wchar_t.m4: New file, from GNU gettext.
59628         * m4/wint_t.m4: New file, from GNU gettext.
59629         * m4/vasnprintf.m4: New file.
59630         * m4/vasprintf.m4: New file.
59631
59632 2003-01-30  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/printf-args.h: New file, from GNU gettext.
59635         * lib/printf-args.c: New file, from GNU gettext.
59636         * lib/printf-parse.h: New file, from GNU gettext.
59637         * lib/printf-parse.c: New file, from GNU gettext.
59638         * lib/vasnprintf.h: New file, from GNU gettext.
59639         * lib/vasnprintf.c: New file, from GNU gettext.
59640         * lib/asnprintf.c: New file, from GNU gettext.
59641         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59642         * lib/vasprintf.c: New file, from GNU gettext.
59643         * lib/asprintf.c: New file, from GNU gettext.
59644
59645 2003-01-29  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/stpncpy: New module.
59648         * MODULES.html.sh (func_all_modules): Add it.
59649
59650 2003-01-29  Bruno Haible  <bruno@clisp.org>
59651
59652         * m4/stpncpy.m4: New file.
59653
59654 2003-01-29  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59657         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59658
59659 2003-01-28  Bruno Haible  <bruno@clisp.org>
59660
59661         * modules/c-ctype: New module.
59662         * MODULES.html.sh (func_all_modules): Add it.
59663
59664 2003-01-28  Bruno Haible  <bruno@clisp.org>
59665
59666         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59667         Paul Eggert.
59668         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59669         Paul Eggert.
59670
59671 2003-01-27  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/xsetenv: New module.
59674         * MODULES.html.sh (func_all_modules): Add it.
59675
59676 2003-01-27  Bruno Haible  <bruno@clisp.org>
59677
59678         * lib/xsetenv.h: New file, from GNU gettext.
59679         * lib/xsetenv.c: New file, from GNU gettext.
59680
59681 2003-01-23  Jim Meyering  <jim@meyering.net>
59682
59683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59684         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59685
59686 2003-01-23  Bruno Haible  <bruno@clisp.org>
59687
59688         * modules/minmax: New module.
59689         * MODULES.html.sh (func_all_modules): Add it.
59690
59691 2003-01-23  Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59694         Eggert.
59695
59696 2003-01-22  Bruno Haible  <bruno@clisp.org>
59697
59698         * modules/exit: New module.
59699         * MODULES.html.sh (func_all_modules): Add it.
59700
59701 2003-01-22  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/exit.h: New file, from GNU gettext.
59704
59705 2003-01-19  Bruno Haible  <bruno@clisp.org>
59706
59707         * gnulib-tool: Recognize option --extract-maintainer.
59708         (func_get_maintainer): New function.
59709         * modules/*: Add Maintainer entry.
59710
59711 2003-01-16  Jim Meyering  <jim@meyering.net>
59712
59713         * m4/regex.m4: The `regex' struct is both input and output.
59714         Initialize it before each use.  Patch by Tim Waugh.
59715
59716 2003-01-16  Bruno Haible  <bruno@clisp.org>
59717
59718         * MODULES.html.sh: Add a table of contents. Add the module name as
59719         leftmost column. Add hyperlinks.
59720
59721 2003-01-15  Bruno Haible  <bruno@clisp.org>
59722
59723         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59724
59725 2003-01-15  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59728         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59729         suffix.
59730
59731 2003-01-15  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59734
59735 2003-01-15  Bruno Haible  <bruno@clisp.org>
59736
59737         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59738         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59739
59740 2003-01-14  Jim Meyering  <jim@meyering.net>
59741
59742         * lib/same.c (same_name): Tweak a comment.
59743
59744 2003-01-14  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59747         when a string comparison is sufficient.
59748
59749 2003-01-14  Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59752         'unsigned int'.
59753
59754 2003-01-14  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/hash-pjw.c: Add comment about low quality of this function.
59757
59758 2003-01-13  Bruno Haible  <bruno@clisp.org>
59759
59760         * modules/stpcpy: Distribute lib/stpcpy.h.
59761         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59762
59763 2003-01-13  Bruno Haible  <bruno@clisp.org>
59764
59765         * modules/*: Add a description.
59766         * modules/strpbrk: Fix Makefile.am snippet.
59767         * modules/strtoimax: Fix dependencies.
59768         * modules/strtoumax: Likewise.
59769
59770 2003-01-13  Bruno Haible  <bruno@clisp.org>
59771
59772         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59773         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59774         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59775
59776 2003-01-13  Bruno Haible  <bruno@clisp.org>
59777
59778         * gnulib-tool (func_create_testdir): Store config/* files in the main
59779         directory.
59780         * config.rpath: Move to ...
59781         * config/config.rpath: ... here.
59782         * modules/gettext: Contains config/config.rpath, not config.rpath.
59783         * modules/iconv: Likewise.
59784
59785 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59786
59787         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59788         to avoid collisions with libcurses and libreadline.
59789
59790         * m4/getstr.m4: Remove.
59791         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59792
59793 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59794
59795         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59796         to avoid collisions with libcurses and libreadline.
59797
59798         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59799         * lib/getstr.h, getstr.c: Remove.
59800         * lib/getline.c: Include "getline.h", to check interface.
59801         Move body of old getstr.c here: this defines MIN_CHUNK and
59802         declares getdelim2, which is renamed from getstr.
59803         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59804
59805         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59806         All uses changed.
59807         * lib/linebuffer.h: Likewise.
59808         (readline): Remove backward-compatibility macro.
59809
59810 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59811
59812         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59813         to avoid collisions with libcurses and libreadline.
59814         * getstr: Remove.
59815         * MODULES.html.sh: Remove getstr.
59816         * modules/getline: Depend on unlocked-io, not getstr.
59817
59818 2003-01-12  Jim Meyering  <jim@meyering.net>
59819
59820         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59821
59822 2003-01-10  Bruno Haible  <bruno@clisp.org>
59823
59824         * modules/alloca: Change Makefile.am requirements. Simplify Include
59825         requirements. Add lib/alloca_.h to file list.
59826
59827 2003-01-10  Bruno Haible  <bruno@clisp.org>
59828
59829         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59830
59831 2003-01-10  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/alloca_.h: New file.
59834         * lib/getdate.y: Unconditionally include alloca.h.
59835         * lib/makepath.c: Likewise.
59836         * lib/setenv.c: Likewise.
59837         * lib/userspec.c: Likewise.
59838
59839 2003-01-09  Karl Berry  <karl@gnu.org>
59840
59841         * MODULES.html.sh: include `dirname $0` in PATH, to find
59842         gnulib-tool.
59843
59844 2003-01-09  Bruno Haible  <bruno@clisp.org>
59845
59846         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59847         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59848
59849 2003-01-09  Bruno Haible  <bruno@clisp.org>
59850
59851         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59852
59853 2003-01-09  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/stdbool.h.in: New file.
59856
59857 2003-01-09  Bruno Haible  <bruno@clisp.org>
59858
59859         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59860         * MODULES.html.sh: Likewise.
59861
59862 2003-01-08  Jim Meyering  <jim@meyering.net>
59863
59864         * lib/full-write.c: Undefine and define-away `const' after inclusion
59865         of errno.h, not before.  Suggestion from Bruno Haible.
59866
59867 2003-01-08  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/full-read: Depend on full-write.
59870
59871 2003-01-08  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/safe-read.c: Include specification header first, to ensure its
59874         selfcontainedness.
59875         * lib/full-write.c: Likewise.
59876
59877 2003-01-07  Jim Meyering  <jim@meyering.net>
59878
59879         * lib/full-write.c: Rework so that it may serve to define full_read,
59880         too.
59881         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59882
59883 2003-01-07  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59886         <inttypes.h>.
59887         * lib/xstrtol.h: Likewise.
59888         * lib/xstrtoimax.c: Likewise.
59889         * lib/xstrtoumax.c: Likewise.
59890         * lib/human.h: Likewise.
59891
59892         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59893         on systems that have <inttypes.h> but not <stdint.h>.
59894
59895 2003-01-07  Bruno Haible  <bruno@clisp.org>
59896
59897         * MODULES.html.sh: Add copyright notice.
59898         (missed_files): Omit CVS directory entries.
59899         (func_module): Make it work with sed-3.02.
59900         * MODULES.txt: Remove file.
59901
59902 2003-01-06  Jim Meyering  <jim@meyering.net>
59903
59904         * lib/version-etc.c: Update year in translatable copyright string.
59905
59906 2003-01-03  Karl Berry  <karl@gnu.org>
59907
59908         * config/config.{guess,sub}: update from prep.
59909
59910 2003-01-02  Karl Berry  <karl@gnu.org>
59911
59912         * doc/COPYING.DOC: belatedly updated to 1.2.
59913
59914 2003-01-01  Karl Berry  <karl@gnu.org>
59915
59916         * gnulib-tool (func_verify_module): report module name $module in
59917         error message, not $1.
59918         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59919         be created, only if it doesn't exist.
59920         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59921
59922 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59923
59924         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59925
59926 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59927
59928         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59929         memcmp if strcoll doesn't work.
59930
59931 2002-12-31  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59934         nonempty.
59935
59936 2002-12-31  Bruno Haible  <bruno@clisp.org>
59937
59938         * lib/memcoll.c (STRCOLL): New macro.
59939         (memcoll): Use it.
59940
59941 2002-12-31  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/localcharset.h: New file.
59944         * lib/localcharset.c: Include it.
59945         * lib/unicodeio.c: Likewise.
59946
59947 2002-12-31  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59950         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59951
59952 2002-12-31  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/getline.h: Include <stddef.h>, for size_t.
59955
59956         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59957         * lib/unicodeio.c: Don't include <stddef.h>.
59958
59959 2002-12-31  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59962         HAVE_TM_ZONE.
59963
59964 2002-12-24  Karl Berry  <karl@gnu.org>
59965
59966         * config/config.guess: update from prep.
59967
59968 2002-12-24  Bruno Haible  <bruno@clisp.org>
59969
59970         General infrasructure.
59971         * m4/README: Rewritten.
59972         * m4/onceonly.m4: New file.
59973         * m4/onceonly_2_57.m4: New file.
59974
59975         Module atexit.
59976         * m4/atexit.m4: New file.
59977
59978         Module strtod.
59979         * m4/strtod.m4: New file.
59980
59981         Module strtol.
59982         * m4/strtol.m4: New file.
59983
59984         Module strtoul.
59985         * m4/strtoul.m4: New file.
59986
59987         Module memchr.
59988         * m4/memchr.m4: New file.
59989
59990         Module memcmp.
59991         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59992         (jm_FUNC_MEMCMP): Invoke it.
59993
59994         Module memcpy.
59995         * m4/memcpy.m4: New file.
59996
59997         Module memmove.
59998         * m4/memmove.m4: New file.
59999
60000         Module memset.
60001         * m4/memset.m4: New file.
60002
60003         Module strcspn.
60004         * m4/strcspn.m4: New file.
60005
60006         Module strpbrk.
60007         * m4/strpbrk.m4: New file.
60008
60009         Module strstr.
60010         * m4/strstr.m4: New file.
60011
60012         Module strerror.
60013         * m4/strerror.m4: New file.
60014
60015         Module mktime.
60016         * m4/mktime.m4: Renamed from jm-mktime.m4.
60017         (gl_PREREQ_MKTIME): New macro.
60018         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60019
60020         Module malloc.
60021         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60022         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60023         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60024
60025         Module realloc.
60026         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60027         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60028         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60029
60030         Module strftime.
60031         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60032         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60033         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60034         gl_TM_GMTOFF.
60035         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60036
60037         Module xalloc.
60038         * m4/xalloc.m4: New file.
60039
60040         Module alloca.
60041         * m4/alloca.m4: New file.
60042
60043         Module putenv.
60044         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60045         (jm_FUNC_PUTENV): Invoke it.
60046
60047         Module setenv.
60048         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60049         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60050         when invoked twice.
60051         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60052         gt_FUNC_SETENV.
60053
60054         Module memrchr.
60055         * m4/memrchr.m4: New file.
60056
60057         Module stpcpy.
60058         * m4/stpcpy.m4: New file.
60059
60060         Module strcase.
60061         * m4/strcase.m4: New file.
60062
60063         Module strdup.
60064         * m4/strdup.m4: New file.
60065
60066         Module strnlen.
60067         * m4/strnlen.m4: New file.
60068
60069         Module strndup.
60070         * m4/strndup.m4: New file.
60071
60072         Module xstrtod.
60073         * m4/xstrtod.m4: New file.
60074
60075         Module xstrtol.
60076         * m4/xstrtol.m4: New file.
60077
60078         Module getdate.
60079         * m4/getdate.m4: New file.
60080
60081         Module unlocked-io.
60082         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60083         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60084         * m4/jm-glibc-io.m4n: Remove file.
60085
60086         Module long-options.
60087         * m4/long-options.m4: New file.
60088
60089         Module md5.
60090         * m4/md5.m4: New file.
60091
60092         Module sha.
60093         * m4/sha.m4: New file.
60094
60095         Module getstr.
60096         * m4/getstr.m4: New file.
60097
60098         Module getline.
60099         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60100         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60101         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60102         simply getline. Infoke gl_PREREQ_GETLINE.
60103
60104         Module obstack.
60105         * m4/obstack.m4: New file.
60106
60107         Module hash.
60108         * m4/hash.m4: New file.
60109
60110         Module readtokens.
60111         * m4/readtokens.m4: New file.
60112
60113         Module strverscmp.
60114         * m4/strverscmp.m4: New file.
60115
60116         Module stdbool.
60117         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60118         OSF/1.
60119
60120         Module strtoll.
60121         * m4/strtoll.m4: New file.
60122
60123         Module strtoull.
60124         * m4/strtoull.m4: New file.
60125
60126         Module strtoimax.
60127         * m4/strtoimax.m4: New file.
60128
60129         Module strtoumax.
60130         * m4/strtoumax.m4: New file.
60131
60132         Module xstrtoimax.
60133         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60134         jm_AC_PREREQ_XSTRTOIMAX.
60135         Moved the strtol prerequisites to strtol.m4.
60136         Moved the strtoll prerequisites to strtoll.m4.
60137         Moved the strtoimax prerequisites to strtoimax.m4.
60138
60139         Module xstrtoumax.
60140         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60141         jm_AC_PREREQ_XSTRTOUMAX.
60142         Moved the strtoul prerequisites to strtoul.m4.
60143         Moved the strtoull prerequisites to strtoull.m4.
60144         Moved the strtoumax prerequisites to strtoumax.m4.
60145
60146         Module chown.
60147         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60148         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60149
60150         Module dup2.
60151         * m4/dup2.m4: New file.
60152
60153         Module ftruncate.
60154         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60155         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60156
60157         Module getgroups.
60158         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60159         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60160
60161         Module gettimeofday.
60162         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60163         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60164         gl_PREREQ_GETTIMEOFDAY.
60165
60166         Module mkdir.
60167         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60168         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60169
60170         Module mkstemp.
60171         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60172         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60173         jm_AC_TYPE_UINTMAX_T.
60174         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60175
60176         Module stat.
60177         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60178         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60179
60180         Module lstat.
60181         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60182         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60183
60184         Module timespec.
60185         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60186         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60187         * m4/st_mtim.m4: Indentation.
60188
60189         Module nanosleep.
60190         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60191         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60192         gl_PREREQ_NANOSLEEP.
60193
60194         Module regex.
60195         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60196         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60197         (gl_REGEX): New macro.
60198
60199         Module rename.
60200         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60201         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60202
60203         Module rmdir.
60204         * m4/rmdir.m4: New file.
60205
60206         Module utime.
60207         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60208         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60209         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60210
60211         Module dirname.
60212         * m4/dirname.m4: New file.
60213
60214         Module getopt.
60215         * m4/getopt.m4: New file.
60216
60217         Module unistd-safer.
60218         * m4/unistd-safer.m4: New file.
60219
60220         Module fnmatch.
60221         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60222         declaration.
60223         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60224         (gl_FUNC_FNMATCH_POSIX): New macro.
60225         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60226         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60227         simply fnmatch.
60228
60229         Module exclude.
60230         * m4/exclude.m4: New file.
60231
60232         Module human.
60233         * m4/human.m4: New file.
60234
60235         Module acl.
60236         * m4/acl.m4: Nop.
60237
60238         Module backupfile.
60239         * m4/backupfile.m4: New file.
60240         * m4/d-ino.m4: Indentation.
60241
60242         Module fsusage.
60243         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60244         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60245         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60246
60247         Module dirfd.
60248         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60249         requirements.
60250
60251         Module euidaccess.
60252         * m4/euidaccess.m4: New file.
60253
60254         Module file-type.
60255         * m4/file-type.m4: New file.
60256
60257         Module fileblocks.
60258         * m4/fileblocks.m4: New file.
60259
60260         Module filemode.
60261         * m4/filemode.m4: New file.
60262
60263         Module isdir.
60264         * m4/isdir.m4: New file.
60265
60266         Module lchown.
60267         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60268         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60269
60270         Module makepath.
60271         * m4/makepath.m4: New file.
60272
60273         Module modechange.
60274         * m4/modechange.m4: New file.
60275
60276         Module mountlist.
60277         * m4/mountlist.m4: New file.
60278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60279         Indentation.
60280
60281         Module path-concat.
60282         * m4/path-concat.m4: New file.
60283
60284         Module pathmax.
60285         * m4/pathmax.m4: New file.
60286
60287         Module same.
60288         * m4/same.m4: New file.
60289
60290         Module save-cwd.
60291         * m4/save-cwd.m4: New file.
60292
60293         Module savedir.
60294         * m4/savedir.m4: New file.
60295
60296         Module xgetcwd.
60297         * m4/xgetcwd.m4: New file.
60298         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60299
60300         Module xreadlink.
60301         * m4/xreadlink.m4: New file.
60302
60303         Module safe-read.
60304         * m4/safe-read.m4: New file.
60305
60306         Module safe-write.
60307         * m4/safe-write.m4: New file.
60308
60309         Module closeout.
60310         * m4/closeout.m4: New file.
60311
60312         Module stdio-safer.
60313         * m4/stdio-safer.m4: New file.
60314
60315         Module getpass.
60316         * m4/getpass.m4: New file.
60317
60318         Module getugroups.
60319         * m4/getugroups.m4: New file.
60320
60321         Module group-member.
60322         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60323         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60324
60325         Module idcache.
60326         * m4/idcache.m4: New file.
60327
60328         Module userspec.
60329         * m4/userspec.m4: New file.
60330
60331         Module gettime.
60332         * m4/clock_time.m4: New file.
60333         * m4/gettime.m4: New file.
60334
60335         Module settime.
60336         * m4/settime.m4: New file.
60337
60338         Module posixtm.
60339         * m4/posixtm.m4: New file.
60340
60341         Module gethostname.
60342         * m4/gethostname.m4: New file.
60343
60344         Module canon-host.
60345         * m4/canon-host.m4: New file.
60346
60347         Module gettext.
60348         * m4/codeset.m4: New file, from gettext-0.11.5.
60349         * m4/gettext.m4: New file, from gettext-0.11.5.
60350         * m4/glibc21.m4: New file, from gettext-0.11.5.
60351         * m4/iconv.m4: New file, from gettext-0.11.5.
60352         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60353         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60354         * m4/inttypes.m4: New file, from gettext-0.11.5.
60355         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60356         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60357         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60358         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60359         * m4/lib-link.m4: New file, from gettext-0.11.5.
60360         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60361         * m4/progtest.m4: New file, from gettext-0.11.5.
60362         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60363         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60364         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60365
60366         Module localcharset.
60367         * m4/localcharset.m4: New file.
60368
60369         Module hard-locale.
60370         * m4/hard-locale.m4: New file.
60371
60372         Module mbswidth.
60373         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60374         onceonly macros.
60375         * m4/mbrtowc.m4: Add comment.
60376
60377         Module memcasecmp.
60378         * m4/memcasecmp.m4: New file.
60379
60380         Module memcoll.
60381         * m4/memcoll.m4: New file.
60382
60383         Module unicodeio.
60384         * m4/unicodeio.m4: New file.
60385
60386         Module rpmatch.
60387         * m4/rpmatch.m4: New file.
60388
60389         Module yesno.
60390         * m4/yesno.m4: New file.
60391
60392         Module exitfail.
60393         * m4/exitfail.m4: New file.
60394
60395         Module c-stack.
60396         * m4/c-stack.m4 (gl_C_STACK): New macro.
60397         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60398
60399         Module error.
60400         * m4/error.m4 (gl_ERROR): New macro.
60401         (jm_PREREQ_ERROR): Use onceonly macros.
60402
60403         Module fatal.
60404         * m4/fatal.m4: New file.
60405
60406         Module getloadavg.
60407         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60408         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60409
60410         Module getpagesize.
60411         * m4/getpagesize.m4: New file.
60412
60413         Module getusershell.
60414         * m4/getusershell.m4: New file.
60415
60416         Module physmem.
60417         * m4/physmem.m4: New file.
60418
60419         Module posixver.
60420         * m4/posixver.m4: New file.
60421
60422         Module quotearg.
60423         * m4/quotearg.m4: New file.
60424
60425         Module quote.
60426         * m4/quote.m4: New file.
60427
60428         Module readutmp.
60429         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60430
60431         Module sig2str.
60432         * m4/sig2str.m4: New file.
60433
60434         Other.
60435         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60436         ulonglong.m4.
60437         * m4/intmax_t.m4: New file.
60438         * m4/d-type.m4: Indentation.
60439         * m4/jm-macros.m4: Update.
60440         * m4/prereq.m4 (jm_PREREQ): Update.
60441         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60442         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60443         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60444         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60445         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60446         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60447         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60448         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60449         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60450         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60451         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60452         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60453         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60454         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60455         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60456         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60457         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60458         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60459         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60460
60461 2002-12-24  Bruno Haible  <bruno@clisp.org>
60462
60463         * MODULES.txt: Update according to m4/ changes.
60464
60465         Module gettext.
60466         * config.rpath: New file, from gettext-0.11.5.
60467
60468         * modules/*: New module descriptions.
60469         * gnulib-tool: New file.
60470         * MODULES.html.sh: New file.
60471
60472 2002-12-21  Karl Berry  <karl@gnu.org>
60473
60474         * doc/fdl.texi: update to version 1.2.
60475
60476 2002-12-19  Karl Berry  <karl@gnu.org>
60477
60478         * config/config.guess: update from prep.
60479
60480 2002-12-18  Bruno Haible  <bruno@clisp.org>
60481
60482         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60483         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60484
60485 2002-12-17  Bruno Haible  <bruno@clisp.org>
60486
60487         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60488         stdlib.h, string.h.
60489
60490 2002-12-17  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/canon-host.c (strdup): Remove unused declaration.
60493
60494         * lib/fsusage.c: Include full_read.h.
60495         (get_fs_usage): Use full_read instead of safe_read.
60496
60497         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60498
60499 2002-12-12  Karl Berry  <karl@gnu.org>
60500
60501         * config/config.guess: update from prep.
60502
60503 2002-12-11  Bruno Haible  <bruno@clisp.org>
60504
60505         * m4/setenv.m4: New file, from gettext-0.11.5.
60506
60507 2002-12-11  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60510         not unsetenv().
60511         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60512         modifications:
60513
60514         2002-12-11  Bruno Haible  <bruno@clisp.org>
60515
60516                 * setenv.c (alloca): Fall back to malloc.
60517                 (freea): New macro.
60518                 (setenv): Use freea() to free memory allocated with alloca().
60519
60520         2002-11-13  Bruno Haible  <bruno@clisp.org>
60521
60522                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60523                 function declarations.
60524                 * unsetenv.c (unsetenv): Likewise.
60525
60526         2002-03-04  Bruno Haible  <bruno@clisp.org>
60527
60528                 Portability to AIX 4.3.3.
60529                 * unsetenv.c: New file, extracted from setenv.c.
60530                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60531
60532         2001-12-20  Bruno Haible  <bruno@clisp.org>
60533
60534                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60535                 use malloc instead. For SunOS 4.
60536
60537         2001-12-11  Bruno Haible  <bruno@clisp.org>
60538
60539                 * setenv.c: Declare alloca.
60540                 (compar_fn_t): New typedef.
60541                 (KNOWN_VALUE, STORE_VALUE): Use it.
60542
60543         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60544         setenv.h.
60545
60546 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60547
60548         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60549         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60550         Choose values that are less likely to collide with system fnmatch
60551         options.
60552         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60553         defined (e.g., a pure POSIX system).
60554         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60555         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60556
60557 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60558
60559         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60560         a pain in practice to deal with generated m4 files.  This change
60561         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60562
60563         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60564         and jm-glibc-io.m4, as they are no longer a special case.
60565         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60566         kludge and the auto-generation stuff.  Check only whether the
60567         functions are declared, not whether they exist, since older hosts
60568         that don't declare the functions can't use the optimization anyway.
60569
60570 2002-12-06  Jim Meyering  <jim@meyering.net>
60571
60572         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60573
60574         Merge in changes from libc's misc/error.c, in preparation
60575         for the merge of gnulib's changes back into libc.
60576
60577         * lib/error.c (_): Define only if not already defined.
60578         Move definition to follow all #include directives.
60579         Include unlocked-io.h only if !_LIBC.
60580         [_LIBC]: Include <libio/libioP.h>.
60581         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60582         (fflush): Tweak definition to use INTUSE.
60583         (putc): Define.
60584
60585 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60586
60587         * lib/alloca.c [defined emacs]: Include "lisp.h".
60588         (xalloc_die) [defined emacs]: New macro.
60589         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60590         [! defined emacs]: Include <xalloc.h>.
60591         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60592         (pointer): Typedef to POINTER_TYPE *.
60593         (malloc): Remove decl; we now always use xmalloc.
60594         (alloca): Use old-style definition, since Emacs needs this.
60595         Check for arithmetic overflow when computing combined size.
60596
60597 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60598
60599         Do not generate unlocked-io.h automatically, since it's easier to
60600         maintain it by hand.
60601
60602         * lib/unlocked-io.h: New file, from GNU diffutils,
60603         but with proper copyright notice and attribution.
60604         * lib/gen-uio: Remove.
60605         * lib/Makefile.am: Add copyright notice.
60606         (libfetish_a_SOURCES): Add unlocked-io.h.
60607         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60608         (DISTCLEANFILES, io_functions): Remove macros.
60609         (EXTRA_DIST): Remove gen_uio.
60610         (unlocked-io.h): Remove rule.
60611
60612 2002-12-04  Jim Meyering  <jim@meyering.net>
60613
60614         Reflect the fact that stat.c and lstat.c are no longer generated.
60615         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60616         (DISTCLEANFILES): Likewise.
60617         (EXTRA_DIST): Likewise.
60618         (all_local): Don't depend on stat.c or lstat.c.
60619         (stat.c, lstat.c): Remove rules.
60620         (EXTRA_DIST): Remove xstat.in.
60621
60622         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60623         * lib/stat.c: New file.  Contents mostly from xstat.in.
60624         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60625         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60626
60627         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60628         too.
60629         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60630
60631 2002-12-03  Jim Meyering  <jim@meyering.net>
60632
60633         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60634         but not semantics, to minimize the differences between these two files.
60635         (safe_read): Change comment to mention SAFE_READ_ERROR.
60636
60637         * lib/safe-read.c (IS_EINTR): Define.
60638         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60639
60640 2002-12-02  Jim Meyering  <jim@meyering.net>
60641
60642         * lib/safe-read.c (EINTR): Define.
60643         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60644         (INT_MAX): Provide fallback.
60645         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60646
60647         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60648
60649 2002-12-02  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60652         Define, taken from safe-read.c.
60653         (INT_MAX): Provide fallback.
60654         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60655         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60656
60657         * lib/safe-read.c (EINTR): Remove definition.
60658         (safe_read): Don't use EINTR if it is absent.
60659
60660 2002-12-01  Jim Meyering  <jim@meyering.net>
60661
60662         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60663         zero.
60664         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60665
60666 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60667
60668         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60669         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60670         with `if (! (value < limit)) abort ();', for readability.
60671
60672 2002-11-26  Karl Berry  <karl@gnu.org>
60673
60674         * lib/strdup.c: copy from libc again, with jim's ok.
60675         * lib/.cppi-disable: re-add strdup.c
60676
60677 2002-11-25  Karl Berry  <karl@gnu.org>
60678
60679         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60680         instead of "strtol.c".
60681
60682 2002-11-25  Karl Berry  <karl@gnu.org>
60683
60684         * config/install-sh: update from automake for variable quoting, $0 in
60685         error msgs, etc.
60686
60687         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60688         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60689         entry.
60690
60691 2002-11-25  Jim Meyering  <jim@meyering.net>
60692
60693         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60694
60695 2002-11-24  Karl Berry  <karl@gnu.org>
60696
60697         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60698         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60699
60700 2002-11-24  Jim Meyering  <jim@meyering.net>
60701
60702         Update from coreutils:
60703
60704         * lib/mktime.c: Merge in changes from libc.
60705
60706         Avoid a link-time failure on some Linux systems.
60707         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60708         (otherwise).
60709         (__mon_yday): Declare with the STATIC attribute.
60710         (__mktime_internal): Likewise.
60711         Based on a report from Greg Schafer.
60712
60713 2002-11-23  Jim Meyering  <jim@meyering.net>
60714
60715         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60716         Use `unsigned', not `int', as type of index.
60717
60718         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60719
60720         * lib/fsusage.c: Remove unneeded parentheses around operands of
60721         `defined'.
60722
60723 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60724
60725         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60726         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60727         so that we can be included first.
60728         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60729         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60730         No need to include stddef.h or sys/types.h any more.
60731         Surround local include files with "", not "<>".
60732         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60733         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60734         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60735         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60736         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60737         (ISPRINT): Remove; no longer needed now that we assume C89.
60738
60739         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60740         Preserve errno.
60741
60742         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60743         quotearg_char): Use SIZE_MAX rather than
60744         (size_t) -1 when we are talking about "infinity".
60745
60746         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60747
60748 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60749
60750         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60751         hint that one should use `if (! x) abort ();' rather than `assert
60752         (x);', and anyway it's one less thing to worry about configuring.
60753         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60754         hash_rehash, hash_insert): Use abort rather than assert.
60755
60756 2002-11-22  Bruno Haible  <bruno@clisp.org>
60757
60758         * lib/safe-read.h: Assume C89. Add comments.
60759         (safe_read): Change return type to size_t.
60760         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60761         byte counts > SSIZE_MAX correctly.
60762         * lib/safe-write.h: New file.
60763         * lib/safe-write.c: New file.
60764         * lib/full-read.h: New file.
60765         * lib/full-read.c: New file.
60766         * lib/full-write.h: Assume C89. Add comments.
60767         * lib/full-write.c: Include safe-write.h.
60768         (full_write): Rewritten to use safe_write.
60769         Suggested by Jim Meyering and Paul Eggert.
60770
60771 2002-11-21  Jim Meyering  <jim@meyering.net>
60772
60773         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60774
60775         Merge in changes from the coreutils.
60776
60777         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60778         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60779         <stdint.h>.
60780         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60781         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60782         int.  Work more efficiently if X is the same width as uintmax_t.
60783         Do not compare X to -1, to avoid bogus compiler warning.
60784         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60785         Don't assume that f_frsize and f_bsize are the same type.
60786
60787         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60788         warning on FreeBSD.
60789
60790         * lib/makepath.c (make_path): Restore umask *before* creating the final
60791         component.
60792         (make_path): Minor reformatting.
60793
60794         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60795         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60796         HAVE_MALLOC/HAVE_REALLOC.
60797
60798         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60799         dummy ones.  At least on GNU/Linux systems, `auto' means something
60800         else.
60801         From Michael Stone.
60802
60803 2002-11-21  Bruno Haible  <bruno@clisp.org>
60804
60805         Remove case insensitive option matching.
60806         * lib/argmatch.h (argcasematch): Remove declaration.
60807         (ARGCASEMATCH): Remove macro.
60808         (__xargmatch_internal): Remove case_sensitive argument.
60809         (XARGMATCH): Update.
60810         (XARGCASEMATCH): Remove macro.
60811         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60812         case_sensitive argument.
60813         (argcasematch): Remove function.
60814         (__xargmatch_internal): Remove case_sensitive argument.
60815         (main): Use XARGMATCH instead of XARGCASEMATCH.
60816
60817         * lib/xmalloc.c: Change compile-time error message. Add comment about
60818         required autoconf version.
60819
60820 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60821
60822         Merge argmatch cleanups from Bison.  Assume C89.
60823
60824         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60825         Include stdlib.h, for EXIT_FAILURE.
60826         Always include <string.h>, since we assume C89.
60827         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60828         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60829         Include <stddef.h> instead, since it's all we need for size_t.
60830         (PARAMS): Remove.  All uses removed.
60831         (ARRAY_CARDINALITY): Do not bother to #undef.
60832         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60833         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60834         Remove unnecessary parentheses.
60835         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60836         Insert necessary parentheses.
60837         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60838         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60839
60840 2002-11-19  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60843         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60844
60845         * lib/mbswidth.h (PARAMS): Remove macro.
60846         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60847         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60848
60849         * lib/gcd.h (PARAMS): Remove macro.
60850         (gcd): Use ANSI C function declarations.
60851         * lib/gcd.c (gcd): Likewise.
60852
60853 2002-11-15  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/strcspn.c: Include <stddef.h>.
60856         (strcspn): Use ANSI C function declaration. Change return type to
60857         size_t. Use NULL.
60858         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60859         (strpbrk): Use NULL.
60860         * lib/strpbrk.h (PARAMS): Remove macro.
60861         (strpbrk): Use ANSI C function declaration.
60862         * lib/strstr.c: Don't include <sys/types.h>.
60863         * lib/strstr.h (PARAMS): Remove macro.
60864         (strstr): Use ANSI C function declarations.
60865
60866 2002-11-14  Karl Berry  <karl@gnu.org>
60867
60868         * config/mkinstalldirs: `do' on separate line, instead of
60869         `for var; do'.
60870
60871 2002-11-06  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60874         * lib/gcd.c (gcd): Likewise.
60875
60876 2002-11-05  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/gcd.h: New file, from gettext-0.11.5.
60879         * lib/gcd.c: New file, from gettext-0.11.5.
60880
60881 2002-11-05  Bruno Haible  <bruno@clisp.org>
60882
60883         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60884         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60885         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60886         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60887
60888         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60889         <libintl.h>.
60890         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60891         <libintl.h>.
60892
60893         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60894         * lib/human.c: Include gettext.h instead of <libintl.h>.
60895         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60896         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60897         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60898         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60899         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60900         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60901         (textdomain): Remove definition.
60902         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60903
60904         * lib/long-options.c: Remove include of <libintl.h> and definition of
60905         _.
60906         * lib/same.c: Remove include of <libintl.h> and definition of _.
60907
60908 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60909
60910         * lib/config.charset: A few additions for Solaris.
60911
60912 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60913
60914         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60915         * lib/localcharset.c (locale_charset): Declare as extern "C".
60916
60917 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60918
60919         * lib/config.charset: msdos in uk_UA uses CP1125.
60920
60921 2002-11-04  Bruno Haible  <bruno@clisp.org>
60922
60923         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60924         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60925         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60926         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60927         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60928
60929 2002-11-04  Bruno Haible  <bruno@clisp.org>
60930
60931         * lib/localcharset.c (locale_charset): Don't return an empty string.
60932
60933 2002-11-04  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60936         aliases.
60937
60938 2002-11-04  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/config.charset: Update for newest glibc. Add canonical names
60941         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60942
60943 2002-11-04  Bruno Haible  <bruno@clisp.org>
60944
60945         * lib/config.charset: Add support for NetBSD.
60946
60947 2002-11-04  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60950
60951 2002-11-01  Bruno Haible  <bruno@clisp.org>
60952
60953         * configure.in: Add AC_CONFIG_AUX_DIR call.
60954         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60955         test/Makefile.
60956         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60957
60958 2002-09-28  Karl Berry  <karl@gnu.org>
60959
60960         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60961         installed automake until the next release, since changes have been
60962         made.
60963
60964 2002-09-25  Karl Berry  <karl@gnu.org>
60965
60966         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60967         * lib/getopt*: copy from libc/posix.
60968         * lib/gettext.h: copy from gettext.
60969         * lib/.cppi-disable: add strdup.c, gettext.h.
60970
60971 2002-09-25  Karl Berry  <karl@gnu.org>
60972
60973         * config/srclist.txt: enable gettext.h check.
60974         * config/config.{guess,sub}: update from prep.
60975         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60976                 from automake 1.6.3.
60977         See srclist*.
60978
60979 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60980
60981         * regex.c (PATFETCH): Remove the translating fetch.
60982         (PATFETCH_RAW): Rename to PATFETCH.
60983         (set_image_of_range): New fun.
60984         (SET_RANGE_TABLE_WORK_AREA): Use it.
60985         (regex_compile): Don't translate the pattern chars so eagerly.
60986         Only do it when inserting an `exactn' bytecode or when handling
60987         a char-range.
60988         (mutually_exclusive_p): Avoid empty statement.
60989
60990 2002-07-06  Jim Meyering  <meyering@lucent.com>
60991
60992         * m4/README: Don't mention Makefile.am.in.
60993         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60994
60995 2002-07-01  Jim Meyering  <meyering@lucent.com>
60996
60997         * lib/c-stack.c: Include sys/time.h.
60998         From Volker Borchert.
60999
61000 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61001
61002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61003
61004 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61005
61006         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61007         New macro.  Use it uniformly instead of
61008         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61009         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61010         reported by Vin Shelton.
61011
61012 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61013
61014         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61015         Do not assume SA_SIGINFO behavior.
61016         Bug reported by Jim Meyering on NetBSD 1.5.2.
61017
61018 2002-06-22  Jim Meyering  <meyering@lucent.com>
61019
61020         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61021         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61022
61023         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61024         now that configure.ac uses AC_GNU_SOURCE.
61025         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61026         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61027
61028         Update to latest tools.  Suggestions from Paul Eggert.
61029         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61030         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61031         * m4/fnmatch.m4: Likewise.
61032         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61033         to AC_HEADER_STDBOOL
61034
61035 2002-06-22  Jim Meyering  <meyering@lucent.com>
61036
61037         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61038         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61039
61040 2002-06-22  Jim Meyering  <meyering@lucent.com>
61041
61042         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61043
61044         * lib/exitfail.c, exitfail.h: Likewise.
61045         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61046
61047         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61048         of fnmatch.h.
61049         (EXTRA_DIST): Add fnmatch_loop.c.
61050         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61051
61052         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61053         * lib/fnmatch.c: Update from diffutils-2.8.2.
61054         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61055         * lib/fnmatch.h: Remove file.
61056
61057 2002-06-21  Jim Meyering  <meyering@lucent.com>
61058
61059         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61060         * m4/mbrtowc.m4: Likewise.
61061
61062         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61063         * m4/mbswidth.m4: Reflect name change:
61064         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61065         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61066
61067         * m4/lib-link.m4: Update from gettext-0.11.2.
61068         * m4/gettext.m4: Likewise.
61069
61070         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61071         From Alfred M. Szmidt.
61072
61073 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61074
61075         * lib/file-type.h: Report an error if neither S_ISREG nor
61076         S_IFREG is defined, instead of using a test specific to glibc
61077         2.2.  This should be safe, since POSIX requires S_ISREG and
61078         Unix Version 7 had S_IFREG.  We don't need to check for
61079         <sys/types.h> since we don't use any symbols that it defines.
61080
61081 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61082
61083         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61084         $@-t, so that each temporary file name is unique and valid in the first
61085         8 characters, for operation under DOS.
61086
61087 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61088
61089         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61090
61091 2002-06-15  Jim Meyering  <meyering@lucent.com>
61092
61093         Work even with DJGPP 2.03, which lacks support for symlinks.
61094         From Richard Dawe.
61095         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61096         is defined.
61097         * lib/lchown.c (S_ISLNK): Likewise.
61098
61099 2002-06-15  Jim Meyering  <meyering@lucent.com>
61100
61101         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61102         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61103         have been included before this file.
61104
61105 2002-06-14  Jim Meyering  <meyering@lucent.com>
61106
61107         * lib/file-type.h: Use the version from diffutils-2.8.2.
61108         * lib/file-type.c: Likewise.
61109
61110 2002-06-07  Jim Meyering  <meyering@lucent.com>
61111
61112         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61113         They're needed at least for NetBSD 1.5.2.
61114         ($statxfs_includes): Include those same headers.
61115         ($statxfs_includes): Include sys/vfs.h if available.
61116         ($statxfs_includes): Likewise for sys/statvfs.h.
61117         Check for the following members in both structs statfs and statvfs:
61118         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61119
61120 2002-06-01  Jim Meyering  <meyering@lucent.com>
61121
61122         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61123         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61124
61125 2002-05-28  Jim Meyering  <meyering@lucent.com>
61126
61127         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61128         Reported by Volker Borchert.
61129
61130 2002-05-27  Jim Meyering  <meyering@lucent.com>
61131
61132         Fix a problem seen only on nonconforming systems whereby ls.c's
61133         use of localtime, and then of gettimeofday would cause trouble:
61134         the localtime call used to initialize rpl_gettimeofday's save
61135         mechanism would clobber ls's current local time information so
61136         that in any long listing the first file would always be listed
61137         with date 1970-01-01.  Analysis by Volker Borchert.
61138
61139         * lib/gettimeofday.c (localtime): Undefine.
61140         (rpl_localtime): New function.
61141
61142 2002-05-27  Jim Meyering  <meyering@lucent.com>
61143
61144         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61145         localtime.
61146
61147         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61148         use the replacement function; it wouldn't resolve at link time.
61149         Reported by Volker Borchert.
61150
61151 2002-05-22  Jim Meyering  <meyering@lucent.com>
61152
61153         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61154         file-type.h.
61155         * lib/file-type.h: New file.
61156         * lib/file-type.c (file_type): New file/function.  Extracted from
61157         diffutils.
61158
61159 2002-04-30  Jim Meyering  <meyering@lucent.com>
61160
61161         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61162
61163 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61164
61165         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61166
61167 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61168
61169         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61170         Do not check for alloca.h (no longer used) or stdbool.h (was never
61171         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61172
61173 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61174
61175         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61176
61177 2002-04-29  Jim Meyering  <meyering@lucent.com>
61178
61179         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61180         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61181         Use AC_FUNC_STRNLEN here instead.
61182
61183         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61184         With autoconf-2.53a, it's part of AC_PROG_CC.
61185
61186 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61187
61188         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61190
61191 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61192
61193         * lib/sig2str.h, lib/sig2str.c: New files.
61194         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61195
61196 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61197
61198         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61199         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61200         of 127, since 64 is the largest conceivable number for ancient
61201         nonstandard hosts.
61202         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61203
61204 2002-04-28  Jim Meyering  <meyering@lucent.com>
61205
61206         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61207
61208 2002-04-24  Jim Meyering  <meyering@lucent.com>
61209
61210         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61211         (jm_PREREQ): Use it.
61212
61213         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61214         mach/mach.h fcntl.h.
61215         Check for this function: setlocale.
61216
61217 2002-04-24  Jim Meyering  <meyering@lucent.com>
61218
61219         * lib/gettext.h: New file, from Gettext.
61220         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61221         (libfetish_a_SOURCES): Add gettext.h.
61222
61223 2002-04-16  Jim Meyering  <meyering@lucent.com>
61224
61225         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61226         ut_pid, ut_id, ut_exit.
61227
61228 2002-04-16  Jim Meyering  <meyering@lucent.com>
61229
61230         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61231         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61232         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61233
61234 2002-04-12  Jim Meyering  <meyering@lucent.com>
61235
61236         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61237         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61238         existence of the getmntinfo function.  Needed for Darwin 5.3.
61239
61240         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61241         This is necessary at least on Darwin 5.3.
61242
61243         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61244         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61245         strnlen.o in the library, and that makes some versions of ranlib
61246         object.
61247
61248 2002-04-12  Jim Meyering  <meyering@lucent.com>
61249
61250         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61251
61252 2002-04-09  Jim Meyering  <meyering@lucent.com>
61253
61254         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61255         to be more precise.  Rather than saying we're checking whether the
61256         function `works', say what we're testing.
61257         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61258         Reported by Bruno Haible.
61259
61260 2002-03-10  Jim Meyering  <meyering@lucent.com>
61261
61262         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61263         Suggestion from Santiago Vila.
61264
61265 2002-03-08  Jim Meyering  <meyering@lucent.com>
61266
61267         * lib/rename.c: Mention that this wrapper is needed also on
61268         mips-dec-ultrix4.4 systems.
61269
61270 2002-03-02  Jim Meyering  <meyering@lucent.com>
61271
61272         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61273         not HAVE_CLOCK_SETTIME.
61274
61275 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61276
61277         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61278         Check for clock_settime.
61279
61280 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61281
61282         * lib/nanosleep.h: Rename to....
61283         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61284
61285         * lib/gettime.c: New file.
61286         * lib/settime.c: New file.
61287         * lib/stime.c: Remove.
61288
61289         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61290         timespec.h.  Remove nanosleep.h.
61291
61292 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61293
61294         * m4/acl.m4: New file.
61295         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61296         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61297
61298 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61299
61300         * lib/acl.c, lib/acl.h: New files.
61301         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61302
61303 2002-02-24  Jim Meyering  <meyering@lucent.com>
61304
61305         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61306         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61307         cause trouble.  Reported by Nelson Beebe.
61308
61309 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61310
61311         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61312         compilers that don't know that xalloc_die never returns.
61313
61314 2002-02-20  Jim Meyering  <meyering@lucent.com>
61315
61316         * lib/getdate.c: Regenerate using bison-1.33.
61317
61318 2002-02-17  Jim Meyering  <meyering@lucent.com>
61319
61320         * config/config.guess (main): Don't use `head -1'; it's no longer
61321         portable. Use `sed 1q' instead.
61322
61323 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61324
61325         * m4/codeset.m4: Upgrade to gettext-0.11.
61326         * m4/gettext.m4: Upgrade to gettext-0.11.
61327         * m4/glibc21.m4: Upgrade to gettext-0.11.
61328         * m4/iconv.m4: Upgrade to gettext-0.11.
61329         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61330         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61331         * m4/lib-ld.m4: New file, from gettext-0.11.
61332         * m4/lib-link.m4: New file, from gettext-0.11.
61333         * m4/lib-prefix.m4: New file, from gettext-0.11.
61334         * m4/progtest.m4: Upgrade to gettext-0.11.
61335
61336 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61337
61338         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61339         (jm_PREREQ): Use it.
61340
61341 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61342
61343         * lib/posixver.c, lib/posixver.h: New files.
61344         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61345
61346 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61347             Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61350         (fwrite_success_callback): New declaration.
61351         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61352         print_unicode_char. Call failure callback instead of error.
61353         (fwrite_success_callback): New function.
61354         (exit_failure_callback): New function.
61355         (fallback_failure_callback): New function.
61356         (print_unicode_char): Call unicode_to_mb.
61357
61358 2002-01-26  Jim Meyering  <meyering@lucent.com>
61359
61360         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61361         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61362
61363 2002-01-26  Jim Meyering  <meyering@lucent.com>
61364
61365         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61366
61367 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61368
61369         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61370
61371 2002-01-22  Jim Meyering  <meyering@lucent.com>
61372
61373         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61374         Otherwise, some versions of automake would omit the rule that makes
61375         Makefile from Makefile.in.
61376
61377 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61378
61379         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61380         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61381         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61382         (memcoll): Set errno to zero if there is no error.
61383
61384         * lib/quotearg.c (quotearg_buffer_restyled):
61385         Fix bug with quoting buffers containing NUL when backslashing escapes.
61386         This bug was exposed by the other changes in this patch.
61387         (quotearg_n_options): New arg ARGSIZE.
61388         All callers changed.
61389         (quoting_options_from_style): New function.
61390         (quotearg_n_style): Use it.
61391         (quotearg_n_style_mem): New function.
61392
61393         * lib/quotearg.h (quotearg_n_style_mem): New function.
61394
61395 2002-01-19  Jim Meyering  <meyering@lucent.com>
61396
61397         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61398         Remove useless quotes: DF_PROG="df".
61399         * m4/strnlen.m4: New file.
61400
61401 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61402
61403         * lib/backupfile.c (ISDIGIT): Comment fix.
61404         * lib/getdate.y (ISDIGIT): Likewise.
61405         * lib/posixtm.c (ISDIGIT, year): Likewise.
61406         * lib/strverscmp.c (ISDIGIT): Likewise.
61407         * lib/userspec.c (ISDIGIT): Likewise.
61408
61409 2002-01-16  Jim Meyering  <meyering@lucent.com>
61410
61411         * lib/getdate.y: Add three semicolons, each just before a closing
61412         brace. Bison (as of version 1.31) no longer papers over that mistake.
61413
61414 2002-01-05  Jim Meyering  <meyering@lucent.com>
61415
61416         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61417
61418 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61419
61420         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61421         not silently exit merely because the output buffer happens to
61422         have nothing pending.
61423
61424 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61425
61426         See the big note in ../ChangeLog.
61427         * lib/human.c (suffixes): Prefer K to k for 1024.
61428         (generate_suffix_backwards): New function.
61429         (human_readable_inexact): Use it.
61430         * lib/xstrtol.c (__xstrtol): If there is no number but there
61431         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61432         Accept 'K' as well as 'k'.
61433
61434 2001-12-15  Jim Meyering  <meyering@lucent.com>
61435
61436         * lib/regex.h (__restrict_arr): Update from libc.
61437
61438         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61439         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61440         (STREQ): Define.
61441
61442 2001-12-14  Jim Meyering  <meyering@lucent.com>
61443
61444         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61445         Suggestion from Bruno Haible.
61446
61447 2001-12-10  Jim Meyering  <meyering@lucent.com>
61448
61449         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61450         xrealloc, Instead, include "xalloc.h".
61451         (initbuffer): Don't cast xmalloc return value to char*.
61452         (readline): Reword comment.
61453         Don't cast xrealloc return value to char*
61454         Return NULL, not 0.
61455
61456 2001-12-09  Jim Meyering  <meyering@lucent.com>
61457
61458         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61459         about `signed and unsigned type in conditional expression'.
61460         * lib/posixtm.c (posix_time_parse): Likewise.
61461
61462         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61463
61464         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61465         to avoid a pedantic warning.
61466
61467         * lib/getstr.c: Don't include assert.h.
61468         (getstr): Remove warning-evoking assertions.
61469         Return -1 if offset parameter is out of bounds.
61470         Change the type of a local from int to size_t.
61471
61472         * lib/strftime.c (my_strftime_localtime_r): Include this function
61473         definition in the `#if ! HAVE_TM_GMTOFF' block.
61474
61475         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61476         Include xalloc.h instead.
61477
61478 2001-12-02  Jim Meyering  <meyering@lucent.com>
61479
61480         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61481         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61482         included.
61483
61484         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61485         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61486
61487 2001-11-30  Akim Demaille  <akim@epita.fr>
61488
61489         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61490         before being defined.
61491
61492 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61493
61494         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61495         First arg is int, not unsigned.
61496         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61497         (SIZE_MAX, UINT_MAX): New macros.
61498         (quotearg_n_options): Abort if N is negative.
61499         Avoid overflow check on hosts where size_t is 64 bits and int
61500         is 32 bits, as overflow is impossible there.
61501         Fix off-by-one typo that caused unnecessary reallocation.
61502
61503 2001-11-27  Jim Meyering  <meyering@lucent.com>
61504
61505         * lib/tempname.c: Merge with version from libc.
61506         * lib/regex.c: Likewise.
61507
61508         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61509         systems for which STDC_HEADERS is 0, it was not included, resulting in
61510         a warning about an integer-to-pointer conversion problem with getenv.
61511         Reported by Volker Borchert.
61512
61513 2001-11-26  Jim Meyering  <meyering@lucent.com>
61514
61515         * lib/gtod.h: Remove file.
61516         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61517         * lib/gettimeofday.c: Don't include gtod.h.
61518         (GTOD_init): Remove function.
61519         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61520         Suggestion from Volker Borchert.
61521
61522 2001-11-23  Jim Meyering  <meyering@lucent.com>
61523
61524         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61525         it.
61526         * lib/hash.c (struct hash_table): Define it here instead.
61527
61528 2001-11-22  Jim Meyering  <meyering@lucent.com>
61529
61530         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61531
61532 2001-11-20  Jim Meyering  <meyering@lucent.com>
61533
61534         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61535         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61536
61537 2001-11-19  Jim Meyering  <meyering@lucent.com>
61538
61539         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61540         directory.  Use "conftestXXXXXX" as the template.
61541         Suggestion from Paul Eggert.
61542
61543         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61544         immediately, so the test doesn't mistakenly hit the max-open-files
61545         limit.
61546
61547 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61548
61549         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61550         (TEMPORARIES): New macro.
61551         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61552         removes an artificial limitation (e.g. HP-UX 10.20, where
61553         TMP_MAX is 17576).
61554
61555 2001-11-18  Jim Meyering  <meyering@lucent.com>
61556
61557         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61558
61559 2001-11-18  Jim Meyering  <meyering@lucent.com>
61560
61561         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61562         on SunOS 4.
61563
61564         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61565         files will be created before anything else.
61566
61567 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61568
61569         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61570         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61571
61572 2001-11-17  Jim Meyering  <meyering@lucent.com>
61573
61574         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61575         Prompted by a report from Bob Proulx.
61576
61577         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61578         Instead, require UTILS_FUNC_MKSTEMP.
61579
61580 2001-11-17  Jim Meyering  <meyering@lucent.com>
61581
61582         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61583         Now, that's done as part of AC_FUNC_STRTOD.
61584
61585 2001-11-17  Jim Meyering  <meyering@lucent.com>
61586
61587         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61588         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61589         rather than group writable.  Patch by Juan F. Codagnone.
61590
61591         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61592         xrealloc, Instead, include "xalloc.h".
61593
61594         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61595         Remove explicit declarations of xmalloc, xrealloc,
61596         and xstrdup.  Instead, include "xalloc.h".
61597
61598         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61599         unlocked-io.h.
61600         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61601         Likewise.
61602         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61603
61604         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61605         Reported by Padraig Brady.
61606
61607         * lib/mkstemp.c: #undef mkstemp.
61608         Include config.h.
61609         (rpl_mkstemp): Rename from mkstemp.
61610         Protoize.
61611
61612 2001-11-16  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61615         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61616         determine the amount of total physical memory, use pstat_getstatic.
61617         HPUX-11 doesn't define _SC_PHYS_PAGES.
61618         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61619         If sysconf couldn't be used to determine the amount of available
61620         physical memory, use both pstat_getstatic and pstat_getdynamic.
61621         Based on a patch from Bob Proulx.
61622
61623 2001-11-10  Jim Meyering  <meyering@lucent.com>
61624
61625         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61626         (jm_PREREQ): Use it.
61627
61628 2001-11-09  Jim Meyering  <meyering@lucent.com>
61629
61630         * m4/jm-macros.m4: Require autoconf-2.52f.
61631         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61632         Use these AC_-prefixed names, not the AM_-prefixed ones.
61633
61634         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61635
61636 2001-11-05  Jim Meyering  <meyering@lucent.com>
61637
61638         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61639
61640 2001-11-04  Jim Meyering  <meyering@lucent.com>
61641
61642         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61643         $DEFS.
61644
61645 2001-11-03  Jim Meyering  <meyering@lucent.com>
61646
61647         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61648         of AC_DEFUN.
61649
61650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61651         know the name of the variable in the macro definition.
61652
61653 2001-11-03  Jim Meyering  <meyering@lucent.com>
61654
61655         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61656         in argmatch_to_argument call.
61657
61658         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61659         argument.
61660
61661         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61662         e.g., a fault due to an attempt to free a NULL pointer.
61663
61664 2001-11-01  Jim Meyering  <meyering@lucent.com>
61665
61666         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61667         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61668
61669 2001-11-01  Jim Meyering  <meyering@lucent.com>
61670
61671         * lib/dirfd.c, lib/dirfd.h: New files.
61672         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61673
61674         * lib/hash.c (hash_print) [TESTING]: Clean up.
61675
61676 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61677
61678         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61679         to avoid a warning if -Wall.
61680
61681 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61682
61683         * README: New file
61684         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61685         (per RMS's instructions, this is now the canonical source)
61686         * lgpl/, gpl/: New directories.
61687
61688 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61689
61690         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61691
61692 2001-10-21  Jim Meyering  <meyering@lucent.com>
61693
61694         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61695         this code would end up calling gettext even in packages built
61696         with --disable-nls.
61697         * lib/getopt.c (_): Likewise.
61698         * lib/regex.c (_): Likewise.
61699
61700 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61701
61702         * m4/error.m4 (jm_PREREQ_ERROR):
61703         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61704         AC_FUNC_STRERROR_R does that.
61705         Check for strerror declaration.
61706
61707         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61708         are supposed to have them these days.
61709         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61710         Merge changes from latest Autoconf CVS.
61711         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61712         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61713         POSIX decided to standardize on the int flavor of strerror_r.
61714
61715 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61716
61717         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61718         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61719         Use strerror_r that is only a macro, even if it is not a function.
61720         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61721         (private_strerror): Use prototypes, not old-style function definition.
61722         (print_errno_message): New function.
61723         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61724         char*-flavored one.
61725         (error_tail, error, error_at_line): Use it.
61726
61727 2001-10-11  Jim Meyering  <meyering@lucent.com>
61728
61729         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61730         and quote_n (1, ... to avoid clobbering a buffer.
61731
61732 2001-10-05  Jim Meyering  <meyering@lucent.com>
61733
61734         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61735         hash-pjw.h.
61736         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61737         * lib/hash-pjw.h: New file.
61738
61739 2001-09-30  Jim Meyering  <meyering@lucent.com>
61740
61741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61742         `struct fsstat' has the `f_fstypename' member.
61743         Use that to define FS_TYPE, which is now used to make
61744         the getfsstat link test tighter.
61745
61746 2001-09-30  Jim Meyering  <meyering@lucent.com>
61747
61748         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61749         Include <sys/ucred.h>, for Apple Darwin.
61750         Include sys/mount.h and sys/fs_types.h only if available.
61751         (FS_TYPE): Define.
61752         (read_filesystem_list): Use FS_TYPE.
61753
61754 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61755
61756         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61757         a boolean context.
61758
61759 2001-09-29  Jim Meyering  <meyering@lucent.com>
61760
61761         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61762         [one-argument getmntent function]): Include stdio.h before mntent.h.
61763         SunOS 4.1.x needs it for the declaration of `FILE'.
61764         Patch by Volker Borchert.
61765
61766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61767         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61768         sys/fs_types.h, and make the link-test for getfsstat guard #include
61769         directives with appropriate #if HAVE_*_H tests so that we can
61770         detect getfsstat on Apple Darwin1.3.7 systems.
61771         Reported by Nelson Beebe.
61772         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61773
61774 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61775
61776         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61777         #defines strtoimax.  Also treat the other strto* functions
61778         like strtoimax.
61779
61780         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61781         Check for strtoul and strtoumax,
61782         as those declarations are made even in the signed case.
61783         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61784         Likewise, for strtol and strtoimax.
61785
61786 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61787
61788         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61789         #defines strtoimax.  Also treat the other strto* functions
61790         like strtoimax.
61791
61792         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61793         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61794         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61795
61796 2001-09-26  Jim Meyering  <meyering@lucent.com>
61797
61798         Most macros in unlocked-io.h had the wrong number of arguments.
61799         * lib/gen-uio: New script.
61800         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61801         * lib/unlocked-io.hin: Remove file.
61802         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61803         rather than trying to embed it here.
61804         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61805         Reported by Padraig Brady.
61806
61807 2001-09-25  Volker Borchert  <bt@teknon.de>
61808
61809         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61810         `result'.
61811
61812 2001-09-24  Jim Meyering  <meyering@lucent.com>
61813
61814         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61815
61816 2001-09-23  Jim Meyering  <meyering@lucent.com>
61817
61818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61819         instead of the mere test for existence of mntent.h.  The latter
61820         would get a false-positive on AIX 3.4 systems.
61821         In the outer getmntent if-block, don't die if neither of the getmntent
61822         tests succeeds.  Instead, just fall through and continue with the
61823         remaining tests.
61824
61825 2001-09-23  Jim Meyering  <meyering@lucent.com>
61826
61827         * lib/mountlist.c: Remove useless parentheses in #if directives.
61828         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61829         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61830
61831 2001-09-22  Jim Meyering  <meyering@lucent.com>
61832
61833         * m4/gettext.m4: New file.  From gettext.
61834         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61835         * m4/progtest.m4: Likewise
61836         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61837         * m4/glibc21.m4: Likewise.
61838
61839         * m4/libintl.m4: Remove.  No longer used.
61840
61841 2001-09-22  Jim Meyering  <meyering@lucent.com>
61842
61843         * lib/localcharset.c: Update from latest gettext.
61844         * lib/config.charset: Likewise.
61845
61846 2001-09-20  Jim Meyering  <meyering@lucent.com>
61847
61848         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61849         strtoimax.
61850         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61851         strtoumax.
61852
61853 2001-09-20  Jim Meyering  <meyering@lucent.com>
61854
61855         * lib/xstrtol.c (strtoimax): Guard declaration with
61856         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61857         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61858         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61859         (strtoumax): Likewise, for completeness (it wasn't necessary).
61860
61861 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61862
61863         * lib/strtoimax.c (HAVE_LONG_LONG):
61864         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61865         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61866         to work around bug in IBM C compiler.
61867
61868 2001-09-17  Jim Meyering  <meyering@lucent.com>
61869
61870         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61871         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61872         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61873         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61874         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61875         whenever the right hand side need not be expanded by the shell.
61876
61877 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61878
61879         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61880         library.  It's not correct, as some older glibcs are buggy.
61881         fnmatch wasn't fixed until glibc 2.2.
61882
61883         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61884         special shell magic here.
61885
61886 2001-09-16  Jim Meyering  <meyering@lucent.com>
61887
61888         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61889         * m4/jm-macros.m4: Require it.
61890
61891 2001-09-16  Jim Meyering  <meyering@lucent.com>
61892
61893         * lib/mkdir.c: New file.
61894
61895 2001-09-15  Jim Meyering  <meyering@lucent.com>
61896
61897         * m4/jm-macros.m4: Check for help2man.
61898
61899 2001-09-11  Jim Meyering  <meyering@lucent.com>
61900
61901         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61902         The body, by Paul Eggert, was moved here from configure.in.
61903         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61904
61905 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61906
61907         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61908         (jm_PREREQ): Use it.
61909
61910 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61911
61912         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61913         Use ssize_t, not int, to store result of readlink.
61914         Check for ssize_t overflow as well as size_t overflow,
61915         as POSIX says the result of readlink is implementation-defined
61916         when ssize_t overflows.
61917         Remove unnecessary cast to char*.
61918         Use free+malloc instead of realloc, as the storage doesn't need
61919         to be preserved and it's clearer and can be more efficient that way.
61920         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61921         * lib/xreadlink.h (xreadlink): Update prototype.
61922
61923 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61924
61925         * lib/xgetcwd.c: Revert some of the previous change; intead,
61926         fix the HAVE_GETCWD_NULL code to behave more like the
61927         !HAVE_GETCWD_NULL code used to.
61928
61929         Include "xalloc.h".
61930         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61931         invoke xalloc_die.
61932
61933 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61934
61935         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61936         sys/param.h, as pathmax.h includes them.
61937
61938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61939
61940         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61941         (jm_PREREQ_XGETCWD): New macro.
61942
61943         * m4/getcwd.m4: New file.
61944
61945 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61946
61947         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61948         like the HAVE_GETCWD_NULL code.
61949         Include pathmax.h if not HAVE_GETCWD.
61950         Do not include xalloc.h.
61951         (INITIAL_BUFFER_SIZE): New symbol.
61952         Do not use xmalloc / xrealloc, since the caller is responsible for
61953         handling errors.  Preserve errno around `free' during failure.
61954         Do not overrun buffer when using getwd.
61955
61956 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61957
61958         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61959         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61960         getcwd (NULL, 0).
61961
61962 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61963
61964         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61965         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61966         spotted by Jim Meyering.
61967
61968 2001-09-03  Jim Meyering  <meyering@lucent.com>
61969
61970         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61971         failure.
61972
61973 2001-09-02  Jim Meyering  <meyering@lucent.com>
61974
61975         * lib/error.c: Update from GNU libc.
61976
61977 2001-09-01  Jim Meyering  <meyering@lucent.com>
61978
61979         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61980         Used by df.
61981
61982 2001-09-01  Jim Meyering  <meyering@lucent.com>
61983
61984         * lib/xreadlink.c: New file.
61985         * lib/xreadlink.h: New file.
61986         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61987         xreadlink.h.
61988
61989         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61990         doesn't conflict with sparc Solaris 7's definition in
61991         /usr/include/sys/int_types.h.
61992
61993         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61994         files.
61995         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61996         and strncasecmp as r-values.  Unixware didn't have declarations.
61997
61998 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61999
62000         * lib/xstrtol.h: Add copyright notice.
62001         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62002         LONGINT_INVALID_SUFFIX_CHAR.
62003
62004 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62005
62006         * lib/xstrtol.c (strtoimax): New decl.
62007
62008 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62009
62010         * lib/xgetcwd.c: Don't include pathmax.h.
62011         Include stdlib.h and unistd.h if available.
62012         Include xalloc.h.
62013         (xmalloc, xstrdup, free): Remove decls.
62014         (xgetcwd): Don't assume sizes fit in unsigned.
62015         Check for overflow when computing sizes.
62016         Simplify reallocation code.
62017
62018 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62019
62020         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62021         a directory's st_size can have an arbitrary value, so the old
62022         usage could waste an arbitrary amount of memory.  All uses
62023         changed.
62024         * lib/savedir.h: Update prototype.
62025
62026 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62027
62028         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62029
62030         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62031         old strtoimax.c.
62032
62033         Also, make the following further changes to make this file's
62034         configuration more similar to that of strtol.c:
62035         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62036         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62037         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62038         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62039         changed to signed values.
62040
62041         And make the following changes as well:
62042         Fix copyright notice, as 1999 was missing.
62043         (verify): New macro.
62044         (strtoimax): Check sizes at compile-time, not run-time.
62045         Prefer strtol to strtoll if both work.
62046         (main): Remove; it was not that useful and was a pain to maintain.
62047
62048         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62049
62050 2001-08-31  Jim Meyering  <meyering@lucent.com>
62051
62052         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62053         Use an initial, malloc'd, buffer of length 128 rather than
62054         a statically allocated one of length 1024.
62055
62056 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62057
62058         Simplify code, partly by assuming autoconf 2.52 semantics.
62059
62060         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62061
62062         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62063         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62064         All uses removed.
62065         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62066         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62067         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62068         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62069         jm_AC_HEADER_INTTYPES_H.
62070         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62071
62072         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62073
62074         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62075         Quote first arg of AC_DEFUN.
62076         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62077         since they are needed to parse the include file even if we need
62078         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62079         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62080         but with opposite signedness.
62081
62082 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62083
62084         Merge 'exclude' changes from tar 1.13.22.
62085         This fixes one or two unlikely storage allocation overflow bugs,
62086         but doesn't change user-visible behavior otherwise.
62087
62088 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62089
62090         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62091         (jm_PREREQ_EXCLUDE): New macro.
62092
62093 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62094
62095         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62096         tm to be declared.
62097
62098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62099
62100         * lib/hash.c: Remove '2001' from copyright notice.
62101
62102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62103
62104         * lib/full-write.h: New file.
62105         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62106         * lib/full-write.c: Correct credits, as cccp.c no longer
62107         exists and anyway it was so heavily changed from the old cccp
62108         code as to be unrecognizable.  Include full-write.h.
62109         (full_write) Return size_t, with short writes meaning failure.
62110         All callers changed.  This fixes a bug with large buffers
62111         on 64-bit hosts.
62112         * lib/utime.c: Include full-write.h.
62113
62114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62115
62116         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62117         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62118         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62119         Include if available.
62120         (<xalloc.h>): Include
62121         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62122         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62123         collide with FNM macros.
62124         (struct patopts): New struct.
62125         (struct exclude): Use it, as exclude patterns now come with options.
62126         (new_exclude): Support above changes.
62127         (new_exclude, add_exclude_file):
62128         Initial size must now be a power of two to simplify overflow checking.
62129         (free_exclude, fnmatch_no_wildcards): New function.
62130         (excluded_filename): No longer requires options arg, as the options
62131         are determined by add_exclude.  Now returns bool, not int.
62132         (excluded_filename, add_exclude):
62133         Add support for the fancy new exclusion options.
62134         (add_exclude, add_exclude_file): Now takes int options arg.
62135         Check for arithmetic overflow when computing sizes.
62136         (add_exclude_file): xrealloc might modify errno, so don't
62137         realloc until after errno might be used.
62138
62139         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62140         New macros.
62141         (free_exclude): New decl.
62142         (add_exclude, add_exclude_file): Now takes int options arg.
62143         (excluded_filename): No longer requires options arg, as the options
62144         are determined by add_exclude.  Now returns bool, not int.
62145
62146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62147
62148         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62149
62150 2001-08-27  Jim Meyering  <meyering@lucent.com>
62151
62152         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62153
62154         * lib/version-etc.c (N_): Remove definition.
62155         Revert most of last change.
62156         Instead, simply don't mark the `Copyright...' string for translation.
62157         Based on advice from Paul Eggert.
62158
62159         * lib/strtoxmax.c: Tweak comment.
62160
62161 2001-08-26  Jim Meyering  <meyering@lucent.com>
62162
62163         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62164
62165         * m4/xstrtoimax.m4: New file.
62166         * m4/xstrtoumax.m4: Add comments explaining why we
62167         AC_REPLACE_FUNCS(strtol).
62168
62169 2001-08-26  Jim Meyering  <meyering@lucent.com>
62170
62171         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62172         of copyright with `%s' so translators don't get an untranslated
62173         message in 2002.
62174         (COPYRIGHT_YEAR): Define.
62175         (version_etc): Use fprintf rather than fputs.
62176         Suggestion from Ulrich Drepper.
62177
62178         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62179
62180         * lib/strtoll.c: New file, from GNU libc.
62181         * lib/xstrtoimax.c: New file.
62182
62183         * lib/xstrtol.h: Add xstrtoimax.
62184         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62185         * lib/strtoimax.c: New file.  Likewise, but first define
62186         STRTOUXMAX_SIGNED.
62187
62188         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62189         ...
62190         * lib/strtoxmax.c: ... then renamed to this.
62191
62192 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62193
62194         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62195         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62196         (jm_AC_TYPE_INTMAX_T): New macro.
62197         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62198
62199         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62200
62201         * m4/longlong.m4: Renamed from ulonglong.m4.
62202         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62203         * m4/uintmax_t.m4: Removed.
62204
62205 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62206
62207         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62208         Port to Solaris 8, where 'sed' requires a space after the 'r'
62209         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62210         Redirect output to $tmp just once.
62211
62212 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62213
62214         * lib/addext.c (<errno.h>): Include.
62215         (errno): Declare if not defined.
62216         (addext): Work correctly when pathconf returns -1 and leaves
62217         errno alone because there is no limit.  Also, work even if
62218         pathconf returns a value greater than SIZE_MAX.
62219
62220 2001-08-12  Jim Meyering  <meyering@lucent.com>
62221
62222         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62223         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62224         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62225         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62226         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62227         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62228         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62229         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62230         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62231         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62232         utime.m4, utimes.m4, xstrtoumax.m4:
62233         Quote the first argument in each use of AC_DEFUN.
62234
62235 2001-08-12  Jim Meyering  <meyering@lucent.com>
62236
62237         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62238         Simply `return getcwd (NULL, 0);'.
62239         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62240         Use 1300 as initial value for length, not PATH_MAX.
62241
62242         * lib/pathmax.h: Clean up cpp syntax.
62243
62244 2001-08-12  Jim Meyering  <meyering@lucent.com>
62245
62246         * lib/gettimeofday.c: New file.
62247         * lib/gtod.h: New file.
62248         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62249
62250 2001-08-05  Jim Meyering  <meyering@lucent.com>
62251
62252         * m4/jm-macros.m4: Require autoconf-2.52.
62253
62254 2001-08-04  Jim Meyering  <meyering@lucent.com>
62255
62256         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62257         stmt, to get in sync with glibc.
62258
62259 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62260
62261         The following changes are from gettext 0.10.39 as maintained by
62262         Bruno Haible.
62263
62264         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62265         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62266         with inverted sense.  All uses changed.
62267
62268         * lib/mbswidth.c: Don't include <limits.h>.
62269         Include <stdlib.h> and <string.h> unconditionally.
62270         (iswcntrl, mbsinit, ISCNTRL): New macros.
62271         (mbsnwidth): Use K&R style function declarations.
62272         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62273         can optimize it when MB_CUR_MAX == 1.
62274         The width of control characters is zero, not 1.
62275
62276 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62277
62278         The following changes are from gettext 0.10.39 as maintained by
62279         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62280
62281         * m4/codeset.m4: Upgrade to serial AM1.
62282         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62283         all uses changed.  Quote first arg of AC_DEFUN.
62284         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62285
62286         * m4/iconv.m4: Upgrade to serial AM2.
62287         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62288         Add --with-libconv-prefix.
62289         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62290         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62291         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62292         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62293         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62294
62295         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62296         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62297         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62298         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62299         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62300         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62301         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62302         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62303         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62304
62305         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62306         string.h any more.
62307
62308         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62309         not the default value.
62310
62311         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62312         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62313         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62314         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62315         Also check for iswcntrl, used for wcwidth fallback.
62316         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62317         to Autoconf 2.13.
62318
62319 2001-08-03  Jim Meyering  <meyering@lucent.com>
62320
62321         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62322         as it was in the original.  Reported by Paul Eggert.
62323
62324 2001-07-16  Jim Meyering  <meyering@lucent.com>
62325
62326         * m4/gettimeofday.m4: New file.
62327         Prompted by a report from Bernhard Baehr.
62328
62329 2001-07-15  Jim Meyering  <meyering@lucent.com>
62330
62331         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62332         stuff. Now it's in ../Makefile.cfg.
62333
62334 2001-07-15  Jim Meyering  <meyering@lucent.com>
62335
62336         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62337         (BUILT_SOURCES): Add unlocked-io.h.
62338         (io_functions): Define.
62339         (unlocked-io.h): New rule.
62340         (DISTCLEANFILES): Add unlocked-io.h.
62341         (all-local): Depend on unlocked-io.h, to ensure it is created.
62342
62343         * lib/unlocked-io.hin: New file
62344
62345         * lib/regex.c: Update from glibc.
62346
62347 2001-07-05  Jim Meyering  <meyering@lucent.com>
62348
62349         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62350         recommendation.
62351         (libfetish_a_SOURCES): Put all .h files here instead.
62352         Remove a thus-exposed (better checks in automake) duplicate and
62353         two unnecessary .h files.
62354
62355 2001-07-04  Jim Meyering  <meyering@lucent.com>
62356
62357         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62358         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62359         distcheck failure.
62360
62361 2001-07-02  Jim Meyering  <meyering@lucent.com>
62362
62363         The following changes were prompted by suggestions from Bruno Haible.
62364
62365         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62366         is now generated.
62367         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62368         definition of EXTRA_DIST.
62369         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62370         ensure that the generated file is created/updated whenever the list
62371         of $(unlocked_functions) is changed.
62372         (jm-glibc-io.m4): New rule.
62373         (unlocked-io.h): New rule -- currently unused.
62374
62375 2001-06-24  Jim Meyering  <meyering@lucent.com>
62376
62377         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62378         unmatched right bracket, rather than kludging it with an extra,
62379         falsely-matching quote in a comment.  Patch by Akim Demaille.
62380
62381 2001-06-11  Jim Meyering  <meyering@lucent.com>
62382
62383         * lib/regex.c: Update from GNU libc.
62384
62385 2001-05-27  Jim Meyering  <meyering@lucent.com>
62386
62387         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62388         Check for ut_type in struct utmp.
62389
62390 2001-05-27  Jim Meyering  <meyering@lucent.com>
62391
62392         * lib/readutmp.h (UT_TYPE): Define.
62393
62394 2001-05-24  Jim Meyering  <meyering@lucent.com>
62395
62396         * lib/argmatch.c: Include "quote.h".
62397         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62398         quote function.  Reported by Göran Uddeborg.
62399
62400 2001-05-22  Jim Meyering  <meyering@lucent.com>
62401
62402         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62403         now that we use the package-supplied version unconditionally.
62404         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62405
62406 2001-05-21  Jim Meyering  <meyering@lucent.com>
62407
62408         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62409         shell syntax errors.
62410
62411 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62412
62413         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62414
62415 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62416
62417         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62418         Don't bother to check library strftime, since
62419         we'll be using our own my_strftime function anyway.
62420         Define my_strftime instead of strftime.
62421
62422 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62423
62424         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62425         which is not yet declared.
62426
62427 2001-05-15  Jim Meyering  <meyering@lucent.com>
62428
62429         * m4/regex.m4: Use proper quoting so brackets appear in the test
62430         program.
62431         Reported by, and with help from, Bruno Haible.
62432
62433 2001-05-13  Jim Meyering  <meyering@lucent.com>
62434
62435         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62436         undefined.
62437
62438 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62439
62440         dirname code cleanup.  base_name now behaves more compatibly
62441         with POSIX basename when given file names that have trailing
62442         slashes, and similarly for dir_name.  Add new primitives
62443         base_len and dir_len.  Put the directory-name-related decls
62444         into dirname.h.
62445
62446         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62447         * lib/backupfile.c (base_name): Likewise.
62448         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62449         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62450         * lib/makepath.c (strip_trailing_slashes): Likewise.
62451         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62452         ISSLASH): Likewise.
62453         * lib/rename.c (strip_trailing_slashes): Likewise.
62454         * lib/same.c (base_name): Likewise.
62455         * lib/stripslash.c (ISSLASH): Likewise.
62456
62457         * lib/addext.c: Include <dirname.h> after size_t is defined.
62458         * lib/backupfile.c: Likewise.
62459
62460         * lib/addext.c (addext): Use base_len to trim redundant
62461         trailing slashes instead of doing it ourselves.
62462         But do not trim the last slash if it is not redundant.
62463
62464         * lib/backupfile.c (find_backup_file_name,
62465         max_backup_version): Use base_len instead of rolling it ourselves.
62466         Handle the case of "" and (on DOS) "C:" correctly.
62467
62468         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62469         needed. Include <string.h>, <dirname.h>.
62470         (base_name): Allow file names ending in slashes, other than names
62471         that are all slashes.  In this case, return the basename followed
62472         by the slashes.  This is more general, and can be used in places
62473         where the original base_name purposely had an assertion failure.
62474         (base_len): New function.
62475
62476         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62477         Do not include <assert.h>; no longer needed.
62478         Include xalloc.h.
62479         (memrchr): Remove decl.
62480         (dir_name_r): Remove.
62481         (dir_len): Renamed from dirlen.  All callers changed.
62482         Rewrite in terms of base_name, for simplicity and consistency.
62483         (dir_name): Never return NULL.  All callers changed.
62484         Do not include <stdlib.h> in test program; no longer needed.
62485         return 0; is fine for test program.
62486
62487         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62488         New macros.
62489         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62490
62491         * lib/path-concat.c (path_concat): Use base_len to compute
62492         base length, not strlen; this means we cannot rely on memcpy
62493         to null-terminate.
62494
62495         * lib/same.c (STREQ): Remove.
62496         (same_name): Handle the case where the basename ends in trailing '/'.
62497
62498         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62499         a slash was stripped.  Do not strip the last slash after a
62500         file system prefix.
62501
62502 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62503
62504         * lib/Makefile.am (libfetish_a_SOURCES):
62505         Add strftime.c, since we now compile it on all hosts.
62506
62507         * lib/strftime.c (my_strftime):
62508         Define to nstrftime if emacs, but only if my_strftime is not defined.
62509         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62510         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62511         Add one more extra argument: a nanoseconds value.
62512         All uses changed.
62513         (ns): New macro.
62514         (my_strftime function): Add %N format.
62515         (emacs_strftimeu): Renamed from emacs_strftime,
62516         with extra ut argument.
62517
62518 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62519
62520         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62521
62522 2001-04-21  Jim Meyering  <meyering@lucent.com>
62523
62524         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62525         doesn't interfere.
62526
62527 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62528
62529         * m4/ftruncate.m4: Check for chsize.
62530         Link with ftruncate.o unconditionally if ftruncate is missing.
62531         This was required when cross-compiling to i586-mingw32msvc.
62532
62533 2001-04-08  Jim Meyering  <meyering@lucent.com>
62534
62535         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62536         recomputed; that's necessary when the offset spans a DST transition.
62537         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62538
62539 2001-04-02  Jim Meyering  <meyering@lucent.com>
62540
62541         * lib/regex.h, regex.c: Update from GNU libc.
62542
62543 2001-03-24  Jim Meyering  <meyering@lucent.com>
62544
62545         * m4/jm-macros.m4: Require autoconf-2.49d.
62546
62547 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62548
62549         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62550
62551 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62552
62553         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62554
62555 2001-03-17  Jim Meyering  <meyering@lucent.com>
62556
62557         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62558         now that the version in autoconf is equivalent.
62559         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62560
62561         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62562         Suggestion from Akim Demaille.
62563
62564         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62565         (jm_PREREQ_TEMPNAME): New function.
62566
62567 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62568
62569         * lib/tempname.c (uint64_t): Define to uintmax_t if
62570         not defined, and if UINT64_MAX is not defined.
62571         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62572         Reported by John David Anglin.
62573
62574 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62575
62576         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62577         resolve alias if codeset is empty.
62578         * lib/config.charset (BeOS): Use wildcard syntax.
62579
62580 2001-03-13  Jim Meyering  <meyering@lucent.com>
62581
62582         * lib/path-concat.c (path_concat)
62583         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62584         concatenating e.g., `C:' and `foo'.
62585         From Bruno Haible.
62586
62587 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62588
62589         * lib/localcharset.c (locale_charset): Don't use
62590         setlocale(LC_CTYPE,NULL). Don't return NULL.
62591         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62592
62593 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62594
62595         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62596         support for DOS/DJGPP.
62597
62598 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62599
62600         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62601         lacks mkstemp.  Compile our own tempname.c if we compile our own
62602         mkstemp.c, as mkstemp relies on tempname.
62603
62604 2001-03-01  Jim Meyering  <meyering@lucent.com>
62605
62606         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62607         AH_VERBATIM really does output its argument verbatim.
62608
62609 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62610
62611         * lib/Makefile.am (libfetish_a_SOURCES):
62612         Add dup-safer.c, fopen-safer.c.
62613         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62614
62615         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62616         * lib/unistd-safer.h: New files.
62617
62618 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62619
62620         The mkstemp replacement is taken from glibc 2.2.2, with some
62621         portability fixes for use outside glibc, as follows:
62622
62623         * lib/tempname.c (struct_stat64): New macro.
62624         (direxists, __gen_tempname): Use it.
62625         This avoids a portability problem with Solaris 8.
62626
62627         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62628         (<stddef.h>, <stdint.h>, <string.h>):
62629         Include only if STDC_HEADERS || _LIBC.
62630         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62631         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62632         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62633         (__set_errno): Define this macro if <errno.h> doesn't.
62634         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62635         Define these macros if <stdio.h> doesn't.
62636         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62637         Define these macros if <sys/stat.h>
62638         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62639         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62640         __xstat64): Define if not _LIBC.
62641         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62642         (__gen_tempname): Invoke gettimeofday only if
62643         HAVE_GETTIMEOFDAY || _LIBC;
62644         otherwise, fall back on plain "time".
62645         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62646
62647         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62648
62649         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62650
62651 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62652
62653         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62654
62655 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62656
62657         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62658         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62659         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62661
62662 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62663
62664         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62665         Remove workaround macros for hosts that have mbrtowc but not
62666         mbstate_t, as we now insist on proper declarations for both
62667         before using mbrtowc.
62668
62669 2001-02-17  Jim Meyering  <meyering@lucent.com>
62670
62671         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62672         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62673         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62674         UnixWare 7.1.1.
62675
62676         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62677         rather than AC_CACHE_VAL.
62678
62679 2001-02-17  Jim Meyering  <meyering@lucent.com>
62680
62681         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62682         around included file name.
62683
62684         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62685
62686         * lib/strftime.c: Update from GNU libc (the only changes were to
62687         comments).
62688
62689 2001-02-17  Jim Meyering  <meyering@lucent.com>
62690
62691         * lib/regex.c: Update from libc.
62692
62693 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62694
62695         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62696         clash.
62697
62698 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62699
62700         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62701         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62702         Reported by Mark Hounschell via Paul Eggert.
62703
62704 2001-02-07  Jim Meyering  <meyering@lucent.com>
62705
62706         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62707
62708 2001-02-05  Jim Meyering  <meyering@lucent.com>
62709
62710         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62711         it includes the patch required for `large file' support with at least
62712         HP-UX's 10.20 /bin/cc.
62713
62714 2001-02-03  Jim Meyering  <meyering@lucent.com>
62715
62716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62717         AS_IF, now that it works once again (mysteriously).
62718         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62719
62720 2001-01-30  Jim Meyering  <meyering@lucent.com>
62721
62722         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62723         * m4/chown.m4: Rename conftestchown to conftest.chown.
62724         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62725         s/conftestdir2/conftest.d2/.
62726         * m4/utimes.m4: s/conftestdata/conftest.data/
62727         Inspired by Pavel Roskin's change in autoconf.
62728
62729 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62730
62731         * lib/config.charset: Update for FreeBSD 4.2.
62732
62733 2001-01-27  Jim Meyering  <meyering@lucent.com>
62734
62735         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62736         a use of AS_IF.
62737         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62738
62739 2001-01-26  Jim Meyering  <meyering@lucent.com>
62740
62741         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62742         quotearg.c includes it.
62743
62744 2001-01-26  Jim Meyering  <meyering@lucent.com>
62745
62746         * lib/quotearg.c: Include stddef.h.
62747         * lib/quote.c: Include stddef.h.
62748         Reported by Axel Kittenberger.
62749
62750         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62751         line in double quotes so that it evokes a better diagnostic.
62752         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62753         Reported by Axel Kittenberger.
62754
62755 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62756
62757         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62758         as if it was a `charset'.
62759
62760 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62761
62762         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62763         has const.
62764
62765 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62766
62767         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62768         to avoid a warning.  Add back 'const' to inptr.
62769
62770 2001-01-20  Jim Meyering  <meyering@lucent.com>
62771
62772         Be sure that headers are checked before used in code compiled
62773         for the type checks.
62774         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62775         In place of that, invoke jm_CHECK_ALL_TYPES.
62776         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62777         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62778         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62779         The check for ssize_t was mistakenly run before the test for unistd.h.
62780
62781         The configure-time check for stdbool.h was missing.
62782         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62783         (jm_PREREQ_HASH): New function.
62784
62785 2001-01-17  Jim Meyering  <meyering@lucent.com>
62786
62787         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62788         for autoconf-2.49c.
62789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62790
62791 2001-01-16  Jim Meyering  <meyering@lucent.com>
62792
62793         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62794         From Bruno Haible.
62795
62796 2001-01-14  Jim Meyering  <meyering@lucent.com>
62797
62798         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62799         foo and bar.  Create conftestdir/ in the script, not in the C code.
62800         Remove directories in the script, not in the C code.
62801         Remove conftestdir{,2} before trying to create the directory.
62802         Make the entire configure script fail if the mkdir fails.
62803
62804 2001-01-14  Jim Meyering  <meyering@lucent.com>
62805
62806         * lib/rename.c: New file.  From Volker Borchert.
62807         Include stdlib.h, string.h or strings.h, and xalloc.h.
62808         Use strip_trailing_slashes rather than open-coding it.
62809
62810 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62811
62812         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62813
62814 2001-01-03  Jim Meyering  <meyering@lucent.com>
62815
62816         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62817         of local `inptr' to avoid warning with some system declarations of
62818         iconv.
62819
62820 2001-01-02  Volker Borchert  <bt@teknon.de>
62821
62822         * m4/rename.m4: New file.
62823         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62824
62825 2001-01-01  Jim Meyering  <meyering@lucent.com>
62826
62827         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62828         even on systems with utmpx.h.  It's necessary for the declaration of
62829         utmp's ut_user member.  Reported by Andreas Jaeger.
62830
62831         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62832         available. They are required for the declarations of getgrgid and
62833         getpwuid resp.
62834         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62835         Reported by Andreas Jaeger.
62836
62837 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62838
62839         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62840         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62841         so `make install' also works in VPATH builds.
62842
62843 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62844
62845         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62846         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62847         can be used in subdirectories.
62848
62849 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62850
62851         * lib/modechange.c: Do not assume that mode_t uses the
62852         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62853         the other-execute bit of FOO even if S_IXOTH != 1.
62854
62855         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62856         WOTH, XOTH, ALLM): New macros.
62857         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62858          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62859         Use them.
62860         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62861         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62862         (mode_compile):
62863         No need to use uintmax_t; unsigned long is long enough.
62864         Don't bother to get suffix since we don't use it.
62865
62866 2000-12-26  Jim Meyering  <meyering@lucent.com>
62867
62868         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62869         better with autoheader.
62870
62871 2000-12-24  Jim Meyering  <meyering@lucent.com>
62872
62873         * lib/hash.c (is_prime): Return explicit boolean values.
62874         (hash_get_first): Return NULL to appease Irix5.6's 89.
62875         Reported by Nelson Beebe.
62876
62877 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62878
62879         * lib/localcharset.c (locale_charset): Add support for Win32.
62880
62881 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62882
62883         * lib/physmem.h, lib/physmem.c: New files.
62884
62885         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62886         (noinst_HEADERS): Add physmem.h.
62887
62888         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62889         't' for compatibility with Solaris 8 sort.
62890
62891 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62892
62893         * lib/config.charset: Add support for BeOS.
62894
62895 2000-12-17  Jim Meyering  <meyering@lucent.com>
62896
62897         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62898         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62899
62900 2000-12-16  Jim Meyering  <meyering@lucent.com>
62901
62902         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62903         N and M) would have treated it like `chown N:N FILE'.
62904
62905         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62906
62907 2000-12-16  Jim Meyering  <meyering@lucent.com>
62908
62909         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62910         SHELLS_FILE to a file name that's useful on djgpp systems.
62911         Include stdlib.h.
62912         (ADDITIONAL_DEFAULT_SHELLS): Define.
62913         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62914         Based mostly on a patch from Prashant TR.
62915
62916 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62917
62918         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62919         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62920         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62921
62922 2000-12-08  Andreas Schwab  <schwab@suse.de>
62923
62924         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62925         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62926
62927 2000-12-07  Jim Meyering  <meyering@lucent.com>
62928
62929         * lib/stripslash.c (ISSLASH): Define.
62930         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62931         `/'.
62932         From Prashant TR.
62933
62934         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62935         (dir_name_r): Declare this function as static.
62936         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62937         manifest itself on a name containing a mix of slashes and
62938         backslashes.
62939         Make this function work with names starting with a DOS-style
62940         drive letter and colon prefix.
62941         (dir_name): Append `.' if necessary.
62942         Based mostly on patches from Prashant TR and Eli Zaretskii.
62943
62944         * lib/dirname.h (dir_name_r): Remove prototype.
62945
62946 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62947
62948         * m4/off_t-format.m4: Remove this file.
62949         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62950
62951 2000-12-06  Jim Meyering  <meyering@lucent.com>
62952
62953         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62954         replacement strtoull, we may well need the replacement strtoul, too.
62955         Check for declarations of strtoul and strtoull.
62956         Check for strtol.  Mainly as a cue to cause automake to include
62957         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62958         Check for limits.h -- strtol.c needs it.
62959
62960 2000-12-05  Jim Meyering  <meyering@lucent.com>
62961
62962         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62963
62964 2000-12-04  Jim Meyering  <meyering@lucent.com>
62965
62966         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62967         Also include memory.h, stdlib.h, unistd.h if appropriate.
62968         Reported by Andreas Jaeger (conflicting declaration of malloc).
62969
62970 2000-12-02  Jim Meyering  <meyering@lucent.com>
62971
62972         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62973         * m4/jm-macros.m4 (jm_MACROS): require it.
62974
62975 2000-12-02  Jim Meyering  <meyering@lucent.com>
62976
62977         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62978
62979 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62980
62981         * lib/memrchr.c: Include <config.h> before any system include file.
62982
62983 2000-11-30  Jim Meyering  <meyering@lucent.com>
62984
62985         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62986
62987 2000-11-30  Jim Meyering  <meyering@lucent.com>
62988
62989         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62990
62991 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62992
62993         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62994
62995 2000-11-26  Jim Meyering  <meyering@lucent.com>
62996
62997         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62998
62999 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63000
63001         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63002         size of (size_t) -1; it's not portable.
63003
63004 2000-11-17  Jim Meyering  <meyering@lucent.com>
63005
63006         * lib/strstr.c: Update from GNU libc.
63007
63008 2000-11-17  Akim Demaille  <akim@epita.fr>
63009
63010         * lib/obstack.h: Formatting changes.
63011         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63012         prevent type checking.
63013         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63014         cast the value to (void *): assigning a `foo *' to a `void *'
63015         variable is valid.
63016         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63017
63018 2000-11-16  Jim Meyering  <meyering@lucent.com>
63019
63020         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63021
63022 2000-11-11  Jim Meyering  <meyering@lucent.com>
63023
63024         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63025
63026 2000-11-10  Jim Meyering  <meyering@lucent.com>
63027
63028         * lib/obstack.h: Update from GNU libc.
63029         * lib/obstack.c: Likewise.
63030
63031 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63032
63033         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63034
63035 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63036
63037         * lib/getusershell.c (setusershell): Use rewind rather than
63038         fseek/fseeko, to avoid configuration hassles with fseeko.
63039         Don't bother opening SHELLS_FILE if shellstream is NULL;
63040         it's not necessary.
63041
63042 2000-11-05  Jim Meyering  <meyering@lucent.com>
63043
63044         * lib/makepath.h (make_dir): Declare.
63045         * lib/makepath.c (make_dir): Remove `static' attribute.
63046         Tweak a comment.
63047
63048 2000-11-04  Jim Meyering  <meyering@lucent.com>
63049
63050         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63051
63052 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63053
63054         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63055         last one in a bucket, advance to the next bucket.
63056
63057 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63058
63059         * lib/fnmatch.c: Do not comment out all the code if we are using
63060         the GNU C library, because in some cases we are replacing buggy
63061         code in the GNU C library itself.
63062
63063 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63064
63065         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63066         (regex_compile): Catch bogus \(\1\).
63067
63068 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63069
63070         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63071         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63072         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63073
63074 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63075
63076         * lib/error.h, getline.h, modechange.h:
63077         Remove "2000" from Copyright line, as the file hasn't been
63078         changed this year other than in the copyright notice.
63079
63080         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63081         was changed this year.
63082
63083 2000-10-29  Jim Meyering  <meyering@lucent.com>
63084
63085         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63086         renaming.
63087         * m4/ls-mntd-fs.m4: Likewise
63088
63089 2000-10-29  Jim Meyering  <meyering@lucent.com>
63090
63091         * lib/xstat.in: Fix grammar in comment.
63092
63093 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63094
63095         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63096         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63097         doesn't define __restrict_arr.
63098
63099 2000-10-28  Jim Meyering  <meyering@lucent.com>
63100
63101         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63102         (jm_PREREQ_MEMCHR): New function.
63103
63104 2000-10-28  Jim Meyering  <meyering@lucent.com>
63105
63106         * lib/memchr.c: Update from libc.
63107         Adjust for portability:
63108         [HAVE_STDLIB_H]: Include stdlib.h.
63109         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63110         Undef __memchr, too.
63111         [!weak_alias]: Define __memchr to memchr.
63112
63113         * lib/regex.c: Update from libc.
63114         * lib/regex.h: Likewise.
63115         * lib/getopt1.c: Likewise.
63116         * lib/memcmp.c: Likewise.
63117
63118         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63119         Avoid using fseek, when possible -- it's broken by design.
63120         Patch by Ulrich Drepper.
63121
63122 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63123
63124         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63125         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63126         Giving in to popular pressure to shut up the compiler with casts.
63127
63128 2000-10-26  Jim Meyering  <meyering@lucent.com>
63129
63130         * lib/strftime.c: Update from libc.
63131
63132 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63133
63134         * regex.c: More `unsigned char' -> `re_char' changes.
63135         Also change several `int' into `re_wchar_t'.
63136         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63137         (PUSH_FAILURE_POINTER): Don't cast any more.
63138         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63139         We want GCC to complain, since this piece of code makes
63140         re_match non-reentrant, which *should* be fixed.
63141         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63142         (EXTEND_BUFFER): Use RETALLOC.
63143         (SET_LIST_BIT): Don't cast.
63144         (re_wchar_t): New type.
63145         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63146         that those two functions will always properly return.
63147         (IMMEDIATE_QUIT_CHECK): Cast to void.
63148         (analyse_first): Use recursion rather than an explicit stack.
63149         (re_compile_fastmap): Can't fail anymore.
63150         (re_search_2): Don't check re_compile_fastmap for failure.
63151         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63152         Now also sets the new value (passed in a new argument).
63153         (re_match_2_internal): Use it.
63154         Also, use a new var `reg' of type size_t when looping through regs
63155         rather than reuse the inappropriate `mcnt'.
63156
63157 2000-10-25  Jim Meyering  <meyering@lucent.com>
63158
63159         * lib/obstack.c: Update from libc.
63160
63161 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63162
63163         * regex.c (regex_compile): Change the way of handling a range from
63164         a char less than 256 to a char not less than 256.
63165
63166 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63167
63168         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63169         NT-Emacs only.
63170         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63171         so that re_search functions only quit when callers expect them to.
63172
63173 2000-10-23  Jim Meyering  <meyering@lucent.com>
63174
63175         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63176         wrong.  That set_locale call must not have any side effects.
63177         From Paul Eggert.
63178
63179 2000-10-22  Jim Meyering  <meyering@lucent.com>
63180
63181         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63182         [CYCLIC]: Remove now-unused definition.
63183
63184         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63185         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63186         Suggestion from Ulrich Drepper.
63187
63188 2000-10-21  Jim Meyering  <meyering@lucent.com>
63189
63190         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63191         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63193
63194 2000-10-21  Jim Meyering  <meyering@lucent.com>
63195
63196         * lib/dirname.c (memrchr): Declare if necessary.
63197         (dir_name): Remove the restriction that there be no
63198         trailing slashes.  Now, this code skips past them, effectively
63199         ignoring them.
63200         [TEST_DIRNAME] (main): New unit tests.
63201
63202         * lib/memrchr.c: New file from GNU libc.
63203         Undef __memrchr, too.
63204         [!weak_alias]: Define __memrchr to memrchr.
63205         Guard weak_alias use with `#ifdef weak_alias'.
63206
63207 2000-10-21  Jim Meyering  <meyering@lucent.com>
63208
63209         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63210         (dir_name): Use dir_name_r.
63211         * lib/dirname.h (dir_name_r): Declare it.
63212
63213 2000-10-17  Jim Meyering  <meyering@lucent.com>
63214
63215         * lib/quote.h (PARAMS): Define and use.
63216         Reported by Akim Demaille.
63217
63218         * lib/getopt.c: Update from libc.
63219
63220 2000-10-16  Jim Meyering  <meyering@lucent.com>
63221
63222         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63223         setlocale.
63224         From Jan Fedak.
63225
63226 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63227
63228         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63229
63230 2000-09-25  Jim Meyering  <meyering@lucent.com>
63231
63232         * lib/md5.h (rol): Define (from GnuPG).
63233
63234         * lib/sha.c: Give credit (GnuPG) where due.
63235         (M): Use rol rather than open-coding it.
63236         Add a FIXME comment.
63237
63238 2000-09-21  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63241         Reported by Michael Stone.
63242
63243 2000-09-20  Jim Meyering  <meyering@lucent.com>
63244
63245         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63246         (noinst_HEADERS): Add sha.h.
63247         Based on code from Scott G. Miller and from GnuPG.
63248
63249 2000-09-18  Jim Meyering  <meyering@lucent.com>
63250
63251         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63252         LIBS. Otherwise, everyone ends up linking with -lelf for some
63253         configurations.
63254         Reported by Mike Stone.
63255
63256 2000-09-15  Jim Meyering  <meyering@lucent.com>
63257
63258         * lib/regex.c: Update from libc.
63259
63260 2000-09-10  Jim Meyering  <meyering@lucent.com>
63261
63262         * lib/getopt.c (_getopt_internal): Update from glibc.
63263
63264 2000-09-09  Jim Meyering  <meyering@lucent.com>
63265
63266         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63267         think it should be used as a general replacement for isascii.
63268         * lib/fnmatch.c: Likewise.
63269         * lib/mbswidth.c: Likewise
63270         * lib/regex.c: Likewise.
63271
63272         Don't use atoi.
63273         * lib/userspec.c: Include sys/param.h and limits.h.
63274         Include xstrtol.h.
63275         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63276         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63277         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63278         UID, GID.  Check range.
63279
63280 2000-09-06  Jim Meyering  <meyering@lucent.com>
63281
63282         * lib/getopt.c (_getopt_internal): Update from glibc.
63283
63284 2000-08-30  Jim Meyering  <meyering@lucent.com>
63285
63286         * lib/strftime.c: Merge in changes from GNU libc.
63287
63288 2000-08-26  Jim Meyering  <meyering@lucent.com>
63289
63290         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63291         * m4/fpending.m4: New file.
63292
63293 2000-08-26  Jim Meyering  <meyering@lucent.com>
63294
63295         * lib/closeout.c: Include "__fpending.h".
63296         (close_stdout_status): Return right away if there's nothing to flush.
63297
63298         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63299         * lib/__fpending.c: New file.
63300         * lib/__fpending.h: New file.
63301
63302 2000-08-20  Jim Meyering  <meyering@lucent.com>
63303
63304         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63305         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63306         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63307
63308 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63309
63310         Improve fileutils installation on systems where running
63311         programs (like install) can't be unlinked.
63312         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63313         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63314
63315 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63316
63317         Standardize on "memory exhausted" instead of "Memory exhausted"
63318         or "virtual memory exhausted".
63319         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63320         "virtual memory exhausted".
63321         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63322         our own message.
63323         * lib/userspec.c (parse_user_spec): Likewise.
63324         * lib/bumpalloc.h: comment fix
63325         * lib/same.c, userspec.c: Include xalloc.h.
63326
63327         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63328         not char *const and pointing to a constant array.
63329         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63330         (xrealloc): Comment fix.
63331
63332         * lib/userspec.c (parse_user_spec):
63333         Don't translate a message until just before returning,
63334         to avoid unnecessary translation.
63335
63336 2000-08-07  Jim Meyering  <meyering@lucent.com>
63337
63338         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63339         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63340         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63341         getgroups.c, gethostname.c, getopt.h, group-member.c,
63342         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63343         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63344         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63345         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63346         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63347         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63348         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63349         yesno.c: Back out Copyright date changes for each file with no change
63350         this year.  This eases coordination with other programs using the same
63351         source code modules.  From Paul Eggert.
63352
63353 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63354
63355         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63356         not char, for compatibility with glibc 2.1.3 strftime.c.
63357
63358 2000-08-03  Greg McGary  <greg@mcgary.org>
63359
63360         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63361         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63362         (EXTEND_BUFFER): Use them.
63363
63364 2000-08-01  Jim Meyering  <meyering@lucent.com>
63365
63366         * lib/dirname.c (ISSLASH): Define.
63367         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63368         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63369         both `\' and `/' may be use as path separators.
63370         Based on a patch from Prashant TR.
63371
63372 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63373
63374         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63375         slot vector a constant, since it might get modified.
63376
63377 2000-07-31  Jim Meyering  <meyering@lucent.com>
63378
63379         * lib/xmalloc.c: Use `virtual memory exhausted', not
63380         `Memory exhausted'.
63381         * lib/obstack.c (print_and_abort): Likewise.
63382
63383 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63384
63385         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63386         buffer, so that the caller can always quote one small
63387         component of a "memory exhausted" message in slot 0.
63388         From a suggestion by Jim Meyering.
63389
63390 2000-07-30  Jim Meyering  <meyering@lucent.com>
63391
63392         * lib/makepath.c (make_path): Quote the other instance, too.
63393
63394         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63395         (STATIC_BUF_SIZE): Define.
63396         (quotearg_n_options): Use only statically allocated storage when
63397         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63398         than STATIC_BUF_SIZE.
63399
63400 2000-07-29  Jim Meyering  <meyering@lucent.com>
63401
63402         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63403         * lib/dirname.c (dir_name): Likewise.
63404
63405         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63406         `/'.
63407
63408         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63409         (dir_name): Assert that there are no trailing slashes.
63410
63411 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63412
63413         * lib/mbswidth.h (mbswidth): Add a flags argument.
63414         (mbswidth): New declaration.
63415         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63416         * lib/mbswidth.c (mbswidth): Add a flags argument.
63417         (mbsnwidth): New function.
63418
63419 2000-07-24  Jim Meyering  <meyering@lucent.com>
63420
63421         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63422
63423 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63424
63425         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63426
63427 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63428
63429         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63430         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63431         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63432         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63433         invoke multibyte primitives.
63434
63435 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63436
63437         * lib/quotearg.c:
63438         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63439         so that mbstate_t is always defined.
63440
63441         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63442         be 1 in at least one GCC installation, and this configuration
63443         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63444         performance on hosts that have mbrtowc but have only unibyte
63445         locales, but I assume these hosts are rare.
63446
63447 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63448
63449         * lib/mbswidth.c (_XOPEN_SOURCE):
63450         Don't define; this causes problems on Solaris 7.
63451         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63452
63453 2000-07-23  Jim Meyering  <meyering@lucent.com>
63454
63455         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63456         too: getgrgid, getpwuid, getuid.
63457
63458 2000-07-23  Jim Meyering  <meyering@lucent.com>
63459
63460         * lib/basename.c (base_name): Add an assertion.
63461
63462 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63463
63464         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63465         shadow its mbsinit function.
63466
63467 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63468
63469         * lib/mbswidth.h: New file.
63470         * lib/mbswidth.c: New file.
63471         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63472         (noinst_HEADERS): Add mbswidth.h.
63473
63474 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63475
63476         * lib/config.charset: Add support for FreeBSD. Improve support for
63477         HP-UX and IRIX 6.
63478
63479 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63480
63481         * m4/mbswidth.m4: New file.
63482         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63483
63484 2000-07-15  Jim Meyering  <meyering@lucent.com>
63485
63486         * lib/makepath.c: Include quote.h.
63487         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63488         corresponding argument in a `quote (...)' call.
63489         Give better diagnostics.
63490
63491         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63492         (noinst_HEADERS): Add quote.h.
63493
63494         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63495         from tar's src/misc.c.
63496         * lib/quote.h: New file.  Prototypes for same.
63497
63498 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63499
63500         From a suggestion by Bruno Haible.
63501         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63502         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63503         to decide whether to define the BeOS workaround macro;
63504         this adjusts to the change to AC_MBSTATE_T.
63505
63506 2000-07-14  Jim Meyering  <meyering@lucent.com>
63507
63508         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63509         jm_AC_TYPE_UINTMAX_T.
63510
63511 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63512
63513         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63514
63515         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63516         quotearg_buffer_restyled): Add support for
63517         clocale_quoting_style.  Undo previous change to
63518         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63519         and "{RIGHT QUOTATION MARK}" msgids.
63520
63521 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63522
63523         From a suggestion by Bruno Haible.
63524         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63525         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63526         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63527         and mbstate_t, to a single-part test that simply defines mbstate_t.
63528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63529         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63530
63531 2000-07-10  Jim Meyering  <meyering@lucent.com>
63532
63533         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63534
63535         * m4/gnu-source.m4: Output to confdefs.h directly.
63536         Suggestion from Akim Demaille.
63537
63538 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63539
63540         The old behavior of quoting `like this' doesn't look good with
63541         newer, ISO-style fonts.  See:
63542         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63543
63544         Instead, quote "like this" by default.  Let the translator
63545         tailor the locale-specific quoting behavior by providing
63546         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63547
63548         * lib/quotearg.c (N_): New macro.
63549         (gettext_default): New function.
63550         (quotearg_buffer_restyled): Use
63551         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63552         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63553
63554 2000-07-09  Jim Meyering  <meyering@lucent.com>
63555
63556         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63557         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63558
63559         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63561
63562 2000-07-09  Jim Meyering  <meyering@lucent.com>
63563
63564         * lib/Most files: Update copyright dates to include 2000.
63565
63566 2000-07-08  Jim Meyering  <meyering@lucent.com>
63567
63568         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63569         if not defined.
63570         (xgethostname): Remove now-unnecessary #ifdef.
63571         Move declaration of `err' into loop where it's used.
63572
63573 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63574         and Bruno Haible  <haible@clisp.cons.org>
63575
63576         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63577         only if the test for an object-type mbstate_t fails.  This
63578         prevents us from mistakenly reporting that mbstate_t is a
63579         system object type after we "#define mbstate_t int" to work
63580         around its lack.
63581
63582 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63583         and Bruno Haible  <haible@clisp.cons.org>
63584
63585         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63586
63587 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63588
63589         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63590         to strerror_r.
63591         Include <ctype.h> for use of isalpha.
63592
63593 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63594
63595         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63596         by allocating a larger buffer. Test the gethostname return value for
63597         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63598         returns an error and ENAMETOOLONG isn't defined.
63599
63600 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63601
63602         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63603         dimension.
63604
63605 2000-07-04  Jim Meyering  <meyering@lucent.com>
63606
63607         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63608         of the deprecated AC_CHECKING.
63609
63610 2000-07-04  Jim Meyering  <meyering@lucent.com>
63611
63612         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63613         Reported by Bruno Haible.
63614
63615 2000-07-04  Jim Meyering  <meyering@lucent.com>
63616
63617         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63618         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63619         lacks mbrtowc.
63620
63621 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63622
63623         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63624         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63625
63626 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63627         and Bruno Haible  <haible@clisp.cons.org>
63628
63629         * lib/quotearg.c (mbrtowc):
63630         Assign to *pwc, and return 1 only if result is nonzero.
63631         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63632
63633 2000-07-03  Jim Meyering  <meyering@lucent.com>
63634
63635         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63636
63637 2000-07-03  Jim Meyering  <meyering@lucent.com>
63638
63639         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63640         This is necessary to get a definition of e.g., UTMP_FILE on
63641         HP-UX 10.20.
63642         From Bob Proulx.
63643
63644 2000-07-02  Jim Meyering  <meyering@lucent.com>
63645
63646         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63647
63648         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63649         AC_LIBOBJ(function_name).
63650         * m4/chown.m4: Likewise.
63651         * m4/fnmatch.m4: Likewise.
63652         * m4/ftruncate.m4: Likewise.
63653         * m4/getgroups.m4: Likewise.
63654         * m4/getline.m4: Likewise.
63655         * m4/group-member.m4: Likewise.
63656         * m4/jm-macros.m4: Likewise.
63657         * m4/lstat.m4: Likewise.
63658         * m4/malloc.m4: Likewise.
63659         * m4/memcmp.m4: Likewise.
63660         * m4/nanosleep.m4: Likewise.
63661         * m4/putenv.m4: Likewise.
63662         * m4/realloc.m4: Likewise.
63663         * m4/regex.m4: Likewise.
63664         * m4/stat.m4: Likewise.
63665         * m4/strftime.m4: Likewise.
63666
63667 2000-07-02  Jim Meyering  <meyering@lucent.com>
63668
63669         * lib/quotearg.c (mbstate_t): Don't define here.
63670
63671 2000-07-02  Jim Meyering  <meyering@lucent.com>
63672
63673         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63674
63675 2000-07-01  Jim Meyering  <meyering@lucent.com>
63676
63677         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63678
63679 2000-07-01  Jim Meyering  <meyering@lucent.com>
63680
63681         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63682         problem.
63683
63684 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63685
63686         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63687         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63688
63689 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63690
63691         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63692         per change in ../m4/ls-mntd-fs.m4.
63693         (read_filesystem_list): Ignore symbolic links.
63694
63695 2000-06-29  Jim Meyering  <meyering@lucent.com>
63696
63697         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63698         for declaration of strcmp.
63699
63700         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63701
63702         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63703         Avoid warning by casting result to `char *' to remove `const'.
63704
63705 2000-06-28  Jim Meyering  <meyering@lucent.com>
63706
63707         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63708         included by quotearg.c, for which we perform this test.  From
63709         Bruno Haible.
63710
63711 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63712
63713         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63714         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63715         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63716
63717 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63718
63719         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63720
63721 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63722
63723         savedir now sets errno on failure and invokes xmalloc to get memory.
63724         Fix a couple of other minor bugs while we're at it.
63725
63726         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63727         (NAMLEN): Remove macro.
63728         (malloc, realloc): Remove decls.
63729         (stpcpy): Likewise.
63730         ("xalloc.h"): Include.
63731         (NAME_SIZE_DEFAULT): New macro.
63732         (savedir): Use xmalloc / xrealloc to allocate memory.
63733         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63734         Skip "" directory entries.
63735         Use strlen to calculate directory entry length, since the old method
63736         is rarely used these days and isn't worth supporting.
63737         Don't use a pointer after freeing it.
63738         Check for integer overflow when calculating allocation size.
63739         Use memcpy to copy entries, instead of stpcpy.
63740         Set errno properly when returning NULL.
63741         Check for readdir error.
63742
63743 2000-06-26  Jim Meyering  <meyering@lucent.com>
63744
63745         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63746
63747 2000-06-25  Jim Meyering  <meyering@lucent.com>
63748
63749         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63750         Linux header bug when _XOPEN_SOURCE is defined to 500.
63751
63752 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63753
63754         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63755         deficiency.
63756
63757 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63758
63759         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63760         Include xalloc.h.
63761         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63762
63763 2000-06-24  Jim Meyering  <meyering@lucent.com>
63764
63765         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63766         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63767         for which strerror does return char*, but which lacks a conveniently
63768         accessible declaration of the function.  If the compile-test says
63769         strerror_r doesn't work, then resort to a `run'-test that works on
63770         BeOS and segfaults on DEC Unix.
63771
63772 2000-06-24  Jim Meyering  <meyering@lucent.com>
63773
63774         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63775
63776 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63777
63778         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63779         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63780
63781 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63782
63783         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63784         (mbrtowc, mbstate_t): Define substitutes if
63785         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63786         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63787         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63788
63789 2000-06-23  Jim Meyering  <meyering@lucent.com>
63790
63791         * m4/afs.m4: Add missing AC_MSG_RESULT.
63792         Reported by Bruno Haible.
63793
63794         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63795         Suggestion from Bruno Haible.
63796
63797 2000-06-23  Jim Meyering  <meyering@lucent.com>
63798
63799         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63800
63801 2000-06-21  Jim Meyering  <meyering@lucent.com>
63802
63803         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63804
63805 2000-06-21  Jim Meyering  <meyering@lucent.com>
63806
63807         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63808         (noinst_HEADERS): Add getstr.h.
63809
63810         * lib/getline.c (getstr): Move into a separate file.
63811         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63812         the following changes: new parameter, delim2; both delim[12]
63813         parameters have type `int', not `char'.  The latter would lose
63814         with 8-bit delimiters.
63815         * lib/getstr.h: New file.
63816
63817 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63818
63819         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63820         than 1024, return a memory chunk of least possible size, instead
63821         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63822         Use free/xmalloc instead of xrealloc to avoid copying for very long
63823         paths.
63824
63825 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63826
63827         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63828         the empty string.
63829
63830 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63831
63832         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63833         address, not strdup.  Include <stdlib.h> and don't declare free().
63834
63835 2000-06-19  Jim Meyering  <meyering@lucent.com>
63836
63837         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63838
63839 2000-06-18  Jim Meyering  <meyering@lucent.com>
63840
63841         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63842
63843         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63844         `checking whether...' message to be consistent with that of the
63845         lstat test.
63846
63847 2000-06-18  Jim Meyering  <meyering@lucent.com>
63848
63849         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63850         Besides, these days every porting target provides a mkdir function.
63851
63852         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63853         needed. (this snippet comes from src/system.h).
63854
63855 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63856
63857         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63858
63859 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63860
63861         * lib/human.c (adjust_value): New function.
63862         (human_readable_inexact): Apply rounding style even when
63863         printing approximate values.
63864
63865 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63866
63867         * lib/human.c (human_readable_inexact): Allow an input block
63868         size that is not a multiple of the output block size, and vice versa.
63869         Reported by Piergiorgio Sartor.
63870
63871 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63872
63873         * lib/getdate.y (get_date): Apply relative times after time
63874         zone indicator, not before.  Reported by Todd A. Jacobs.
63875
63876 2000-06-13  Jim Meyering  <meyering@lucent.com>
63877
63878         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63879
63880         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63881
63882 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63883
63884         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63885
63886 2000-06-12  Jim Meyering  <meyering@lucent.com>
63887
63888         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63889         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63890         optional argument.
63891         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63892         the optional argument, `lib'.
63893
63894 2000-06-08  Jim Meyering  <meyering@lucent.com>
63895
63896         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63897
63898 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63899
63900         Rewrite largefile configuration so that we don't need to run
63901         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63902         AC_CANONICAL_HOST in configure.in -- jmm]
63903
63904         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63905         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63906         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63907         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63908         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63909         All uses changed.
63910         Instead of inspecting the output of getconf, try to compile the
63911         test program without and with the macro definition.
63912         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63913         for getconf.  Instead, check for the needed flags by compiling
63914         test programs.
63915
63916 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63917
63918         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63919
63920 2000-06-04  Jim Meyering  <meyering@lucent.com>
63921
63922         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63923         SunOS 4.1.4 for which gid_t is an unsigned type.
63924
63925 2000-06-03  Jim Meyering  <meyering@lucent.com>
63926
63927         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63928         now that autoconf requires that.
63929
63930         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63931         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63932         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63933
63934 2000-06-03  Jim Meyering  <meyering@lucent.com>
63935
63936         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63937
63938 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63939
63940         * m4/glibc21.m4: New file.
63941         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63942
63943 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63944
63945         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63946         newer, don't install charset.alias.
63947         * lib/config.charset: Change the Linux/glibc rules so they become empty
63948         on glibc-2.1 or newer.
63949
63950 2000-06-02  Jim Meyering  <meyering@lucent.com>
63951
63952         * lib/mountlist.c: Back out last change.  Instead, do this...
63953         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63954         me_dummy member using the same `ignore'-testing code.
63955         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63956         fs_type strings.
63957         From Mark D. Roth.
63958
63959 2000-05-29  Jim Meyering  <meyering@lucent.com>
63960
63961         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63962         mounts with the `ignore' attribute.  Based on a patch from
63963         Mark D. Roth.
63964
63965 2000-05-28  Jim Meyering  <meyering@lucent.com>
63966
63967         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63968         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63969         * m4/stat.m4: Likewise.
63970         * m4/lstat.m4: Likewise.
63971         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63972
63973         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63974         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63975
63976 2000-05-26  Jim Meyering  <meyering@lucent.com>
63977
63978         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63979
63980 2000-05-24  Jim Meyering  <meyering@lucent.com>
63981
63982         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63983         autoconf requires that.
63984         * m4/lib-check.m4: Likewise.
63985         * m4/jm-macros.m4: Likewise.
63986         * m4/strftime.m4: Likewise.
63987
63988         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63989         AC_CHECK_DECLS, now that autoconf requires that.
63990
63991 2000-05-22  Jim Meyering  <meyering@lucent.com>
63992
63993         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63994         * m4/lstat.m4: Likewise.
63995
63996 2000-05-22  Jim Meyering  <meyering@lucent.com>
63997
63998         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63999
64000 2000-05-20  Jim Meyering  <meyering@lucent.com>
64001
64002         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64003         (jm_PREREQ): Use it.
64004
64005 2000-05-18  Jim Meyering  <meyering@lucent.com>
64006
64007         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64008         back, too, since it may have been modified by allocate_entry.
64009         (hash_delete): Rewrite to use neither the assignment operator
64010         nor the comma operator in an if-expression.
64011
64012 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64013
64014         * lib/closeout.c:
64015         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64016         Remove; no longer needed.
64017         "quotearg.h": Add include.
64018         (file_name): Do not bother to explicitly initialize to NULL; it's less
64019         efficient on some hosts.
64020         (close_stdout_status): Remove test as to whether stdout was already
64021         closed; it breaks for the case "echo x | sort >&-".
64022         Quote file name colons.
64023         Do not assume that _("write error") lacks format strings.
64024
64025 2000-05-15  Jim Meyering  <meyering@lucent.com>
64026
64027         * lib/version-etc.c (version_etc_copyright): Update the copyright
64028         string used in all --version output.
64029
64030 2000-05-14  Jim Meyering  <meyering@lucent.com>
64031
64032         * lib/closeout.c (close_stdout_set_file_name): New function.
64033         (close_stdout_status): Use new file-scoped global.
64034         Return right away if fstat says the stdout file descriptor is invalid.
64035         * lib/closeout.h (close_stdout_set_file_name): Declare.
64036
64037 2000-05-10  Jim Meyering  <meyering@lucent.com>
64038
64039         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64040         (close_stdout_set_status): New function.
64041         * lib/closeout.h (close_stdout_set_status): Declare.
64042
64043 2000-05-09  Jim Meyering  <meyering@lucent.com>
64044
64045         * m4/gettext.m4: Rename this...
64046         * m4/libintl.m4: ...to this.
64047
64048 2000-05-08  Jim Meyering  <meyering@lucent.com>
64049
64050         * lib/long-options.c: Don't include closeout.h.
64051         (parse_long_options): Don't call close_stdout for --version.
64052
64053 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64054
64055         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64056         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64057         2.1.3 bug.  This avoids a clash when files like regex.c define
64058         _GNU_SOURCE.
64059
64060 2000-05-06  Jim Meyering  <meyering@lucent.com>
64061
64062         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64063         (AC_REPLACE_FUNCS): Add strnlen.
64064
64065         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64066         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64067
64068         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64069         AC_SEARCH_LIBS call for nanosleep.
64070         (LIB_NANOSLEEP): Set and AC_SUBST.
64071
64072 2000-05-06  Jim Meyering  <meyering@lucent.com>
64073
64074         * lib/strnlen.c: Undefine __strnlen and strnlen.
64075         [!weak_alias]: Define __strnlen to strnlen.
64076
64077         * lib/atexit.c: New file, from libiberty.
64078
64079 2000-05-06  Jim Meyering  <meyering@lucent.com>
64080
64081         * lib/closeout.c (close_stdout_status): Also check for errors on the
64082         stderr stream.
64083
64084 2000-05-05  Jim Meyering  <meyering@lucent.com>
64085
64086         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64087         AC_SEARCH_LIBS call for clock_gettime.
64088         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64089
64090         * m4/search-libs.m4: Update from autoconf.
64091
64092         su doesn't work on Solaris 2.6.
64093         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64094         <shadow.h>.  Reported by Dragos Harabor.
64095
64096 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64097
64098         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64099         memcpy instead of xmalloc, xrealloc, path_concat.
64100         (locale_charset): Treat empty environment variables as absent.
64101         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64102
64103 2000-05-04  Jim Meyering  <meyering@lucent.com>
64104
64105         * lib/getopt.c: Update from glibc.
64106         * lib/obstack.c: Likewise.
64107         * lib/obstack.h: Likewise.
64108         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64109         file
64110
64111         * lib/regex.h: Likewise.
64112         * lib/strndup.c: Likewise.
64113         * lib/strnlen.c: New file, from glibc.
64114
64115 2000-05-03  Jim Meyering  <meyering@lucent.com>
64116
64117         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64118
64119 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64120
64121         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64122         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64123         compile-time test, rather than inspecting host and OS, to
64124         decide whether to define _LARGEFILE_SOURCE.
64125
64126 2000-05-01  Jim Meyering  <meyering@lucent.com>
64127
64128         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64129
64130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64131         Based on a patch from Bruno Haible.
64132
64133 2000-05-01  Jim Meyering  <meyering@lucent.com>
64134
64135         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64136
64137 2000-04-29  Jim Meyering  <meyering@lucent.com>
64138
64139         * lib/path-concat.c: Declare strdup only if it's not defined.
64140         * lib/canon-host.c: Likewise.
64141
64142 2000-04-28  Jim Meyering  <meyering@lucent.com>
64143
64144         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64145         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64146         is included first, then limits.h is included by locale.h by libintl.h.
64147         From John David Anglin.
64148
64149 2000-04-25  Jim Meyering  <meyering@lucent.com>
64150
64151         * lib/makepath.c (S_IRWXUGO): Define.
64152         (make_path): Always perform explicit chmod if MODE specifies any
64153         of the `special' permission bits.  Prompted by a bug report against
64154         install from Mate Wierdl and Joost van Baal.
64155
64156 2000-04-18  Jim Meyering  <meyering@lucent.com>
64157
64158         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64159         (jm_PREREQ): Use it.
64160
64161 2000-04-18  Jim Meyering  <meyering@lucent.com>
64162
64163         * lib/README: New file.
64164
64165         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64166         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64167
64168 2000-04-17  Jim Meyering  <meyering@lucent.com>
64169
64170         Get it right :-)
64171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64172         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64173         Suggestion from Akim Demaille.
64174
64175 2000-04-17  Jim Meyering  <meyering@lucent.com>
64176
64177         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64178         the definition of it to rpl_strftime also defined-away the system's
64179         declaration.
64180
64181 2000-04-15  Jim Meyering  <meyering@lucent.com>
64182
64183         Use `C' to denote so-called `contiguous' files, the same way
64184         that tar does.
64185         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64186         (ftypelet): Use S_ISCTG.
64187         From Michael Deutschmann.
64188
64189 2000-04-14  Jim Meyering  <meyering@lucent.com>
64190
64191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64192         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64193         clobbered.
64194
64195 2000-04-14  Jim Meyering  <meyering@lucent.com>
64196
64197         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64198
64199 2000-04-13  Jim Meyering  <meyering@lucent.com>
64200
64201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64202         AH_VERBATIM to insert required #ifndef into config.h.in.
64203         Suggestion from Akim Demaille.
64204
64205 2000-04-12  Jim Meyering  <meyering@lucent.com>
64206
64207         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64208         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64209         Christian Krackowizer.
64210
64211         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64212         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64213         (AC_SYS_LARGEFILE): Require.
64214         (AM_C_PROTOTYPES): Require.
64215
64216 2000-04-08  Jim Meyering  <meyering@lucent.com>
64217
64218         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64219         names don't conflict.  Reported by Eli Zaretskii.
64220
64221 2000-04-07  Jim Meyering  <meyering@lucent.com>
64222
64223         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64224         sys/types.h, to work around system header problems on AIX 3.2.5.
64225         From Bruno Haible.
64226
64227 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64228
64229         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64230         bug.  Deal with the different error behavior of Irix iconv.
64231
64232 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64233
64234         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64235         IRIX if the installer said otherwise.
64236
64237 2000-04-05  Jim Meyering  <meyering@lucent.com>
64238
64239         Portability tweaks required for ultrix4.3.
64240         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64241         (jm_CHECK_DECLS): Add getutent to the list of functions.
64242         (_jm_DECL_HEADERS): Add utmpx.h.
64243         From John David Anglin.
64244
64245         * m4/strftime.m4: Back out the 2000-04-02 change.
64246         Instead of that change, simply undefine putenv in the test program.
64247
64248 2000-04-05  Jim Meyering  <meyering@lucent.com>
64249
64250         Portability tweaks required for ultrix4.3.
64251         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64252         getutent.
64253         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64254         * lib/canon-host.c: Declare strdup.
64255         * lib/path-concat.c: Likewise.
64256         From John David Anglin.
64257
64258 2000-04-04  Jim Meyering  <meyering@lucent.com>
64259
64260         Be more DOS 8.3-friendly.
64261         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64262         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64263         * lib/Makefile.am: Reflect renaming.
64264         Reported by Eli Zaretskii.
64265
64266         Use a temporary file name that won't clash with `charset.alias'
64267         in the DOS 8.3 name space.
64268         * lib/Makefile.am (charset_tmp): Define.
64269         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64270         (uninstall-local): Likewise.
64271         Reported by Eli Zaretskii.
64272
64273 2000-04-03  Jim Meyering  <meyering@lucent.com>
64274
64275         * m4/gettext.m4: Fix typo in comment.
64276
64277         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64278         textutils/configure.in).  Suggestion from Paul Eggert.
64279         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64280
64281 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64282
64283         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64284         variable in the shell rather than using putenv, which isn't
64285         portable.  This avoids the configure-time inter-test dependency
64286         on the potentially-renamed putenv function.
64287
64288 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64289
64290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64291         before checking struct stat.st_blksize, so that
64292         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64293
64294 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64295
64296         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64297         since strftime.c uses HAVE_STRFTIME to decide whether to use
64298         the underlying strftime.
64299
64300 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64301
64302         * lib/time/strftime.c (my_strftime): Make sure we call the system
64303         strftime, not ourselves, when invoking the underlying strftime.
64304
64305 2000-03-24  Jim Meyering  <meyering@lucent.com>
64306
64307         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64308         (charset_alias): Define.
64309         (install-exec-local): Factor out common code.
64310         (uninstall-local): Split lines longer than 80.
64311         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64312         (SUFFIXES): Define.
64313         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64314         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64315
64316 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64317
64318         * lib/config.charset: Output a line containing "Packages using this
64319         file".
64320         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64321         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64322         ref-del.sed): New rules.
64323
64324 2000-03-17  Jim Meyering  <meyering@lucent.com>
64325
64326         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64327         Otherwise, include <strings.h>
64328
64329 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64330
64331         * lib/unicodeio.c (utf8_wctomb): New function.
64332         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64333         format instead of in UCS-4 with platform dependent endianness.
64334
64335 2000-03-10  Jim Meyering  <meyering@lucent.com>
64336
64337         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64338         From Marco Franzen.
64339
64340 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64341
64342         * lib/savedir.c (savedir): Work even if directory size is
64343         negative; this can happen with some screwy NFS configurations.
64344
64345 2000-03-06  Jim Meyering  <meyering@lucent.com>
64346
64347         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64348         if it's NULL (because we ran out of memory).  From Bruno Haible.
64349
64350 2000-03-05  Jim Meyering  <meyering@lucent.com>
64351
64352         * lib/localcharset.c ("path-concat.h"): Include.
64353         (get_charset_aliases): Use path_concat instead of ANSI string
64354         concatenation.
64355
64356         * lib/unicodeio.h (PARAMS): Define.
64357         Use it to guard prototype.
64358
64359 2000-03-04  Jim Meyering  <meyering@lucent.com>
64360
64361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64362         for lib/localcharset.c.
64363
64364 2000-03-04  Jim Meyering  <meyering@lucent.com>
64365
64366         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64367         installing into it.
64368         (uninstall-local): Uncomment this rule so `make distcheck' works
64369         once again.
64370
64371         * lib/unicodeio.c (<errno.h>): Include it.
64372         (errno): Declare if not defined.
64373
64374         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64375
64376         * lib/config.charset: New version, incorporating remarks from a linux
64377         i18n mailing list.  From Bruno Haible.
64378
64379 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64380
64381         * m4/codeset.m4: New file.
64382         * m4/iconv.m4: New file.
64383         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64384
64385 2000-03-03  Jim Meyering  <meyering@lucent.com>
64386
64387         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64388
64389 2000-03-02  Jim Meyering  <meyering@lucent.com>
64390
64391         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64392         the messages come out on separate lines.
64393
64394         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64395         rather than jm_CHECK_DECLARATIONS.
64396         * m4/decl.m4: Remove now-unused file.
64397
64398         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64399         geteuid.
64400
64401 2000-03-02  Jim Meyering  <meyering@lucent.com>
64402
64403         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64404
64405 2000-03-01  Jim Meyering  <meyering@lucent.com>
64406
64407         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64408         * lib/unicodeio.c: Likewise.
64409
64410 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64411
64412         * lib/config.charset: New file.
64413         * lib/localcharset.c: New file.
64414         * lib/unicodeio.h, lib/unicodeio.c: New files.
64415         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64416         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64417         (noinst_HEADERS): Add unicodeio.h.
64418         (all-local, install-exec-local, charset.alias): New targets.
64419
64420 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64421
64422         * lib/quotearg.c (ALERT_CHAR): New macro.
64423         (quotearg_buffer_restyled): Use it.
64424
64425 2000-02-27  Jim Meyering  <meyering@lucent.com>
64426
64427         * m4/check-decl.m4: Add getenv to the list.
64428
64429 2000-02-27  Jim Meyering  <meyering@lucent.com>
64430
64431         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64432         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64433
64434         * lib/backupfile.c: Guard inclusion of stdlib.h with
64435         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64436         Declare malloc if needed.
64437
64438         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64439         `#ifndef HAVE_DECL..'
64440         now that autoconf always defines the HAVE_DECL_ symbols.
64441         * lib/human.c: Likewise.
64442         * lib/same.c: Likewise.
64443         * lib/strtoumax.c: Likewise.
64444
64445         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64446         declaration check was not run.
64447         * lib/hash.c: Likewise.
64448         * lib/human.c: Likewise.
64449         * lib/same.c: Likewise.
64450         * lib/strtoumax.c: Likewise.
64451
64452         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64453         `.', then first look up the entire `.'-containing string as a login
64454         name.
64455
64456 2000-02-23  Jim Meyering  <meyering@lucent.com>
64457
64458         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64459         in place of my hack.
64460
64461 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64462
64463         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64464         (textint): New typedef.
64465         (parser_control): Member year changed from int to textint.
64466         All uses changed.
64467         (YYSTYPE): Removed; replaced by %union with int and textint members.
64468         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64469         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64470         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64471         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64472         (date, number, to_year): Use width of number in digits, not its value,
64473         to determine whether it's a 2-digit year, or a 2-digit time.
64474         (yylex): Store number of digits of numeric tokens.
64475         Reported by John Kendall.
64476
64477         (parser_control): Changed from struct parser_control to typedef (for
64478         consistency).  All uses changed.
64479
64480         (tID): Removed; not used.
64481         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64482
64483 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64484
64485         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64486         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64487
64488 2000-02-12  Jim Meyering  <meyering@lucent.com>
64489
64490         * lib/userspec.c (ISDIGIT): Define it.
64491         (isdigit): Remove definition.
64492         (is_number): Use ISDIGIT, not isdigit.
64493         <libintl.h>: Include.
64494         (_ and N_): Define.
64495         (parse_user_spec): Mark translatable strings.
64496
64497 2000-02-10  Jim Meyering  <meyering@lucent.com>
64498
64499         With these changes, nanosleep.[ch] are finally enough like the other
64500         lib/* replacement files to compile on a few more losing systems.
64501
64502         * lib/nanosleep.h: Don't include config.h.
64503         Remove prototype from declaration of nanosleep.
64504         (PARAMS): Remove now-unneeded definition.
64505         * lib/nanosleep.c: #undef nanosleep.
64506         (rpl_nanosleep): Rename from nanosleep.
64507
64508 2000-02-10  Jim Meyering  <meyering@lucent.com>
64509
64510         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64511         gnu_nanosleep to rpl_nanosleep.
64512
64513 2000-02-09  Jim Meyering  <meyering@lucent.com>
64514
64515         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64516         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64517
64518 2000-02-08  Akim Demaille  <akim@epita.fr>
64519
64520         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64521         `[' and `]' and remove uses of `changequote'.
64522         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64523         (AC_SYS_LARGEFILE): Likewise.
64524         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64525         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64526         of changequote.
64527         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64528         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64529         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64530         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64531
64532 2000-02-05  Jim Meyering  <meyering@lucent.com>
64533
64534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64535         Remove explicit use of AC_HEADER_TIME.  It is required by
64536         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64537         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64538         in autoconf whereby the expansion of the latter ended up preceding
64539         the expansion of its prerequisite, AC_HEADER_TIME.
64540         Reported by Volker Borchert.
64541
64542 2000-02-03  Jim Meyering  <meyering@lucent.com>
64543
64544         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64545
64546 2000-02-03  Jim Meyering  <meyering@lucent.com>
64547
64548         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64549         rather than with `#if HAVE_UTMPNAME'.
64550
64551 2000-02-02  Jim Meyering  <meyering@lucent.com>
64552
64553         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64554         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64555         Reported by Eli Zaretskii.
64556
64557 2000-02-01  Jim Meyering  <meyering@lucent.com>
64558
64559         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64560
64561 2000-01-31  Jim Meyering  <meyering@lucent.com>
64562
64563         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64564         functions.  Add the time.h and sys/time.h headers along with the
64565         AC_REQUIRE'ment of AC_HEADER_TIME.
64566
64567 2000-01-31  Jim Meyering  <meyering@lucent.com>
64568
64569         * lib/nanosleep.h (nanosleep): Guard declaration with
64570         `#if ! HAVE_DECL_NANOSLEEP'.
64571         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64572         the declaration in that vendor's sys/timers.h.
64573         Reported by Christian Krackowizer.
64574
64575         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64576         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64577         (ISPRINT): Likewise.
64578         Reported by Tom Tromey.
64579
64580 2000-01-30  Jim Meyering  <meyering@lucent.com>
64581
64582         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64583
64584         * m4/prereq.m4 (utmp_includes): Define.
64585         Check for ut_user and ut_name members in both struct utmpx
64586         and struct utmp.
64587
64588 2000-01-30  Jim Meyering  <meyering@lucent.com>
64589
64590         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64591         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64592         header files where only utmpx.ut_user is declared.
64593
64594         * lib/readutmp.h (UT_USER): Define.
64595
64596 2000-01-29  Jim Meyering  <meyering@lucent.com>
64597
64598         * m4/lib-check.m4: New file containing library-related checks from
64599         fileutils and sh-utils (textutils had none).
64600
64601 2000-01-28  Jim Meyering  <meyering@lucent.com>
64602
64603         * m4/perl.m4: Change format of warning message to look more like that
64604         from the missing script.  Suggestion from François Pinard.
64605
64606 2000-01-25  Jim Meyering  <meyering@lucent.com>
64607
64608         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64609         well as time.h in the compile check.
64610         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64611         Fix typo in cross-compiling case: s/yes/no/.
64612
64613 2000-01-23  Jim Meyering  <meyering@lucent.com>
64614
64615         * m4/jm-macros.m4: Move df-related tests here from
64616         fileutils/configure.in
64617
64618         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64619         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64620
64621         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64622         s/space/ac_fsusage_space/.
64623         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64624
64625         * m4/ftruncate.m4: New file (derived from part of
64626         fileutils/configure.in).
64627         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64628         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64629
64630         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64631         AC_SUBST these here, rather than just in sh-util/configure.in, so
64632         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64633         all the same.
64634         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64635         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64636         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64637         (AC_SUBST(POW_LIBM)): Likewise.
64638         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64639
64640 2000-01-23  Jim Meyering  <meyering@lucent.com>
64641
64642         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64643         obstack.c.
64644
64645 2000-01-22  Jim Meyering  <meyering@lucent.com>
64646
64647         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64648
64649         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64650
64651         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64652         configure.in
64653         (AC_CHECK_HEADERS): Likewise for sh-utils.
64654         (AC_CHECK_HEADERS): Likewise for textutils.
64655         Merge the three lists of headers.
64656
64657         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64658         from fileutils' configure.in.
64659
64660         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64661         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64662         check-decl.m4.
64663
64664         * m4/check-decl.m4: Use #if rather than #ifdef.
64665         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64666         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64667         (_jm_DECL_HEADERS): Define new function.
64668         (jm_CHECK_DECLARATIONS): Require it.
64669
64670 2000-01-22  Jim Meyering  <meyering@lucent.com>
64671
64672         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64673         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64674         Required for some AIX systems.  Reported by Christian Krackowizer.
64675         [TESTING] (main): New function.
64676
64677         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64678         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64679         letters.
64680
64681         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64682         iswprint.
64683
64684         * lib/strverscmp.c (ISDIGIT): Define.
64685         (strverscmp): Use ISDIGIT, not isdigit.
64686
64687 2000-01-19  Jim Meyering  <meyering@lucent.com>
64688
64689         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64690         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64691         defines `struct timespec' in <sys/time.h>
64692
64693         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64694         Thanks to Akim for explaining.
64695
64696 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64697
64698         * lib/nanosleep.c (nanosleep):
64699         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64700         POSIX.1 doesn't require SA_INTERRUPT and some systems
64701         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64702         it's been part of POSIX.1 since day 1 (in 1988).
64703
64704 2000-01-17  Jim Meyering  <meyering@lucent.com>
64705
64706         * lib/interlock: Remove unused file.  Reported by François Pinard.
64707
64708 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64709
64710         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64711         alert, backslash, formfeed, and vertical tab unnecessarily in
64712         shell quoting style.
64713
64714 2000-01-16  Jim Meyering  <meyering@lucent.com>
64715
64716         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64717         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64718         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64719         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64720
64721 2000-01-16  Jim Meyering  <meyering@lucent.com>
64722
64723         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64724         because the latter didn't work.
64725
64726 2000-01-15  Jim Meyering  <meyering@lucent.com>
64727
64728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64729         (AC_REPLACE_FUNCS): Add memcpy and memset.
64730         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64731         Add strpbrk.
64732         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64733
64734 2000-01-12  Jim Meyering  <meyering@lucent.com>
64735
64736         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64737         (jm_PREREQ): Use it.
64738         (jm_PREREQ_READUTMP): New macro.
64739         (jm_PREREQ): Use it.
64740
64741 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64742
64743         Quote multibyte characters correctly.
64744         * m4/c-bs-a.m4: New file.
64745         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64746         (jm_PREREQ): Use it.
64747
64748 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64749
64750         * m4/uintmax_t.m4: Port to autoconf 2.13.
64751
64752 2000-01-08  Jim Meyering  <meyering@ascend.com>
64753
64754         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64755         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64756
64757 2000-01-04  Jim Meyering  <meyering@ascend.com>
64758
64759         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64760         jm_STRUCT_DIRENT_D_TYPE.
64761         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64762         jm_STRUCT_DIRENT_D_INO.
64763         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64764         jm_STRUCT_UTIMBUF.
64765         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64766         renamings.
64767         * m4/utime.m4: Likewise.
64768
64769         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64770         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64771
64772 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64773
64774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64775         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64776
64777 2000-01-02  Jim Meyering  <meyering@ascend.com>
64778
64779         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64780         remember if this is necessary.
64781
64782 1999-12-26  Jim Meyering  <meyering@ascend.com>
64783
64784         * m4/jm-macros.m4: Use it here.
64785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64786
64787 1999-12-23  Jim Meyering  <meyering@ascend.com>
64788
64789         * m4/jm-macros.m4: Check for clock_gettime (moved from
64790         fileutils/configure.in)
64791         Check for gettimeofday.
64792
64793 1999-12-20  Jim Meyering  <meyering@ascend.com>
64794
64795         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64796         autoconf-2.14a-1999-12-20.
64797
64798 1999-12-19  Jim Meyering  <meyering@ascend.com>
64799
64800         * m4/lstat-slash.m4: New file.
64801         * m4/jm-macros.m4: Use the new macro:
64802         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64803
64804 1999-12-07  Jim Meyering  <meyering@ascend.com>
64805
64806         * m4/perl.m4: Require that File::Compare be available, too.
64807         Too many systems seem to lack it.
64808
64809         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64810         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64811
64812 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64813
64814         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64815         problem with the QNX 4.25 shell, which doesn't propagate exit
64816         status of failed commands inside shell assignments.
64817
64818 1999-11-17  Jim Meyering  <meyering@ascend.com>
64819
64820         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64821
64822 1999-11-07  Jim Meyering  <meyering@ascend.com>
64823
64824         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64825
64826 1999-11-06  Jim Meyering  <meyering@ascend.com>
64827
64828         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64829         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64830
64831 1999-11-05  Jim Meyering  <meyering@ascend.com>
64832
64833         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64834         configure.in of textutils, fileutils, and sh-utils into this one
64835         (shared between those packages) file.
64836         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64837         AC_STRUCT_ST_BLKSIZE.
64838
64839 1999-11-03  Jim Meyering  <meyering@ascend.com>
64840
64841         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64842         of AC_CHECK_TYPE checks includes unistd.h.
64843         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64844         Suggestion from Akim Demaille.
64845
64846 1999-10-30  Jim Meyering  <meyering@ascend.com>
64847
64848         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64849         m4-quoted string.
64850         * m4/ls-mntd-fs.m4: Likewise.
64851         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64852         * m4/jm-winsz1.m4: Likewise.
64853
64854         * m4/const.m4: Remove file, since the fix made it into the experimental
64855         version of autoconf.
64856         * m4/mktime.m4: Likewise.
64857
64858         * m4/check-type.m4: Remove file, now that the latest version of
64859         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64860
64861         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64862         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64863         AC_CHECK_TYPE.
64864
64865 1999-10-04  Jim Meyering  <meyering@ascend.com>
64866
64867         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64868
64869 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64870
64871         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64872         2.95.1 bug with HP-UX 10.20.
64873
64874 1999-09-17  Jim Meyering  <meyering@ascend.com>
64875
64876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64877         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64878         due to missing strdup (against sh-utils-2.0).
64879
64880 1999-08-29  Jim Meyering  <meyering@ascend.com>
64881
64882         * m4/jm-macros.m4: Require jm_BISON.
64883         * m4/bison.m4: New file.
64884
64885 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64886
64887         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64888         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64889
64890 1999-08-05  Jim Meyering  <meyering@ascend.com>
64891
64892         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64893         to avoid conflicts with `conftest' on 8+3 filesystems.
64894         Suggestion from Eli Zaretskii.
64895
64896 1999-08-04  Jim Meyering  <meyering@ascend.com>
64897
64898         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64899         fileutils and sh-utils (textutils's getline test was inadequate).
64900         (AM_FUNC_GETLINE): Run this test.
64901         (AC_CHECK_FUNCS): Check for getdelim.
64902         Reported by Bob Proulx.
64903
64904 1999-08-02  Jim Meyering  <meyering@ascend.com>
64905
64906         * m4/jm-macros.m4: Add a comment.
64907
64908 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64909
64910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64911         <inttypes.h> defines strtoumax as a macro (and not as a
64912         function).
64913
64914 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64915
64916         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64917         that we can shift, multiply and divide unsigned long long
64918         values; Ultrix cc can't do it.
64919
64920 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64921
64922         * m4/mktime.m4: New file, which is a preview of what should appear
64923         in the next public autoconf release.
64924
64925 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64926
64927         * m4/lfs.m4: Remove this file.
64928         * m4/largefile.m4: New file.  It contains the old contents of
64929         lfs.m4, except that all names with prefix AC_LFS have been
64930         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64931         compatible with future autoconf versions.  Also, some minor m4
64932         quoting problems have been fixed.
64933
64934 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64935
64936         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64937         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64938         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64939         and simplify the shell code.
64940
64941 1999-08-01  Jim Meyering  <meyering@ascend.com>
64942
64943         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64944         m4.
64945
64946 1999-07-20  Jim Meyering  <meyering@ascend.com>
64947
64948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64949
64950 1999-07-15  Jim Meyering  <meyering@ascend.com>
64951
64952         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64953
64954 1999-05-22  Jim Meyering  <meyering@ascend.com>
64955
64956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64957
64958 1999-05-20  Jim Meyering  <meyering@ascend.com>
64959
64960         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64961         Add a colon after each `then' in case $4 is empty.
64962
64963 1999-05-16  Jim Meyering  <meyering@ascend.com>
64964
64965         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64966
64967 1999-05-10  Jim Meyering  <meyering@ascend.com>
64968
64969         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64970
64971         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64972         AC_FUNC_MKTIME.
64973
64974 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64975
64976         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64977
64978 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64979
64980         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64981         not CPPFLAGS, so that linking works correctly in IRIX.
64982
64983 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64984
64985         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64986
64987 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64988
64989         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64990         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64992         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64993         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64994
64995         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64996
64997 1999-04-20  Jim Meyering  <meyering@ascend.com>
64998
64999         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65000         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65001         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65002
65003 1999-04-18  Jim Meyering  <meyering@ascend.com>
65004
65005         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65006         * m4/jm-macros.m4: Use it.
65007
65008 1999-04-06  Jim Meyering  <meyering@ascend.com>
65009
65010         * m4/strftime.m4: Remove test for %f.
65011
65012 1999-03-29  Jim Meyering  <meyering@ascend.com>
65013
65014         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65015         superset of the AC_TYPE_* checks in the textutils, fileutils,
65016         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65017         AC_TYPE_PID_T.
65018
65019 1999-03-28  Jim Meyering  <meyering@ascend.com>
65020
65021         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65022         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65023         replaced e.g., in the *.sh files of the sh-utils.
65024
65025 1999-03-20  Jim Meyering  <meyering@ascend.com>
65026
65027         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65028         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65029         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65030
65031 1999-03-19  Jim Meyering  <meyering@ascend.com>
65032
65033         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65034
65035 1999-03-12  Jim Meyering  <meyering@ascend.com>
65036
65037         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65038
65039 1999-03-07  Jim Meyering  <meyering@ascend.com>
65040
65041         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65042         declared.
65043
65044 1999-02-17  Jim Meyering  <meyering@ascend.com>
65045
65046         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65047         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65048
65049 1999-02-07  Jim Meyering  <meyering@ascend.com>
65050
65051         * m4/group-member.m4: New file -- extracted from sh-utils'
65052         configure.in.
65053
65054         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65055         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65056
65057 1999-02-06  Jim Meyering  <meyering@ascend.com>
65058
65059         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65060         * m4/fnmatch.m4: Likewise.
65061         * m4/getgroups.m4: Likewise.
65062         * m4/lstat.m4: Likewise.
65063         * m4/malloc.m4: Likewise.
65064         * m4/putenv.m4: Likewise.
65065         * m4/realloc.m4: Likewise.
65066         * m4/regex.m4: Likewise.
65067         * m4/stat.m4: Likewise.
65068         * m4/strftime.m4: Likewise.
65069         Suggestion from Alain Magloire.
65070
65071         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65072         * m4/fnmatch.m4: Likewise.
65073         * m4/getgroups.m4: Likewise.
65074         * m4/getline.m4: Likewise.
65075         * m4/lstat.m4: Likewise.
65076         * m4/malloc.m4: Likewise.
65077         * m4/memcmp.m4: Likewise.
65078         * m4/putenv.m4: Likewise.
65079         * m4/realloc.m4: Likewise.
65080         * m4/regex.m4: Likewise.
65081         * m4/stat.m4: Likewise.
65082         * m4/strftime.m4: Likewise.
65083         Suggestion from Alain Magloire.
65084
65085         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65086         an argument.
65087
65088         * m4/regex.m4: Add a run-time Test for proper operation of
65089         re_compile_pattern.
65090
65091 1999-01-31  Jim Meyering  <meyering@ascend.com>
65092
65093         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65094
65095 1999-01-30  Jim Meyering  <meyering@ascend.com>
65096
65097         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65098
65099         * m4/jm-mktime.m4: Make this a wrapper around the official
65100         AM_FUNC_MKTIME rather than my private copy, now that the official one
65101         is up to date.
65102         * m4/mktime.m4: Remove file.
65103
65104         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65105         * m4/uptime.m4: Likewise.
65106         * m4/uintmax_t.m4: Likewise.
65107
65108 1999-01-28  Jim Meyering  <meyering@ascend.com>
65109
65110         * m4/jm-macros.m4: Use jm_AFS.
65111         * m4/afs.m4: New file (from fileutils' configure.in).
65112
65113         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65114         * m4/chown.m4: Likewise.
65115         * m4/d-ino.m4: Likewise.
65116         * m4/d-type.m4: Likewise.
65117         * m4/fnmatch.m4: Likewise.
65118         * m4/getgroups.m4: Likewise.
65119         * m4/gettext.m4: Likewise.
65120         * m4/jm-mktime.m4: Likewise.
65121         * m4/jm-winsz2.m4: Likewise.
65122         * m4/lcmessage.m4: Likewise.
65123         * m4/ls-mntd-fs.m4: Likewise.
65124         * m4/malloc.m4: Likewise.
65125         * m4/memcmp.m4: Likewise.
65126         * m4/putenv.m4: Likewise.
65127         * m4/realloc.m4: Likewise.
65128         * m4/st_mtim.m4: Likewise.
65129         * m4/strftime.m4: Likewise.
65130
65131 1999-01-16  Jim Meyering  <meyering@ascend.com>
65132
65133         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65134         (ARGMATCH_DIE_DECL): Define.
65135
65136 1999-01-12  Jim Meyering  <meyering@ascend.com>
65137
65138         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65139         Reported by Lars Hecking.
65140
65141 1999-01-10  Jim Meyering  <meyering@ascend.com>
65142
65143         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65144         gross kludge.
65145         * m4/inttypes_h.m4: Likewise.
65146         * m4/lstat.m4: Likewise.
65147         * m4/malloc.m4: Likewise.
65148         * m4/readdir.m4: Likewise.
65149         * m4/realloc.m4: Likewise.
65150         * m4/st_dm_mode.m4: Likewise.
65151         * m4/stat.m4: Likewise.
65152         * m4/utimbuf.m4: Likewise.
65153         * m4/utimes.m4: Likewise.
65154
65155         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65156         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65157         comments in config.h.in are meaningful.
65158
65159         * m4/jm-macros.m4: Require autoconf-2.13 here.
65160
65161         * m4/regex.m4: By default, don't use the included regex.c on systems
65162         with glibc 2.  Suggestion from Uli Drepper.
65163
65164 1999-01-02  Jim Meyering  <meyering@ascend.com>
65165
65166         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65167
65168 1998-12-18  Jim Meyering  <meyering@ascend.com>
65169
65170         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65171         Based on a suggestion from Lars Hecking.
65172
65173 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65174
65175         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65176
65177 1998-11-16  Jim Meyering  <meyering@ascend.com>
65178
65179         * m4/lfs.m4: Double-quote the `uname...` expression.
65180
65181 1998-11-14  Jim Meyering  <meyering@ascend.com>
65182
65183         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65184         * m4/stat.m4: Likewise.
65185
65186 1998-11-03  Jim Meyering  <meyering@ascend.com>
65187
65188         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65189         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65190
65191 1998-10-18  Jim Meyering  <meyering@ascend.com>
65192
65193         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65194
65195 1998-10-17  Jim Meyering  <meyering@ascend.com>
65196
65197         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65198         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65199         calls for those previously hard-coded headers.  Instead, take a new
65200         parameter.
65201         (jm_CHECK_DECLARATIONS): Reflect interface change.
65202         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65203         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65204
65205         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65206
65207 1998-10-14  Jim Meyering  <meyering@ascend.com>
65208
65209         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65210         instead of "TZ=America/Vancouver".  From Paul Eggert.
65211
65212 1998-10-11  Jim Meyering  <meyering@ascend.com>
65213
65214         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65215         This adds a test for a recently added compatibility fix for mktime.c.
65216         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65217
65218 1998-09-27  Jim Meyering  <meyering@ascend.com>
65219
65220         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65221
65222         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65223         ../configure.in, including a change from Gordon Matzigkeit to allow
65224         cross-compiling for the Hurd.
65225
65226         * m4/glibc.m4: New file/macro to test for the GNU C Library
65227         versions 1 and 2.  From Gordon Matzigkeit.
65228         Indent.
65229
65230 1998-09-21  Jim Meyering  <meyering@ascend.com>
65231
65232         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65233
65234 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65235
65236         Port nanosecond-resolution times to UnixWare 2.1.2 and
65237         pedantic Solaris 2.6.
65238
65239         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65240         AC_STRUCT_ST_MTIM.
65241         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65242         Generate name of ns member, instead of just 1 or undef.
65243         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65244
65245 1998-08-15  Jim Meyering  <meyering@ascend.com>
65246
65247         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65248         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65249         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65250         instead of jm_TYPE_SSIZE_T.
65251
65252 1998-08-12  Jim Meyering  <meyering@ascend.com>
65253
65254         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65255
65256 1998-08-02  Jim Meyering  <meyering@ascend.com>
65257
65258         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65259         in acconfig.h manually.
65260
65261 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65262
65263         * m4/st_mtim.m4: New file.
65264
65265 1998-07-28  Jim Meyering  <meyering@ascend.com>
65266
65267         * m4/utimes.m4: Undef stat.
65268
65269 1998-07-25  Jim Meyering  <meyering@ascend.com>
65270
65271         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65272         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65273
65274 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65275
65276         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65277         uid and gid actually remain unchanged.
65278
65279 1998-07-07  Jim Meyering  <meyering@ascend.com>
65280
65281         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65282
65283 1998-07-04  Jim Meyering  <meyering@ascend.com>
65284
65285         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65286         to prove that this macro can be used in packages without regex.c.
65287
65288 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65289
65290         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65291         is to be used.
65292
65293 1998-07-03  Jim Meyering  <meyering@ascend.com>
65294
65295         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65296
65297         * m4/gettext.m4: New file -- from gettext-0.10.35.
65298         * m4/lcmessage.m4: Likewise.
65299         * m4/progtest.m4: Likewise.
65300
65301         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65302         * m4/jm-macros.m4: Require the new macro.
65303
65304 1998-06-29  Jim Meyering  <meyering@ascend.com>
65305
65306         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65307         for the definition of NGROUPS (used in a system header included
65308         by sys/mount.h).
65309
65310 1998-06-28  Jim Meyering  <meyering@ascend.com>
65311
65312         * m4/ls-mntd-fs.m4: New file.
65313         * m4/fstypename.m4: New file.
65314
65315         * m4/jm-macros.m4: Require the new macro.
65316         * m4/jm-glibc-io.m4: New file.
65317
65318 1998-05-19  Jim Meyering  <meyering@ascend.com>
65319
65320         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65321         * m4/lchown.m4: New file.
65322
65323         * m4/Makefile.am.in: New file.
65324         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65325
65326 1998-05-14  Jim Meyering  <meyering@ascend.com>
65327
65328         * m4/Makefile.am (EXTRA_DIST): Add them.
65329         * m4/jm-macros.m4: New file.
65330         * m4/utimbuf.m4: New file.
65331
65332 1998-05-12  Jim Meyering  <meyering@ascend.com>
65333
65334         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65335
65336 1998-05-11  Jim Meyering  <meyering@ascend.com>
65337
65338         * m4/isc-posix.m4: New file.
65339
65340 1998-05-10  Jim Meyering  <meyering@ascend.com>
65341
65342         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65343
65344 1998-05-09  Jim Meyering  <meyering@ascend.com>
65345
65346         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65347         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65348         with automake.
65349
65350         * m4/ssize_t.m4: New file.
65351         * m4/mktime.m4: Remove file -- the new automake has this now.
65352
65353 1998-04-26  Jim Meyering  <meyering@ascend.com>
65354
65355         * m4/assert.m4: New file.
65356         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65357
65358 1998-04-05  Jim Meyering  <meyering@ascend.com>
65359
65360         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65361         (jm_PREREQ): Use it here.
65362
65363 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65364
65365         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65366         in acconfig.h.
65367
65368 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65369
65370         * m4/prereq.m4: New file.
65371         * m4/error.m4: New file.
65372         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65373
65374 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65375
65376         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65377         cache-check for the same variable -- that defeated the purpose of
65378         the test; the test program was never run.  This was a problem only
65379         on systems with losing getline functions -- HP-UX 10.20 is one.
65380         Reported by Bjorn Helgaas.
65381
65382 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65383
65384         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65385
65386 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65387
65388         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65389
65390         * m4/const.m4: New file.  Use an initializer in this declaration
65391         typedef int charset[2]; const charset x;
65392         Reported by Bob Glickstein.
65393
65394 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65395
65396         * m4/chown.m4: Fix reversed types on -1 args to chown.
65397         From Kaveh Ghazi.
65398
65399 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65400
65401         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65402         Add lseek and memchr.
65403
65404         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65405         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65406         have a 20-character limit on names.
65407
65408 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65409
65410         * m4/inttypes_h.m4: New file.
65411         * m4/uintmax_t.m4: New file.
65412         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65413
65414
65415         -----
65416
65417         Local Variables:
65418         coding: utf-8
65419         End:
65420
65421         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65422
65423         Copying and distribution of this file, with or without
65424         modification, are permitted provided the copyright notice
65425         and this notice are preserved.